ama_validators 0.0.9 → 0.0.10

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: ad8fb513f430d6a1c10ee41a1ee3ab24a180f780
4
- data.tar.gz: fb31d9650b2a2d427d788fe7b3425237ab445ed4
3
+ metadata.gz: 570dc6f79ec53b7d9248f197e7450e6ed7e09933
4
+ data.tar.gz: 4cdd03c9082bc952a0659c7e3dc8b1aefb6c96d1
5
5
  SHA512:
6
- metadata.gz: 7f246809b7c7809a372525a2e9ff08881123ca4f038df2c4bf37b1eca6719552943b6436b99e8726a30e4418e8d53654a229d745c3594298d25dfc50fb415f25
7
- data.tar.gz: 8779da836d0a48051284ec22f8f6d981d75ba7a0a5cb10c36d3730971779a2ffbcca46de4e16eed2a87268ce8d337e1a4b43d0c8ddb88073ce68c75b3235e9b5
6
+ metadata.gz: 2392bef81b470fa6bb6eb90c8b47a51b5b2009ff7d5488fdc7b8b892c442fc5a8ce30a71caa59b2d5d7aefe2d655081103c9076977893292d482271eaf20c00d
7
+ data.tar.gz: e6a50b53b03d3e726077db4f14e4a086c40379d5bb3be5defbe6554af02558a955dc520e18692eb97b57515f819dda78595b384d249bd76702bd8652167e07fc
@@ -1,6 +1,6 @@
1
1
  class NameFormatValidator < ActiveModel::EachValidator
2
2
  def validate_each(object, attribute, value)
3
- unless value =~ /\A[\sa-zA-ZÀàÂâÄäÈèÉéÊêËëÎîÏïÔôŒœÙùÛûÜüŸÿÇç,.'-]+\z/
3
+ unless value =~ /\A[\sa-zA-ZÀàÂâÄäÈèÉéÊêËëÎîÏïÔôŒœÙùÛûÜüŸÿÇç,.'\-\)\(]+\z/
4
4
  object.errors[attribute] << (options[:message] || "We're sorry your name cannot contain any special characters")
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module AmaValidators
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-11-26 00:00:00.000000000 Z
16
+ date: 2015-12-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.2.0
176
+ rubygems_version: 2.4.5
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: This gem will compile the following validators - Credit card - Email - Membership