citysdk 1.0.8 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/citysdk.rb +1 -1
- data/lib/citysdk/importer.rb +2 -2
- 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: f43e583a3607bc8acd924dbcc95a333733431f5e
|
4
|
+
data.tar.gz: 14ea5fcb4e29440eb380785ec99d882e14cb99b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7aabc2ca15af2c29822f3b0f82d5052f58e9a30fea939acc88cd9cd9b8a800091854b1c254e32ee9c3e2919c86b094336b632f461cc42daae3ac46faf87e62b
|
7
|
+
data.tar.gz: b73bcd3c7ace0c28ed8d905a1441ef0169e907a70a740a0c8601632cd35553143befd4eb688f3e58ceacb696614dc48501133346c4a63d26b8dc70b54190f6ab
|
data/lib/citysdk.rb
CHANGED
data/lib/citysdk/importer.rb
CHANGED
@@ -12,7 +12,7 @@ module CitySDK
|
|
12
12
|
raise Exception.new("Missing :file_path in Importer parameters.") if @params[:file_path].nil?
|
13
13
|
|
14
14
|
@api = CitySDK::API.new(@params[:host])
|
15
|
-
if @params[:
|
15
|
+
if @params[:name]
|
16
16
|
raise Exception.new("Missing :password in Importer parameters.") if @params[:password].nil?
|
17
17
|
raise Exception.new("Failure to authenticate '#{@params[:name]}' with api.") if not @api.authenticate(@params[:name],@params[:password])
|
18
18
|
@api.release
|
@@ -43,7 +43,7 @@ module CitySDK
|
|
43
43
|
sign_out if @signed_in
|
44
44
|
@api.set_host(@params[:host])
|
45
45
|
@api.set_layer(@params[:layer])
|
46
|
-
@api.authenticate(@params[:
|
46
|
+
@api.authenticate(@params[:name],@params[:password])
|
47
47
|
@signed_in = true
|
48
48
|
rescue => e
|
49
49
|
@api.release
|