cantook 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f2fcc88549b583a38aafb51c0b03047928c1bb7
4
- data.tar.gz: 9be02f0ae31395d99bd6977e63d4034f4571f8f7
3
+ metadata.gz: b84442f57dfc8042222ad125fcdc7690385f6937
4
+ data.tar.gz: b5b33e1abc76c92ecb5602b84cfdd97e31fa6536
5
5
  SHA512:
6
- metadata.gz: 35c92813573e7e5e87401f296aa7df5009d7af837ddc1f8e114bbe7651dc5beaf81d16c3a6fb1601c1533d5d91072b48d0f28e692eb7f57c4fb92e935e153c97
7
- data.tar.gz: 612c2083689e5a0fae64431c0beba5667c387015e8ac610b21acf7c1fc2566806f376b4c998f06bd70c71f265c490eafd6c6916ebceca1285cd9937a764ef21b
6
+ metadata.gz: 21fc8493504bf569fc6778d82f5a773b56bba7e9d7ee6a92a3f4d11fbd7d4e27d9ec7f2466632c74ec194682b2c77409460b30a211f0db3fc381460c29074e77
7
+ data.tar.gz: 16b89886400d77d1274527eb6d0b658036fe7926118aa1a4f3b3a8d9d2d02bf4277abfc30fecb5a4b9f8b13decd492c8eaa94c9d2295169b6f6c1a13f7a34bda
data/lib/cantook/base.rb CHANGED
@@ -24,7 +24,8 @@ module Cantook
24
24
  :response,
25
25
  :query,
26
26
  :sale_state,
27
- :currency
27
+ :currency,
28
+ :country
28
29
 
29
30
  # @param [Hash] params
30
31
  # @option params [String] :username - your Cantook API username
@@ -44,13 +45,14 @@ module Cantook
44
45
  @format = params[:format]
45
46
  @sale_state = params[:sale_state]
46
47
  @currency = params[:isbn]
48
+ @country = params[:country]
47
49
  @base_url = "https://#{platform}/api/organisations/#{organisation_id}"
48
50
  @auth = { username: username, password: password }
49
51
  end
50
52
 
51
53
  # @return [Hash] A basic hash of options common to all Cantook requests
52
54
  def base_options
53
- { format: format, isbn: isbn, sale_state: sale_state, currency: currency }
55
+ { format: format, isbn: isbn, sale_state: sale_state, currency: currency, country: country }
54
56
  end
55
57
  private :base_options
56
58
 
@@ -1,3 +1,3 @@
1
1
  module Cantook
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cantook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gordon B. Isnor