default_value_for 3.3.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: 80ddc9639e45734a3c55f1214183ec69283c25b72db87df9829efd9b7e9b5cd5
4
- data.tar.gz: 2dd265cccdb18a0403ae4d71474cbf100b2f71aa967bb5579e5c773ef697f4b6
3
+ metadata.gz: 0662d4b20e5e4b6b68dbf06c16c05e9fc500250c99f6921d3c1338ed8bb3239f
4
+ data.tar.gz: 443f8a0c84c6b2454bca0380447b49bebbd3f3db7f7c4996df995c7136a57f5e
5
5
  SHA512:
6
- metadata.gz: d8550db893ab48634d30bdb15ebcb1f1c933c81e1628d6a6708eff6daf482d9996497fae786f8da0f8c1cfeb0a0067eb95e9993b3f1324e9764854e1bdb47e11
7
- data.tar.gz: 070650af9d34aa43f6af666174124adb8a9685499ddb24cad82282c897cdadd899d155d6edb1745257a8f381cce524053bf9ebd7cf0d5833831eaa6bc4a30f0c
6
+ metadata.gz: a2b0537c383b74d3df225ce18b91fbd53889b6e3ce0fda3bac9f5b10ff5dd4ff834be8500d1ee21db9d0db507da04edeafbac73ddd6c7821193d4adb1dab7fe5
7
+ data.tar.gz: 5272f4005b237bcf80502881651a113216b8136a112aeefbbc10cea4b4bd77dabafccd01e455f1a0fb0165b5b84f0d0e270ecb836a20ffaa8480cc3d7cf0faeb
data/README.md CHANGED
@@ -22,12 +22,12 @@ u.last_seen # => Mon Sep 22 17:28:38 +0200 2008
22
22
 
23
23
  ### Rails 3.2 - 4.2 / Ruby 1.9.3 and higher
24
24
 
25
- The current version of default_value_for (3.0.x) is compatible with Rails 3.2 or higher, and Ruby 1.9.3 and higher.
25
+ The current version of default_value_for (3.x+) is compatible with Rails 3.2 or higher, and Ruby 1.9.3 and higher.
26
26
 
27
27
  Add it to your Gemfile:
28
28
 
29
29
  ```ruby
30
- gem "default_value_for", "~> 3.0.0"
30
+ gem "default_value_for", "~> 3.0"
31
31
  ```
32
32
 
33
33
  This gem is signed using PGP with the Phusion Software Signing key: http://www.phusion.nl/about/gpg. That key in turn is signed by the rubygems-openpgp Certificate Authority: http://www.rubygems-openpgp-ca.org/.
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"
@@ -14,6 +17,8 @@ rails_versions = %w(
14
17
  5.1
15
18
  5.2
16
19
  6.0
20
+ 6.1
21
+ 7.0
17
22
  )
18
23
 
19
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.3.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', '< 6.1'
18
- s.add_development_dependency 'actionpack', '>= 3.2.0', '< 6.1'
19
- s.add_development_dependency 'railties', '>= 3.2.0', '< 6.1'
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.3.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hongli Lai
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-20 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: '6.1'
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: '6.1'
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: '6.1'
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: '6.1'
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: '6.1'
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: '6.1'
72
+ version: '7.1'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: minitest
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -131,7 +131,7 @@ homepage: https://github.com/FooBarWidget/default_value_for
131
131
  licenses:
132
132
  - MIT
133
133
  metadata: {}
134
- post_install_message:
134
+ post_install_message:
135
135
  rdoc_options: []
136
136
  require_paths:
137
137
  - lib
@@ -146,9 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubyforge_project:
150
- rubygems_version: 2.7.3
151
- signing_key:
149
+ rubygems_version: 3.3.27
150
+ signing_key:
152
151
  specification_version: 4
153
152
  summary: Provides a way to specify default values for ActiveRecord models
154
153
  test_files: []