activemodel-behavior_validator 0.0.2 → 0.0.3

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: 95e39de4761601fc6a4688f2ddf20e88d79a81e2
4
- data.tar.gz: 5a542853207a721590e3d116cb7f0a0fe5f8711c
3
+ metadata.gz: 3d519abbff2d6e09d869208a5fd13f7120cde9b3
4
+ data.tar.gz: 4fce249bd6490a6e52034c79e3f871caf5b03687
5
5
  SHA512:
6
- metadata.gz: 027580b1fb8ad37c0c588c5181705c215ed2f9d332369c31a5e8003b1546277b756058edd449779901742a034b9f98f122af08ee8ba4b042dc60a6f5a9d93181
7
- data.tar.gz: 7e63c4d455cfdd03a8b6971e48322681597aa5ca89f7c5bc3e428fc1e31c36c152832bbf327d890bb6c033b85ac6174251db69791356fd93e7b9d7c9ecf8b890
6
+ metadata.gz: baec5e9ee737b8d7c39d3a770af23752a8fee07b7516b063ac23ec26735d68bdc63a7f1fe5fd2e0626f19b5272a0607b01663fc25e0c698bb7d9a047164f6240
7
+ data.tar.gz: 644342f9ceb7f22325f7b9d0046955b567cfdb2cc483ce475fe056cdf13cb6d8df7ee61cfb9f87960775aaba3e3b8901b29c580c56fea0532e89987f93be9671
@@ -3,7 +3,7 @@ class BehaviorValidator < ActiveModel::EachValidator
3
3
  def valid?(value, options = {})
4
4
  options = options.reject { |option| reserved_options.include?(option) }
5
5
  options.each_pair.all? do |method, expected_result|
6
- value.respond_do?(method) && value.__send__(method) == expected_result
6
+ value.respond_to?(method) && value.__send__(method) == expected_result
7
7
  end
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  class BehaviorValidator
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel-behavior_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuku Takahashi