domoscio_rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domoscio_rails.rb +6 -6
- data/lib/domoscio_rails/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: 58a4eecf3af57713d58a9f407e00c2befe8f6c3b
|
4
|
+
data.tar.gz: 2fa98be7897b89bdfe74b60cc866240dbfb8272a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 874bd6381924961ae34e2e6da165f253f60f20041467abde6700e4e2394bb65ae54923dd55a902ff8b8c2edc9cecbb64ed221f91102239bb0ec73eb9ffc4720b
|
7
|
+
data.tar.gz: fdec1c01a39bc8e62f381c29285e73b35177ee17c1e98c22f250933b9b4f5e4ac3183397df4c44abdebb9a86bb9b34e35387c437da379fab4c23a2cabe4bc4f3
|
data/lib/domoscio_rails.rb
CHANGED
@@ -33,7 +33,7 @@ module DomoscioRails
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def root_url
|
36
|
-
@root_url || (@preproduction == true ? "http://stats-engine-api
|
36
|
+
@root_url || (@preproduction == true ? "http://domoscio-stats-engine-api.herokuapp.com/" : "")
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -125,11 +125,11 @@ module DomoscioRails
|
|
125
125
|
'Authorization' => "Token token=#{DomoscioRails.configuration.client_passphrase}",#"#{auth_token['token_type']} #{auth_token['access_token']}",
|
126
126
|
'Content-Type' => 'application/json'
|
127
127
|
}
|
128
|
-
begin
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
128
|
+
# begin
|
129
|
+
# headers.update('x_mangopay_client_user_agent' => DomoscioRails::JSON.dump(user_agent))
|
130
|
+
# rescue => e
|
131
|
+
# headers.update('x_mangopay_client_raw_user_agent' => user_agent.inspect, error: "#{e} (#{e.class})")
|
132
|
+
# end
|
133
133
|
end
|
134
134
|
|
135
135
|
|