storesapp-rb 0.1.1 → 0.1.2

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.
data/Manifest.txt CHANGED
@@ -1,19 +1,13 @@
1
1
  lib/storesapp/base.rb
2
2
  lib/storesapp/stores_app_resource.rb
3
- lib/storesapp/resources/cart.rb
4
- lib/storesapp/resources/cart_item.rb
5
- lib/storesapp/resources/cart_item_property.rb
6
3
  lib/storesapp/resources/collection.rb
7
4
  lib/storesapp/resources/collection_product.rb
8
- lib/storesapp/resources/order.rb
9
- lib/storesapp/resources/order_item.rb
10
- lib/storesapp/resources/order_item_property.rb
11
5
  lib/storesapp/resources/page.rb
12
6
  lib/storesapp/resources/product.rb
13
7
  lib/storesapp/resources/product_image.rb
14
8
  lib/storesapp/resources/product_property.rb
15
- lib/storesapp/resources/product_property_value.rb
16
- lib/storesapp/resources/product_variant.rb
9
+ lib/storesapp/resources/variant_property.rb
10
+ lib/storesapp/resources/variant.rb
17
11
  lib/storesapp.rb
18
12
  LICENSE
19
13
  README.markdown
@@ -1,9 +1,9 @@
1
1
  module StoresApp
2
2
  module Resources
3
3
  class Collection < StoresApp::StoresAppResource
4
- def products
5
- Product.find(:all, :from => "/api/v1/collections/#{self.id}/products.xml")
6
- end
4
+ # def products
5
+ # Product.find(:all, :from => "/api/v1/collections/#{self.id}/products.xml")
6
+ # end
7
7
 
8
8
  # def add_product(options={})
9
9
  # # options.assert_valid_keys(:product_id)
@@ -1,21 +1,21 @@
1
1
  module StoresApp
2
2
  module Resources
3
3
  class Product < StoresApp::StoresAppResource
4
- def collections
5
- Collection.find(:all, :from => "/api/v1/products/#{self.id}/collections.xml")
6
- end
7
-
8
- def images
9
- ProductImage.find(:all, :from => "/api/v1/products/#{self.id}/images.xml")
10
- end
11
-
12
- def properties
13
- ProductProperty.find(:all, :from => "/api/v1/products/#{self.id}/properties.xml")
14
- end
15
-
16
- def variants
17
- ProductVariant.find(:all, :from => "/api/v1/products/#{self.id}/variants.xml")
18
- end
4
+ # def collections
5
+ # Collection.find(:all, :from => "/api/v1/products/#{self.id}/collections.xml")
6
+ # end
7
+ #
8
+ # def images
9
+ # ProductImage.find(:all, :from => "/api/v1/products/#{self.id}/images.xml")
10
+ # end
11
+ #
12
+ # def properties
13
+ # ProductProperty.find(:all, :from => "/api/v1/products/#{self.id}/properties.xml")
14
+ # end
15
+ #
16
+ # def variants
17
+ # ProductVariant.find(:all, :from => "/api/v1/products/#{self.id}/variants.xml")
18
+ # end
19
19
 
20
20
  # def add_collection(options={})
21
21
  # # options.assert_valid_keys(:collection_id)
@@ -1,9 +1,9 @@
1
1
  module StoresApp
2
2
  module Resources
3
3
  class ProductProperty < StoresApp::StoresAppResource
4
- def values
5
- ProductPropertyValue.find(:all, :from => "/api/v1/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
- end
4
+ # def values
5
+ # ProductPropertyValue.find(:all, :from => "/api/v1/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
+ # end
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ module StoresApp
2
+ module Resources
3
+ class Variant < StoresApp::StoresAppResource
4
+ # def values
5
+ # ProductPropertyValue.find(:all, :from => "/api/v1/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
+ # end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ module StoresApp
2
+ module Resources
3
+ class VariantProperty < StoresApp::StoresAppResource
4
+ end
5
+ end
6
+ end
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.1.1"
6
+ s.version = "0.1.2"
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Next Feature
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-28 00:00:00 -04:00
18
+ date: 2010-07-24 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -68,20 +68,14 @@ files:
68
68
  - lib/storesapp/base.rb
69
69
  - lib/storesapp/plugins/active_resource_inheritable_headers.rb
70
70
  - lib/storesapp/plugins/hash_ext.rb
71
- - lib/storesapp/resources/cart.rb
72
- - lib/storesapp/resources/cart_item.rb
73
- - lib/storesapp/resources/cart_item_property.rb
74
71
  - lib/storesapp/resources/collection.rb
75
72
  - lib/storesapp/resources/collection_product.rb
76
- - lib/storesapp/resources/order.rb
77
- - lib/storesapp/resources/order_item.rb
78
- - lib/storesapp/resources/order_item_property.rb
79
73
  - lib/storesapp/resources/page.rb
80
74
  - lib/storesapp/resources/product.rb
81
75
  - lib/storesapp/resources/product_image.rb
82
76
  - lib/storesapp/resources/product_property.rb
83
- - lib/storesapp/resources/product_property_value.rb
84
- - lib/storesapp/resources/product_variant.rb
77
+ - lib/storesapp/resources/variant.rb
78
+ - lib/storesapp/resources/variant_property.rb
85
79
  - lib/storesapp/stores_app_resource.rb
86
80
  - storesapp.gemspec
87
81
  has_rdoc: true
@@ -1,9 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class Cart < StoresApp::StoresAppResource
4
- def items
5
- CartItem.find(:all, :from => "/api/v1/carts/#{self.id}/items.xml")
6
- end
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class CartItem < StoresApp::StoresAppResource
4
- def properties
5
- CartItemProperty.find(:all, :from => "/api/v1/cart_items/#{self.id}/properties.xml", :params => {:cart_id => self.cart_id})
6
- end
7
- end
8
- end
9
- end
@@ -1,6 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class CartItemProperty < StoresApp::StoresAppResource
4
- end
5
- end
6
- end
@@ -1,9 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class Order < StoresApp::StoresAppResource
4
- def items
5
- OrderItem.find(:all, :from => "/api/v1/orders/#{self.id}/items.xml")
6
- end
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class OrderItem < StoresApp::StoresAppResource
4
- def properties
5
- OrderItemProperty.find(:all, :from => "/api/v1/order_items/#{self.id}/properties.xml", :params => {:order_id => self.order_id})
6
- end
7
- end
8
- end
9
- end
@@ -1,6 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class OrderItemProperty < StoresApp::StoresAppResource
4
- end
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class ProductPropertyValue < StoresApp::StoresAppResource
4
- end
5
- end
6
- end
@@ -1,9 +0,0 @@
1
- module StoresApp
2
- module Resources
3
- class ProductVariant < StoresApp::StoresAppResource
4
- def values
5
- ProductPropertyValue.find(:all, :from => "/api/v1/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
6
- end
7
- end
8
- end
9
- end