drexed-validators 0.0.10 → 0.0.11

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: ffcffb7782e218868d56bac3ea6b2358f812f2fd
4
- data.tar.gz: c5a3130f27e7d583acab6cbb9a959b8303113bce
3
+ metadata.gz: 8f855d819073cb7caa88516343b5b926b4a76a9a
4
+ data.tar.gz: 384172213c562cb9a9d0b33bbf72d1f878ad912f
5
5
  SHA512:
6
- metadata.gz: 6b88dfc6efc34005d7a0b92d9ee09707927efd5ec712d4be05ae7aaccec696c16564b91fd920196c2702dbc91236fa63dac7323d99e3939e60434b64681207e7
7
- data.tar.gz: 84fdc4f37188b858ec7fd94178730889d4316fae128b39c7f9cde2080370b2c1acae796c9fa14af7be1bf3fca8ba56295c08152bb6b8a4f049c8bf00933b98a4
6
+ metadata.gz: 939844cdc6f99729f6a4d4d98f725d558174b05862d77a884858ec59d127fcf3cdd4f43313888c17c17be21213590a34db9a0b23628f9d0d131077e5a209199c
7
+ data.tar.gz: c1088dbde0b6cc4a78733dde858bedd31981d8b1315b109cde96a5afc39e022a39f66c4bf44505732d5e23f78f90ec5b6b3f5b0e46eadd507eff0e0cc0bbe446
@@ -1,5 +1,5 @@
1
1
  class TelephoneValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
2
+ def validate_each(object, attribute, value)
3
3
  formatted_value = value.gsub(/[\s\.\+\(\)-]*/, "")
4
4
  is_number = !(formatted_value =~ /^[-+]?[0-9]+$/).nil?
5
5
  unless is_number && validate_by_region(options[:region], formatted_value)
@@ -1,5 +1,5 @@
1
1
  module Drexed
2
2
  module Validators
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drexed-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2014-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler