ruby_isds 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_isds/configuration.rb +10 -8
- data/lib/ruby_isds/version.rb +1 -1
- 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: fa7597e33a245e5330faf49246ae950f892d5178
|
4
|
+
data.tar.gz: 7a882f6993787dc5a423d3b0652f5acf93e885d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d1df67407e6d04e49321ee53480e0879cf68f91aae49af3c84cb7897d1893494a230590df00b3964026acedca8d87afc4b1cfe6f4d90e6520a8582831cd9e1
|
7
|
+
data.tar.gz: 29d66d6a90474498084f5f3380919cba3a584dfdf470d82cecff2619017834e2a5fcc31bda8d3336ff6edb0e51c9caca46a86fb00a7c0f7571821b4361695a2e
|
@@ -2,6 +2,8 @@ module RubyIsds
|
|
2
2
|
class Configuration
|
3
3
|
attr_writer :data_box, :username, :password, :env, :api_url
|
4
4
|
|
5
|
+
ALLOWED_PRODUCTION_SYNTAX = [:production, 'production'].freeze
|
6
|
+
|
5
7
|
def initialize
|
6
8
|
@username = nil
|
7
9
|
@password = nil
|
@@ -35,17 +37,17 @@ module RubyIsds
|
|
35
37
|
end
|
36
38
|
|
37
39
|
def api_domain
|
38
|
-
|
39
|
-
|
40
|
-
else 'https://ws1.czebox.cz'
|
41
|
-
end
|
40
|
+
return 'https://ws1.mojedatovaschranka.cz' if production?
|
41
|
+
'https://ws1.czebox.cz'
|
42
42
|
end
|
43
43
|
|
44
44
|
def xml_url
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
return 'mojedatovaschranka.cz' if production?
|
46
|
+
'czechpoint.cz'
|
47
|
+
end
|
48
|
+
|
49
|
+
def production?
|
50
|
+
ALLOWED_PRODUCTION_SYNTAX.include?(@env)
|
49
51
|
end
|
50
52
|
end
|
51
53
|
end
|
data/lib/ruby_isds/version.rb
CHANGED