date_validator 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad328bfcd91fe2dd14dffada0d846bbc8098de12
4
- data.tar.gz: ca2397f4635d7f6ca4fc7e13430de2138ac1df41
3
+ metadata.gz: e95b0ebaffd070517405785c04fa35a692194777
4
+ data.tar.gz: d902fa5d58b1c911b001a507b11ac0539a2190d7
5
5
  SHA512:
6
- metadata.gz: 5dbb18aba6310ee0846aeec876f46b98d53b1ee96a75037e2f285055e1948647e74a5c5bb1f60af11d75ad08d8690948634f6f25506a7b97b7d21ddb43bf6f41
7
- data.tar.gz: 46a423f1e6dd42f08e5fadb1d1a42cd440ee308025679e562f316a55f9b873cabec519e1705d90a04efbc0b9734ea8ae8a0a9a8635a9b60d9fedb1500acd0d9d
6
+ metadata.gz: fb9ea1549680bef07e681e695d01e645c481ee1c6fa4611d41a42b918fc1a42a18b9711bd4620f8e32bfa5e85a820557a0d5c371ea59ac0febab72e5f2e7c926
7
+ data.tar.gz: 6b3f9f4eea74c0a52d82ef399121b7a0ea386590f5a3772cb3dfbb3de006414973186efafbbfcd40e740333f35baec7f49985501bce59bc6acc1cbf0046fd189
data/Readme.md CHANGED
@@ -1,10 +1,10 @@
1
- # date_validator
1
+ # date_validator [![Build Status](https://travis-ci.org/codegram/date_validator.png?branch=master)](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) 2011 Codegram. See LICENSE for details.
59
+ Copyright (c) 2013 Codegram. See LICENSE for details.
@@ -11,5 +11,3 @@ require 'active_support/i18n'
11
11
  #
12
12
  module DateValidator
13
13
  end
14
-
15
- I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../locales', '*.yml')).to_s]
@@ -1,4 +1,4 @@
1
1
  module DateValidator
2
2
  # The version number.
3
- VERSION = "0.6.4"
3
+ VERSION = "0.7.0"
4
4
  end
@@ -0,0 +1,8 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ not_a_date: "nie jest datą"
5
+ after: "musi być po %{date}"
6
+ after_or_equal_to: "musi być po lub równa %{date}"
7
+ before: "musi być przed %{date}"
8
+ before_or_equal_to: "musi być przed lub równa %{date}"
@@ -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.6.4
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-03-29 00:00:00.000000000 Z
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