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 +4 -4
- data/lib/arkaan/monitoring/gateway.rb +6 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1b485990b9b205c0ec44f7b8ba3139c7d2e013
|
4
|
+
data.tar.gz: 241f47f572cf1684690063588dda394e53290dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: {
|
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
|