active_validation 4.0.6 → 4.0.7

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: a7d8a4c60d44f74ace63f5416af7c92ceca82844
4
- data.tar.gz: de8ff337595b71667495cd067072ccaa0ca9d0ac
3
+ metadata.gz: cf5d7cfd16997801ca5314f452ebbcdb992ba1d6
4
+ data.tar.gz: f0bbff632e92b1c6ef313e3785175e5e2a0f53fb
5
5
  SHA512:
6
- metadata.gz: f10b556bdadc2f3df830a85e5e0cd7aca7939ff0b32575f314fc22c6ffc049fae0b0317e159735f2b9ad3f4b341a4f7fcb588d84ece4de468598b5a4b52b7e76
7
- data.tar.gz: 446a216633b65e6ce31a49d124d9a1b5b59e801263cb3d60eb53002edf9ab97d440934a87ac3fcd2930fb94330996d3c53ea61d6cb6fb8f328a75e7a2ef59034
6
+ metadata.gz: 48412ba763a404a27910b0e9abd99f585e6c8544ff18449591de9d140be175c640e962917dcfd9a98d3eea53fe08717529a9b2d04c8c33e07a61a09898b177dc
7
+ data.tar.gz: e6ba5c02b49b78301b61e8d9f9ac022df5933ddc4b767abad3cf9f03960c10427edf714b42f7be43ebadae63f895cf7f7cce88f205055a60310548f233f62e04
data/README.md CHANGED
@@ -854,7 +854,7 @@ end
854
854
  **Ex:** slug1234 or slug-1234
855
855
 
856
856
  **Rules:**
857
- * Characters: a-z 0-9 -
857
+ * Characters: A-Z a-z 0-9 -_
858
858
 
859
859
  With an ActiveRecord model:
860
860
 
@@ -9,7 +9,7 @@ class SlugValidator < ActiveModel::EachValidator
9
9
  private
10
10
 
11
11
  def valid_format?(value)
12
- value =~ /^[a-z0-9_-]+$/
12
+ value =~ /^[A-Za-z0-9_-]+$/
13
13
  end
14
14
 
15
15
  def valid_length?(value)
@@ -1,3 +1,3 @@
1
1
  module ActiveValidation
2
- VERSION = '4.0.6'.freeze
2
+ VERSION = '4.0.7'.freeze
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: 4.0.6
4
+ version: 4.0.7
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-10-22 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 2.6.7
230
+ rubygems_version: 2.6.8
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Gem for commonly used validators.