flash_validators 3.0.11 → 3.0.12

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: 593d5015f6399d2412e6434d44e9a85549572318
4
- data.tar.gz: 4027b30d49168a3cfc35ba6382c8f79f424ec0ae
3
+ metadata.gz: 370f7e4aa6fb27c86df44987bf8d0308f6391185
4
+ data.tar.gz: 9bda388f5269f0b5f48aa5cf527c98933bee7caf
5
5
  SHA512:
6
- metadata.gz: a113b20a8ae806996c3f0b0e0f53f8111a4377fab517330c16ceda1c9f8a25ce7596ffaa4925ecdbf4260d151136b00501a4a22fd952d6bc260e4b3df8fdc133
7
- data.tar.gz: c540babbcc1d09e8912b56900151738e93facb40c627ddf43cdd25e6f536e5177eab6ee37b75f04e4dbcfdbad84278dcc5046f7b88c2ffa91717b65eadfb596d
6
+ metadata.gz: 2872a5984b1bc5f0c74d4ad0fcfb5f4bd211f90459b13f264c2789afb194a9e9501dd179c69f7454f7d0d9a4e92926ff90cb922e7ff5746bc734f457cde2b8f6
7
+ data.tar.gz: f3d6d37b91f818da05b0ae18db2bae1b7961fb778f5cd0adbe576300c0f3e207c545d1a1de1ba2b49285912c2f13de8b17cfec5e7c244ec969d295e823069f9e
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "activemodel", "> 4.1.0"
22
22
  spec.add_dependency "activesupport", "> 4.1.0"
23
- spec.add_development_dependency "bundler", "~> 1.5"
23
+ spec.add_development_dependency "bundler", "~> 1.7"
24
24
  spec.add_development_dependency "coveralls"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec", "~> 3.1.0"
@@ -10,9 +10,9 @@ class PasswordValidator < ActiveModel::EachValidator
10
10
 
11
11
  def valid_format?(value, options)
12
12
  if options[:strict]
13
- value =~ /^(?=^.{6,18}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/
13
+ value =~ /^(?=^.{1,255}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/
14
14
  else
15
- value =~ /^[a-z0-9!@#$%^&*_-]{6,18}$/
15
+ value =~ /^[a-z0-9!@#$%^&*_-]{1,255}$/
16
16
  end
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module FlashValidators
2
- VERSION = "3.0.11"
2
+ VERSION = "3.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.12
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-11-05 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.5'
47
+ version: '1.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.5'
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
- rubygems_version: 2.4.2
232
+ rubygems_version: 2.4.5
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Gem for commonly used model validators.