wine_bouncer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +13 -0
  5. data/Gemfile +12 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +34 -0
  8. data/Rakefile +12 -0
  9. data/lib/wine_bouncer/auth_methods/auth_methods.rb +25 -0
  10. data/lib/wine_bouncer/errors.rb +6 -0
  11. data/lib/wine_bouncer/oauth2.rb +115 -0
  12. data/lib/wine_bouncer/version.rb +3 -0
  13. data/lib/wine_bouncer.rb +9 -0
  14. data/spec/dummy/README.rdoc +28 -0
  15. data/spec/dummy/Rakefile +6 -0
  16. data/spec/dummy/app/api/api.rb +35 -0
  17. data/spec/dummy/app/assets/images/.keep +0 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  21. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/mailers/.keep +0 -0
  24. data/spec/dummy/app/models/.keep +0 -0
  25. data/spec/dummy/app/models/concerns/.keep +0 -0
  26. data/spec/dummy/app/models/user.rb +2 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/config/application.rb +31 -0
  32. data/spec/dummy/config/boot.rb +5 -0
  33. data/spec/dummy/config/database.yml +25 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +37 -0
  36. data/spec/dummy/config/environments/production.rb +78 -0
  37. data/spec/dummy/config/environments/test.rb +39 -0
  38. data/spec/dummy/config/initializers/assets.rb +8 -0
  39. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  41. data/spec/dummy/config/initializers/doorkeeper.rb +92 -0
  42. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/spec/dummy/config/initializers/inflections.rb +16 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  45. data/spec/dummy/config/initializers/session_store.rb +3 -0
  46. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/spec/dummy/config/locales/doorkeeper.en.yml +71 -0
  48. data/spec/dummy/config/locales/en.yml +23 -0
  49. data/spec/dummy/config/routes.rb +4 -0
  50. data/spec/dummy/config/secrets.yml +22 -0
  51. data/spec/dummy/config.ru +4 -0
  52. data/spec/dummy/db/migrate/20140915153344_create_users.rb +9 -0
  53. data/spec/dummy/db/migrate/20140915160601_create_doorkeeper_tables.rb +41 -0
  54. data/spec/dummy/db/schema.rb +61 -0
  55. data/spec/dummy/lib/assets/.keep +0 -0
  56. data/spec/dummy/log/.keep +0 -0
  57. data/spec/dummy/public/404.html +67 -0
  58. data/spec/dummy/public/422.html +67 -0
  59. data/spec/dummy/public/500.html +66 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/factories/access_token.rb +11 -0
  62. data/spec/factories/application.rb +6 -0
  63. data/spec/factories/user.rb +5 -0
  64. data/spec/intergration/oauth2_spec.rb +86 -0
  65. data/spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb +51 -0
  66. data/spec/rails_helper.rb +77 -0
  67. data/spec/shared/orm/active_record.rb +2 -0
  68. data/spec/spec_helper.rb +90 -0
  69. data/wine_bouncer.gemspec +31 -0
  70. metadata +293 -0
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :application, class: Doorkeeper::Application do
3
+ sequence(:name) { |n| "Application #{n}" }
4
+ redirect_uri 'https://app.com/callback'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ sequence(:name) { |n| "user-#{n}" }
4
+ end
5
+ end
@@ -0,0 +1,86 @@
1
+ require 'rails_helper'
2
+ require 'json'
3
+
4
+ describe Api::MountedApiUnderTest, type: :api do
5
+
6
+ let(:user) { FactoryGirl.create :user }
7
+ let(:token) { FactoryGirl.create :clientless_access_token, resource_owner_id: user.id, scopes: "public" }
8
+ let(:unscoped_token) { FactoryGirl.create :clientless_access_token, resource_owner_id: user.id, scopes: "" }
9
+
10
+ context 'tokens and scopes' do
11
+ it 'gives access when the token and scope are correct' do
12
+
13
+ get '/api/protected', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}"
14
+
15
+ expect(last_response.status).to eq(200)
16
+ json = JSON.parse(last_response.body)
17
+ expect(json).to have_key('hello')
18
+ end
19
+
20
+ it 'raises an authentication error when the token is invalid' do
21
+ expect { get '/api/protected', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}-invalid" }.to raise_exception(WineBouncer::Errors::OAuthUnauthorizedError)
22
+ end
23
+
24
+ it 'raises an oauth authentication error when no token is given' do
25
+ expect { get '/api/protected' }.to raise_exception(WineBouncer::Errors::OAuthUnauthorizedError)
26
+ end
27
+
28
+ it 'raises an auth forbidden authentication error when the user scope is not correct' do
29
+ expect { get '/api/protected_with_private_scope', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}" }.to raise_exception(WineBouncer::Errors::OAuthForbiddenError)
30
+ end
31
+ end
32
+
33
+ context 'unprotected endpoint' do
34
+ it 'allows to call an unprotected endpoint without token' do
35
+ get '/api/unprotected'
36
+
37
+ expect(last_response.status).to eq(200)
38
+ json = JSON.parse(last_response.body)
39
+
40
+ expect(json).to have_key('hello')
41
+ expect(json['hello']).to eq('unprotected world')
42
+ end
43
+
44
+ it 'allows to call an unprotected endpoint with token' do
45
+ get '/api/unprotected', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}"
46
+
47
+ expect(last_response.status).to eq(200)
48
+ json = JSON.parse(last_response.body)
49
+ expect(json).to have_key('hello')
50
+ expect(json['hello']).to eq('unprotected world')
51
+ end
52
+ end
53
+
54
+ context 'protected_without_scopes' do
55
+
56
+ it 'allows to call an protected endpoint without scopes' do
57
+ get '/api/protected_without_scope', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}"
58
+
59
+ expect(last_response.status).to eq(200)
60
+ json = JSON.parse(last_response.body)
61
+ expect(json).to have_key('hello')
62
+ expect(json['hello']).to eq('protected unscoped world')
63
+ end
64
+
65
+ it 'raises an error when an protected endpoint without scopes is called without token ' do
66
+ expect { get '/api/protected_without_scope' }.to raise_exception(WineBouncer::Errors::OAuthUnauthorizedError)
67
+ end
68
+
69
+ it 'raises an error because the user does not have the default scope' do
70
+ expect { get '/api/protected_without_scope', nil, 'HTTP_AUTHORIZATION' => "Bearer #{unscoped_token.token}" }.to raise_exception(WineBouncer::Errors::OAuthForbiddenError)
71
+ end
72
+ end
73
+
74
+ context 'current_user' do
75
+ it 'is available in the endpoint' do
76
+ get '/api/protected_user', nil, 'HTTP_AUTHORIZATION' => "Bearer #{token.token}"
77
+
78
+ expect(last_response.status).to eq(200)
79
+ json = JSON.parse(last_response.body)
80
+
81
+ expect(json).to have_key('hello')
82
+ expect(json['hello']).to eq(user.name)
83
+ end
84
+ end
85
+
86
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+
3
+ describe ::WineBouncer::AuthMethods do
4
+
5
+ let(:tested_class) do
6
+ Class.new do
7
+ include ::WineBouncer::AuthMethods
8
+ end.new
9
+ end
10
+ let(:user) { FactoryGirl.create(:user) }
11
+ let(:token) { FactoryGirl.create :clientless_access_token, resource_owner_id: user.id, scopes: 'public' }
12
+
13
+ context 'doorkeeper_access_token' do
14
+ it 'sets and gets a token' do
15
+ tested_class.doorkeeper_access_token = token
16
+ expect(tested_class.doorkeeper_access_token).to eq(token)
17
+ end
18
+
19
+ end
20
+
21
+ context 'has_resource_owner?' do
22
+ it 'gives true when the token has an resource owner' do
23
+ tested_class.doorkeeper_access_token = token
24
+
25
+ expect(tested_class.has_resource_owner?).to be true
26
+ end
27
+
28
+ it 'gives false when the class an no token' do
29
+
30
+ expect(tested_class.has_resource_owner?).to be false
31
+ end
32
+
33
+ it 'gives false when the token has no resource owner' do
34
+ token.resource_owner_id = nil
35
+ tested_class.doorkeeper_access_token = token
36
+
37
+ expect(tested_class.has_resource_owner?).to be false
38
+ end
39
+ end
40
+
41
+ context 'has_doorkeeper_token?' do
42
+ it 'returns true when the class has a token' do
43
+ tested_class.doorkeeper_access_token = token
44
+ expect(tested_class.has_doorkeeper_token?).to be true
45
+ end
46
+
47
+ it 'returns false when the class has no token' do
48
+ expect(tested_class.has_doorkeeper_token?).to be false
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,77 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ ORM = (ENV['orm'] || :active_record).to_sym
4
+ require 'spec_helper'
5
+ require File.expand_path("../dummy/config/environment", __FILE__)
6
+ require 'rspec/rails'
7
+ require 'wine_bouncer'
8
+ require 'factory_girl'
9
+ require 'database_cleaner'
10
+ # Add additional requires below this line. Rails is not loaded until this point!
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc, in
13
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
14
+ # run as spec files by default. This means that files in spec/support that end
15
+ # in _spec.rb will both be required and run as specs, causing the specs to be
16
+ # run twice. It is recommended that you do not name files matching this glob to
17
+ # end with _spec.rb. You can configure this pattern with the --pattern
18
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
19
+ #
20
+ # The following line is provided for convenience purposes. It has the downside
21
+ # of increasing the boot-up time by auto-requiring all files in the support
22
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
23
+ # require only the support files necessary.
24
+ #
25
+ # Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
26
+
27
+ # Checks for pending migrations before tests are run.
28
+ # If you are not using ActiveRecord, you can remove this line.
29
+ #ActiveRecord::Migration.maintain_test_schema!
30
+
31
+ module ApiHelper
32
+ include Rack::Test::Methods
33
+
34
+ def app
35
+ Rails.application
36
+ end
37
+ end
38
+
39
+
40
+ require "shared/orm/#{Doorkeeper.configuration.orm_name}"
41
+
42
+ FactoryGirl.find_definitions
43
+
44
+
45
+
46
+ RSpec.configure do |config|
47
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
48
+ #config.fixture_path = "#{::Rails.root}/spec/fixtures"
49
+
50
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
51
+ # examples within a transaction, remove the following line or assign false
52
+ # instead of true.
53
+
54
+ config.include FactoryGirl::Syntax::Methods
55
+ config.include ApiHelper, :type=>:api
56
+
57
+ config.use_transactional_fixtures = true
58
+
59
+
60
+ config.infer_spec_type_from_file_location!
61
+
62
+ config.infer_base_class_for_anonymous_controllers = false
63
+
64
+ config.before do
65
+ DatabaseCleaner.start
66
+ FactoryGirl.lint
67
+ # Doorkeeper.configure { orm :active_record }
68
+ end
69
+
70
+ config.after do
71
+ DatabaseCleaner.clean
72
+ end
73
+
74
+ config.order = 'random'
75
+ end
76
+
77
+
@@ -0,0 +1,2 @@
1
+ ActiveRecord::Migration.verbose = false
2
+ load Rails.root + 'db/schema.rb'
@@ -0,0 +1,90 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+
18
+ RSpec.configure do |config|
19
+ # rspec-expectations config goes here. You can use an alternate
20
+ # assertion/expectation library such as wrong or the stdlib/minitest
21
+ # assertions if you prefer.
22
+ config.expect_with :rspec do |expectations|
23
+ # This option will default to `true` in RSpec 4. It makes the `description`
24
+ # and `failure_message` of custom matchers include text for helper methods
25
+ # defined using `chain`, e.g.:
26
+ # be_bigger_than(2).and_smaller_than(4).description
27
+ # # => "be bigger than 2 and smaller than 4"
28
+ # ...rather than:
29
+ # # => "be bigger than 2"
30
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
+ end
32
+
33
+ # rspec-mocks config goes here. You can use an alternate test double
34
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
35
+ config.mock_with :rspec do |mocks|
36
+ # Prevents you from mocking or stubbing a method that does not exist on
37
+ # a real object. This is generally recommended, and will default to
38
+ # `true` in RSpec 4.
39
+ mocks.verify_partial_doubles = true
40
+ end
41
+
42
+ # The settings below are suggested to provide a good initial experience
43
+ # with RSpec, but feel free to customize to your heart's content.
44
+ =begin
45
+ # These two settings work together to allow you to limit a spec run
46
+ # to individual examples or groups you care about by tagging them with
47
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
48
+ # get run.
49
+ config.filter_run :focus
50
+ config.run_all_when_everything_filtered = true
51
+
52
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
53
+ # For more details, see:
54
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
55
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
56
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
57
+ config.disable_monkey_patching!
58
+
59
+ # This setting enables warnings. It's recommended, but in some cases may
60
+ # be too noisy due to issues in dependencies.
61
+ config.warnings = true
62
+
63
+ # Many RSpec users commonly either run the entire suite or an individual
64
+ # file, and it's useful to allow more verbose output when running an
65
+ # individual spec file.
66
+ if config.files_to_run.one?
67
+ # Use the documentation formatter for detailed output,
68
+ # unless a formatter has already been configured
69
+ # (e.g. via a command-line flag).
70
+ config.default_formatter = 'doc'
71
+ end
72
+
73
+ # Print the 10 slowest examples and example groups at the
74
+ # end of the spec run, to help surface which specs are running
75
+ # particularly slow.
76
+ config.profile_examples = 10
77
+
78
+ # Run specs in random order to surface order dependencies. If you find an
79
+ # order dependency and want to debug it, you can fix the order by providing
80
+ # the seed, which is printed after each run.
81
+ # --seed 1234
82
+ config.order = :random
83
+
84
+ # Seed global randomization in this process using the `--seed` CLI option.
85
+ # Setting this allows you to use `--seed` to deterministically reproduce
86
+ # test failures related to randomization by passing the same `--seed` value
87
+ # as the one that triggered the failure.
88
+ Kernel.srand config.seed
89
+ =end
90
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'wine_bouncer/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wine_bouncer"
8
+ spec.version = WineBouncer::VERSION
9
+ spec.authors = ["Antek Drzewiecki"]
10
+ spec.email = ["antek.drzewiecki@tass.nl"]
11
+ spec.summary = %q{A Ruby gem that allows Oauth2 protection with Doorkeeper for Grape Api's}
12
+ spec.homepage = ""
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_runtime_dependency 'grape', '~> 0.9.0'
21
+ spec.add_runtime_dependency 'doorkeeper', '~> 1.4.0'
22
+
23
+ spec.add_development_dependency "railties"
24
+ spec.add_development_dependency "bundler", "~> 1.7"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec-rails", "~> 3.1.0"
27
+ spec.add_development_dependency 'factory_girl', '~> 4.4.0'
28
+ spec.add_development_dependency "sqlite3"
29
+ spec.add_development_dependency "database_cleaner", "~> 1.3.0"
30
+
31
+ end
metadata ADDED
@@ -0,0 +1,293 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wine_bouncer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Antek Drzewiecki
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: grape
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: doorkeeper
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: railties
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.7'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 3.1.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 3.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 4.4.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 4.4.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: database_cleaner
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 1.3.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 1.3.0
139
+ description:
140
+ email:
141
+ - antek.drzewiecki@tass.nl
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - .gitignore
147
+ - .rspec
148
+ - .travis.yml
149
+ - Gemfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - lib/wine_bouncer.rb
154
+ - lib/wine_bouncer/auth_methods/auth_methods.rb
155
+ - lib/wine_bouncer/errors.rb
156
+ - lib/wine_bouncer/oauth2.rb
157
+ - lib/wine_bouncer/version.rb
158
+ - spec/dummy/README.rdoc
159
+ - spec/dummy/Rakefile
160
+ - spec/dummy/app/api/api.rb
161
+ - spec/dummy/app/assets/images/.keep
162
+ - spec/dummy/app/assets/javascripts/application.js
163
+ - spec/dummy/app/assets/stylesheets/application.css
164
+ - spec/dummy/app/controllers/application_controller.rb
165
+ - spec/dummy/app/controllers/concerns/.keep
166
+ - spec/dummy/app/helpers/application_helper.rb
167
+ - spec/dummy/app/mailers/.keep
168
+ - spec/dummy/app/models/.keep
169
+ - spec/dummy/app/models/concerns/.keep
170
+ - spec/dummy/app/models/user.rb
171
+ - spec/dummy/app/views/layouts/application.html.erb
172
+ - spec/dummy/bin/bundle
173
+ - spec/dummy/bin/rails
174
+ - spec/dummy/bin/rake
175
+ - spec/dummy/config.ru
176
+ - spec/dummy/config/application.rb
177
+ - spec/dummy/config/boot.rb
178
+ - spec/dummy/config/database.yml
179
+ - spec/dummy/config/environment.rb
180
+ - spec/dummy/config/environments/development.rb
181
+ - spec/dummy/config/environments/production.rb
182
+ - spec/dummy/config/environments/test.rb
183
+ - spec/dummy/config/initializers/assets.rb
184
+ - spec/dummy/config/initializers/backtrace_silencers.rb
185
+ - spec/dummy/config/initializers/cookies_serializer.rb
186
+ - spec/dummy/config/initializers/doorkeeper.rb
187
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
188
+ - spec/dummy/config/initializers/inflections.rb
189
+ - spec/dummy/config/initializers/mime_types.rb
190
+ - spec/dummy/config/initializers/session_store.rb
191
+ - spec/dummy/config/initializers/wrap_parameters.rb
192
+ - spec/dummy/config/locales/doorkeeper.en.yml
193
+ - spec/dummy/config/locales/en.yml
194
+ - spec/dummy/config/routes.rb
195
+ - spec/dummy/config/secrets.yml
196
+ - spec/dummy/db/migrate/20140915153344_create_users.rb
197
+ - spec/dummy/db/migrate/20140915160601_create_doorkeeper_tables.rb
198
+ - spec/dummy/db/schema.rb
199
+ - spec/dummy/lib/assets/.keep
200
+ - spec/dummy/log/.keep
201
+ - spec/dummy/public/404.html
202
+ - spec/dummy/public/422.html
203
+ - spec/dummy/public/500.html
204
+ - spec/dummy/public/favicon.ico
205
+ - spec/factories/access_token.rb
206
+ - spec/factories/application.rb
207
+ - spec/factories/user.rb
208
+ - spec/intergration/oauth2_spec.rb
209
+ - spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb
210
+ - spec/rails_helper.rb
211
+ - spec/shared/orm/active_record.rb
212
+ - spec/spec_helper.rb
213
+ - wine_bouncer.gemspec
214
+ homepage: ''
215
+ licenses:
216
+ - MIT
217
+ metadata: {}
218
+ post_install_message:
219
+ rdoc_options: []
220
+ require_paths:
221
+ - lib
222
+ required_ruby_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - '>='
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ required_rubygems_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - '>='
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ requirements: []
233
+ rubyforge_project:
234
+ rubygems_version: 2.2.2
235
+ signing_key:
236
+ specification_version: 4
237
+ summary: A Ruby gem that allows Oauth2 protection with Doorkeeper for Grape Api's
238
+ test_files:
239
+ - spec/dummy/README.rdoc
240
+ - spec/dummy/Rakefile
241
+ - spec/dummy/app/api/api.rb
242
+ - spec/dummy/app/assets/images/.keep
243
+ - spec/dummy/app/assets/javascripts/application.js
244
+ - spec/dummy/app/assets/stylesheets/application.css
245
+ - spec/dummy/app/controllers/application_controller.rb
246
+ - spec/dummy/app/controllers/concerns/.keep
247
+ - spec/dummy/app/helpers/application_helper.rb
248
+ - spec/dummy/app/mailers/.keep
249
+ - spec/dummy/app/models/.keep
250
+ - spec/dummy/app/models/concerns/.keep
251
+ - spec/dummy/app/models/user.rb
252
+ - spec/dummy/app/views/layouts/application.html.erb
253
+ - spec/dummy/bin/bundle
254
+ - spec/dummy/bin/rails
255
+ - spec/dummy/bin/rake
256
+ - spec/dummy/config.ru
257
+ - spec/dummy/config/application.rb
258
+ - spec/dummy/config/boot.rb
259
+ - spec/dummy/config/database.yml
260
+ - spec/dummy/config/environment.rb
261
+ - spec/dummy/config/environments/development.rb
262
+ - spec/dummy/config/environments/production.rb
263
+ - spec/dummy/config/environments/test.rb
264
+ - spec/dummy/config/initializers/assets.rb
265
+ - spec/dummy/config/initializers/backtrace_silencers.rb
266
+ - spec/dummy/config/initializers/cookies_serializer.rb
267
+ - spec/dummy/config/initializers/doorkeeper.rb
268
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
269
+ - spec/dummy/config/initializers/inflections.rb
270
+ - spec/dummy/config/initializers/mime_types.rb
271
+ - spec/dummy/config/initializers/session_store.rb
272
+ - spec/dummy/config/initializers/wrap_parameters.rb
273
+ - spec/dummy/config/locales/doorkeeper.en.yml
274
+ - spec/dummy/config/locales/en.yml
275
+ - spec/dummy/config/routes.rb
276
+ - spec/dummy/config/secrets.yml
277
+ - spec/dummy/db/migrate/20140915153344_create_users.rb
278
+ - spec/dummy/db/migrate/20140915160601_create_doorkeeper_tables.rb
279
+ - spec/dummy/db/schema.rb
280
+ - spec/dummy/lib/assets/.keep
281
+ - spec/dummy/log/.keep
282
+ - spec/dummy/public/404.html
283
+ - spec/dummy/public/422.html
284
+ - spec/dummy/public/500.html
285
+ - spec/dummy/public/favicon.ico
286
+ - spec/factories/access_token.rb
287
+ - spec/factories/application.rb
288
+ - spec/factories/user.rb
289
+ - spec/intergration/oauth2_spec.rb
290
+ - spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb
291
+ - spec/rails_helper.rb
292
+ - spec/shared/orm/active_record.rb
293
+ - spec/spec_helper.rb