default_value_for 3.4.0 → 3.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
  SHA256:
3
- metadata.gz: 15a799717c30677d582f0c87b7491f2a6a15206dd52018057e2df15db60fb21f
4
- data.tar.gz: b884a6fbd0e6c679562a3765499514893649a8d3659318a92dbf009e1a1a43aa
3
+ metadata.gz: 0662d4b20e5e4b6b68dbf06c16c05e9fc500250c99f6921d3c1338ed8bb3239f
4
+ data.tar.gz: 443f8a0c84c6b2454bca0380447b49bebbd3f3db7f7c4996df995c7136a57f5e
5
5
  SHA512:
6
- metadata.gz: 1814019f12d56dcde794f9a70e530088ab1746976a99a8d076ef3b6858cb9c56410e85932f690a26a0d6ab8ee632c93634b81622e7b45548362c19d2551d548f
7
- data.tar.gz: 73995f62cc25df268848f6630018dcba0f9fc8093d28382f2006919b08e32eda7b375de1359ae7506f5e074359db6839f1178e1446d52579ee69cb30d06c0ba6
6
+ metadata.gz: a2b0537c383b74d3df225ce18b91fbd53889b6e3ce0fda3bac9f5b10ff5dd4ff834be8500d1ee21db9d0db507da04edeafbac73ddd6c7821193d4adb1dab7fe5
7
+ data.tar.gz: 5272f4005b237bcf80502881651a113216b8136a112aeefbbc10cea4b4bd77dabafccd01e455f1a0fb0165b5b84f0d0e270ecb836a20ffaa8480cc3d7cf0faeb
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
1
  task :default => :test
2
2
 
3
+ require 'bundler'
4
+ require "bundler/gem_tasks"
5
+
3
6
  desc "Run unit tests."
4
7
  task :test do
5
8
  ruby "test.rb"
@@ -15,6 +18,7 @@ rails_versions = %w(
15
18
  5.2
16
19
  6.0
17
20
  6.1
21
+ 7.0
18
22
  )
19
23
 
20
24
  rails_versions.each do |version|
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{default_value_for}
3
- s.version = "3.4.0"
3
+ s.version = "3.5.0"
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,9 +14,9 @@ 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', '< 7.0'
18
- s.add_development_dependency 'actionpack', '>= 3.2.0', '< 7.0'
19
- s.add_development_dependency 'railties', '>= 3.2.0', '< 7.0'
17
+ s.add_dependency 'activerecord', '>= 3.2.0', '< 7.1'
18
+ s.add_development_dependency 'actionpack', '>= 3.2.0', '< 7.1'
19
+ s.add_development_dependency 'railties', '>= 3.2.0', '< 7.1'
20
20
  s.add_development_dependency 'minitest', '>= 4.2'
21
21
  s.add_development_dependency 'minitest-around'
22
22
  s.add_development_dependency 'appraisal'
data/test.rb CHANGED
@@ -117,7 +117,7 @@ class DefaultValuePluginTest < TestCaseClass
117
117
  Object.send(:remove_const, :User)
118
118
  Object.send(:remove_const, :Book)
119
119
  Object.send(:remove_const, :Novel)
120
- ActiveSupport::Dependencies.clear
120
+ ActiveSupport::Dependencies.clear unless ActiveSupport::VERSION::MAJOR > 6
121
121
  end
122
122
 
123
123
  def test_default_value_on_attribute_methods
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.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hongli Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-21 00:00:00.000000000 Z
11
+ date: 2024-07-16 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: '7.0'
22
+ version: '7.1'
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: '7.0'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: actionpack
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: '7.0'
42
+ version: '7.1'
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: '7.0'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: railties
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: 3.2.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '7.0'
62
+ version: '7.1'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: 3.2.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '7.0'
72
+ version: '7.1'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: minitest
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.0.3
149
+ rubygems_version: 3.3.27
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Provides a way to specify default values for ActiveRecord models