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 +4 -4
- data/Rakefile +3 -3
- data/default_value_for.gemspec +3 -3
- data/test.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d622d97fecd784ed09f1202e354a721fa02a7700
|
4
|
+
data.tar.gz: c0ee0dc2feeebeee11e63b246fe77a4e46260200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'] = "
|
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'] = "
|
22
|
+
ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
|
23
23
|
ruby "test.rb"
|
24
24
|
end
|
25
25
|
end
|
data/default_value_for.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{default_value_for}
|
3
|
-
s.version = "3.0.
|
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.
|
18
|
-
s.add_development_dependency 'railties', '>= 3.2.0', '< 5.
|
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
|
-
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|