Skip to content

Commit

Permalink
set send_request to use default options
Browse files Browse the repository at this point in the history
git-svn-id: http://amazon-ecs.rubyforge.org/svn/trunk@16 044527e3-20b6-42a0-b3ef-db3f39438df5
  • Loading branch information
jugend committed Sep 12, 2007
1 parent 8612677 commit 75c2be0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.5.3 2007-09-12
----------------
* send_request to use default options.

0.5.2 2007-09-08
----------------
* Fixed Amazon::Element.get_unescaped error when result returned for given element path is nil
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'rake/packagetask'

spec = Gem::Specification.new do |s|
s.name = "amazon-ecs"
s.version = "0.5.2"
s.version = "0.5.3"
s.author = "Herryanto Siatono"
s.email = "herryanto@pluitsolutions.com"
s.homepage = "http://amazon-ecs.rubyforge.net/"
Expand Down
3 changes: 1 addition & 2 deletions lib/amazon/ecs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def self.configure(&proc)
# Search amazon items with search terms. Default search index option is 'Books'.
# For other search type other than keywords, please specify :type => [search type param name].
def self.item_search(terms, opts = {})
opts = self.options.merge(opts) if self.options
opts[:operation] = 'ItemSearch'
opts[:search_index] = opts[:search_index] || 'Books'

Expand All @@ -84,7 +83,6 @@ def self.item_search(terms, opts = {})

# Search an item by ASIN no.
def self.item_lookup(item_id, opts = {})
opts = self.options.merge(opts) if self.options
opts[:operation] = 'ItemLookup'
opts[:item_id] = item_id

Expand All @@ -93,6 +91,7 @@ def self.item_lookup(item_id, opts = {})

# Generic send request to ECS REST service. You have to specify the :operation parameter.
def self.send_request(opts)
opts = self.options.merge(opts) if self.options
request_url = prepare_url(opts)
log "Request URL: #{request_url}"

Expand Down

0 comments on commit 75c2be0

Please sign in to comment.