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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d030df759978c463fe5a49e2dd3f190a20895fd1
4
- data.tar.gz: f11f661c5bb898a902c94585255ab039f12bd16a
3
+ metadata.gz: a61f514648e5b2ec805eb7ad8625527dc5975561
4
+ data.tar.gz: d6bbd438c14042c2722c18e86d00273b5f0a1c3c
5
5
  SHA512:
6
- metadata.gz: 398edc351767c54cc13e26a946a13e5a7fef5b2827816f63251a73e0c7c0c7ec12f7cc60f2e596a351e83e187e659bd775b9b48da4c70122d6ea6500558e7900
7
- data.tar.gz: 7121ab926ab706525e07fc4bcc1d8d4831f6b348207203f06b5d109af1f820085176566c29de001d8b5a9832bcc2a981e1ee0e9f213543d58f7470e28c6649ae
6
+ metadata.gz: 66b7f1e8d0ba532e6b4cab9318801db7b956351d5c43c75589b809d98d4c20f8cf0d19fc663f58871e563d7a69a8b65000ee29edb6db210737b6dacd035f4209
7
+ data.tar.gz: 61e0afa666ff2fc6cd66598fd815fc67f1fe70904cfb9872df925972d4a84c1507ff7cb2642432286c1e5974294fa36c233f3de0b51ca2cd357eba60a35982fc
@@ -25,9 +25,9 @@ module Bookboon
25
25
  end
26
26
 
27
27
  def download_book(id, handle)
28
- request = post("books/#{id}/download", body: { handle: handle })
28
+ post("books/#{id}/download", body: { handle: handle })
29
29
 
30
- request.headers['location']
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 = {})
@@ -1,3 +1,3 @@
1
1
  module Bookboon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookboon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Paagman