ruby-freshbooks 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/VERSION +1 -1
- data/lib/freshbooks.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.1
|
data/lib/freshbooks.rb
CHANGED
|
@@ -129,7 +129,7 @@ module FreshBooks
|
|
|
129
129
|
# FreshBooks' API unfortunately redirects to a login search
|
|
130
130
|
# html page if you specify an endpoint that doesn't exist
|
|
131
131
|
# (i.e. typo in subdomain) instead of returning a 404
|
|
132
|
-
def handle_response
|
|
132
|
+
def handle_response(body=nil)
|
|
133
133
|
if loc = last_response['location'] and loc.match /loginSearch\.php$/
|
|
134
134
|
resp = Net::HTTPNotFound.new(1.1, 404, "Not Found")
|
|
135
135
|
resp.instance_variable_set :@read, true
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-freshbooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 13
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Justin Giancola
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2012-05-05 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|