validates_timeliness 5.0.0.alpha4 → 6.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +21 -4
- data/CHANGELOG.rdoc +9 -0
- data/LICENSE +1 -1
- data/README.rdoc +36 -32
- data/Rakefile +3 -2
- data/gemfiles/{rails_5_0.gemfile → rails_6_0.gemfile} +2 -6
- data/gemfiles/{rails_5_1.gemfile → rails_6_1.gemfile} +2 -6
- data/gemfiles/{rails_5_2.gemfile → rails_edge.gemfile} +2 -6
- data/lib/validates_timeliness.rb +2 -2
- data/lib/validates_timeliness/extensions/date_time_select.rb +1 -1
- data/lib/validates_timeliness/orm/active_record.rb +1 -1
- data/lib/validates_timeliness/railtie.rb +8 -0
- data/lib/validates_timeliness/validator.rb +1 -1
- data/lib/validates_timeliness/version.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- data/spec/support/model_helpers.rb +1 -2
- data/spec/support/test_model.rb +2 -2
- data/spec/validates_timeliness/railtie_spec.rb +22 -0
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e153117c69ae4a75bde2e8a9cb1334118fbc083be371ed10d6658bf6a82aa8fb
|
4
|
+
data.tar.gz: cb77f367f614fd8c6fbf754cd5b1d1beed8845a5afe74937e97e38ab7da8ee8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c67105f25b5473d6bd3a4f5b07763382424da6103053f7fa477a50c82a38d5fc3e61638854a1016d51da3c765419fe4a4986cee1105afbaf0255f2bf1bd623df
|
7
|
+
data.tar.gz: f5364e75b90e6bd60836e4858cb6fa2debeb557540de870aa6828a5c462329c550cb5af444d4e9337172653f56db04a1b0ef971d81a7fbace564ab08cf81c18e
|
data/.travis.yml
CHANGED
@@ -1,14 +1,31 @@
|
|
1
|
+
dist: focal
|
2
|
+
os: linux
|
1
3
|
language: ruby
|
2
4
|
before_install: gem install bundler
|
3
5
|
cache: bundler
|
4
6
|
|
5
7
|
gemfile:
|
6
|
-
- gemfiles/
|
7
|
-
- gemfiles/
|
8
|
-
- gemfiles/
|
8
|
+
- gemfiles/rails_6_0.gemfile
|
9
|
+
- gemfiles/rails_6_1.gemfile
|
10
|
+
- gemfiles/rails_edge.gemfile
|
9
11
|
|
10
12
|
rvm:
|
11
|
-
- "2.5.
|
13
|
+
- "2.5.8"
|
14
|
+
- "2.6.6"
|
15
|
+
- "2.7.2"
|
16
|
+
- "3.0.0"
|
17
|
+
- ruby-head
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
allow_failures:
|
21
|
+
- rvm: ruby-head
|
22
|
+
- gemfile: gemfiles/rails_edge.gemfile
|
23
|
+
exclude:
|
24
|
+
- rvm: 2.5.8
|
25
|
+
gemfile: gemfiles/rails_edge.gemfile
|
26
|
+
- rvm: 2.6.6
|
27
|
+
gemfile: gemfiles/rails_edge.gemfile
|
28
|
+
fast_finish: true
|
12
29
|
|
13
30
|
script: 'bundle exec rspec'
|
14
31
|
|
data/CHANGELOG.rdoc
CHANGED
@@ -3,12 +3,21 @@
|
|
3
3
|
* Relaxed Timeliness dependency version which allows for >= 0.4.0 with
|
4
4
|
threadsafety fix for use_us_formats and use_euro_formats for hot switching
|
5
5
|
in a request.
|
6
|
+
* Add initializer to ensure Timeliness v0.4+ ambiguous date config is set
|
7
|
+
correctly when using `use_euro_formats` or `remove_use_formats'.
|
8
|
+
* Add Ruby 3 compatibility
|
9
|
+
* Add Rails 6.1 compatibility
|
6
10
|
|
7
11
|
Breaking Changes
|
8
12
|
* Update Multiparameter extension to use ActiveRecord type classes with multiparameter handling
|
9
13
|
which stores a hash of multiparamter values as the value before type cast, no longer a mushed datetime string
|
10
14
|
* Removed all custom plugin attribute methods and method overrides in favour using ActiveModel type system
|
11
15
|
|
16
|
+
= 4.1.0 [2019-06-11]
|
17
|
+
* Relaxed Timeliness dependency version to >= 0.3.10 and < 1, which allows
|
18
|
+
version 0.4 with threadsafety fix for use_us_formats and use_euro_formats
|
19
|
+
hot switching in a request.
|
20
|
+
|
12
21
|
= 4.0.2 [2016-01-07]
|
13
22
|
* Fix undefine_generated_methods ivar guard setting to false
|
14
23
|
|
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
= ValidatesTimeliness {<img src="https://travis-ci.org/adzap/validates_timeliness.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/adzap/validates_timeliness]
|
2
2
|
|
3
|
-
* Source:
|
4
|
-
* Issues:
|
3
|
+
* Source: https://github.com/adzap/validates_timeliness
|
4
|
+
* Issues: https://github.com/adzap/validates_timeliness/issues
|
5
5
|
|
6
6
|
== Description
|
7
7
|
|
8
|
-
Complete validation of dates, times and datetimes for Rails
|
8
|
+
Complete validation of dates, times and datetimes for Rails 6.x and ActiveModel.
|
9
9
|
|
10
|
-
|
10
|
+
Old Rails versions:
|
11
|
+
|
12
|
+
* Rails 4.x: [https://github.com/adzap/validates_timeliness/tree/4-0-stable]
|
13
|
+
|
14
|
+
* Rails 5.x: [https://github.com/adzap/validates_timeliness/tree/5-0-stable]
|
11
15
|
|
12
16
|
|
13
17
|
== Features
|
@@ -18,7 +22,7 @@ If you a looking for the old version for Rails 4.x go here [https://github.com/a
|
|
18
22
|
|
19
23
|
* Only Rails date/time validation plugin offering complete validation (See ORM/ODM support)
|
20
24
|
|
21
|
-
* Uses extensible date/time parser (Using {timeliness gem}[
|
25
|
+
* Uses extensible date/time parser (Using {timeliness gem}[https://github.com/adzap/timeliness]. See Plugin Parser)
|
22
26
|
|
23
27
|
* Adds extensions to fix Rails date/time select issues (See Extensions)
|
24
28
|
|
@@ -30,13 +34,13 @@ If you a looking for the old version for Rails 4.x go here [https://github.com/a
|
|
30
34
|
== Installation
|
31
35
|
|
32
36
|
# in Gemfile
|
33
|
-
gem 'validates_timeliness', '~>
|
37
|
+
gem 'validates_timeliness', '~> 6.0.0.alpha1'
|
34
38
|
|
35
39
|
# Run bundler
|
36
40
|
$ bundle install
|
37
41
|
|
38
42
|
Then run
|
39
|
-
|
43
|
+
|
40
44
|
$ rails generate validates_timeliness:install
|
41
45
|
|
42
46
|
This creates configuration initializer and locale files. In the initializer, there are a number of config
|
@@ -49,21 +53,21 @@ NOTE: You may wish to enable the plugin parser and the extensions to start. Plea
|
|
49
53
|
|
50
54
|
validates_datetime :occurred_at
|
51
55
|
|
52
|
-
validates_date :date_of_birth, :
|
53
|
-
:
|
56
|
+
validates_date :date_of_birth, before: lambda { 18.years.ago },
|
57
|
+
before_message: "must be at least 18 years old"
|
54
58
|
|
55
|
-
validates_datetime :finish_time, :
|
59
|
+
validates_datetime :finish_time, after: :start_time # Method symbol
|
56
60
|
|
57
|
-
validates_date :booked_at, :
|
61
|
+
validates_date :booked_at, on: :create, on_or_after: :today # See Restriction Shorthand.
|
58
62
|
|
59
|
-
validates_time :booked_at, :
|
60
|
-
validates_time :booked_at, :
|
61
|
-
validates_time :booked_at, :
|
63
|
+
validates_time :booked_at, between: ['9:00am', '5:00pm'] # On or after 9:00AM and on or before 5:00PM
|
64
|
+
validates_time :booked_at, between: '9:00am'..'5:00pm' # The same as previous example
|
65
|
+
validates_time :booked_at, between: '9:00am'...'5:00pm' # On or after 9:00AM and strictly before 5:00PM
|
62
66
|
|
63
|
-
validates_time :breakfast_time, :
|
64
|
-
:
|
65
|
-
:
|
66
|
-
:
|
67
|
+
validates_time :breakfast_time, on_or_after: '6:00am',
|
68
|
+
on_or_after_message: 'must be after opening time',
|
69
|
+
before: :lunchtime,
|
70
|
+
before_message: 'must be before lunch time'
|
67
71
|
|
68
72
|
|
69
73
|
== Usage
|
@@ -72,14 +76,14 @@ To validate a model with a date, time or datetime attribute you just use the
|
|
72
76
|
validation method
|
73
77
|
|
74
78
|
class Person < ActiveRecord::Base
|
75
|
-
validates_date :date_of_birth, :
|
79
|
+
validates_date :date_of_birth, on_or_before: lambda { Date.current }
|
76
80
|
# or
|
77
|
-
validates :date_of_birth, :
|
81
|
+
validates :date_of_birth, timeliness: {on_or_before: lambda { Date.current }, type: :date}
|
78
82
|
end
|
79
83
|
|
80
84
|
or even on a specific record, per ActiveModel API.
|
81
85
|
|
82
|
-
@person.validates_date :date_of_birth, :
|
86
|
+
@person.validates_date :date_of_birth, on_or_before: lambda { Date.current }
|
83
87
|
|
84
88
|
|
85
89
|
The list of validation methods available are as follows:
|
@@ -97,7 +101,7 @@ Temporal options (or restrictions):
|
|
97
101
|
:on_or_before - Attribute must be equal to or before this value to be valid
|
98
102
|
:after - Attribute must be after this value to be valid
|
99
103
|
:on_or_after - Attribute must be equal to or after this value to be valid
|
100
|
-
:between - Attribute must be between the values to be valid. Range or Array of 2 values.
|
104
|
+
:between - Attribute must be between the values to be valid. Range or Array of 2 values.
|
101
105
|
|
102
106
|
Regular validation options:
|
103
107
|
:allow_nil - Allow a nil value to be valid
|
@@ -142,7 +146,7 @@ like so
|
|
142
146
|
|
143
147
|
end
|
144
148
|
|
145
|
-
By default the plugin extends ActiveRecord if loaded. If you wish to extend another ORM then look at the {wiki page}[
|
149
|
+
By default the plugin extends ActiveRecord if loaded. If you wish to extend another ORM then look at the {wiki page}[https://github.com/adzap/validates_timeliness/wiki/ORM-Support] for more information.
|
146
150
|
|
147
151
|
It is not required that you use a shim, but you will not catch errors when the attribute value is invalid and evaluated to nil.
|
148
152
|
|
@@ -184,7 +188,7 @@ It is highly recommended you use the I18n system for error messages.
|
|
184
188
|
|
185
189
|
=== Plugin Parser
|
186
190
|
|
187
|
-
The plugin uses the {timeliness gem}[
|
191
|
+
The plugin uses the {timeliness gem}[https://github.com/adzap/timeliness] as a fast, configurable and extensible date and time parser.
|
188
192
|
You can add or remove valid formats for dates, times, and datetimes. It is also more strict than the
|
189
193
|
Ruby parser, which means it won't accept day of the month if it's not a valid number for the month.
|
190
194
|
|
@@ -194,33 +198,33 @@ By default the parser is disabled. To enable it:
|
|
194
198
|
config.use_plugin_parser = true
|
195
199
|
|
196
200
|
Enabling the parser will mean that strings assigned to attributes validated with the plugin will be parsed
|
197
|
-
using the gem. See the wiki[
|
201
|
+
using the gem. See the wiki[https://github.com/adzap/validates_timeliness/wiki/Plugin-Parser] for more details about the parser configuration.
|
198
202
|
|
199
203
|
|
200
204
|
=== Restriction Shorthand
|
201
205
|
|
202
|
-
It is common to restrict an attribute to being on or before the current time or current day.
|
206
|
+
It is common to restrict an attribute to being on or before the current time or current day.
|
203
207
|
To specify this you need to use a lambda as an option value e.g. <tt>lambda { Time.current }</tt>.
|
204
208
|
This can be tedious noise amongst your validations for something so common. To combat this the
|
205
209
|
plugin allows you to use shorthand symbols for often used relative times or dates.
|
206
210
|
|
207
211
|
Just provide the symbol as the option value like so:
|
208
212
|
|
209
|
-
validates_date :birth_date, :
|
213
|
+
validates_date :birth_date, on_or_before: :today
|
210
214
|
|
211
|
-
The :today symbol is evaluated as <tt>lambda { Date.
|
215
|
+
The :today symbol is evaluated as <tt>lambda { Date.current }</tt>. The :now and :today
|
212
216
|
symbols are pre-configured. Configure your own like so:
|
213
217
|
|
214
218
|
# in the setup block
|
215
219
|
config.restriction_shorthand_symbols.update(
|
216
|
-
:
|
220
|
+
yesterday: lambda { 1.day.ago }
|
217
221
|
)
|
218
222
|
|
219
223
|
|
220
224
|
=== Default Timezone
|
221
225
|
|
222
226
|
The plugin needs to know the default timezone you are using when parsing or type casting values. If you are using
|
223
|
-
ActiveRecord then the default is automatically set to the same default zone as ActiveRecord. If you are using
|
227
|
+
ActiveRecord then the default is automatically set to the same default zone as ActiveRecord. If you are using
|
224
228
|
another ORM you may need to change this setting.
|
225
229
|
|
226
230
|
# in the setup block
|
@@ -286,12 +290,12 @@ To activate it, uncomment this line in the initializer:
|
|
286
290
|
|
287
291
|
== Contributors
|
288
292
|
|
289
|
-
To see the generous people who have contributed code, take a look at the {contributors list}[
|
293
|
+
To see the generous people who have contributed code, take a look at the {contributors list}[https://github.com/adzap/validates_timeliness/contributors].
|
290
294
|
|
291
295
|
|
292
296
|
== Maintainers
|
293
297
|
|
294
|
-
* {Adam Meehan}[
|
298
|
+
* {Adam Meehan}[https://github.com/adzap]
|
295
299
|
|
296
300
|
|
297
301
|
== License
|
data/Rakefile
CHANGED
@@ -19,10 +19,11 @@ end
|
|
19
19
|
|
20
20
|
desc 'Generate documentation for plugin.'
|
21
21
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
22
|
+
rdoc.main = 'README.rdoc'
|
22
23
|
rdoc.rdoc_dir = 'rdoc'
|
23
24
|
rdoc.title = 'ValidatesTimeliness'
|
24
|
-
rdoc.options << '--line-numbers'
|
25
|
-
rdoc.rdoc_files.include('README')
|
25
|
+
rdoc.options << '--line-numbers'
|
26
|
+
rdoc.rdoc_files.include('README.rdoc')
|
26
27
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
27
28
|
end
|
28
29
|
|
@@ -2,17 +2,13 @@
|
|
2
2
|
|
3
3
|
source "http://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
5
|
+
gem "rails", "~> 6.0.0"
|
6
6
|
gem "rspec"
|
7
7
|
gem "rspec-rails", "~> 3.7"
|
8
|
+
gem "sqlite3"
|
8
9
|
gem "timecop"
|
9
10
|
gem "byebug"
|
10
11
|
gem "appraisal"
|
11
|
-
gem "sqlite3"
|
12
12
|
gem "nokogiri", "~> 1.8"
|
13
13
|
|
14
|
-
group :active_record do
|
15
|
-
gem "sqlite3-ruby", require: "sqlite3"
|
16
|
-
end
|
17
|
-
|
18
14
|
gemspec path: "../"
|
@@ -2,17 +2,13 @@
|
|
2
2
|
|
3
3
|
source "http://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
5
|
+
gem "rails", "~> 6.1.0"
|
6
6
|
gem "rspec"
|
7
7
|
gem "rspec-rails", "~> 3.7"
|
8
|
+
gem "sqlite3"
|
8
9
|
gem "timecop"
|
9
10
|
gem "byebug"
|
10
11
|
gem "appraisal"
|
11
|
-
gem "sqlite3"
|
12
12
|
gem "nokogiri", "~> 1.8"
|
13
13
|
|
14
|
-
group :active_record do
|
15
|
-
gem "sqlite3-ruby", require: "sqlite3"
|
16
|
-
end
|
17
|
-
|
18
14
|
gemspec path: "../"
|
@@ -2,17 +2,13 @@
|
|
2
2
|
|
3
3
|
source "http://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "
|
5
|
+
gem "rails", git: "https://github.com/rails/rails.git", branch: "main"
|
6
6
|
gem "rspec"
|
7
7
|
gem "rspec-rails", "~> 3.7"
|
8
|
+
gem "sqlite3"
|
8
9
|
gem "timecop"
|
9
10
|
gem "byebug"
|
10
11
|
gem "appraisal"
|
11
|
-
gem "sqlite3"
|
12
12
|
gem "nokogiri", "~> 1.8"
|
13
13
|
|
14
|
-
group :active_record do
|
15
|
-
gem "sqlite3-ruby", require: "sqlite3"
|
16
|
-
end
|
17
|
-
|
18
14
|
gemspec path: "../"
|
data/lib/validates_timeliness.rb
CHANGED
@@ -36,8 +36,8 @@ module ValidatesTimeliness
|
|
36
36
|
|
37
37
|
# Shorthand time and date symbols for restrictions
|
38
38
|
self.restriction_shorthand_symbols = {
|
39
|
-
:
|
40
|
-
:
|
39
|
+
now: proc { Time.current },
|
40
|
+
today: proc { Date.current }
|
41
41
|
}
|
42
42
|
|
43
43
|
# Use the plugin date/time parser which is stricter and extensible
|
@@ -11,5 +11,13 @@ module ValidatesTimeliness
|
|
11
11
|
initializer "validates_timeliness.initialize_restriction_errors" do
|
12
12
|
ValidatesTimeliness.ignore_restriction_errors = !Rails.env.test?
|
13
13
|
end
|
14
|
+
|
15
|
+
initializer "validates_timeliness.initialize_timeliness_ambiguous_date_format", :after => :load_config_initializers do
|
16
|
+
if Timeliness.respond_to?(:ambiguous_date_format) # i.e. v0.4+
|
17
|
+
# Set default for each new thread if you have changed the default using
|
18
|
+
# the format switching methods.
|
19
|
+
Timeliness.configuration.ambiguous_date_format = Timeliness::Definitions.current_date_format
|
20
|
+
end
|
21
|
+
end
|
14
22
|
end
|
15
23
|
end
|
@@ -86,7 +86,7 @@ module ValidatesTimeliness
|
|
86
86
|
def add_error(record, attr_name, message, value=nil)
|
87
87
|
value = format_error_value(value) if value
|
88
88
|
message_options = { :message => options.fetch(:"#{message}_message", options[:message]), :restriction => value }
|
89
|
-
record.errors.add(attr_name, message, message_options)
|
89
|
+
record.errors.add(attr_name, message, **message_options)
|
90
90
|
end
|
91
91
|
|
92
92
|
def format_error_value(value)
|
data/spec/spec_helper.rb
CHANGED
@@ -17,8 +17,7 @@ module ModelHelpers
|
|
17
17
|
|
18
18
|
def with_each_person_value(attr_name, values)
|
19
19
|
record = Person.new
|
20
|
-
values
|
21
|
-
values.each do |value|
|
20
|
+
Array.wrap(values).each do |value|
|
22
21
|
record.send("#{attr_name}=", value)
|
23
22
|
yield record, value
|
24
23
|
end
|
data/spec/support/test_model.rb
CHANGED
@@ -15,11 +15,11 @@ module TestModel
|
|
15
15
|
self.model_attributes[name] = type
|
16
16
|
end
|
17
17
|
|
18
|
-
def define_method_attribute=(attr_name)
|
18
|
+
def define_method_attribute=(attr_name, owner: nil)
|
19
19
|
generated_attribute_methods.module_eval("def #{attr_name}=(new_value); @attributes['#{attr_name}']=self.class.type_cast('#{attr_name}', new_value); end", __FILE__, __LINE__)
|
20
20
|
end
|
21
21
|
|
22
|
-
def define_method_attribute(attr_name)
|
22
|
+
def define_method_attribute(attr_name, owner: nil)
|
23
23
|
generated_attribute_methods.module_eval("def #{attr_name}; @attributes['#{attr_name}']; end", __FILE__, __LINE__)
|
24
24
|
end
|
25
25
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'validates_timeliness/railtie'
|
2
|
+
|
3
|
+
RSpec.describe ValidatesTimeliness::Railtie do
|
4
|
+
context "intializers" do
|
5
|
+
context "validates_timeliness.initialize_timeliness_ambiguous_date_format" do
|
6
|
+
it 'should set the timeliness default ambiguous date format from the current format' do
|
7
|
+
expect(Timeliness.configuration.ambiguous_date_format).to eq :us
|
8
|
+
ValidatesTimeliness.parser.use_euro_formats
|
9
|
+
|
10
|
+
initializer("validates_timeliness.initialize_timeliness_ambiguous_date_format").run
|
11
|
+
|
12
|
+
expect(Timeliness.configuration.ambiguous_date_format).to eq :euro
|
13
|
+
end
|
14
|
+
end if Timeliness.respond_to?(:ambiguous_date_format)
|
15
|
+
|
16
|
+
def initializer(name)
|
17
|
+
ValidatesTimeliness::Railtie.initializers.find { |i|
|
18
|
+
i.name == name
|
19
|
+
} || raise("Initializer #{name} not found")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
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: 6.0.0.alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Meehan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: timeliness
|
@@ -45,9 +45,9 @@ files:
|
|
45
45
|
- LICENSE
|
46
46
|
- README.rdoc
|
47
47
|
- Rakefile
|
48
|
-
- gemfiles/
|
49
|
-
- gemfiles/
|
50
|
-
- gemfiles/
|
48
|
+
- gemfiles/rails_6_0.gemfile
|
49
|
+
- gemfiles/rails_6_1.gemfile
|
50
|
+
- gemfiles/rails_edge.gemfile
|
51
51
|
- init.rb
|
52
52
|
- lib/generators/validates_timeliness/install_generator.rb
|
53
53
|
- lib/generators/validates_timeliness/templates/en.yml
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- spec/validates_timeliness/extensions/multiparameter_handler_spec.rb
|
76
76
|
- spec/validates_timeliness/helper_methods_spec.rb
|
77
77
|
- spec/validates_timeliness/orm/active_record_spec.rb
|
78
|
+
- spec/validates_timeliness/railtie_spec.rb
|
78
79
|
- spec/validates_timeliness/validator/after_spec.rb
|
79
80
|
- spec/validates_timeliness/validator/before_spec.rb
|
80
81
|
- spec/validates_timeliness/validator/is_at_spec.rb
|
@@ -87,7 +88,7 @@ homepage: http://github.com/adzap/validates_timeliness
|
|
87
88
|
licenses:
|
88
89
|
- MIT
|
89
90
|
metadata: {}
|
90
|
-
post_install_message:
|
91
|
+
post_install_message:
|
91
92
|
rdoc_options: []
|
92
93
|
require_paths:
|
93
94
|
- lib
|
@@ -102,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
103
|
- !ruby/object:Gem::Version
|
103
104
|
version: 1.3.1
|
104
105
|
requirements: []
|
105
|
-
|
106
|
-
|
107
|
-
signing_key:
|
106
|
+
rubygems_version: 3.0.3
|
107
|
+
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Date and time validation plugin for Rails which allows custom formats
|
110
110
|
test_files:
|
@@ -119,6 +119,7 @@ test_files:
|
|
119
119
|
- spec/validates_timeliness/extensions/multiparameter_handler_spec.rb
|
120
120
|
- spec/validates_timeliness/helper_methods_spec.rb
|
121
121
|
- spec/validates_timeliness/orm/active_record_spec.rb
|
122
|
+
- spec/validates_timeliness/railtie_spec.rb
|
122
123
|
- spec/validates_timeliness/validator/after_spec.rb
|
123
124
|
- spec/validates_timeliness/validator/before_spec.rb
|
124
125
|
- spec/validates_timeliness/validator/is_at_spec.rb
|