active_validation 2.4.0 → 2.5.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: 2e9bb870c5f090cb2a28ae7bb9df417eb9902545
4
- data.tar.gz: a3f27292b1cc4e7ae91735c5ed7ffa6d424fe169
3
+ metadata.gz: 8196f5d5b7d616c9b4da4eb03c09d923a517b058
4
+ data.tar.gz: f76278a7cf0188be5e37fc0a2d9dda49d37e382a
5
5
  SHA512:
6
- metadata.gz: b6345d8bd33d83c46ec75ff210f7af38d1e3be021b1bede2388b6e2e35a6a34dbe369e48d60d0a9b212fb464acd9b414c7073343cdeee5a1b1bdeb0d39aff5c1
7
- data.tar.gz: e9ec4dcae6d93503815447ed07d4671de52e545949c51a9a718044719cb643a432b273ccb80d9499a896eeff4f57f53c0d95b603c4bef9f4842f3be649247f21
6
+ metadata.gz: ec99d7e5ec07ab6b7ece6e5bc0f7685d5fc38f25b88a639533348f5e332b81af07c35238ea1146737f536792f7c53264f9546fb93dacd90014fe33c0568b9cf2
7
+ data.tar.gz: a6a555a5994c53bbff3dd3690d8066a7db6764a3b361f3301680a804063b72621205e38393ee0b8c66a0a0f55105cd14348608981adbb54a3e37b21381f19118
data/README.md CHANGED
@@ -740,7 +740,7 @@ end
740
740
 
741
741
  **Rules:**
742
742
  * Range: 6-18
743
- * Characters: a-z 0-9 -_!@#$%^&*
743
+ * Characters: A-Z a-z 0-9 -_!@#$%^&*
744
744
 
745
745
  With an ActiveRecord model:
746
746
 
@@ -9,7 +9,7 @@ class PasswordValidator < ActiveModel::EachValidator
9
9
  private
10
10
 
11
11
  def valid_format?(value, options)
12
- value =~ (options.fetch(:strict, false) ? /^(?=^.{1,255}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/ : /^[a-z0-9!@#$%^&*_-]{1,255}$/)
12
+ value =~ (options.fetch(:strict, false) ? /^(?=^.{1,255}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/ : /^[A-Za-z0-9!@#$%^&*_-]{1,255}$/)
13
13
  end
14
14
 
15
15
  def valid_length?(value)
@@ -1,3 +1,3 @@
1
1
  module ActiveValidation
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  version: '0'
218
218
  requirements: []
219
219
  rubyforge_project:
220
- rubygems_version: 2.5.1
220
+ rubygems_version: 2.6.2
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: Gem for commonly used validators.