peddler 0.5.1 → 0.5.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: 7efc77a8bbc9b394ac19d5214bd358033226d474
4
- data.tar.gz: a5e7eba38cd7a658763f98fa899b14cdd29512d1
3
+ metadata.gz: 8eab9ea2ffe4819ccf447638b19f94457c17da9b
4
+ data.tar.gz: 2202040469d890aabbee8939c7e052e9648e4454
5
5
  SHA512:
6
- metadata.gz: 46e6ad36a5f45702c025e6423001349cac2ab1e87e9da81a31b66c62251c4243ff075a5e3164b8f06b72b31b7ab4fbd527a5fdda20fb69d0de693001ca5cbb4f
7
- data.tar.gz: 1426f40ddb4146be0b5b8bca2895b301dcdc23b2b0147e09005c8f89f01297d7606c29794f06922f77f6b7b6003882036027cd25a5dbafbab11f1d632c5ab4c6
6
+ metadata.gz: 275e117651cd8307acf39c6aeeaa6a93556db6ce2d672c5d83ab0604c47fb7a9573e44f403d7a11a41dcbf72b2b58959c08c872f8e7740e96c04244a3169a771
7
+ data.tar.gz: ca56fa83ebab5e757d5ef1f0eba71e790b527f7076ea624e543530f372bb388f52922e54a605e7bc720b26b38615d5952ad7a74cc5239aa9d1b3e8c68e429aed
@@ -13,7 +13,7 @@ module Peddler
13
13
  # seller_id - The String MWS merchant id.
14
14
  #
15
15
  # These arguments are optional and can be set individually later.
16
- Service = Struct.new(:country, :aws_access_key_id, :aws_secret_access_key, :seller_id) do
16
+ class Service < Struct.new(:country, :aws_access_key_id, :aws_secret_access_key, :seller_id)
17
17
  include Jeff
18
18
 
19
19
  # A list of MWS hosts.
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
data/test/service_test.rb CHANGED
@@ -27,4 +27,8 @@ class ServiceTest < MiniTest::Test
27
27
  @klass.path 'foo'
28
28
  assert_equal @klass.path, Class.new(@klass).path
29
29
  end
30
+
31
+ def test_defines_constants_on_service
32
+ refute_nil @klass.const_get(:HOSTS)
33
+ end
30
34
  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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-11 00:00:00.000000000 Z
11
+ date: 2013-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.5
89
+ rubygems_version: 2.0.3
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Wraps the Amazon Marketplace Web Service API