doorkeeper 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -430
  3. data/Gemfile +1 -8
  4. data/NEWS.md +449 -0
  5. data/README.md +46 -3
  6. data/doorkeeper.gemspec +1 -1
  7. data/gemfiles/Gemfile.common.rb +0 -7
  8. data/gemfiles/Gemfile.mongo_mapper.rb +2 -2
  9. data/gemfiles/Gemfile.mongoid2.rb +1 -1
  10. data/gemfiles/Gemfile.mongoid4.rb +0 -1
  11. data/lib/doorkeeper/config.rb +7 -0
  12. data/lib/doorkeeper/engine.rb +4 -0
  13. data/lib/doorkeeper/errors.rb +6 -0
  14. data/lib/doorkeeper/models/access_token_mixin.rb +6 -1
  15. data/lib/doorkeeper/rails/helpers.rb +1 -1
  16. data/lib/doorkeeper/version.rb +1 -1
  17. data/lib/generators/doorkeeper/templates/initializer.rb +4 -0
  18. data/spec/controllers/applications_controller_spec.rb +0 -1
  19. data/spec/controllers/token_info_controller_spec.rb +0 -4
  20. data/spec/controllers/tokens_controller_spec.rb +4 -3
  21. data/spec/dummy/config/application.rb +2 -0
  22. data/spec/lib/config_spec.rb +18 -2
  23. data/spec/lib/oauth/authorization_code_request_spec.rb +1 -1
  24. data/spec/lib/oauth/client/credentials_spec.rb +2 -2
  25. data/spec/lib/oauth/password_access_token_request_spec.rb +1 -1
  26. data/spec/lib/oauth/pre_authorization_spec.rb +9 -10
  27. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -1
  28. data/spec/lib/oauth/token_request_spec.rb +3 -3
  29. data/spec/lib/server_spec.rb +3 -1
  30. data/spec/models/doorkeeper/access_token_spec.rb +48 -0
  31. data/spec/requests/applications/applications_request_spec.rb +1 -1
  32. data/spec/requests/endpoints/authorization_spec.rb +2 -1
  33. data/spec/requests/endpoints/token_spec.rb +9 -9
  34. data/spec/requests/flows/authorization_code_errors_spec.rb +4 -4
  35. data/spec/requests/flows/authorization_code_spec.rb +10 -2
  36. data/spec/requests/flows/implicit_grant_spec.rb +14 -5
  37. data/spec/requests/flows/password_spec.rb +14 -20
  38. data/spec/requests/flows/refresh_token_spec.rb +7 -7
  39. data/spec/requests/flows/revoke_token_spec.rb +9 -31
  40. data/spec/requests/protected_resources/metal_spec.rb +3 -3
  41. data/spec/requests/protected_resources/private_api_spec.rb +11 -0
  42. data/spec/routing/custom_controller_routes_spec.rb +1 -2
  43. data/spec/routing/default_routes_spec.rb +1 -2
  44. data/spec/routing/scoped_routes_spec.rb +0 -1
  45. data/spec/spec_helper_integration.rb +3 -1
  46. data/spec/support/helpers/access_token_request_helper.rb +1 -1
  47. data/spec/support/helpers/authorization_request_helper.rb +1 -1
  48. data/spec/support/helpers/config_helper.rb +1 -1
  49. data/spec/support/helpers/model_helper.rb +1 -1
  50. data/spec/support/helpers/request_spec_helper.rb +1 -1
  51. data/spec/support/helpers/url_helper.rb +1 -1
  52. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f81bfc8acb70b14d07f1d1cfa39d608b70488890
4
- data.tar.gz: e27b15693c23faf2348358e307757a0cdf088e7d
3
+ metadata.gz: 7ed88c8cae122d51e810fdc04e41588a519104f1
4
+ data.tar.gz: 3cb367a4c8dc144a1e38247b75faeecc7097a86d
5
5
  SHA512:
6
- metadata.gz: f0981eb39aba13e7191309b2d6703d58c175dd28df746867b1b466f9a62c9e5978f705f7df617268d082a210ff4bc5da1206a17849a0e1b0ee87746cf96d77fb
7
- data.tar.gz: 207f6e7ec14a8369e3c27ee9af38a87d273556681438938c61c80454dd23628c838b2ff4c8e462e49ce6ed0cdfcf99481fb9c54b5b8752422a598c9bf238d78b
6
+ metadata.gz: 29a1b6b0cbcef60aa25cf68aa5cf80c7282284de41a9399c590cb91e5493627f6ebc16837b63863fd299fa1ddba1a1e18e9c89dc1f8d5dc5e496c83ea4ad003f
7
+ data.tar.gz: 29dfb14b86abbaecb9ac27a73018dbe8bdeec4ec449868818df8999272e9e71a253ebdc77141b7e2329961602174b83731e7c2fdbc4903ed08fb6ad5f2744837
@@ -1,430 +1 @@
1
- # Changelog
2
-
3
- ## 2.1.4
4
-
5
- - [#595] HTTP spec: Add `scope` for refresh token scope param
6
- - [#596] Limit scopes in app scopes for client credentials
7
- - [#567] Add Grape helpers for easier integration with Grape framework
8
- - [#606] Add custom access token expiration support for Client Credentials flow
9
-
10
-
11
- ## 2.1.3
12
-
13
- - [#588] Fixes scopes_match? bug that skipped authorization form in some cases
14
-
15
-
16
- ## 2.1.2
17
-
18
- - [#574] Remove unused update authorization route.
19
- - [#576] Filter out sensitive parameters from logs.
20
- - [#582] The Authorization HTTP header fields are now case insensitive.
21
- - [#583] Database connection bugfix in certain scenarios.
22
- - Testing improvements
23
-
24
-
25
- ## 2.1.1
26
-
27
- - Remove `wildcard_redirect_url` option
28
- - [#481] Customize token flow OAuth expirations with a config lambda
29
- - [#568] TokensController: Memoize strategy.authorize_response result to enable
30
- subclasses to use the response object.
31
- - [#571] Fix database initialization issues in some configurations.
32
- - Documentation improvements
33
-
34
-
35
- ## 2.1.0
36
-
37
- - [#540] Include `created_at` in response.
38
- - [#538] Check application-level scopes in client_credentials and password flow.
39
- - [5596227] Check application scopes in AccessToken when present. Fixes a bug in
40
- doorkeeper 2.0.0 and 2.0.1 referring to application specific scopes.
41
- - [#534] Internationalizes doorkeeper views.
42
- - [#545] Ensure there is a connection to the database before checking for
43
- missing columns
44
- - [#546] Use `Doorkeeper::` prefix when referencing `Application` to avoid
45
- possible application model name conflict.
46
- - [#538] Test with Rails ~> 4.2.
47
-
48
- ### Potentially backward incompatible changes
49
-
50
- - Enable by default `authorization_code` and `client_credentials` grant flows.
51
- Disables implicit and password grant flows by default.
52
- - [#510, #544, 722113f] Revoked refresh token response bugfix.
53
-
54
-
55
- ## 2.0.1
56
-
57
- - [#525, #526, #527] Fix `ActiveRecord::NoDatabaseError` on gem load.
58
-
59
-
60
- ## 2.0.0
61
-
62
- ### Backward incompatible changes
63
-
64
- - [#448] Removes `doorkeeper_for` helper. Now we use
65
- `before_action :doorkeeper_authorize!`.
66
- - [#469] Allow client applications to restrict the set of allowable scopes.
67
- Fixes #317. `oauth_applications` relation needs a new `scopes` string column,
68
- non nullable, which defaults to an empty string. To add the column run:
69
-
70
- ```
71
- rails generate doorkeeper:application_scopes
72
- ```
73
-
74
- If you’d rather do it by hand, your ActiveRecord migration should contain:
75
-
76
- ```ruby
77
- add_column :oauth_applications, :scopes, :string, null: false, default: ‘’
78
- ```
79
-
80
- ### Removed deprecations
81
-
82
- - Removes `test_redirect_uri` option. It is now called `native_redirect_uri`.
83
- - [#446] Removes `mount Doorkeeper::Engine`. Now we use `use_doorkeeper`.
84
-
85
- ### Others
86
-
87
- - [#484] Performance improvement - avoid performing order_by when not required.
88
- - [#450] When password is invalid in Password Credentials Grant, Doorkeeper
89
- returned 'invalid_resource_owner' instead of 'invalid_grant', as the spec
90
- declares. Fixes #444.
91
- - [#452] Allows `revoked_at` to be set in the future, for future expiry.
92
- Rationale: https://github.com/doorkeeper-gem/doorkeeper/pull/452#issuecomment-51431459
93
- - [#480] For Implicit grant flow, access tokens can now be reused. Fixes #421.
94
- - [#491] Reworks of @jasl's #454 and #478. ORM refactor that allows doorkeeper
95
- to be extended more easily with unsupported ORMs. It also marks the boundaries
96
- between shared model code and ORM specifics inside of the gem.
97
- - [#496] Tests with Rails 4.2.
98
- - [#489] Adds `force_ssl_in_redirect_uri` to force the usage of the HTTPS
99
- protocol in non-native redirect uris.
100
- - [#516] SECURITY: Adds `protect_from_forgery` to `Doorkeeper::ApplicationController`
101
- - [#518] Fix random failures in mongodb.
102
-
103
-
104
- ## 1.4.1
105
-
106
- - [#516] SECURITY: Adds `protect_from_forgery` to `Doorkeeper::ApplicationController`
107
-
108
-
109
- ## 1.4.0
110
-
111
- - internals
112
- - [#427] Adds specs expectations.
113
- - [#428] Error response refactor.
114
- - [#417] Moves token validation into Access Token class.
115
- - [#439] Removes redundant module includes.
116
- - [#443] TokensController and TokenInfoController inherit from ActionController::Metal
117
- - bug
118
- - [#418] fixes #243, requests with insufficient scope now respond 403 instead
119
- of 401. (API change)
120
- - [#438] fixes #398, native redirect for implicit token grant bug.
121
- - [#440] namespace fixes
122
- - enhancements
123
- - [#432] Keeps query parameters
124
-
125
- ## 1.3.1
126
-
127
- - enhancements
128
- - [#405] Adds facade to more easily get the token from a request in a route
129
- constraint.
130
- - [#415] Extend Doorkeeper TokenResponse with an `after_successful_response`
131
- callback that allows handling of `response` object.
132
- - internals
133
- - [#409] Deprecates `test_redirect_uri` in favor of `native_redirect_uri`.
134
- See discussion in: [#351].
135
- - [#411] Clean rspec deprecations. General test improvements.
136
- - [#412] rspec line width can go longer than 80 (hound CI config).
137
- - bug
138
- - [#413] fixes #340, routing scope is now taken into account in redirect.
139
- - [#401] and [#425] application is not required any longer for access_token.
140
-
141
- ## 1.3.0
142
-
143
- - enhancements
144
- - [#387] Adds reuse_access_token configuration option.
145
-
146
- ## 1.2.0
147
-
148
- - enhancements
149
- - [#376] Allow users to enable basic header authorization for access tokens.
150
- - [#374] Token revocation implementation [RFC 7009]
151
- - [#295] Only enable specific grant flows.
152
- - internals
153
- - [#381] Locale source fix.
154
- - [#380] Renames `errors_for` to `doorkeeper_errors_for`.
155
- - [#390] Style adjustments in accordance with Ruby Style Guide form
156
- Thoughtbot.
157
-
158
- ## 1.1.0
159
-
160
- - enhancements
161
- - [#336] mongoid4 support.
162
- - [#372] Allow users to set ActiveRecord table_name_prefix/suffix options
163
- - internals
164
- - [#343] separate OAuth's admin and user end-point to different layouts, upgrade theme to Bootstrap 3.1.
165
- - [#348] Move render_options in filter after `@error` has been set
166
-
167
- ## 1.0.0
168
-
169
- - bug (spec)
170
- - [#228] token response `expires_in` value is now in seconds, relative to
171
- request time
172
- - [#296] client is optional for password grant type.
173
- - [#319] If client credentials are present on password grant type they are validated
174
- - [#326] If client credentials are present in refresh token they are validated
175
- - [#326] If authenticated client does not match original client that
176
- obtained a refresh token it responds `invalid_grant` instead of
177
- `invalid_client`. Previous usage was invalid according to Section 5.2 of
178
- the spec.
179
- - [#329] access tokens' `scopes` string wa being compared against
180
- `default_scopes` symbols, always unauthorizing.
181
- - [#318] Include "WWW-Authenticate" header with Unauthorized responses
182
- - enhancements
183
- - [#293] Adds ActionController::Instrumentation in TokensController
184
- - [#298] Support for multiple redirect_uris added.
185
- - [#313] `AccessToken.revoke_all_for` actually revokes all non-revoked
186
- tokens for an application/owner instead of deleting them.
187
- - [#333] Rails 4.1 support
188
- - internals
189
- - Removes jQuery dependency [fixes #300] [PR #312 is related]
190
- - [#294] Client uid and secret will be generated only if not present.
191
- - [#316] Test warnings addressed.
192
- - [#338] Rspec 3 syntax.
193
-
194
- ## 0.7.4
195
-
196
- - bug
197
- - Symbols instead of strings for user input.
198
-
199
- ## 0.7.3
200
-
201
- - enhancements
202
- - [#204] Allow to overwrite scope in routes
203
- - internals
204
- - Returns only present keys in Token Response (may imply a backwards
205
- incompatible change). https://github.com/doorkeeper-gem/doorkeeper/issues/220
206
- - bug
207
- - [#290] Support for Rails 4 when 'protected_attributes' gem is present.
208
-
209
-
210
- ## 0.7.2
211
-
212
- - enhancements
213
- - [#272] Allow issuing multiple access_tokens for one user/application for multiple devices
214
- - [#170] Increase length of allowed redirect URIs
215
- - [#239] Do not try to load unavailable Request class for the current phase.
216
- - [#273] Relax jquery-rails gem dependency
217
-
218
- ## 0.7.1
219
-
220
- - bug
221
- - [#269] Rails 3.2 raised `ActiveModel::MassAssignmentSecurity::Error`.
222
-
223
- ## 0.7.0
224
-
225
- - enhancements
226
- - [#229] Rails 4!
227
- - internals
228
- - [#203] Changing table name to be specific in column_names_with_table
229
- - [#215] README update
230
- - [#227] Use Rails.config.paths["config/routes"] instead of assuming "config/routes.rb" exists
231
- - [#262] Add jquery as gem dependency
232
- - [#263] Add a configuration for ActiveRecord.establish_connection
233
- - Deprecation and Ruby warnings (PRs merged outside of GitHub).
234
-
235
- ## 0.6.7
236
-
237
- - internals
238
- - [#188] Add IDs to the show views for integration testing [@egtann](https://github.com/egtann)
239
-
240
- ## 0.6.6
241
-
242
- - enhancements
243
- - [#187] Raise error if configuration is not set
244
-
245
- ## 0.6.5
246
-
247
- - enhancements
248
- - [#184] Vendor the Bootstrap CSS [@tylerhunt](https://github.com/tylerhunt)
249
-
250
- ## 0.6.4
251
-
252
- - bug
253
- - [#180] Add localization to authorized_applications destroy notice [@aalvarado](https://github.com/aalvarado)
254
-
255
- ## 0.6.3
256
-
257
- - bugfixes
258
- - [#163] Error response content-type header should be application/json [@ggayan](https://github.com/ggayan)
259
- - [#175] Make token.expires_in_seconds return nil when expires_in is nil [@miyagawa](https://github.com/miyagawa)
260
- - enhancements
261
- - [#166, #172, #174] Behavior to automatically authorize based on a configured proc
262
- - internals
263
- - [#168] Using expectation syntax for controller specs [@rdsoze](https://github.com/rdsoze)
264
-
265
- ## 0.6.2
266
-
267
- - bugfixes
268
- - [#162] Remove ownership columns from base migration template [@rdsoze](https://github.com/rdsoze)
269
-
270
- ## 0.6.1
271
-
272
- - bugfixes
273
- - [#160] Removed |routes| argument from initializer authenticator blocks
274
- - documentation
275
- - [#160] Fixed description of context of authenticator blocks
276
-
277
- ## 0.6.0
278
-
279
- - enhancements
280
- - Mongoid `orm` configuration accepts only :mongoid2 or :mongoid3
281
- - Authorization endpoint does not redirect in #new action anymore. It wasn't specified by OAuth spec
282
- - TokensController now inherits from ActionController::Metal. There might be performance upgrades
283
- - Add link to authorization in Applications scaffold
284
- - [#116] MongoMapper support [@carols10cents](https://github.com/carols10cents)
285
- - [#122] Mongoid3 support [@petergoldstein](https://github.com/petergoldstein)
286
- - [#150] Introduce test redirect uri for applications
287
- - bugfixes
288
- - [#157] Response token status should be `:ok`, not `:success` [@theycallmeswift](https://github.com/theycallmeswift)
289
- - [#159] Remove ActionView::Base.field_error_proc override (fixes #145)
290
- - internals
291
- - Update development dependencies
292
- - Several refactorings
293
- - Rails/ORM are easily swichable with env vars (rails and orm)
294
- - Travis now tests against Mongoid v2
295
-
296
- ## 0.5.0.rc1
297
-
298
- Official support for rubinius was removed.
299
-
300
- - enhancements
301
- - Configure the way access token is retrieved from request (default to bearer header)
302
- - Authorization Code expiration time is now configurable
303
- - Add support for mongoid
304
- - [#78, #128, #137, #138] Application Ownership
305
- - [#92] Allow users to skip controllers
306
- - [#99] Remove deprecated warnings for data-* attributes [@towerhe](https://github.com/towerhe)
307
- - [#101] Return existing access_token for PasswordAccessTokenRequest [@benoist](https://github.com/benoist)
308
- - [#104] Changed access token scopes example code to default_scopes and optional_scopes [@amkirwan](https://github.com/amkirwan)
309
- - [#107] Fix typos in initializer
310
- - [#123] i18n for validator, flash messages [@petergoldstein](https://github.com/petergoldstein)
311
- - [#140] ActiveRecord is the default value for the ORM [@petergoldstein](https://github.com/petergoldstein)
312
- - internals
313
- - [#112, #120] Replacing update_attribute with update_column to eliminate deprecation warnings [@rmoriz](https://github.com/rmoriz), [@petergoldstein](https://github.com/petergoldstein)
314
- - [#121] Updating all development dependencies to recent versions. [@petergoldstein](https://github.com/petergoldstein)
315
- - [#144] Adding MongoDB dependency to .travis.yml [@petergoldstein](https://github.com/petergoldstein)
316
- - [#143] Displays errors for unconfigured error messages [@timgaleckas](https://github.com/timgaleckas)
317
- - bugfixes
318
- - [#102] Not returning 401 when access token generation fails [@cslew](https://github.com/cslew)
319
- - [#125] Doorkeeper is using ActiveRecord version of as_json in ORM agnostic code [@petergoldstein](https://github.com/petergoldstein)
320
- - [#142] Prevent double submission of password based authentication [@bdurand](https://github.com/bdurand)
321
- - documentation
322
- - [#141] Add rack-cors middleware to readme [@gottfrois](https://github.com/gottfrois)
323
-
324
- ## 0.4.2
325
-
326
- - bugfixes:
327
- - [#94] Uninitialized Constant in Password Flow
328
-
329
- ## 0.4.1
330
-
331
- - enhancements:
332
- - Backport: Move doorkeeper_for extension to Filter helper
333
-
334
- ## 0.4.0
335
-
336
- - deprecation
337
- - Deprecate authorization_scopes
338
- - database changes
339
- - AccessToken#resource_owner_id is not nullable
340
- - enhancements
341
- - [#83] Add Resource Owner Password Credentials flow [@jaimeiniesta](https://github.com/jaimeiniesta)
342
- - [#76] Allow token expiration to be disabled [@mattgreen](https://github.com/mattgreen)
343
- - [#89] Configure the way client credentials are retrieved from request
344
- - [#b6470a] Add Client Credentials flow
345
- - internals
346
- - [#2ece8d, #f93778] Introduce Client and ErrorResponse classes
347
-
348
- ## 0.3.4
349
-
350
- - Fix attr_accessible for rails 3.2.x
351
-
352
- ## 0.3.3
353
-
354
- - [#86] shrink gem package size
355
-
356
- ## 0.3.2
357
-
358
- - enhancements
359
- - [#54] Ignore Authorization: headers that are not Bearer [@miyagawa](https://github.com/miyagawa)
360
- - [#58, #64] Add destroy action to applications endpoint [@jaimeiniesta](https://github.com/jaimeiniesta), [@davidfrey](https://github.com/davidfrey)
361
- - [#63] TokensController responds with `401 unauthorized` [@jaimeiniesta](https://github.com/jaimeiniesta)
362
- - [#67, #72] Fix for mass-assignment [@cicloid](https://github.com/cicloid)
363
- - internals
364
- - [#49] Add Gemnasium status image to README [@laserlemon](https://github.com/laserlemon)
365
- - [#50] Fix typos [@tomekw](https://github.com/tomekw)
366
- - [#51] Updated the factory_girl_rails dependency, fix expires_in response which returned a float number instead of integer [@antekpiechnik](https://github.com/antekpiechnik)
367
- - [#62] Typos, .gitignore [@jaimeiniesta](https://github.com/jaimeiniesta)
368
- - [#65] Change _path redirections to _url redirections [@jaimeiniesta](https://github.com/jaimeiniesta)
369
- - [#75] Fix unknown method #authenticate_admin! [@mattgreen](https://github.com/mattgreen)
370
- - Remove application link in authorized app view
371
-
372
- ## 0.3.1
373
-
374
- - enhancements
375
- - [#48] Add if, else options to doorkeeper_for
376
- - Add views generator
377
- - internals
378
- - Namespace models
379
-
380
- ## 0.3.0
381
-
382
- - enhancements
383
- - [#17, #31] Add support for client credentials in basic auth header [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
384
- - [#28] Add indices to migration [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
385
- - [#29] Allow doorkeeper to run with rails 3.2 [@john-griffin](https://github.com/john-griffin)
386
- - [#30] Improve client's redirect uri validation [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
387
- - [#32] Add token (implicit grant) flow [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
388
- - [#34] Add support for custom unathorized responses [@GoldsteinTechPartners](https://github.com/GoldsteinTechPartners)
389
- - [#36] Remove repetitions from the Authorised Applications view [@carvil](https://github.com/carvil)
390
- - When user revoke an application, all tokens for that application are revoked
391
- - Error messages now can be translated
392
- - Install generator copies the error messages localization file
393
- - internals
394
- - Fix deprecation warnings in ActiveSupport::Base64
395
- - Remove deprecation in doorkeeper_for that handles hash arguments
396
- - Depends on railties instead of whole rails framework
397
- - CI now integrates with rails 3.1 and 3.2
398
-
399
- ## 0.2.0
400
-
401
- - enhancements
402
- - [#4] Add authorized applications endpoint
403
- - [#5, #11] Add access token scopes
404
- - [#10] Add access token expiration by default
405
- - [#9, #12] Add refresh token flow
406
- - internals
407
- - [#7] Improve configuration options with :default
408
- - Improve configuration options with :builder
409
- - Refactor config class
410
- - Improve coverage of authorization request integration
411
- - bug fixes
412
- - [#6, #20] Fix access token response headers
413
- - Fix issue with state parameter
414
- - deprecation
415
- - deprecate :only and :except options in doorkeeper_for
416
-
417
- ## 0.1.1
418
-
419
- - enhancements
420
- - [#3] Authorization code must be short lived and single use
421
- - [#2] Improve views provided by doorkeeper
422
- - [#1] Skips authorization form if the client has been authorized by the resource owner
423
- - Improve readme
424
- - bugfixes
425
- - Fix issue when creating the access token (wrong client id)
426
-
427
- ## 0.1.0
428
-
429
- - Authorization Code flow
430
- - OAuth applications endpoint
1
+ Moved to [NEWS.md](https://github.com/doorkeeper-gem/doorkeeper/blob/master/NEWS.md)
data/Gemfile CHANGED
@@ -1,14 +1,7 @@
1
- ENV['rails'] ||= '4.2.0.rc2'
1
+ ENV['rails'] ||= '4.2.0'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gem 'rails', "~> #{ENV['rails']}"
6
6
 
7
- if ENV['rails'][0] == '4'
8
- gem 'database_cleaner'
9
- end
10
- if ENV['rails'] =~ /4.0|3.2/
11
- gem 'rubysl-test-unit'
12
- end
13
-
14
7
  gemspec