validates_timeliness 7.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d882843a354b86918dd2709809168d5dcbaf024319eeb424b1e0ff56f7731512
4
- data.tar.gz: 0d5c06701e489c7332b59032055a25bcd4c2887f68c95b49a2d4192ecf313d71
3
+ metadata.gz: fddd24dc1daff9d9c90db6d6cb477519ab77abcf5dc8c55c5c69af61504eba46
4
+ data.tar.gz: e16bbad97a83834a912610ff682fe2c93ef7204e0b19f070becd84e4e3ebaf18
5
5
  SHA512:
6
- metadata.gz: dc46ee39a4f707078094de96dd795c75f6287343c3a020be49a8455c76a07aad0cd4d26d46b143ca4149c81a8d54c273a32575ef7f0bc23fa63317ccaffc1851
7
- data.tar.gz: 68a0b32a966d7c1a3df5d33c7642eac1c92efa276059b543b8240e73535fa5538e51c580be3362c4011b8f1838bc03817e7b7cc07d7219e68a18b2299cacf6a3
6
+ metadata.gz: 443d66dd2feb66c01e77294236fbf7b197e358246dbd40b9014c5b888e23810219851d89dd320db9e0a256bc62a6402fdbcc326684941566dbdc331285faefce
7
+ data.tar.gz: 0d1f13688d2a26ffaa940b409c9f6139cd780b21ffffb1ef02470718bd63d3d1e86bf2bcf4e411b15de4cb7badb215cdd7df8088f59ff63f044f924fcbdf570d
@@ -7,27 +7,9 @@ jobs:
7
7
  fail-fast: false
8
8
  matrix:
9
9
  include:
10
- - gemfile: rails_7_0
11
- ruby: 2.7
12
- - gemfile: rails_7_0
13
- ruby: 3.0
14
- - gemfile: rails_7_0
15
- ruby: 3.1
16
-
17
- - gemfile: rails_7_1
18
- ruby: 2.7
19
- - gemfile: rails_7_1
20
- ruby: 3.0
21
- - gemfile: rails_7_1
22
- ruby: 3.1
23
- - gemfile: rails_7_1
24
- ruby: 3.2
25
-
26
- - gemfile: rails_7_2
27
- ruby: 3.1
28
- - gemfile: rails_7_2
10
+ - gemfile: rails_8_0
29
11
  ruby: 3.2
30
- - gemfile: rails_7_2
12
+ - gemfile: rails_8_0
31
13
  ruby: 3.3
32
14
 
33
15
  name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
- # 7.1.0 [2024-12-31]
1
+ # 8.0.0 [2024-12-31]
2
+ * Support Rails v8.x
2
3
  * Support passing non-reserved validation options to errors
3
4
 
4
5
  # 7.0.0 [2024-11-30]
data/README.md CHANGED
@@ -6,13 +6,14 @@
6
6
 
7
7
  ## Description
8
8
 
9
- Complete validation of dates, times and datetimes for Rails 7.x and ActiveModel.
9
+ Complete validation of dates, times and datetimes for Rails 8.x and ActiveModel.
10
10
 
11
11
  Older Rails versions:
12
12
 
13
13
  - Rails 4.x: [https://github.com/adzap/validates_timeliness/tree/4-0-stable]
14
14
  - Rails 5.x: [https://github.com/adzap/validates_timeliness/tree/5-0-stable]
15
15
  - Rails 6.x: [https://github.com/adzap/validates_timeliness/tree/6-0-stable]
16
+ - Rails 7.x: [https://github.com/adzap/validates_timeliness/tree/7-0-stable]
16
17
 
17
18
 
18
19
  ## Features
@@ -30,7 +31,7 @@ Older Rails versions:
30
31
 
31
32
  In Gemfile
32
33
  ```ruby
33
- gem 'validates_timeliness', '~> 7.0.0'
34
+ gem 'validates_timeliness', '~> 8.0.0.beta1'
34
35
  ```
35
36
 
36
37
  Run bundler:
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 7.0.0"
5
+ gem "rails", "~> 8.0.0"
6
6
  gem "rspec"
7
7
  gem "rspec-rails", "~> 6.0"
8
- gem "sqlite3", "~> 1.4"
8
+ gem "sqlite3", "~> 2.0"
9
9
  gem "byebug"
10
10
  gem "appraisal"
11
11
  gem "nokogiri"
@@ -21,7 +21,7 @@ module ValidatesTimeliness
21
21
 
22
22
  RESTRICTION_ERROR_MESSAGE = "Error occurred validating %s for %s restriction:\n%s"
23
23
 
24
- RESERVED_OPTIONS = RESTRICTIONS.keys + RESTRICTIONS.keys.map { |option| :"#{option}_message" }
24
+ RESERVED_OPTIONS = (RESTRICTIONS.keys + RESTRICTIONS.keys.map { |option| :"#{option}_message" }).freeze
25
25
 
26
26
  def self.kind
27
27
  :timeliness
@@ -1,3 +1,3 @@
1
1
  module ValidatesTimeliness
2
- VERSION = '7.1.0'
2
+ VERSION = '8.0.0'
3
3
  end
@@ -28,6 +28,6 @@ Gem::Specification.new do |s|
28
28
  "wiki_uri" => "#{github_url}/wiki",
29
29
  }
30
30
 
31
- s.add_runtime_dependency("activemodel", [">= 7.0.0", "< 8"])
31
+ s.add_runtime_dependency("activemodel", [">= 8.0.0", "< 9"])
32
32
  s.add_runtime_dependency("timeliness", [">= 0.3.10", "< 1"])
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_timeliness
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Meehan
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.0
19
+ version: 8.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 7.0.0
29
+ version: 8.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: timeliness
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,9 +66,7 @@ files:
66
66
  - LICENSE
67
67
  - README.md
68
68
  - Rakefile
69
- - gemfiles/rails_7_0.gemfile
70
- - gemfiles/rails_7_1.gemfile
71
- - gemfiles/rails_7_2.gemfile
69
+ - gemfiles/rails_8_0.gemfile
72
70
  - init.rb
73
71
  - lib/generators/validates_timeliness/install_generator.rb
74
72
  - lib/generators/validates_timeliness/templates/en.yml
@@ -1,13 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 7.1.0"
6
- gem "rspec"
7
- gem "rspec-rails", "~> 6.0"
8
- gem "sqlite3", "~> 1.4"
9
- gem "byebug"
10
- gem "appraisal"
11
- gem "nokogiri"
12
-
13
- gemspec path: "../"
@@ -1,13 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 7.2.0"
6
- gem "rspec"
7
- gem "rspec-rails", "~> 6.0"
8
- gem "sqlite3", "~> 1.4"
9
- gem "byebug"
10
- gem "appraisal"
11
- gem "nokogiri"
12
-
13
- gemspec path: "../"