handcrafted-ebay_products 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ebay_products}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Josh Owens"]
data/lib/ebay_products.rb CHANGED
@@ -19,7 +19,13 @@ class EbayProducts
19
19
  end
20
20
 
21
21
  def search
22
- @search ||= self.class.get("/shopping", :query => options, :format => :xml)["FindProductsResponse"]["Product"]
22
+ if @search.blank?
23
+ @search = self.class.get("/shopping", :query => options, :format => :xml)["FindProductsResponse"]["Product"]
24
+ if @search.is_a? Hash
25
+ @search = [@search]
26
+ end
27
+ end
28
+ @search
23
29
  end
24
30
 
25
31
  def products
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handcrafted-ebay_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Owens