openbd_api 0.4.4 → 0.4.5

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: a34d1689d167324f8ef010578c77eeb4c9a8c186
4
- data.tar.gz: 167968f2ddd1d110a1ba56b1dd0349855a6094c4
3
+ metadata.gz: 8932f3736a646c9a4b81cd5a80a3e2f54c947476
4
+ data.tar.gz: d91f0999f0e52f2b42c0a85cd05d9c2b05cfe385
5
5
  SHA512:
6
- metadata.gz: 7d26b123a51ca26df09b6a3f0622a5591de7c60e0b184aff7478e20a2880544b7e2b0616e316eb9c135eb2821349ca2df18a0d64570c3b7228308dbb2accf8d1
7
- data.tar.gz: 2280c86446436eb5a144a2c1ab246c91c3abea56adc706b589f6c304719666d8e7d501eda69e37a662bedabade2696e99762138daa9f0723d92a1a08604b7b9a
6
+ metadata.gz: 6c9dee1a194b460ad796c66719e95fa3f07325becdab830f3ed2706c9ceb5109b6bf9eb09ea3ed9b4e9c2445bac475d829b30b6a4f40153a10aaa5d1e81dc1e0
7
+ data.tar.gz: b517a04a0faa9af9ab6098eee21b6830678dbb4f8e85faacc0ae26adff3ee5ed893d41d1ab1839ce4270483fa093cdddb4167fdf6d923dbe9bc63e98d92dd72d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.4.5
2
+
3
+ - normalize_isbns() should be used only once
4
+ - add a spec of bulk_get with multiple isbns
5
+ - add OpenBD::Responses::Coverage#size
6
+
1
7
  ## 0.4.4
2
8
 
3
9
  - OpenBD::Client.new: enable to define adapter and respnose parser
data/lib/openbd/client.rb CHANGED
@@ -57,7 +57,7 @@ module OpenBD
57
57
  def post_request(method:, params:, response_class:)
58
58
  faraday_response = connection.post do |req|
59
59
  req.url method
60
- req.body = "isbn=#{normalize_isbns(params[:isbn])}"
60
+ req.body = "isbn=#{params[:isbn]}"
61
61
  end
62
62
  response_class.new(faraday_response)
63
63
  end
@@ -6,6 +6,10 @@ module OpenBD
6
6
  def each(&block)
7
7
  body.each(&block)
8
8
  end
9
+
10
+ def size
11
+ body.size
12
+ end
9
13
  end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module OpenBD
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openbd_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nasum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler