openbd_api 0.4.1 → 0.4.2

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: 1726c31d6381392419606cf6d2b7733b68241885
4
- data.tar.gz: 62687183b81f62b70ade89767cc1ae0db07c7c5d
3
+ metadata.gz: 8182cc57fa934856a6925c238a474a95f60be94b
4
+ data.tar.gz: 843d55ada33dc9e7cf066ea86074f47027928ae9
5
5
  SHA512:
6
- metadata.gz: 5225f880cc4ccb13f8292ca11ae0eff3b5217ee77cf37810cde42d183282549469f92c7c3f43440cdead17a593e58b85583d155bed2ed0b05fbaaf226859f876
7
- data.tar.gz: 310cc9a94cea554b320304a18bf6fcca920cd79393b293395094a712c1e5724aeb3334aa044002c5beba89b1acae92a32c0f96a125db2125844ff6270ef3ad05
6
+ metadata.gz: d3371a9253701278c58a0a1674aab44d70a869bbaed980d4dc75bfb3281c8b441cf9008701b8b74f86fe664dc964f31acdc477c3f8d88c108a939dd66fdfd23e
7
+ data.tar.gz: 4512dd10a23df80c46f7ad26a77a7ae1313fccaa0a4c2ecebb890351b71c849cc5e35ef5bfff0e56f7a51cf5cea7d7a8da1ec385238966cdb179fb6192574334
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.2
2
+
3
+ - add specs of OpenBD::Client#normalize_isbns
4
+ - make Client#normalize_isbns return String of Numbers (and `,` if needed)
5
+
1
6
  ## 0.4.1
2
7
 
3
8
  - fix require
data/lib/openbd/client.rb CHANGED
@@ -61,13 +61,9 @@ module OpenBD
61
61
  when String
62
62
  isbns
63
63
  when Numeric
64
- isbns
64
+ isbns.to_s
65
65
  when Array
66
- params = ""
67
- isbns.each do |isbn|
68
- params << "#{isbn}, "
69
- end
70
- params.strip!.gsub(/,$/,'')
66
+ isbns.join(",")
71
67
  end
72
68
  end
73
69
  end
@@ -1,3 +1,3 @@
1
1
  module OpenBD
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.1
4
+ version: 0.4.2
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-12 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler