rakuten_web_service 1.1.0 → 1.1.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: b7f33b3d1527b11476b4da96985d7be2806a46af
4
- data.tar.gz: a1968049850a302e5f66f6e3dc53233be5565287
3
+ metadata.gz: 7e2855adb7ca963009ff82d05b90aeddd2935155
4
+ data.tar.gz: e21538cc0291246f23e5c034becaae09ed77d843
5
5
  SHA512:
6
- metadata.gz: 0695e2c151da45d995de251b2db22af6ed087d90f3c65345c768214107e5bcf7a58cb33bb5a3a609ac88a6857d14dbff913fe71d3b5742910db1f25835010ba9
7
- data.tar.gz: 60612ca32c7f9b5cdac8133869d4a38674cf78f2af5c6e04d75932675ef08fad92e9e65eb25a45f74a7fee1027c9585cf2b9f1dd947f59164290406db93fdddf
6
+ metadata.gz: d7d85a610f4cbfc9dcb823912b3c99fccd2cb0495d665d0ea504a658b27b91018dd0de9768c0d21e2ca88367d8e1cd956f92c4f484916abff365c0f6ef606bac
7
+ data.tar.gz: 15d281c03306b0dd15a85627870c727505b34547197fc19648032bfda68af3229fded98b5dc43bb97a3f20f82efecebb271589b2d4d3456d21b8222620c41e64
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.1.1 (2016/09/12)
2
+
3
+ ## Bug Fix
4
+
5
+ * Fixed `RakutenWebService::Ichiba::Genre#ranking` ignores given options to be passed to Ichiba Ranking API. [#43](https://github.com/rakuten-ws/rws-ruby-sdk/pull/43)
6
+
1
7
  # v1.1.0 (2016/09/12)
2
8
 
3
9
  ## Enhancements
@@ -1,6 +1,4 @@
1
- # encoding: utf-8
2
- #
3
- # This is a sample script f Rakuten Books APIs.
1
+ # This is a sample script of Rakuten Books APIs.
4
2
  # RWS Ruby SDK supports Books API. The inteface is similar to ones Ichiba API.
5
3
  # If you want to search CDs dealt in Rakuten Books, you can do it with `RakutenWebService::Books::CD`.
6
4
  # As for other resources, there are `RakutenWebService::Books::Book`, `RakutenWebService::Books::DVD` and so on.
@@ -1,6 +1,4 @@
1
- # encoding: utf-8
2
- #
3
- # This is a sample script f Rakuten Gora APIs.
1
+ # This is a sample script of Rakuten Gora APIs.
4
2
  # RWS Ruby SDK supports Gora API. The inteface is similar to ones Ichiba API.
5
3
  # If you want to search courses dealt in Rakuten Gora, you can do it with `RakutenWebService::Gora::Course`.
6
4
  # As for other resources, there are `RakutenWebService::Gora::CourseDetail`, `RakutenWebService::Gora::Plan` and so on.
@@ -34,7 +34,7 @@ module RakutenWebService
34
34
 
35
35
  class Rating < Resource
36
36
  class << self
37
- def search(options)
37
+ def search(_options)
38
38
  raise 'There is no API endpoint for this resource.'
39
39
  end
40
40
  end
@@ -44,7 +44,7 @@ module RakutenWebService
44
44
 
45
45
  class Plan < Resource
46
46
  class << self
47
- def search(options)
47
+ def search(_options)
48
48
  raise 'There is no API endpoint for this resource.'
49
49
  end
50
50
  end
@@ -19,7 +19,7 @@ module RakutenWebService
19
19
 
20
20
  class PlanInfo < Resource
21
21
  class << self
22
- def search(options)
22
+ def search(_options)
23
23
  raise 'There is no API endpoint for this resource.'
24
24
  end
25
25
  end
@@ -35,7 +35,7 @@ module RakutenWebService
35
35
 
36
36
  class CallInfo < Resource
37
37
  class << self
38
- def search(options)
38
+ def search(_options)
39
39
  raise 'There is no API endpoint for this resource.'
40
40
  end
41
41
  end
@@ -12,7 +12,8 @@ module RakutenWebService
12
12
  root_id 0
13
13
 
14
14
  def ranking(options={})
15
- RakutenWebService::Ichiba::RankingItem.search(:genre_id => self.id)
15
+ options = options.merge(genre_id: self.id)
16
+ RakutenWebService::Ichiba::RankingItem.search(options)
16
17
  end
17
18
 
18
19
  def products(options={})
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'rakuten_web_service/resource'
4
2
 
5
3
  module RakutenWebService
@@ -1,3 +1,3 @@
1
1
  module RakutenWebService
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe RakutenWebService::Gora::CourseDetail do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe RakutenWebService::Gora::Course do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe RakutenWebService::Gora::Plan do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe RakutenWebService::Ichiba::Genre do
@@ -155,6 +153,10 @@ describe RakutenWebService::Ichiba::Genre do
155
153
  expect(RakutenWebService::Ichiba::RankingItem).to receive(:search).with(:genre_id => genre_id)
156
154
  expect { genre.ranking }.to_not raise_error
157
155
  end
156
+ specify "should call RankingItem's search with genre_id and given options" do
157
+ expect(RakutenWebService::Ichiba::RankingItem).to receive(:search).with(genre_id: genre_id, age: 10)
158
+ expect { genre.ranking(age: 10) }.to_not raise_error
159
+ end
158
160
  end
159
161
 
160
162
  describe '#products' do
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+
2
2
 
3
3
  require 'spec_helper'
4
4
 
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'spec_helper'
3
2
 
4
3
  describe RakutenWebService::Ichiba::Product do
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe RakutenWebService::Kobo::Ebook do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakuten_web_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Sato