cancancan 1.17.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +5 -5
  2. data/cancancan.gemspec +10 -11
  3. data/init.rb +2 -0
  4. data/lib/cancan/ability/actions.rb +93 -0
  5. data/lib/cancan/ability/rules.rb +96 -0
  6. data/lib/cancan/ability/strong_parameter_support.rb +41 -0
  7. data/lib/cancan/ability.rb +87 -198
  8. data/lib/cancan/class_matcher.rb +30 -0
  9. data/lib/cancan/conditions_matcher.rb +147 -0
  10. data/lib/cancan/config.rb +101 -0
  11. data/lib/cancan/controller_additions.rb +13 -30
  12. data/lib/cancan/controller_resource.rb +33 -225
  13. data/lib/cancan/controller_resource_builder.rb +26 -0
  14. data/lib/cancan/controller_resource_finder.rb +42 -0
  15. data/lib/cancan/controller_resource_loader.rb +120 -0
  16. data/lib/cancan/controller_resource_name_finder.rb +23 -0
  17. data/lib/cancan/controller_resource_sanitizer.rb +32 -0
  18. data/lib/cancan/exceptions.rb +24 -4
  19. data/lib/cancan/matchers.rb +12 -1
  20. data/lib/cancan/model_adapters/abstract_adapter.rb +22 -1
  21. data/lib/cancan/model_adapters/active_record_4_adapter.rb +25 -44
  22. data/lib/cancan/model_adapters/active_record_5_adapter.rb +61 -0
  23. data/lib/cancan/model_adapters/active_record_adapter.rb +157 -83
  24. data/lib/cancan/model_adapters/conditions_extractor.rb +75 -0
  25. data/lib/cancan/model_adapters/conditions_normalizer.rb +49 -0
  26. data/lib/cancan/model_adapters/default_adapter.rb +2 -0
  27. data/lib/cancan/model_adapters/sti_normalizer.rb +47 -0
  28. data/lib/cancan/model_adapters/strategies/base.rb +40 -0
  29. data/lib/cancan/model_adapters/strategies/joined_alias_each_rule_as_exists_subquery.rb +93 -0
  30. data/lib/cancan/model_adapters/strategies/joined_alias_exists_subquery.rb +31 -0
  31. data/lib/cancan/model_adapters/strategies/left_join.rb +11 -0
  32. data/lib/cancan/model_adapters/strategies/subquery.rb +18 -0
  33. data/lib/cancan/model_additions.rb +6 -2
  34. data/lib/cancan/parameter_validators.rb +9 -0
  35. data/lib/cancan/relevant.rb +29 -0
  36. data/lib/cancan/rule.rb +67 -90
  37. data/lib/cancan/rules_compressor.rb +23 -0
  38. data/lib/cancan/sti_detector.rb +12 -0
  39. data/lib/cancan/unauthorized_message_resolver.rb +24 -0
  40. data/lib/cancan/version.rb +3 -1
  41. data/lib/cancan.rb +15 -10
  42. data/lib/cancancan.rb +2 -0
  43. data/lib/generators/cancan/ability/ability_generator.rb +3 -1
  44. data/lib/generators/cancan/ability/templates/ability.rb +9 -9
  45. metadata +64 -86
  46. data/.gitignore +0 -15
  47. data/.rspec +0 -1
  48. data/.rubocop.yml +0 -39
  49. data/.rubocop_todo.yml +0 -54
  50. data/.travis.yml +0 -39
  51. data/Appraisals +0 -105
  52. data/CHANGELOG.rdoc +0 -536
  53. data/CONTRIBUTING.md +0 -23
  54. data/Gemfile +0 -3
  55. data/LICENSE +0 -22
  56. data/README.md +0 -234
  57. data/Rakefile +0 -13
  58. data/gemfiles/activerecord_3.2.gemfile +0 -18
  59. data/gemfiles/activerecord_4.0.gemfile +0 -19
  60. data/gemfiles/activerecord_4.1.gemfile +0 -19
  61. data/gemfiles/activerecord_4.2.gemfile +0 -21
  62. data/gemfiles/activerecord_5.0.gemfile +0 -20
  63. data/gemfiles/mongoid_2.x.gemfile +0 -18
  64. data/gemfiles/sequel_3.x.gemfile +0 -18
  65. data/lib/cancan/inherited_resource.rb +0 -20
  66. data/lib/cancan/model_adapters/active_record_3_adapter.rb +0 -16
  67. data/lib/cancan/model_adapters/mongoid_adapter.rb +0 -80
  68. data/lib/cancan/model_adapters/sequel_adapter.rb +0 -87
  69. data/spec/README.rdoc +0 -27
  70. data/spec/cancan/ability_spec.rb +0 -553
  71. data/spec/cancan/controller_additions_spec.rb +0 -164
  72. data/spec/cancan/controller_resource_spec.rb +0 -645
  73. data/spec/cancan/exceptions_spec.rb +0 -58
  74. data/spec/cancan/inherited_resource_spec.rb +0 -71
  75. data/spec/cancan/matchers_spec.rb +0 -29
  76. data/spec/cancan/model_adapters/active_record_4_adapter_spec.rb +0 -160
  77. data/spec/cancan/model_adapters/active_record_adapter_spec.rb +0 -415
  78. data/spec/cancan/model_adapters/default_adapter_spec.rb +0 -7
  79. data/spec/cancan/model_adapters/mongoid_adapter_spec.rb +0 -246
  80. data/spec/cancan/model_adapters/sequel_adapter_spec.rb +0 -129
  81. data/spec/cancan/rule_spec.rb +0 -52
  82. data/spec/matchers.rb +0 -13
  83. data/spec/spec.opts +0 -2
  84. data/spec/spec_helper.rb +0 -27
  85. data/spec/support/ability.rb +0 -6
metadata CHANGED
@@ -1,51 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi (Renuo AG)
8
8
  - Bryan Rite
9
9
  - Ryan Bates
10
10
  - Richard Wilson
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-18 00:00:00.000000000 Z
14
+ date: 2023-03-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: bundler
17
+ name: appraisal
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '1.3'
22
+ version: '2.0'
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 2.0.0
23
26
  type: :development
24
27
  prerelease: false
25
28
  version_requirements: !ruby/object:Gem::Requirement
26
29
  requirements:
27
30
  - - "~>"
28
31
  - !ruby/object:Gem::Version
29
- version: '1.3'
32
+ version: '2.0'
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 2.0.0
30
36
  - !ruby/object:Gem::Dependency
31
- name: rubocop
37
+ name: bundler
32
38
  requirement: !ruby/object:Gem::Requirement
33
39
  requirements:
34
40
  - - "~>"
35
41
  - !ruby/object:Gem::Version
36
- version: '0.46'
42
+ version: '2.0'
37
43
  type: :development
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
40
46
  requirements:
41
47
  - - "~>"
42
48
  - !ruby/object:Gem::Version
43
- version: '0.46'
49
+ version: '2.0'
44
50
  - !ruby/object:Gem::Dependency
45
51
  name: rake
46
52
  requirement: !ruby/object:Gem::Requirement
47
53
  requirements:
48
54
  - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '10.1'
57
+ - - ">="
49
58
  - !ruby/object:Gem::Version
50
59
  version: 10.1.1
51
60
  type: :development
@@ -53,6 +62,9 @@ dependencies:
53
62
  version_requirements: !ruby/object:Gem::Requirement
54
63
  requirements:
55
64
  - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '10.1'
67
+ - - ">="
56
68
  - !ruby/object:Gem::Version
57
69
  version: 10.1.1
58
70
  - !ruby/object:Gem::Dependency
@@ -60,6 +72,9 @@ dependencies:
60
72
  requirement: !ruby/object:Gem::Requirement
61
73
  requirements:
62
74
  - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.2'
77
+ - - ">="
63
78
  - !ruby/object:Gem::Version
64
79
  version: 3.2.0
65
80
  type: :development
@@ -67,22 +82,25 @@ dependencies:
67
82
  version_requirements: !ruby/object:Gem::Requirement
68
83
  requirements:
69
84
  - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '3.2'
87
+ - - ">="
70
88
  - !ruby/object:Gem::Version
71
89
  version: 3.2.0
72
90
  - !ruby/object:Gem::Dependency
73
- name: appraisal
91
+ name: rubocop
74
92
  requirement: !ruby/object:Gem::Requirement
75
93
  requirements:
76
- - - ">="
94
+ - - "~>"
77
95
  - !ruby/object:Gem::Version
78
- version: 2.0.0
96
+ version: 1.31.1
79
97
  type: :development
80
98
  prerelease: false
81
99
  version_requirements: !ruby/object:Gem::Requirement
82
100
  requirements:
83
- - - ">="
101
+ - - "~>"
84
102
  - !ruby/object:Gem::Version
85
- version: 2.0.0
103
+ version: 1.31.1
86
104
  description: Simple authorization solution for Rails. All permissions are stored in
87
105
  a single location.
88
106
  email: alessandro.rodi@renuo.ch
@@ -90,70 +108,56 @@ executables: []
90
108
  extensions: []
91
109
  extra_rdoc_files: []
92
110
  files:
93
- - ".gitignore"
94
- - ".rspec"
95
- - ".rubocop.yml"
96
- - ".rubocop_todo.yml"
97
- - ".travis.yml"
98
- - Appraisals
99
- - CHANGELOG.rdoc
100
- - CONTRIBUTING.md
101
- - Gemfile
102
- - LICENSE
103
- - README.md
104
- - Rakefile
105
111
  - cancancan.gemspec
106
- - gemfiles/activerecord_3.2.gemfile
107
- - gemfiles/activerecord_4.0.gemfile
108
- - gemfiles/activerecord_4.1.gemfile
109
- - gemfiles/activerecord_4.2.gemfile
110
- - gemfiles/activerecord_5.0.gemfile
111
- - gemfiles/mongoid_2.x.gemfile
112
- - gemfiles/sequel_3.x.gemfile
113
112
  - init.rb
114
113
  - lib/cancan.rb
115
114
  - lib/cancan/ability.rb
115
+ - lib/cancan/ability/actions.rb
116
+ - lib/cancan/ability/rules.rb
117
+ - lib/cancan/ability/strong_parameter_support.rb
118
+ - lib/cancan/class_matcher.rb
119
+ - lib/cancan/conditions_matcher.rb
120
+ - lib/cancan/config.rb
116
121
  - lib/cancan/controller_additions.rb
117
122
  - lib/cancan/controller_resource.rb
123
+ - lib/cancan/controller_resource_builder.rb
124
+ - lib/cancan/controller_resource_finder.rb
125
+ - lib/cancan/controller_resource_loader.rb
126
+ - lib/cancan/controller_resource_name_finder.rb
127
+ - lib/cancan/controller_resource_sanitizer.rb
118
128
  - lib/cancan/exceptions.rb
119
- - lib/cancan/inherited_resource.rb
120
129
  - lib/cancan/matchers.rb
121
130
  - lib/cancan/model_adapters/abstract_adapter.rb
122
- - lib/cancan/model_adapters/active_record_3_adapter.rb
123
131
  - lib/cancan/model_adapters/active_record_4_adapter.rb
132
+ - lib/cancan/model_adapters/active_record_5_adapter.rb
124
133
  - lib/cancan/model_adapters/active_record_adapter.rb
134
+ - lib/cancan/model_adapters/conditions_extractor.rb
135
+ - lib/cancan/model_adapters/conditions_normalizer.rb
125
136
  - lib/cancan/model_adapters/default_adapter.rb
126
- - lib/cancan/model_adapters/mongoid_adapter.rb
127
- - lib/cancan/model_adapters/sequel_adapter.rb
137
+ - lib/cancan/model_adapters/sti_normalizer.rb
138
+ - lib/cancan/model_adapters/strategies/base.rb
139
+ - lib/cancan/model_adapters/strategies/joined_alias_each_rule_as_exists_subquery.rb
140
+ - lib/cancan/model_adapters/strategies/joined_alias_exists_subquery.rb
141
+ - lib/cancan/model_adapters/strategies/left_join.rb
142
+ - lib/cancan/model_adapters/strategies/subquery.rb
128
143
  - lib/cancan/model_additions.rb
144
+ - lib/cancan/parameter_validators.rb
145
+ - lib/cancan/relevant.rb
129
146
  - lib/cancan/rule.rb
147
+ - lib/cancan/rules_compressor.rb
148
+ - lib/cancan/sti_detector.rb
149
+ - lib/cancan/unauthorized_message_resolver.rb
130
150
  - lib/cancan/version.rb
131
151
  - lib/cancancan.rb
132
152
  - lib/generators/cancan/ability/USAGE
133
153
  - lib/generators/cancan/ability/ability_generator.rb
134
154
  - lib/generators/cancan/ability/templates/ability.rb
135
- - spec/README.rdoc
136
- - spec/cancan/ability_spec.rb
137
- - spec/cancan/controller_additions_spec.rb
138
- - spec/cancan/controller_resource_spec.rb
139
- - spec/cancan/exceptions_spec.rb
140
- - spec/cancan/inherited_resource_spec.rb
141
- - spec/cancan/matchers_spec.rb
142
- - spec/cancan/model_adapters/active_record_4_adapter_spec.rb
143
- - spec/cancan/model_adapters/active_record_adapter_spec.rb
144
- - spec/cancan/model_adapters/default_adapter_spec.rb
145
- - spec/cancan/model_adapters/mongoid_adapter_spec.rb
146
- - spec/cancan/model_adapters/sequel_adapter_spec.rb
147
- - spec/cancan/rule_spec.rb
148
- - spec/matchers.rb
149
- - spec/spec.opts
150
- - spec/spec_helper.rb
151
- - spec/support/ability.rb
152
155
  homepage: https://github.com/CanCanCommunity/cancancan
153
156
  licenses:
154
157
  - MIT
155
- metadata: {}
156
- post_install_message:
158
+ metadata:
159
+ funding_uri: https://github.com/sponsors/coorasse
160
+ post_install_message:
157
161
  rdoc_options: []
158
162
  require_paths:
159
163
  - lib
@@ -161,41 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
165
  requirements:
162
166
  - - ">="
163
167
  - !ruby/object:Gem::Version
164
- version: 2.0.0
168
+ version: 2.2.0
165
169
  required_rubygems_version: !ruby/object:Gem::Requirement
166
170
  requirements:
167
171
  - - ">="
168
172
  - !ruby/object:Gem::Version
169
173
  version: '0'
170
174
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.5.2
173
- signing_key:
175
+ rubygems_version: 3.3.7
176
+ signing_key:
174
177
  specification_version: 4
175
178
  summary: Simple authorization solution for Rails.
176
- test_files:
177
- - Appraisals
178
- - gemfiles/activerecord_3.2.gemfile
179
- - gemfiles/activerecord_4.0.gemfile
180
- - gemfiles/activerecord_4.1.gemfile
181
- - gemfiles/activerecord_4.2.gemfile
182
- - gemfiles/activerecord_5.0.gemfile
183
- - gemfiles/mongoid_2.x.gemfile
184
- - gemfiles/sequel_3.x.gemfile
185
- - spec/README.rdoc
186
- - spec/cancan/ability_spec.rb
187
- - spec/cancan/controller_additions_spec.rb
188
- - spec/cancan/controller_resource_spec.rb
189
- - spec/cancan/exceptions_spec.rb
190
- - spec/cancan/inherited_resource_spec.rb
191
- - spec/cancan/matchers_spec.rb
192
- - spec/cancan/model_adapters/active_record_4_adapter_spec.rb
193
- - spec/cancan/model_adapters/active_record_adapter_spec.rb
194
- - spec/cancan/model_adapters/default_adapter_spec.rb
195
- - spec/cancan/model_adapters/mongoid_adapter_spec.rb
196
- - spec/cancan/model_adapters/sequel_adapter_spec.rb
197
- - spec/cancan/rule_spec.rb
198
- - spec/matchers.rb
199
- - spec/spec.opts
200
- - spec/spec_helper.rb
201
- - spec/support/ability.rb
179
+ test_files: []
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- .DS_Store
2
- .idea/*
3
- *.swp
4
- **/*.swp
5
- *.gem
6
- .bundle
7
-
8
- gemfiles/*.lock
9
- Gemfile.lock
10
-
11
- .rvmrc
12
- .rbenv-version
13
- .ruby-version
14
- .ruby-gemset
15
- /tmp
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
data/.rubocop.yml DELETED
@@ -1,39 +0,0 @@
1
- Style/Documentation:
2
- Enabled: false
3
-
4
- Style/NonNilCheck:
5
- IncludeSemanticChanges: true
6
-
7
- Style/FrozenStringLiteralComment:
8
- Enabled: false
9
-
10
- Style/EmptyMethod:
11
- Enabled: false
12
-
13
- Style/VariableNumber:
14
- Enabled: false
15
-
16
- Style/ClassAndModuleChildren:
17
- Enabled: false
18
-
19
- Metrics/LineLength:
20
- Max: 120
21
-
22
- Metrics/ClassLength:
23
- Exclude:
24
- - 'lib/cancan/controller_resource.rb'
25
- - 'lib/cancan/rule.rb'
26
-
27
- Metrics/ModuleLength:
28
- Exclude:
29
- - "**/*_spec.rb"
30
- - 'lib/cancan/ability.rb'
31
- - 'lib/cancan/model_adapters/active_record_adapter.rb'
32
-
33
- AllCops:
34
- TargetRubyVersion: 2.0
35
- Exclude:
36
- - 'gemfiles/vendor/bundle/**/*'
37
- - 'Appraisals'
38
-
39
- inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml DELETED
@@ -1,54 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2016-12-14 08:11:19 +0100 using RuboCop version 0.45.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 14
10
- Metrics/AbcSize:
11
- Max: 25
12
-
13
- # Offense count: 5
14
- Metrics/CyclomaticComplexity:
15
- Max: 9
16
-
17
- # Offense count: 14
18
- # Configuration parameters: CountComments.
19
- Metrics/MethodLength:
20
- Max: 21
21
-
22
-
23
- Metrics/BlockLength:
24
- Max: 28
25
- Exclude:
26
- - "**/*_spec.rb"
27
-
28
- # Offense count: 7
29
- Metrics/PerceivedComplexity:
30
- Max: 11
31
-
32
- # TODO: due to mongoid. can't be fixed
33
- # Offense count: 1
34
- Performance/FixedSize:
35
- Exclude:
36
- - 'spec/cancan/model_adapters/mongoid_adapter_spec.rb'
37
-
38
-
39
- # TODO: fixing this would change the APIs
40
- # Offense count: 2
41
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
42
- # NamePrefix: is_, has_, have_
43
- # NamePrefixBlacklist: is_, has_, have_
44
- # NameWhitelist: is_a?
45
- Style/PredicateName:
46
- Exclude:
47
- - 'spec/**/*'
48
- - 'lib/cancan/ability.rb'
49
-
50
- Style/SymbolArray:
51
- Enabled: false
52
-
53
- Style/InverseMethods:
54
- Enabled: false
data/.travis.yml DELETED
@@ -1,39 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- rvm:
5
- - 2.0.0
6
- - 2.1.0
7
- - 2.2.0
8
- - 2.2.2
9
- - jruby-9.0.5.0
10
- gemfile:
11
- - gemfiles/activerecord_3.2.gemfile
12
- - gemfiles/activerecord_4.0.gemfile
13
- - gemfiles/activerecord_4.1.gemfile
14
- - gemfiles/activerecord_4.2.gemfile
15
- - gemfiles/activerecord_5.0.gemfile
16
- - gemfiles/mongoid_2.x.gemfile
17
- - gemfiles/sequel_3.x.gemfile
18
- services:
19
- - mongodb
20
- matrix:
21
- fast_finish: true
22
- exclude:
23
- - rvm: 2.0.0
24
- gemfile: gemfiles/activerecord_5.0.gemfile
25
- - rvm: 2.1.0
26
- gemfile: gemfiles/activerecord_5.0.gemfile
27
- - rvm: 2.2.0
28
- gemfile: gemfiles/activerecord_5.0.gemfile
29
- - rvm: jruby-9.0.5.0
30
- gemfile: gemfiles/activerecord_5.0.gemfile
31
- notifications:
32
- email:
33
- recipients:
34
- - alessandro.rodi@renuo.ch
35
- - josua.schmid@renuo.ch
36
- - zora.fuchs@renuo.ch
37
- on_success: change
38
- on_failure: change
39
-
data/Appraisals DELETED
@@ -1,105 +0,0 @@
1
- appraise "activerecord_3.2" do
2
- gem "activerecord", "~> 3.2.0", :require => "active_record"
3
- gem "actionpack", "~> 3.2.0", :require => "action_pack"
4
-
5
- gemfile.platforms :jruby do
6
- gem "activerecord-jdbcsqlite3-adapter"
7
- gem "jdbc-sqlite3"
8
- end
9
-
10
- gemfile.platforms :ruby, :mswin, :mingw do
11
- gem "sqlite3"
12
- end
13
- end
14
-
15
- appraise "activerecord_4.0" do
16
- gem "activerecord", "~> 4.0.5", :require => "active_record"
17
- gem "activesupport", "~> 4.0.5", :require => "active_support/all"
18
- gem "actionpack", "~> 4.0.5", :require => "action_pack"
19
-
20
-
21
- gemfile.platforms :jruby do
22
- gem "activerecord-jdbcsqlite3-adapter"
23
- gem "jdbc-sqlite3"
24
- end
25
-
26
- gemfile.platforms :ruby, :mswin, :mingw do
27
- gem "sqlite3"
28
- end
29
- end
30
-
31
- appraise "activerecord_4.1" do
32
- gem "activerecord", "~> 4.1.1", :require => "active_record"
33
- gem "activesupport", "~> 4.1.1", :require => "active_support/all"
34
- gem "actionpack", "~> 4.1.1", :require => "action_pack"
35
-
36
- gemfile.platforms :jruby do
37
- gem "activerecord-jdbcsqlite3-adapter"
38
- gem "jdbc-sqlite3"
39
- end
40
-
41
- gemfile.platforms :ruby, :mswin, :mingw do
42
- gem "sqlite3"
43
- end
44
- end
45
-
46
- appraise "activerecord_4.2" do
47
- gem "activerecord", "~> 4.2.0", :require => "active_record"
48
- gem 'activesupport', '~> 4.2.0', :require => 'active_support/all'
49
- gem "actionpack", "~> 4.2.0", :require => "action_pack"
50
- gem "nokogiri", "~> 1.6.8", :require => "nokogiri" # TODO: fix for ruby 2.0.0
51
-
52
- gemfile.platforms :jruby do
53
- gem "activerecord-jdbcsqlite3-adapter"
54
- gem "jdbc-sqlite3"
55
- end
56
-
57
- gemfile.platforms :ruby, :mswin, :mingw do
58
- gem "sqlite3"
59
- gem "pg"
60
- end
61
- end
62
-
63
- appraise "activerecord_5.0" do
64
- gem "activerecord", "~> 5.0.0.rc1", :require => "active_record"
65
- gem 'activesupport', '~> 5.0.0.rc1', :require => 'active_support/all'
66
- gem "actionpack", "~> 5.0.0.rc1", :require => "action_pack"
67
-
68
- gemfile.platforms :jruby do
69
- gem "activerecord-jdbcsqlite3-adapter"
70
- gem "jdbc-sqlite3"
71
- end
72
-
73
- gemfile.platforms :ruby, :mswin, :mingw do
74
- gem "sqlite3"
75
- gem "pg"
76
- end
77
- end
78
-
79
- appraise "mongoid_2.x" do
80
- gem "activesupport", "~> 3.0", :require => "active_support/all"
81
- gem "actionpack", "~> 3.0", :require => "action_pack"
82
- gem "mongoid", "~> 2.0.0"
83
-
84
- gemfile.platforms :ruby, :mswin, :mingw do
85
- gem "bson_ext", "~> 1.1"
86
- end
87
-
88
- gemfile.platforms :jruby do
89
- gem "mongo", "~> 1.9.2"
90
- end
91
- end
92
-
93
- appraise "sequel_3.x" do
94
- gem "sequel", "~> 3.48.0"
95
- gem "activesupport", "~> 3.0", :require => "active_support/all"
96
- gem "actionpack", "~> 3.0", :require => "action_pack"
97
-
98
- gemfile.platforms :jruby do
99
- gem "jdbc-sqlite3"
100
- end
101
-
102
- gemfile.platforms :ruby, :mswin, :mingw do
103
- gem "sqlite3"
104
- end
105
- end