sncf 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sncf/api_client.rb +2 -2
- data/lib/sncf/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: a026f1bfe24c4ced4665a384074384d182d5517f
|
4
|
+
data.tar.gz: c7aa7f84fe05f301775fffdc25e0a9d72cdb9781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd58abdb81144af7542fbb382897b533efb87c6b521f22e3a03240947e4387fd1544b6fcfe138463f7a4a77139c6b887761974f268904c6fb90183eaa170ff1
|
7
|
+
data.tar.gz: f1be502d88ca5583b585ee9dff93899e895d858a96a3199cc76da123cf68d383b89d1b69f84f142ac79bf63ca296e0f9e80265f7f2d4cfa940c867e73a35e7d7
|
data/lib/sncf/api_client.rb
CHANGED
@@ -55,10 +55,10 @@ module Sncf
|
|
55
55
|
protected
|
56
56
|
|
57
57
|
def construct_formated_url(path, additional_params)
|
58
|
-
if additional_params.nil?
|
58
|
+
if additional_params.nil? || additional_params.empty?
|
59
59
|
"#{BASE_URL}/#{VERSION_PATH}/#{path}"
|
60
60
|
else
|
61
|
-
"#{BASE_URL}/#{VERSION_PATH}/#{path}?#{
|
61
|
+
"#{BASE_URL}/#{VERSION_PATH}/#{path}?#{additional_params.map{|k,v| "#{k}=#{v}"}.join('&')}"
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
data/lib/sncf/version.rb
CHANGED