Skip to content

Commit

Permalink
chore: Add gem helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
toupeira committed Nov 3, 2016
1 parent ff423a2 commit 4d915f9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ENV['rails'] ||= '4.2.0'

source 'https://rubygems.org'

# use Rails version specified by environment
ENV['rails'] ||= '4.2.0'
gem 'rails', "~> #{ENV['rails']}"

gemspec
9 changes: 9 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env ruby

require 'bundler/setup'
Bundler.require :default

require 'doorkeeper/openid_connect'

require 'pry'
Pry.start
8 changes: 8 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install

# Do any other automated setup that you need to do here
3 changes: 3 additions & 0 deletions doorkeeper-openid_connect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = ">= 2.1"

spec.add_runtime_dependency 'doorkeeper', '~> 4.0'
#spec.add_runtime_dependency 'activemodel', '~> 4.0'
spec.add_runtime_dependency 'json-jwt', '~> 1.6.5'

spec.add_development_dependency 'rspec-rails'
Expand Down
1 change: 1 addition & 0 deletions lib/doorkeeper/openid_connect.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'doorkeeper'
require 'active_model'
require 'json/jwt'

require 'doorkeeper/openid_connect/claims_builder'
Expand Down

0 comments on commit 4d915f9

Please sign in to comment.