peddler 0.7.8 → 0.7.9

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: 508010a025e8f0b31b8523fc198fe05700abd63d
4
- data.tar.gz: 50227687d80748d2422dee41098cd9df3782453d
3
+ metadata.gz: 5fa0b5d3d2a19f2c2466f3b81f8b3af63c30efe9
4
+ data.tar.gz: f934d8b778d1c56c5c7533f9c5d59ebf0cf06550
5
5
  SHA512:
6
- metadata.gz: 496e5f45b131896ebcaad5103a1e9b8aeb646d3ab15b40a51934c646e0de4a1e2501dd6470e4a77f77da2b769a624013e93317b8fe0978a2e8e7d3a0f12d9f5f
7
- data.tar.gz: 0481a58827cda1756c543a5ed870eb7ec72c0ae5f361cf4a9c2aa901bbd71ac15c646da0f0b2dc8f0d6b06d3f0bac7db513389f07d449aa3bcbd13074899f9e0
6
+ metadata.gz: a6ca2e943bc525e08b7e8195bdd12e5b65075dbb30bad789328e8a92fc18d59f0df035538459a091b7069a9da5e9ecb27ccdc8d910208c7ab4b26405dcdad427
7
+ data.tar.gz: e3f5068c70c530a2f198cdfbe571ccb7c6b119125aed38b9b132f78da568891cb2ee1bfa5867254640a0747d831b9c50438cda2132d67f51d8a221d26d73388a
data/README.md CHANGED
@@ -12,7 +12,7 @@ To use Amazon MWS, you must have an eligible seller account.
12
12
 
13
13
  ## Configuration
14
14
 
15
- Require the library and instantiate a client.
15
+ Require the library and instantiate a client:
16
16
 
17
17
  ```ruby
18
18
  require 'peddler'
@@ -28,8 +28,9 @@ client = MWS.orders(
28
28
  aws_access_key_id: 'AKIVICHZMZ2JRSSLC27W',
29
29
  aws_secret_access_key: 'rOMa3ydPBTJ3AD0bxERTOX0Fv0fAC6Q0s6/czMZO'
30
30
  )
31
+ ```
31
32
 
32
- Or you can set them via `Client#configure`.
33
+ Or you can set them via `Client#configure`:
33
34
 
34
35
  ```ruby
35
36
  client.configure do |c|
@@ -40,7 +41,7 @@ client.configure do |c|
40
41
  end
41
42
  ```
42
43
 
43
- Or you may use environment variables if you have only a single set of credentials:
44
+ Alternatively, use environment variables if you only have a single set of credentials:
44
45
 
45
46
  ```sh
46
47
  export MWS_MARKETPLACE_ID="A1F83G8C2ARO7P"
data/lib/mws.rb CHANGED
@@ -19,7 +19,7 @@ module MWS
19
19
 
20
20
  MWS.constants.each do |klass|
21
21
  method_name = klass.to_s.gsub(/(.)([A-Z])/,'\1_\2').downcase
22
- def_delegator klass, :new, method_name
22
+ def_delegator MWS.const_get(klass), :new, method_name
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.7.8'
2
+ VERSION = '0.7.9'
3
3
  end
@@ -4,5 +4,6 @@ require 'mws'
4
4
  class MWSTest < MiniTest::Test
5
5
  def test_delegates_to_apis
6
6
  assert_equal MWS.methods(false).size, MWS.constants.size
7
+ assert_kind_of MWS::Products, MWS.products
7
8
  end
8
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peddler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff