arkaan 1.4.6 → 1.4.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: 8546c94e07115e007d7c368db6da9f081aee634a
4
- data.tar.gz: a4f8b99c7382a699b17d20fb55342bba860f35a4
3
+ metadata.gz: cf1b485990b9b205c0ec44f7b8ba3139c7d2e013
4
+ data.tar.gz: 241f47f572cf1684690063588dda394e53290dba
5
5
  SHA512:
6
- metadata.gz: 28433874305868fe8e08cd2c934423f760194b28b97405a80e81fcb4007de7f97bfd9311abb0e6ca0c95219debce45bace6c0df8d3e91294cd7fe5f637ad6aa3
7
- data.tar.gz: da02fb4e14c348496aabf5242a38f30410cbd7c9699c9ceedfa59880f707788f2f166b9a0573fba4d8889d78e7d00512045da20a2e1f03480c04f9e9a89dd367
6
+ metadata.gz: 74769ac2754786ff14dda033668f4c74a94e986160b689a1336b1213a550fe76a4b0a0f0162ca8589421dcc32d6c67aa13db02857fec491179ad9408f920b926
7
+ data.tar.gz: da2aac145bb6b69bdbf3eb9d3289ef8f7376a496a25c465a417cd95dc15ac71c0495c2a13b52affac6ad33590ab564c33536f5060c5e53029442aabf4b003ad8
@@ -23,14 +23,15 @@ module Arkaan
23
23
 
24
24
  validates :url,
25
25
  presence: {message: 'required'},
26
- format: {with: /\A(https?:\/\/)((localhost:[0-9]+)|(([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*))\/?\z/, message: 'pattern', if: :url?}
26
+ format: {
27
+ with: /\A(https?:\/\/)((localhost:[0-9]+)|(([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*)|(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b):([0-9]{2,6}))\/?\z/,
28
+ message: 'pattern',
29
+ if: :url?
30
+ }
27
31
 
28
32
  validates :token,
29
33
  presence: {message: 'required'},
30
34
  uniqueness: {message: 'uniq'}
31
35
  end
32
36
  end
33
- end
34
-
35
-
36
-
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois