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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc1f71859949ac9d78b3bc589d6d04ec70531240
4
- data.tar.gz: 5bbd3d104350d6472cd03da0f18c1d90b6120dea
3
+ metadata.gz: 6f0b1c1245d2440e381f652465e18755d0789f20
4
+ data.tar.gz: 023407634d2c25cb66f94372aad69b3b94ee2c1a
5
5
  SHA512:
6
- metadata.gz: dd5c732af472a97cfdd34d0091fa9eab509d9121d57369b1197cd259e7f1bdb8a02c7fdccf7746cf753819b838a00c8b456d1e856192f1f80fc228ad2b2ce60f
7
- data.tar.gz: 2117ae9707e937dfa06d4ae54b99b8a299dcb6ead0aca9ca14a354e05fd570706b065bb344a5896cf9aad9b1346d2bd7f85bfad8aca33008e8516e6547ad2dd9
6
+ metadata.gz: 2979293b024643ee57fd826be4c7f34b9b4255513a153ae63a5968ae20afb6640e0233cd8a039bbe30f25588d89746b9c0f27f79372ce9cba1dd336b2bb92463
7
+ data.tar.gz: a0ea755c1b4cf881fd8454d5804f7e992c97c8e002a2836b8f6ed85008020edc9b009283b34b3052947d6b2de121323d76f90a1b10e176c56de29fb0f93c3a57
@@ -1,7 +1,7 @@
1
1
  require_relative "scrivener/validations"
2
2
 
3
3
  class Scrivener
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
 
6
6
  include Validations
7
7
 
@@ -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,5}|(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,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)\z/ix
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)
@@ -123,6 +123,9 @@ scope do
123
123
 
124
124
  filter = D.new(url: "http://google.com", email: "me@google.com")
125
125
  assert filter.valid?
126
+
127
+ filter = D.new(url: "http://example.versicherung", email: "me@example.versicherung")
128
+ assert filter.valid?
126
129
  end
127
130
  end
128
131
 
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.3.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: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cutest