validates_timeliness 6.0.0 → 7.0.0.beta1
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 +4 -4
- data/.github/workflows/ci.yml +4 -10
- data/README.md +4 -4
- data/gemfiles/{rails_6_0.gemfile → rails_7_0.gemfile} +2 -2
- data/lib/validates_timeliness/railtie.rb +1 -1
- data/lib/validates_timeliness/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/validates_timeliness/orm/active_model_spec.rb +0 -0
- data/validates_timeliness.gemspec +1 -1
- metadata +11 -10
- data/gemfiles/rails_6_1.gemfile +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 284d18473a0007c273fc4608579b619afac6a3809dfdcd12864d6aeea30c6f17
|
|
4
|
+
data.tar.gz: 12d2db9663bb6c80a643d7c7365fc4d44218a64a9b69feacb6d060dc737ddd93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77eb167f597fe224c293b6a9e9143c0b5eb8b443ed54539dc89e34c28e5cb7c9517e826c25660641281d6b477451cb2ff4b1187f0332e33fd0d94d7618223204
|
|
7
|
+
data.tar.gz: de5c7cb989b1148acf4a7af524171c7eead44663b43088da99f79bb5af7c7b1c120f28ace62cb62bcfe533979fbe9975763e59aa463acccf7ed1a951496e1f39
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -7,18 +7,12 @@ jobs:
|
|
|
7
7
|
fail-fast: false
|
|
8
8
|
matrix:
|
|
9
9
|
include:
|
|
10
|
-
- gemfile:
|
|
11
|
-
ruby: 2.6
|
|
12
|
-
- gemfile: rails_6_0
|
|
10
|
+
- gemfile: rails_7_0
|
|
13
11
|
ruby: 2.7
|
|
14
|
-
- gemfile:
|
|
15
|
-
ruby: 3.0
|
|
16
|
-
- gemfile: rails_6_1
|
|
17
|
-
ruby: 2.6
|
|
18
|
-
- gemfile: rails_6_1
|
|
19
|
-
ruby: 2.7
|
|
20
|
-
- gemfile: rails_6_1
|
|
12
|
+
- gemfile: rails_7_0
|
|
21
13
|
ruby: 3.0
|
|
14
|
+
- gemfile: rails_7_0
|
|
15
|
+
ruby: 3.1
|
|
22
16
|
|
|
23
17
|
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
|
|
24
18
|
env:
|
data/README.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
## Description
|
|
8
8
|
|
|
9
|
-
Complete validation of dates, times and datetimes for Rails
|
|
10
|
-
ActiveModel.
|
|
9
|
+
Complete validation of dates, times and datetimes for Rails 7.x and ActiveModel.
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
Older Rails versions:
|
|
13
12
|
|
|
14
13
|
- Rails 4.x: [https://github.com/adzap/validates_timeliness/tree/4-0-stable]
|
|
15
14
|
- Rails 5.x: [https://github.com/adzap/validates_timeliness/tree/5-0-stable]
|
|
15
|
+
- Rails 6.x: [https://github.com/adzap/validates_timeliness/tree/6-0-stable]
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
## Features
|
|
@@ -30,7 +30,7 @@ Old Rails versions:
|
|
|
30
30
|
|
|
31
31
|
In Gemfile
|
|
32
32
|
```ruby
|
|
33
|
-
gem 'validates_timeliness', '~>
|
|
33
|
+
gem 'validates_timeliness', '~> 7.0.0.beta1'
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Run bundler:
|
|
@@ -2,7 +2,7 @@ module ValidatesTimeliness
|
|
|
2
2
|
class Railtie < Rails::Railtie
|
|
3
3
|
initializer "validates_timeliness.initialize_active_record", :after => 'active_record.initialize_timezone' do
|
|
4
4
|
ActiveSupport.on_load(:active_record) do
|
|
5
|
-
ValidatesTimeliness.default_timezone = ActiveRecord
|
|
5
|
+
ValidatesTimeliness.default_timezone = ActiveRecord.default_timezone
|
|
6
6
|
ValidatesTimeliness.extend_orms << :active_record
|
|
7
7
|
ValidatesTimeliness.load_orms
|
|
8
8
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -57,7 +57,7 @@ class PersonWithShim < Person
|
|
|
57
57
|
include TestModelShim
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
ActiveRecord
|
|
60
|
+
ActiveRecord.default_timezone = :utc
|
|
61
61
|
ActiveRecord::Base.time_zone_aware_attributes = true
|
|
62
62
|
ActiveRecord::Base.establish_connection({:adapter => 'sqlite3', :database => ':memory:'})
|
|
63
63
|
ActiveRecord::Base.time_zone_aware_types = [:datetime, :time]
|
|
File without changes
|
|
@@ -27,6 +27,6 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
"wiki_uri" => "#{github_url}/wiki",
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
s.add_runtime_dependency("activemodel", [">=
|
|
30
|
+
s.add_runtime_dependency("activemodel", [">= 7.0.0", "< 8"])
|
|
31
31
|
s.add_runtime_dependency("timeliness", [">= 0.3.10", "< 1"])
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validates_timeliness
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Meehan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -16,20 +16,20 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 7.0.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
22
|
+
version: '8'
|
|
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:
|
|
29
|
+
version: 7.0.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '8'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: timeliness
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,8 +66,7 @@ files:
|
|
|
66
66
|
- LICENSE
|
|
67
67
|
- README.md
|
|
68
68
|
- Rakefile
|
|
69
|
-
- gemfiles/
|
|
70
|
-
- gemfiles/rails_6_1.gemfile
|
|
69
|
+
- gemfiles/rails_7_0.gemfile
|
|
71
70
|
- gemfiles/rails_edge.gemfile
|
|
72
71
|
- init.rb
|
|
73
72
|
- lib/generators/validates_timeliness/install_generator.rb
|
|
@@ -95,6 +94,7 @@ files:
|
|
|
95
94
|
- spec/validates_timeliness/extensions/date_time_select_spec.rb
|
|
96
95
|
- spec/validates_timeliness/extensions/multiparameter_handler_spec.rb
|
|
97
96
|
- spec/validates_timeliness/helper_methods_spec.rb
|
|
97
|
+
- spec/validates_timeliness/orm/active_model_spec.rb
|
|
98
98
|
- spec/validates_timeliness/orm/active_record_spec.rb
|
|
99
99
|
- spec/validates_timeliness/railtie_spec.rb
|
|
100
100
|
- spec/validates_timeliness/validator/after_spec.rb
|
|
@@ -124,9 +124,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
124
124
|
version: '0'
|
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements:
|
|
127
|
-
- - "
|
|
127
|
+
- - ">"
|
|
128
128
|
- !ruby/object:Gem::Version
|
|
129
|
-
version:
|
|
129
|
+
version: 1.3.1
|
|
130
130
|
requirements: []
|
|
131
131
|
rubygems_version: 3.1.6
|
|
132
132
|
signing_key:
|
|
@@ -143,6 +143,7 @@ test_files:
|
|
|
143
143
|
- spec/validates_timeliness/extensions/date_time_select_spec.rb
|
|
144
144
|
- spec/validates_timeliness/extensions/multiparameter_handler_spec.rb
|
|
145
145
|
- spec/validates_timeliness/helper_methods_spec.rb
|
|
146
|
+
- spec/validates_timeliness/orm/active_model_spec.rb
|
|
146
147
|
- spec/validates_timeliness/orm/active_record_spec.rb
|
|
147
148
|
- spec/validates_timeliness/railtie_spec.rb
|
|
148
149
|
- spec/validates_timeliness/validator/after_spec.rb
|
data/gemfiles/rails_6_1.gemfile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# This file was generated by Appraisal
|
|
2
|
-
|
|
3
|
-
source "http://rubygems.org"
|
|
4
|
-
|
|
5
|
-
gem "rails", "~> 6.1.0"
|
|
6
|
-
gem "rspec"
|
|
7
|
-
gem "rspec-rails", "~> 3.7"
|
|
8
|
-
gem "sqlite3"
|
|
9
|
-
gem "timecop"
|
|
10
|
-
gem "byebug"
|
|
11
|
-
gem "appraisal"
|
|
12
|
-
gem "nokogiri", "~> 1.8"
|
|
13
|
-
|
|
14
|
-
gemspec path: "../"
|