peddler 0.5.0 → 0.5.1

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: cfc50fce63ad3d1352ca442c1d29dcabb2f5ba5d
4
- data.tar.gz: 72703e47d8dd0f04c1c96d5c754c3d8217183599
3
+ metadata.gz: 7efc77a8bbc9b394ac19d5214bd358033226d474
4
+ data.tar.gz: a5e7eba38cd7a658763f98fa899b14cdd29512d1
5
5
  SHA512:
6
- metadata.gz: 6d48814cee3986c8d9168bdf1a60ca128a5c1edcd81207c611b31286f1539343628ca0f99a94b29fd334491893f3016c9936595fe085dee781ad39cb27352a69
7
- data.tar.gz: c8bee181bbb23d6906e15206a845535e09f1c99b7aab3954d63dcb4ddcffd35da712e8f5b2055f7613122f7a5faf2fce5bcc1f36d41547a7e40479adb7c1e5da
6
+ metadata.gz: 46e6ad36a5f45702c025e6423001349cac2ab1e87e9da81a31b66c62251c4243ff075a5e3164b8f06b72b31b7ab4fbd527a5fdda20fb69d0de693001ca5cbb4f
7
+ data.tar.gz: 1426f40ddb4146be0b5b8bca2895b301dcdc23b2b0147e09005c8f89f01297d7606c29794f06922f77f6b7b6003882036027cd25a5dbafbab11f1d632c5ab4c6
@@ -51,9 +51,9 @@ module Peddler
51
51
  path ? @path = path : @path
52
52
  end
53
53
 
54
- # So that subclasses can continue adding their params.
55
54
  def self.inherited(base)
56
55
  base.params(params)
56
+ base.path(path)
57
57
  end
58
58
 
59
59
  params('SellerId' => -> { seller_id })
@@ -1,3 +1,3 @@
1
1
  module Peddler
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
data/test/service_test.rb CHANGED
@@ -18,4 +18,13 @@ class ServiceTest < MiniTest::Test
18
18
  def test_gets_marketplace_ids
19
19
  refute_equal @service.marketplace_id('US'), @service.marketplace_id('GB')
20
20
  end
21
+
22
+ def test_inherits_parent_params
23
+ assert_equal Peddler::Service.params, @klass.params
24
+ end
25
+
26
+ def test_inherits_parent_path
27
+ @klass.path 'foo'
28
+ assert_equal @klass.path, Class.new(@klass).path
29
+ end
21
30
  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.0
4
+ version: 0.5.1
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-09 00:00:00.000000000 Z
11
+ date: 2013-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeff