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.
@@ -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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{simplificator-withings}
5
- s.version = "0.3.1"
5
+ s.version = "0.3.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["pascalbetz"]
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - pascalbetz