lostinpatterns-dailymile-client 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dailymile-client}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["lostinpatterns"]
@@ -91,8 +91,7 @@ module Dailymile
91
91
  when Net::HTTPNotFound: raise NotFound
92
92
  when Net::HTTPUnauthorized: raise Unauthorized
93
93
  when Net::HTTPBadGateway: raise Unavailable
94
- when Net::HTTPCreated
95
- return JSON.parse(response.body), response['Location']
94
+ when Net::HTTPCreated: JSON.parse(response.body)
96
95
  when Net::HTTPServiceUnavailable
97
96
  if response['Retry-After']
98
97
  raise RateLimitExceeded
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lostinpatterns-dailymile-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lostinpatterns