storesapp-rb 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module StoresApp
2
2
  module Resources
3
3
  class Cart < StoresApp::StoresAppResource
4
4
  def items
5
- CartItem.find(:all, :from => "/api/carts/#{self.id}/items.xml")
5
+ CartItem.find(:all, :from => "/api/v1/carts/#{self.id}/items.xml")
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module StoresApp
2
2
  module Resources
3
3
  class CartItem < StoresApp::StoresAppResource
4
4
  def properties
5
- CartItemProperty.find(:all, :from => "/api/cart_items/#{self.id}/properties.xml", :params => {:cart_id => self.cart_id})
5
+ CartItemProperty.find(:all, :from => "/api/v1/cart_items/#{self.id}/properties.xml", :params => {:cart_id => self.cart_id})
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module StoresApp
2
2
  module Resources
3
3
  class Collection < StoresApp::StoresAppResource
4
4
  def products
5
- Product.find(:all, :from => "/api/collections/#{self.id}/products.xml")
5
+ Product.find(:all, :from => "/api/v1/collections/#{self.id}/products.xml")
6
6
  end
7
7
 
8
8
  # def add_product(options={})
@@ -2,19 +2,19 @@ module StoresApp
2
2
  module Resources
3
3
  class Product < StoresApp::StoresAppResource
4
4
  def collections
5
- Collection.find(:all, :from => "/api/products/#{self.id}/collections.xml")
5
+ Collection.find(:all, :from => "/api/v1/products/#{self.id}/collections.xml")
6
6
  end
7
7
 
8
8
  def images
9
- ProductImage.find(:all, :from => "/api/products/#{self.id}/images.xml")
9
+ ProductImage.find(:all, :from => "/api/v1/products/#{self.id}/images.xml")
10
10
  end
11
11
 
12
12
  def properties
13
- ProductProperty.find(:all, :from => "/api/products/#{self.id}/properties.xml")
13
+ ProductProperty.find(:all, :from => "/api/v1/products/#{self.id}/properties.xml")
14
14
  end
15
15
 
16
16
  def variants
17
- ProductVariant.find(:all, :from => "/api/products/#{self.id}/variants.xml")
17
+ ProductVariant.find(:all, :from => "/api/v1/products/#{self.id}/variants.xml")
18
18
  end
19
19
 
20
20
  # def add_collection(options={})
@@ -2,7 +2,7 @@ module StoresApp
2
2
  module Resources
3
3
  class ProductProperty < StoresApp::StoresAppResource
4
4
  def values
5
- ProductPropertyValue.find(:all, :from => "/api/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
5
+ ProductPropertyValue.find(:all, :from => "/api/v1/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module StoresApp
2
2
  module Resources
3
3
  class ProductVariant < StoresApp::StoresAppResource
4
4
  def values
5
- ProductPropertyValue.find(:all, :from => "/api/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
5
+ ProductPropertyValue.find(:all, :from => "/api/v1/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
6
  end
7
7
  end
8
8
  end
data/lib/storesapp.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module StoresApp
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  ApiDomain = "storesapp.com"
4
4
 
5
5
  # Class method to load all ruby files from a given path.
data/storesapp.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "storesapp-rb"
6
- s.version = "0.0.8"
6
+ s.version = "0.1.0"
7
7
  s.authors = ["Next Feature"]
8
8
  s.summary = "A wrapper for the StoresApp Api. See http://api.storesapp.com for details."
9
9
  s.date = Date.today.to_s
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storesapp-rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 8
10
- version: 0.0.8
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Next Feature