formtastic 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7fda601161112f0ec859c833e04fce3155e56af0
4
+ data.tar.gz: dc138bd2308a2ab393c9badfab273800b985341a
5
+ SHA512:
6
+ metadata.gz: 838af637ca0cb0de6f086e76dcf8306c7436901eb3811afe4e15c38c57de7f16eec795ac71090fd648eceba93c488bb80c1958124225398071905d0498518c9f
7
+ data.tar.gz: 326c8f5b7da290dedb55be38e9cf428ba0051e98c097addd0e5e0270837aa479ae6ee68350965f681c9de83228aa40702cbb74c4bff6d3f1b0488c1920e0537b
@@ -7,16 +7,17 @@ rvm:
7
7
  - 2.1.8
8
8
  - 2.2.4
9
9
  - 2.3.0
10
+ - 2.4.0
10
11
  gemfile:
11
12
  - gemfiles/rails_3.2.gemfile
12
13
  - gemfiles/rails_4.gemfile
13
14
  - gemfiles/rails_4.0.4.gemfile
14
15
  - gemfiles/rails_4.1.gemfile
15
16
  - gemfiles/rails_4.2.gemfile
17
+ - gemfiles/rails_5.0.gemfile
16
18
  - gemfiles/rails_edge.gemfile
17
19
  env:
18
- before_install:
19
- - gem install bundler --version 1.11.2
20
+ before_install: "gem install bundler --version 1.14.4"
20
21
  script: "bundle exec rake spec"
21
22
  matrix:
22
23
  exclude:
@@ -26,6 +27,20 @@ matrix:
26
27
  gemfile: gemfiles/rails_edge.gemfile
27
28
  - rvm: 2.1.8
28
29
  gemfile: gemfiles/rails_edge.gemfile
30
+ - rvm: 2.0.0
31
+ gemfile: gemfiles/rails_5.0.gemfile
32
+ - rvm: 2.1.8
33
+ gemfile: gemfiles/rails_5.0.gemfile
34
+ - rvm: 2.4.0
35
+ gemfile: gemfiles/rails_4.1.gemfile
36
+ - rvm: 2.4.0
37
+ gemfile: gemfiles/rails_4.2.gemfile
38
+ - rvm: 2.4.0
39
+ gemfile: gemfiles/rails_3.2.gemfile
40
+ - rvm: 2.4.0
41
+ gemfile: gemfiles/rails_4.0.4.gemfile
42
+ - rvm: 2.4.0
43
+ gemfile: gemfiles/rails_4.gemfile
29
44
  allow_failures:
30
45
  - gemfile: gemfiles/rails_edge.gemfile
31
46
  - rvm: 1.9.3
data/Appraisals CHANGED
@@ -1,33 +1,43 @@
1
1
  appraise 'rails-3.2' do
2
2
  gem 'rails', '~> 3.2.0'
3
3
  gem 'test-unit-minitest', :platform => [:ruby_22, :ruby_23]
4
+ gem 'nokogiri', '~>1.6.8', platform: :mri_20
4
5
  end
5
6
 
6
7
  appraise 'rails-4' do
7
8
  gem 'rails', '~> 4.0.0'
9
+ gem 'nokogiri', '~>1.6.8', platform: :mri_20
8
10
  end
9
11
 
10
12
  # Special case for a change in I18n
11
13
  appraise 'rails-4.0.4' do
12
14
  gem 'rails', '4.0.4'
15
+ gem 'nokogiri', '~>1.6.8', platform: :mri_20
13
16
  end
14
17
 
15
18
  appraise 'rails-4.1' do
16
19
  gem 'rails', '~>4.1.0'
20
+ gem 'nokogiri', '~>1.6.8', platform: :mri_20
17
21
  end
18
22
 
19
23
  appraise 'rails-4.2' do
20
- gem 'rails', '~>4.2.0.beta4'
24
+ gem 'rails', '~>4.2.0'
25
+ gem 'nokogiri', '~>1.6.8', platform: :mri_20
26
+ end
27
+
28
+ appraise 'rails-5.0' do
29
+ gem 'rails', '~> 5.0.1'
30
+ gem 'rspec-rails', '~> 3.5'
21
31
  end
22
32
 
23
33
  appraise 'rails-edge' do
24
- gem 'rails', :git => 'git://github.com/rails/rails.git'
25
- gem 'rack', :github => 'rack/rack'
26
- gem 'i18n', :github => 'svenfuchs/i18n'
27
- gem 'arel', :github => 'rails/arel'
28
- gem 'rspec-rails', :github => 'rspec/rspec-rails'
29
- gem 'rspec-mocks', :github => 'rspec/rspec-mocks'
30
- gem 'rspec-support', :github => 'rspec/rspec-support'
31
- gem 'rspec-core', :github => 'rspec/rspec-core'
32
- gem 'rspec-expectations', :github => 'rspec/rspec-expectations'
34
+ gem 'rails', github: 'rails/rails'
35
+ gem 'rack', github: 'rack/rack'
36
+ gem 'i18n', github: 'svenfuchs/i18n'
37
+ gem 'arel', github: 'rails/arel'
38
+ gem 'rspec-rails', github: 'rspec/rspec-rails'
39
+ gem 'rspec-mocks', github: 'rspec/rspec-mocks'
40
+ gem 'rspec-support', github: 'rspec/rspec-support'
41
+ gem 'rspec-core', github: 'rspec/rspec-core'
42
+ gem 'rspec-expectations', github: 'rspec/rspec-expectations'
33
43
  end
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 3.1.5
2
+ * Backport use Integer instead of Fixnum for Ruby 2.4 support (#1235, #1243)
3
+
1
4
  3.1.4
2
5
  * Performance improvements (#1174)
3
6
  * Added priority time zones configuration (#1172)
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.add_development_dependency(%q<colored>, ["~> 1.2"])
37
37
  s.add_development_dependency(%q<tzinfo>)
38
38
  s.add_development_dependency(%q<ammeter>, ["~> 1.1.3"])
39
- s.add_development_dependency(%q<appraisal>, ["~> 1.0"])
40
- s.add_development_dependency(%q<rake>)
39
+ s.add_development_dependency(%q<appraisal>, ["~> 2.1"])
40
+ s.add_development_dependency(%q<rake>, ["< 12"])
41
41
  s.add_development_dependency(%q<activemodel>, [">= 3.2.13"])
42
42
  end
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 3.2.0"
6
6
  gem "test-unit-minitest", :platform => [:ruby_22, :ruby_23]
7
+ gem "nokogiri", "~>1.6.8", :platform => :mri_20
7
8
 
8
9
  gemspec :path => "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "4.0.4"
6
+ gem "nokogiri", "~>1.6.8", :platform => :mri_20
6
7
 
7
8
  gemspec :path => "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~>4.1.0"
6
+ gem "nokogiri", "~>1.6.8", :platform => :mri_20
6
7
 
7
8
  gemspec :path => "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~>4.2.0.beta4"
5
+ gem "rails", "~>4.2.0"
6
+ gem "nokogiri", "~>1.6.8", :platform => :mri_20
6
7
 
7
8
  gemspec :path => "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 4.0.0"
6
+ gem "nokogiri", "~>1.6.8", :platform => :mri_20
6
7
 
7
8
  gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.1"
6
+ gem "rspec-rails", "~> 3.5"
7
+
8
+ gemspec :path => "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", :git => "git://github.com/rails/rails.git"
5
+ gem "rails", :github => "rails/rails"
6
6
  gem "rack", :github => "rack/rack"
7
7
  gem "i18n", :github => "svenfuchs/i18n"
8
8
  gem "arel", :github => "rails/arel"
@@ -69,7 +69,7 @@ module Formtastic
69
69
 
70
70
  # TODO: One of the tests produces a scenario where duck is "0" and the test looks for a "1"
71
71
  # in the legend, so if we have a number, return it with a +1 until we can verify this scenario.
72
- return duck + 1 if duck.is_a?(Fixnum)
72
+ return duck + 1 if duck.is_a?(Integer)
73
73
 
74
74
  # First try to extract key from duck Hash, then try child
75
75
  (duck[key] || duck[child]).to_i + 1
@@ -50,9 +50,9 @@ module Formtastic
50
50
  # Return if we have a plain string
51
51
  return raw_collection if raw_collection.is_a?(String)
52
52
 
53
- # Return if we have an Array of strings, fixnums or arrays
53
+ # Return if we have an Array of strings, integers or arrays
54
54
  return raw_collection if (raw_collection.instance_of?(Array) || raw_collection.instance_of?(Range)) &&
55
- [Array, Fixnum, String].include?(raw_collection.first.class) &&
55
+ ([Array, String].include?(raw_collection.first.class) || raw_collection.first.is_a?(Integer)) &&
56
56
  !(options.include?(:member_label) || options.include?(:member_value))
57
57
 
58
58
  raw_collection.map { |o| [send_or_call(label_method, o), send_or_call(value_method, o)] }
@@ -1,3 +1,3 @@
1
1
  module Formtastic
2
- VERSION = "3.1.4"
2
+ VERSION = "3.1.5"
3
3
  end
metadata CHANGED
@@ -1,222 +1,195 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
5
- prerelease:
4
+ version: 3.1.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin French
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-03-26 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: actionpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.13
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.13
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: nokogiri
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 3.3.2
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 3.3.2
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec_tag_matchers
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '1.0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '1.0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: hpricot
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: 0.8.3
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: 0.8.3
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: RedCloth
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
89
  version: '4.2'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
96
  version: '4.2'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: yard
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0.8'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0.8'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: colored
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ~>
115
+ - - "~>"
132
116
  - !ruby/object:Gem::Version
133
117
  version: '1.2'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ~>
122
+ - - "~>"
140
123
  - !ruby/object:Gem::Version
141
124
  version: '1.2'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: tzinfo
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - ">="
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: ammeter
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ~>
143
+ - - "~>"
164
144
  - !ruby/object:Gem::Version
165
145
  version: 1.1.3
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ~>
150
+ - - "~>"
172
151
  - !ruby/object:Gem::Version
173
152
  version: 1.1.3
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: appraisal
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ~>
157
+ - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: '1.0'
159
+ version: '2.1'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ~>
164
+ - - "~>"
188
165
  - !ruby/object:Gem::Version
189
- version: '1.0'
166
+ version: '2.1'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: rake
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ! '>='
171
+ - - "<"
196
172
  - !ruby/object:Gem::Version
197
- version: '0'
173
+ version: '12'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ! '>='
178
+ - - "<"
204
179
  - !ruby/object:Gem::Version
205
- version: '0'
180
+ version: '12'
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: activemodel
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ! '>='
185
+ - - ">="
212
186
  - !ruby/object:Gem::Version
213
187
  version: 3.2.13
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ! '>='
192
+ - - ">="
220
193
  - !ruby/object:Gem::Version
221
194
  version: 3.2.13
222
195
  description: A Rails form builder plugin/gem with semantically rich and accessible
@@ -228,10 +201,10 @@ extensions: []
228
201
  extra_rdoc_files:
229
202
  - README.md
230
203
  files:
231
- - .gitignore
232
- - .rspec
233
- - .travis.yml
234
- - .yardopts
204
+ - ".gitignore"
205
+ - ".rspec"
206
+ - ".travis.yml"
207
+ - ".yardopts"
235
208
  - Appraisals
236
209
  - CHANGELOG
237
210
  - DEPRECATIONS
@@ -249,6 +222,7 @@ files:
249
222
  - gemfiles/rails_4.1.gemfile
250
223
  - gemfiles/rails_4.2.gemfile
251
224
  - gemfiles/rails_4.gemfile
225
+ - gemfiles/rails_5.0.gemfile
252
226
  - gemfiles/rails_edge.gemfile
253
227
  - lib/formtastic.rb
254
228
  - lib/formtastic/action_class_finder.rb
@@ -406,28 +380,27 @@ files:
406
380
  homepage: http://github.com/justinfrench/formtastic
407
381
  licenses:
408
382
  - MIT
383
+ metadata: {}
409
384
  post_install_message:
410
385
  rdoc_options:
411
- - --charset=UTF-8
386
+ - "--charset=UTF-8"
412
387
  require_paths:
413
388
  - lib
414
389
  required_ruby_version: !ruby/object:Gem::Requirement
415
- none: false
416
390
  requirements:
417
- - - ! '>='
391
+ - - ">="
418
392
  - !ruby/object:Gem::Version
419
393
  version: 1.9.3
420
394
  required_rubygems_version: !ruby/object:Gem::Requirement
421
- none: false
422
395
  requirements:
423
- - - ! '>='
396
+ - - ">="
424
397
  - !ruby/object:Gem::Version
425
398
  version: '0'
426
399
  requirements: []
427
400
  rubyforge_project:
428
- rubygems_version: 1.8.23
401
+ rubygems_version: 2.4.5.1
429
402
  signing_key:
430
- specification_version: 3
403
+ specification_version: 4
431
404
  summary: A Rails form builder plugin/gem with semantically rich and accessible markup
432
405
  test_files:
433
406
  - spec/action_class_finder_spec.rb
@@ -496,4 +469,3 @@ test_files:
496
469
  - spec/support/specialized_class_finder_shared_example.rb
497
470
  - spec/support/test_environment.rb
498
471
  - spec/util_spec.rb
499
- has_rdoc: