scrivener 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scrivener.rb +1 -1
- data/lib/scrivener/validations.rb +2 -2
- data/test/scrivener_test.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f0b1c1245d2440e381f652465e18755d0789f20
|
4
|
+
data.tar.gz: 023407634d2c25cb66f94372aad69b3b94ee2c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2979293b024643ee57fd826be4c7f34b9b4255513a153ae63a5968ae20afb6640e0233cd8a039bbe30f25588d89746b9c0f27f79372ce9cba1dd336b2bb92463
|
7
|
+
data.tar.gz: a0ea755c1b4cf881fd8454d5804f7e992c97c8e002a2836b8f6ed85008020edc9b009283b34b3052947d6b2de121323d76f90a1b10e176c56de29fb0f93c3a57
|
data/lib/scrivener.rb
CHANGED
@@ -121,7 +121,7 @@ class Scrivener
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
-
URL = /\A(http|https):\/\/([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,
|
124
|
+
URL = /\A(http|https):\/\/([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,12}|(2
|
125
125
|
5[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}
|
126
126
|
|localhost)(:[0-9]{1,5})?(\/.*)?\z/ix
|
127
127
|
|
@@ -134,7 +134,7 @@ class Scrivener
|
|
134
134
|
EMAIL = /\A([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*
|
135
135
|
[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@
|
136
136
|
((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+
|
137
|
-
[a-z]{2,
|
137
|
+
[a-z]{2,12})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)\z/ix
|
138
138
|
|
139
139
|
def assert_email(att, error = [att, :not_email])
|
140
140
|
if assert_present(att, error)
|
data/test/scrivener_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivener
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Martens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cutest
|