activeadmin-reform 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b2545bc177dc4826dabe211d5576f05e73d01f2
4
- data.tar.gz: 2c5617517929323af7f300e7530b9e42fb6cf932
3
+ metadata.gz: 20aac74c3b069849ab30b8a6d86dac61eced4bc3
4
+ data.tar.gz: 658f0480a2294b5377de8cd8e7eae1e9d0bc5c4a
5
5
  SHA512:
6
- metadata.gz: 0eb184257154729d4de672a81cb0c24fffba0baff550ae49719f7edb67bbe04f74a6481ffe991c18aecc6611b8295bbe1c16883488462a7554bfc893bc94dc14
7
- data.tar.gz: 344759c4d353e38ad8e687bc7b852ef7d1862567fc60ad151bd5dc9cbdc5cd34d2a847dd3df9646d72c856f45d22c9ff00d951f43a08ce8f72ba882309457e3a
6
+ metadata.gz: c44d4a98f4eed68d61fe62551979c81494263fbc0aaf6fcb6362acc1d03747adffe7482205c4a0c6fc5f93dd02e6a75c7ac8dc6e4227d943a03e1f9b21db9365
7
+ data.tar.gz: 91ccfaff245d43740bbeff0c4044f2d63357f87217b40d76aa5f3a4569469327e39c5dfbd728b8e2d224af25de1ed8b1f81a0096a4cae41c860726ae513b9918
@@ -0,0 +1,3 @@
1
+ exclude_patterns:
2
+ - "gemfiles/"
3
+ - "spec/"
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /spec/dummy/
10
10
  /tmp/
11
+ gemfiles/.bundle
@@ -11,8 +11,9 @@ inherit_gem:
11
11
 
12
12
  AllCops:
13
13
  Exclude:
14
- - spec/dummy/**/*
15
- - spec/templates/*
14
+ - "spec/dummy/**/*"
15
+ - "spec/templates/*"
16
+ - "gemfiles/**/*"
16
17
 
17
18
  # Configuration parameters: AllowURI, URISchemes.
18
19
  Metrics/LineLength:
@@ -1,23 +1,16 @@
1
+ ---
1
2
  language: ruby
2
3
  rvm:
3
- - 2.2.2
4
- - ruby-head
5
- env:
6
- matrix:
7
- - RAILS_VERSION=3.2 ACTIVEADMIN_VERSION=1.0.0.pre3
8
- - RAILS_VERSION=4.2.4 ACTIVEADMIN_VERSION=1.2.0
9
- - RAILS_VERSION=master ACTIVEADMIN_VERSION=1.2.0
10
- matrix:
11
- allow_failures:
12
- - env: RAILS_VERSION=master ACTIVEADMIN_VERSION=1.2.0
13
- - rvm: ruby-head
14
- before_install: gem install bundler -v 1.10.6
15
- install:
16
- - bundle install --retry=3
4
+ - 2.2.2
5
+ before_script:
6
+ - "./bin/setup"
17
7
  script:
18
- - bundle exec rake
19
- - bundle exec rubocop
20
-
8
+ - bundle exec rake spec
9
+ - bundle exec rubocop --fail-level C
10
+ gemfile:
11
+ - gemfiles/rails_4.2.10_activeadmin_1.2.1_reform_2.3.0.rc1_reform_rails_0.2.0.rc2.gemfile
12
+ - gemfiles/rails_4.2.10_activeadmin_1.2.1_reform_2.2.4_reform_rails_0.1.7.gemfile
13
+ - gemfiles/rails_3.2.22.5_activeadmin_1.0.0.pre5_reform_2.2.4_reform_rails_0.1.7.gemfile
21
14
  addons:
22
15
  code_climate:
23
16
  repo_token: c326cca5984d0e32d2c6b5d9b985756ee9312f63fc6a9480fc9cfa55c454d68a
@@ -0,0 +1,38 @@
1
+ require 'yaml'
2
+
3
+ ruby_versions = %w(2.2.2)
4
+
5
+ [
6
+ { rails: '3.2.22.5', activeadmin: '1.0.0.pre5', reform: '2.2.4', 'reform-rails': '0.1.7' },
7
+ { rails: '4.2.10', activeadmin: '1.2.1', reform: '2.2.4', 'reform-rails': '0.1.7' },
8
+ { rails: '4.2.10', activeadmin: '1.2.1', reform: '2.3.0.rc1', 'reform-rails': '0.2.0.rc2' },
9
+ # { rails: '5.1.4', activeadmin: '1.2.1', reform: '2.3.0.rc1', 'reform-rails': '0.2.0.rc2' },
10
+ ].each do |deps|
11
+ appraise deps.map { |name, requirement| "#{name}-#{requirement}" }.join('_') do
12
+ deps.each { |name, requirement| gem name, requirement }
13
+ end
14
+ end
15
+
16
+ travis = ::YAML.dump(
17
+ 'language' => 'ruby',
18
+ 'rvm' => ruby_versions,
19
+ 'before_script' => [
20
+ './bin/setup',
21
+ ],
22
+ 'script' => [
23
+ 'bundle exec rake spec',
24
+ 'bundle exec rubocop --fail-level C'
25
+ ],
26
+ 'gemfile' => Dir.glob('gemfiles/*.gemfile'),
27
+ 'addons' => {
28
+ 'code_climate' => {
29
+ 'repo_token' => 'c326cca5984d0e32d2c6b5d9b985756ee9312f63fc6a9480fc9cfa55c454d68a'
30
+ }
31
+ }
32
+
33
+
34
+ )
35
+
36
+ ::File.open('.travis.yml', 'w+') do |file|
37
+ file.write(travis)
38
+ end
@@ -1,3 +1,7 @@
1
+ # 0.5.0
2
+
3
+ * Support Reform s2.3.0.rc1
4
+
1
5
  # 0.4.0
2
6
 
3
7
  * Support ActiveAdmin 1.2.0
@@ -1,18 +1,17 @@
1
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
1
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests.
2
2
  You can also run `bin/console` for an interactive prompt that will allow you to experiment.
3
3
 
4
- To install this gem onto your local machine, run `bundle exec rake install`.
5
- To release a new version, update the version number in `activeadmin-reform.gemspec`, and then
6
- run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags,
7
- and push the `.gem` file to [rubygems.org](https://rubygems.org).
4
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a
5
+ new version, update the version number in `version.rb`, and then run `bundle exec rake release`,
6
+ which will create a git tag for the version, push git commits and tags, and push the `.gem`
7
+ file to [rubygems.org](https://rubygems.org).
8
8
 
9
- If you need to test against specific rails version run `RAILS_VERSION=4.1.19 rake setup`.
10
9
 
11
- 1. Fork it
12
- 2. Create your feature branch (`git checkout -b my-new-feature`)
13
- 3. Prepare tests infrastructure (`RAILS_ENV=test bundle exec rake setup`)
14
- 4. Make your changes and runs specs (`bundle exec rake`)
15
- 5. Make sure your code stylish enough (`bundle exec rubocop`)
16
- 6. Commit your changes (git commit -am 'Add some feature')
17
- 7. Push to the branch (git push origin my-new-feature)
18
- 8. Create Pull Request
10
+ We test this gem against different versions of `ActiveRecord` using [appraisal](https://github.com/thoughtbot/appraisal) gem.
11
+ To regenerate gemfiles run:
12
+
13
+ $ appraisal install
14
+
15
+ To run specs against all versions:
16
+
17
+ $ appraisal rake spec
data/Gemfile CHANGED
@@ -1,20 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- require File.expand_path 'spec/support/detect_rails_version', File.dirname(__FILE__)
4
-
5
3
  gemspec
6
- group :test do
7
- gem 'rails', detect_rails_version
8
- gem 'activeadmin', ENV['ACTIVEADMIN_VERSION']
9
- gem 'jquery-ui-rails', '5.0.5'
10
- gem 'sqlite3', '~> 1.3.11'
11
- gem 'rspec-rails'
12
- gem 'test-unit', '~> 3.0' # Rails 3.2 support
13
-
14
- gem 'launchy', '~> 2.4.3'
15
- gem 'database_cleaner', '~> 1.5.1'
16
- gem 'capybara', '~> 2.5.0'
17
- gem 'poltergeist'
18
-
19
- gem 'codeclimate-test-reporter', '~> 0.4.8', require: nil
20
- end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'activeadmin-reform'
7
- spec.version = '0.4.0'
7
+ spec.version = '0.5.0'
8
8
  spec.authors = ['Artyom Bolshakov']
9
9
  spec.email = ['abolshakov@spbtv.com']
10
10
 
@@ -18,12 +18,22 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rails', '>= 3.2'
21
+ spec.add_dependency 'rails', ['>= 3.2.22.5', '<= 4.2.10']
22
+ spec.add_dependency 'activeadmin', ['>= 1.0.0.pre5', '<= 1.2.1']
22
23
  spec.add_dependency 'disposable', '>= 0.2.0'
23
- spec.add_dependency 'reform', '~> 2.2.1'
24
- spec.add_dependency 'reform-rails', '~> 0.1.7'
24
+ spec.add_dependency 'reform', '<= 2.3.0.rc1'
25
+ spec.add_dependency 'reform-rails', '<= 0.2.0.rc2'
26
+ spec.add_development_dependency 'appraisal', '2.2.0'
25
27
  spec.add_development_dependency 'bundler', '~> 1.10'
28
+ spec.add_development_dependency 'capybara', '2.17.0'
29
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4.8'
30
+ spec.add_development_dependency 'database_cleaner', '~> 1.5.1'
31
+ spec.add_development_dependency 'launchy', '~> 2.4.3'
32
+ spec.add_development_dependency 'poltergeist'
26
33
  spec.add_development_dependency 'rake', '~> 10.0'
27
34
  spec.add_development_dependency 'rspec', '~> 3.4'
35
+ spec.add_development_dependency 'rspec-rails'
28
36
  spec.add_development_dependency 'spbtv_code_style', '~> 1.4.1'
37
+ spec.add_development_dependency 'sqlite3', '~> 1.3.11'
38
+ spec.add_development_dependency 'test-unit', '~> 3.0' # Rails 3.2 support
29
39
  end
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "3.2.22.5"
6
+ gem "activeadmin", "1.0.0.pre5"
7
+ gem "reform", "2.2.4"
8
+ gem "reform-rails", "0.1.7"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,294 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ activeadmin-reform (0.4.0)
5
+ activeadmin (>= 1.0.0.pre5, <= 1.2.1)
6
+ disposable (>= 0.2.0)
7
+ rails (>= 3.2.22.5, <= 4.2.10)
8
+ reform (<= 2.3.0.rc1)
9
+ reform-rails (<= 0.2.0.rc2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionmailer (3.2.22.5)
15
+ actionpack (= 3.2.22.5)
16
+ mail (~> 2.5.4)
17
+ actionpack (3.2.22.5)
18
+ activemodel (= 3.2.22.5)
19
+ activesupport (= 3.2.22.5)
20
+ builder (~> 3.0.0)
21
+ erubis (~> 2.7.0)
22
+ journey (~> 1.0.4)
23
+ rack (~> 1.4.5)
24
+ rack-cache (~> 1.2)
25
+ rack-test (~> 0.6.1)
26
+ sprockets (~> 2.2.1)
27
+ activeadmin (1.0.0.pre5)
28
+ arbre (~> 1.0, >= 1.0.2)
29
+ bourbon
30
+ coffee-rails
31
+ formtastic (~> 3.1)
32
+ formtastic_i18n
33
+ inherited_resources (~> 1.6)
34
+ jquery-rails
35
+ jquery-ui-rails
36
+ kaminari (>= 0.15, < 2.0)
37
+ railties (>= 3.2, < 5.1)
38
+ ransack (~> 1.3)
39
+ sass-rails
40
+ sprockets (< 4.1)
41
+ activemodel (3.2.22.5)
42
+ activesupport (= 3.2.22.5)
43
+ builder (~> 3.0.0)
44
+ activerecord (3.2.22.5)
45
+ activemodel (= 3.2.22.5)
46
+ activesupport (= 3.2.22.5)
47
+ arel (~> 3.0.2)
48
+ tzinfo (~> 0.3.29)
49
+ activeresource (3.2.22.5)
50
+ activemodel (= 3.2.22.5)
51
+ activesupport (= 3.2.22.5)
52
+ activesupport (3.2.22.5)
53
+ i18n (~> 0.6, >= 0.6.4)
54
+ multi_json (~> 1.0)
55
+ addressable (2.5.2)
56
+ public_suffix (>= 2.0.2, < 4.0)
57
+ appraisal (2.2.0)
58
+ bundler
59
+ rake
60
+ thor (>= 0.14.0)
61
+ arbre (1.1.1)
62
+ activesupport (>= 3.0.0)
63
+ arel (3.0.3)
64
+ ast (2.3.0)
65
+ bourbon (5.0.0)
66
+ sass (~> 3.4)
67
+ thor (~> 0.19)
68
+ builder (3.0.4)
69
+ capybara (2.17.0)
70
+ addressable
71
+ mini_mime (>= 0.1.3)
72
+ nokogiri (>= 1.3.3)
73
+ rack (>= 1.0.0)
74
+ rack-test (>= 0.5.4)
75
+ xpath (>= 2.0, < 4.0)
76
+ cliver (0.3.2)
77
+ codeclimate-test-reporter (0.4.8)
78
+ simplecov (>= 0.7.1, < 1.0.0)
79
+ coffee-rails (3.2.2)
80
+ coffee-script (>= 2.2.0)
81
+ railties (~> 3.2.0)
82
+ coffee-script (2.4.1)
83
+ coffee-script-source
84
+ execjs
85
+ coffee-script-source (1.12.2)
86
+ concurrent-ruby (1.0.5)
87
+ database_cleaner (1.5.3)
88
+ declarative (0.0.10)
89
+ declarative-builder (0.1.0)
90
+ declarative-option (< 0.2.0)
91
+ declarative-option (0.1.0)
92
+ diff-lcs (1.3)
93
+ disposable (0.4.3)
94
+ declarative (>= 0.0.9, < 1.0.0)
95
+ declarative-builder (< 0.2.0)
96
+ declarative-option (< 0.2.0)
97
+ representable (>= 2.4.0, <= 3.1.0)
98
+ uber (< 0.2.0)
99
+ docile (1.1.5)
100
+ erubis (2.7.0)
101
+ execjs (2.7.0)
102
+ ffi (1.9.18)
103
+ formtastic (3.1.5)
104
+ actionpack (>= 3.2.13)
105
+ formtastic_i18n (0.6.0)
106
+ has_scope (0.6.0)
107
+ actionpack (>= 3.2, < 5)
108
+ activesupport (>= 3.2, < 5)
109
+ hike (1.2.3)
110
+ i18n (0.9.1)
111
+ concurrent-ruby (~> 1.0)
112
+ inherited_resources (1.7.2)
113
+ actionpack (>= 3.2, < 5.2.x)
114
+ has_scope (~> 0.6)
115
+ railties (>= 3.2, < 5.2.x)
116
+ responders
117
+ journey (1.0.4)
118
+ jquery-rails (3.1.4)
119
+ railties (>= 3.0, < 5.0)
120
+ thor (>= 0.14, < 2.0)
121
+ jquery-ui-rails (6.0.1)
122
+ railties (>= 3.2.16)
123
+ json (1.8.6)
124
+ kaminari (0.17.0)
125
+ actionpack (>= 3.0.0)
126
+ activesupport (>= 3.0.0)
127
+ launchy (2.4.3)
128
+ addressable (~> 2.3)
129
+ mail (2.5.5)
130
+ mime-types (~> 1.16)
131
+ treetop (~> 1.4.8)
132
+ mime-types (1.25.1)
133
+ mini_mime (1.0.0)
134
+ mini_portile2 (2.3.0)
135
+ multi_json (1.13.1)
136
+ nokogiri (1.8.1)
137
+ mini_portile2 (~> 2.3.0)
138
+ parser (2.4.0.2)
139
+ ast (~> 2.3)
140
+ poltergeist (1.17.0)
141
+ capybara (~> 2.1)
142
+ cliver (~> 0.3.1)
143
+ websocket-driver (>= 0.2.0)
144
+ polyamorous (1.3.2)
145
+ activerecord (>= 3.0)
146
+ polyglot (0.3.5)
147
+ power_assert (1.1.1)
148
+ powerpack (0.1.1)
149
+ public_suffix (3.0.1)
150
+ rack (1.4.7)
151
+ rack-cache (1.7.1)
152
+ rack (>= 0.4)
153
+ rack-ssl (1.3.4)
154
+ rack
155
+ rack-test (0.6.3)
156
+ rack (>= 1.0)
157
+ rails (3.2.22.5)
158
+ actionmailer (= 3.2.22.5)
159
+ actionpack (= 3.2.22.5)
160
+ activerecord (= 3.2.22.5)
161
+ activeresource (= 3.2.22.5)
162
+ activesupport (= 3.2.22.5)
163
+ bundler (~> 1.0)
164
+ railties (= 3.2.22.5)
165
+ railties (3.2.22.5)
166
+ actionpack (= 3.2.22.5)
167
+ activesupport (= 3.2.22.5)
168
+ rack-ssl (~> 1.3.2)
169
+ rake (>= 0.8.7)
170
+ rdoc (~> 3.4)
171
+ thor (>= 0.14.6, < 2.0)
172
+ rainbow (2.2.2)
173
+ rake
174
+ rake (10.5.0)
175
+ ransack (1.8.4)
176
+ actionpack (>= 3.0)
177
+ activerecord (>= 3.0)
178
+ activesupport (>= 3.0)
179
+ i18n
180
+ polyamorous (~> 1.3)
181
+ rb-fsevent (0.10.2)
182
+ rb-inotify (0.9.10)
183
+ ffi (>= 0.5.0, < 2)
184
+ rdoc (3.12.2)
185
+ json (~> 1.4)
186
+ reform (2.2.4)
187
+ disposable (>= 0.4.1)
188
+ representable (>= 2.4.0, < 3.1.0)
189
+ reform-rails (0.1.7)
190
+ activemodel (>= 3.2)
191
+ reform (>= 2.2.0)
192
+ representable (3.0.4)
193
+ declarative (< 0.1.0)
194
+ declarative-option (< 0.2.0)
195
+ uber (< 0.2.0)
196
+ responders (1.1.2)
197
+ railties (>= 3.2, < 4.2)
198
+ rspec (3.7.0)
199
+ rspec-core (~> 3.7.0)
200
+ rspec-expectations (~> 3.7.0)
201
+ rspec-mocks (~> 3.7.0)
202
+ rspec-core (3.7.1)
203
+ rspec-support (~> 3.7.0)
204
+ rspec-expectations (3.7.0)
205
+ diff-lcs (>= 1.2.0, < 2.0)
206
+ rspec-support (~> 3.7.0)
207
+ rspec-mocks (3.7.0)
208
+ diff-lcs (>= 1.2.0, < 2.0)
209
+ rspec-support (~> 3.7.0)
210
+ rspec-rails (3.7.2)
211
+ actionpack (>= 3.0)
212
+ activesupport (>= 3.0)
213
+ railties (>= 3.0)
214
+ rspec-core (~> 3.7.0)
215
+ rspec-expectations (~> 3.7.0)
216
+ rspec-mocks (~> 3.7.0)
217
+ rspec-support (~> 3.7.0)
218
+ rspec-support (3.7.0)
219
+ rspec_junit_formatter (0.3.0)
220
+ rspec-core (>= 2, < 4, != 2.12.0)
221
+ rubocop (0.40.0)
222
+ parser (>= 2.3.1.0, < 3.0)
223
+ powerpack (~> 0.1)
224
+ rainbow (>= 1.99.1, < 3.0)
225
+ ruby-progressbar (~> 1.7)
226
+ unicode-display_width (~> 1.0, >= 1.0.1)
227
+ rubocop-checkstyle_formatter (0.4.0)
228
+ rubocop (>= 0.35.1)
229
+ ruby-progressbar (1.9.0)
230
+ sass (3.5.5)
231
+ sass-listen (~> 4.0.0)
232
+ sass-listen (4.0.0)
233
+ rb-fsevent (~> 0.9, >= 0.9.4)
234
+ rb-inotify (~> 0.9, >= 0.9.7)
235
+ sass-rails (3.2.6)
236
+ railties (~> 3.2.0)
237
+ sass (>= 3.1.10)
238
+ tilt (~> 1.3)
239
+ simplecov (0.15.1)
240
+ docile (~> 1.1.0)
241
+ json (>= 1.8, < 3)
242
+ simplecov-html (~> 0.10.0)
243
+ simplecov-html (0.10.2)
244
+ spbtv_code_style (1.4.1)
245
+ rspec_junit_formatter
246
+ rubocop (= 0.40.0)
247
+ rubocop-checkstyle_formatter
248
+ sprockets (2.2.3)
249
+ hike (~> 1.2)
250
+ multi_json (~> 1.0)
251
+ rack (~> 1.0)
252
+ tilt (~> 1.1, != 1.3.0)
253
+ sqlite3 (1.3.13)
254
+ test-unit (3.2.7)
255
+ power_assert
256
+ thor (0.20.0)
257
+ tilt (1.4.1)
258
+ treetop (1.4.15)
259
+ polyglot
260
+ polyglot (>= 0.3.1)
261
+ tzinfo (0.3.53)
262
+ uber (0.1.0)
263
+ unicode-display_width (1.3.0)
264
+ websocket-driver (0.7.0)
265
+ websocket-extensions (>= 0.1.0)
266
+ websocket-extensions (0.1.3)
267
+ xpath (3.0.0)
268
+ nokogiri (~> 1.8)
269
+
270
+ PLATFORMS
271
+ ruby
272
+
273
+ DEPENDENCIES
274
+ activeadmin (= 1.0.0.pre5)
275
+ activeadmin-reform!
276
+ appraisal (= 2.2.0)
277
+ bundler (~> 1.10)
278
+ capybara (= 2.17.0)
279
+ codeclimate-test-reporter (~> 0.4.8)
280
+ database_cleaner (~> 1.5.1)
281
+ launchy (~> 2.4.3)
282
+ poltergeist
283
+ rails (= 3.2.22.5)
284
+ rake (~> 10.0)
285
+ reform (= 2.2.4)
286
+ reform-rails (= 0.1.7)
287
+ rspec (~> 3.4)
288
+ rspec-rails
289
+ spbtv_code_style (~> 1.4.1)
290
+ sqlite3 (~> 1.3.11)
291
+ test-unit (~> 3.0)
292
+
293
+ BUNDLED WITH
294
+ 1.16.1