date_validator 0.6.4 → 0.7.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 +4 -4
- data/Readme.md +5 -5
- data/lib/date_validator.rb +0 -2
- data/lib/date_validator/version.rb +1 -1
- data/locales/pl.yml +8 -0
- data/test/test_helper.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e95b0ebaffd070517405785c04fa35a692194777
|
|
4
|
+
data.tar.gz: d902fa5d58b1c911b001a507b11ac0539a2190d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb9ea1549680bef07e681e695d01e645c481ee1c6fa4611d41a42b918fc1a42a18b9711bd4620f8e32bfa5e85a820557a0d5c371ea59ac0febab72e5f2e7c926
|
|
7
|
+
data.tar.gz: 6b3f9f4eea74c0a52d82ef399121b7a0ea386590f5a3772cb3dfbb3de006414973186efafbbfcd40e740333f35baec7f49985501bce59bc6acc1cbf0046fd189
|
data/Readme.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# date_validator
|
|
1
|
+
# date_validator [](https://travis-ci.org/codegram/date_validator)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
A simple date validator for Rails 3. Should be compatible with all latest Rubies.
|
|
2
5
|
|
|
3
|
-
A simple date validator for Rails 3. Compatible with Ruby 1.8.7, 1.9.2 and
|
|
4
|
-
Rubinius 1.2.2.
|
|
5
6
|
|
|
6
7
|
```shell
|
|
7
|
-
$ gem sources -a http://gemcutter.org/
|
|
8
8
|
$ gem install date_validator
|
|
9
9
|
```
|
|
10
10
|
|
|
@@ -56,4 +56,4 @@ validates :start_date, :date => {:before => :end_date }
|
|
|
56
56
|
|
|
57
57
|
## Copyright
|
|
58
58
|
|
|
59
|
-
Copyright (c)
|
|
59
|
+
Copyright (c) 2013 Codegram. See LICENSE for details.
|
data/lib/date_validator.rb
CHANGED
data/locales/pl.yml
ADDED
data/test/test_helper.rb
CHANGED
|
@@ -16,6 +16,8 @@ require 'active_support/time' # For testing Date and TimeWithZone objects
|
|
|
16
16
|
require 'active_model'
|
|
17
17
|
require 'date_validator'
|
|
18
18
|
|
|
19
|
+
I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../locales', '*.yml')).to_s]
|
|
20
|
+
|
|
19
21
|
class TestRecord
|
|
20
22
|
include ActiveModel::Validations
|
|
21
23
|
attr_accessor :expiration_date
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: date_validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oriol Gual
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-
|
|
13
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activemodel
|
|
@@ -111,6 +111,7 @@ files:
|
|
|
111
111
|
- locales/es.yml
|
|
112
112
|
- locales/fr.yml
|
|
113
113
|
- locales/nl.yml
|
|
114
|
+
- locales/pl.yml
|
|
114
115
|
- locales/ru.yml
|
|
115
116
|
- test/date_validator_test.rb
|
|
116
117
|
- test/test_helper.rb
|