bookboon 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bookboon/client.rb +5 -3
- data/lib/bookboon/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: a61f514648e5b2ec805eb7ad8625527dc5975561
|
4
|
+
data.tar.gz: d6bbd438c14042c2722c18e86d00273b5f0a1c3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66b7f1e8d0ba532e6b4cab9318801db7b956351d5c43c75589b809d98d4c20f8cf0d19fc663f58871e563d7a69a8b65000ee29edb6db210737b6dacd035f4209
|
7
|
+
data.tar.gz: 61e0afa666ff2fc6cd66598fd815fc67f1fe70904cfb9872df925972d4a84c1507ff7cb2642432286c1e5974294fa36c233f3de0b51ca2cd357eba60a35982fc
|
data/lib/bookboon/client.rb
CHANGED
@@ -25,9 +25,9 @@ module Bookboon
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def download_book(id, handle)
|
28
|
-
|
28
|
+
post("books/#{id}/download", body: { handle: handle })
|
29
29
|
|
30
|
-
|
30
|
+
@last_request.headers['location']
|
31
31
|
end
|
32
32
|
|
33
33
|
# TODO: Implement /questions
|
@@ -51,7 +51,9 @@ module Bookboon
|
|
51
51
|
follow_redirects: false,
|
52
52
|
}.merge(options)
|
53
53
|
|
54
|
-
HTTParty.send(method, uri, options)
|
54
|
+
@last_request = HTTParty.send(method, uri, options)
|
55
|
+
|
56
|
+
@last_request.parsed_response
|
55
57
|
end
|
56
58
|
|
57
59
|
def get(path, options = {})
|
data/lib/bookboon/version.rb
CHANGED