simplificator-withings 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/withings/connection.rb +6 -0
- data/simplificator-withings.gemspec +1 -1
- metadata +3 -3
data/lib/withings/connection.rb
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
# It verifies the response and raises ApiError if a call failed.
|
3
3
|
class Withings::Connection
|
4
4
|
include HTTParty
|
5
|
+
if ENV.has_key?('http_proxy')
|
6
|
+
uri = URI.parse(ENV['http_proxy'])
|
7
|
+
addr = "#{uri.scheme}://#{uri.host}"
|
8
|
+
http_proxy addr, uri.port
|
9
|
+
end
|
10
|
+
|
5
11
|
base_uri 'wbsapi.withings.net'
|
6
12
|
format :json
|
7
13
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator-withings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- pascalbetz
|