active_comparison_validator 0.1.0 → 0.1.1

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: bf458636f691bfdaf5c4021b25d117593f08525e
4
- data.tar.gz: 965f25572924d9d2e6c11abef648d9e466bcbedc
3
+ metadata.gz: d3c7d9d23c401e33f9d225d1e9e708e2d085edc7
4
+ data.tar.gz: ae869f414ddfb8b95884266a6cda578301aad729
5
5
  SHA512:
6
- metadata.gz: 91cad7a9235786504402792f544891edddc128967f0990fcda7424e8acf64386f75c9185019ced0d05a62b77ae89d6d99a8a095f6474ff75de29a62020401528
7
- data.tar.gz: 4ce6b13f30f735139d6a1d0fdb0bad1d6bb3a284c5206fd30b476ecce66aea5cf1157784b83a64494e55cfd7f6229becffc12acc79395f1f106c897d4454b4c9
6
+ metadata.gz: 25cb15bbe0b03a3e5e6b263a34197a1534ea27b185dca7ff65e92a79dc4998716381d6a23aa6adaad210fd116b9d433ae2d4aead817050b164aa3ca95e01d41b
7
+ data.tar.gz: 79fe2037f13ad74b52c54f53e33349e28bc2cf8a9b66c96c657f937554d836e3c9a1a53b0c68fc1ceff4fd3bc9e22fc256fc19f886d5631ce59d2cc5fb31d679
data/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Dynamically add validation for compare the column and the other column.
4
4
 
5
+ ```rb
6
+ class Shop < ActiveRecord::Base
7
+ include ActiveComparisonValidator
8
+ comparison_validator 'open_at < close_at'
9
+ end
10
+ ```
11
+
5
12
  This gem provides a macro for comparing the column and the other column of the record.
6
13
  Type of the comparable column is Date Time Numeric, and all that jazz.
7
14
 
@@ -1,3 +1,3 @@
1
1
  module ActiveComparisonValidator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_comparison_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - onodera