validates_timeliness 5.0.0.alpha5 → 5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c8e4da95b2742cd11181d664cb5c5d7c2e6f69764641e72c0c9ad244196529f
4
- data.tar.gz: 8b6e1cdcecb56aa889baaf0e0a874a53bedc940656757f52526f3f2eeac0e0fc
3
+ metadata.gz: aa25778ed03195da3bdd16dafc426d3345c2df57a21d225c73b97dd6785045e0
4
+ data.tar.gz: bd5fd0cc630b48cdd9543be3e79ef11599ec7c92fa7cff7f9acdce4867707e74
5
5
  SHA512:
6
- metadata.gz: 5e4510dd3f118be6b9cda10aab0ce0bbc81a30886f269a7ac90f0328223d8a857b86ce24d79afb400df793482f0336f4704d68736ef49f640ef260c7f358b578
7
- data.tar.gz: 59e81dfef384de7707585e2378d1b8f23cd557e9acab2f6a22f6c92d9c3032856620644daf0f42a163c9a9de7d58e944589e15fd37f6c81c7f7a410d6221fd74
6
+ metadata.gz: fffd3ee1b2e79d67505b1866de6398eddb35bc52024a967b95d83b6e56b8f43a30c03efb89578e7bee7e8458a2ec38566c2048d6671ab3d55aa9e6365eb042a4
7
+ data.tar.gz: fcdc2d3e74d7e8a6011bc684991c49090e40416a79148af5ac421cef2376c78d683d280ef4998edaa1edd14ac5e5ad61f50b7d38e7ef89df104045db2f16a362
@@ -1,3 +1,3 @@
1
1
  module ValidatesTimeliness
2
- VERSION = '5.0.0.alpha5'
2
+ VERSION = '5.0.0.beta1'
3
3
  end
@@ -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 = [values] unless values.is_a?(Array)
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
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: 5.0.0.alpha5
4
+ version: 5.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: 2019-08-08 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: timeliness
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: 1.3.1
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.7.6.2
106
+ rubygems_version: 3.0.3
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Date and time validation plugin for Rails which allows custom formats