handcrafted-a2ws 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  :major: 0
2
2
  :minor: 1
3
- :patch: 6
3
+ :patch: 7
data/a2ws.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{a2ws}
5
- s.version = "0.1.6"
5
+ s.version = "0.1.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andy Shen", "Josh Owens"]
@@ -1,7 +1,7 @@
1
1
  module A2WS
2
2
 
3
3
  class ItemSearch < Base
4
- attr_accessor :items, :search_index
4
+ attr_accessor :search_index
5
5
 
6
6
  def initialize(search_index = :All)
7
7
  @search_index = search_index
@@ -11,13 +11,13 @@ module A2WS
11
11
  options.merge!({:Keywords => keywords, :SearchIndex => @search_index})
12
12
  result = self.class.get('/onca/xml', :query => options)
13
13
 
14
- @items = result["ItemSearchResponse"]["Items"]
15
- if @items['Request']['IsValid'] == 'True'
16
- @items['Item'].collect do |i|
14
+ items = result["ItemSearchResponse"]["Items"]
15
+ if items['Request']['IsValid'] == 'True'
16
+ items['Item'].collect do |i|
17
17
  Item.new downcase_keys(i)
18
18
  end
19
19
  else
20
- raise @items['Request']['Errors']['Error']['Message']
20
+ raise items['Request']['Errors']['Error']['Message']
21
21
  end
22
22
  end
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handcrafted-a2ws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Shen