default_value_for 3.0.2 → 3.0.3

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: 5510f9a27e91ae223795763c6c31032098fac9bd
4
- data.tar.gz: b0c331e41f03e7a6344c968a099b1fcb3e99085e
3
+ metadata.gz: d622d97fecd784ed09f1202e354a721fa02a7700
4
+ data.tar.gz: c0ee0dc2feeebeee11e63b246fe77a4e46260200
5
5
  SHA512:
6
- metadata.gz: 17432a0c7d31207478c48982a88788a899e458963812504255f05e3ab2d82ffa9c3ed2d7291963ecd16ea7dd969473ff0f5a70f66ae4cbbb96b2f2ba9c692f09
7
- data.tar.gz: ce0687773f91cf657cfbed4edc97bcedb6a4565a12e99f770300ff2e4c15544f7e1404d47921053f3f07ed424225c95904205ab5ceaa55c41f877117255916be
6
+ metadata.gz: 68da2ccf0e955ad0c7c4daa68fea6607d0ba3da8521e7ecb5bcc0d42d750be6ec1b5ab93767939a74459ef6b1b7efa16c8c81c74036e0de2ac2cff88093b0ee8
7
+ data.tar.gz: 67c18c88f8f57429cf502f7c69efe38883ed286c8791e258bd3fc59fdb053814097f68ead33494a4ce00d76e3f672b2f2b9c8e599a43e38414fc4fb9ed5d0474
data/Rakefile CHANGED
@@ -5,13 +5,13 @@ task :test do
5
5
  ruby "test.rb"
6
6
  end
7
7
 
8
- ['3.2', '4.0', '4.1', '4.2'].each do |version|
8
+ ['3.2', '4.0', '4.1', '4.2', '5.0', '5.1'].each do |version|
9
9
  dotless = version.delete('.')
10
10
 
11
11
  namespace :bundle do
12
12
  desc "Bundle with Rails #{version}.x"
13
13
  task :"rails#{dotless}" do
14
- ENV['BUNDLE_GEMFILE'] = "Gemfile.rails.#{version}.rb"
14
+ ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
15
15
  sh "bundle"
16
16
  end
17
17
  end
@@ -19,7 +19,7 @@ end
19
19
  namespace :test do
20
20
  desc "Test with Rails #{version}.x"
21
21
  task :"rails#{dotless}" do
22
- ENV['BUNDLE_GEMFILE'] = "Gemfile.rails.#{version}.rb"
22
+ ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
23
23
  ruby "test.rb"
24
24
  end
25
25
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{default_value_for}
3
- s.version = "3.0.2"
3
+ s.version = "3.0.3"
4
4
  s.summary = %q{Provides a way to specify default values for ActiveRecord models}
5
5
  s.description = %q{The default_value_for plugin allows one to define default values for ActiveRecord models in a declarative manner}
6
6
  s.email = %q{software-signing@phusion.nl}
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
14
14
  'lib/default_value_for.rb',
15
15
  'lib/default_value_for/railtie.rb'
16
16
  ]
17
- s.add_dependency 'activerecord', '>= 3.2.0', '< 5.1'
18
- s.add_development_dependency 'railties', '>= 3.2.0', '< 5.1'
17
+ s.add_dependency 'activerecord', '>= 3.2.0', '< 5.2'
18
+ s.add_development_dependency 'railties', '>= 3.2.0', '< 5.2'
19
19
  s.add_development_dependency 'minitest', '>= 4.2'
20
20
  s.add_development_dependency 'minitest-around'
21
21
  s.add_development_dependency 'appraisal'
data/test.rb CHANGED
@@ -156,7 +156,7 @@ class DefaultValuePluginTest < TestCaseClass
156
156
 
157
157
  def test_doesnt_overwrite_explicitly_provided_nil_values_in_mass_assignment
158
158
  Book.default_value_for :number, 1234
159
- assert_equal nil, Book.new(:number => nil).number
159
+ assert_nil Book.new(:number => nil).number
160
160
  end
161
161
 
162
162
  def test_overwrites_explicitly_provided_nil_values_in_mass_assignment
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: default_value_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hongli Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: railties
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 3.2.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5.1'
42
+ version: '5.2'
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 3.2.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5.1'
52
+ version: '5.2'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: minitest
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -127,9 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.5.1
130
+ rubygems_version: 2.6.13
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Provides a way to specify default values for ActiveRecord models
134
134
  test_files: []
135
- has_rdoc: