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 +2 -8
- data/lib/storesapp/resources/collection.rb +3 -3
- data/lib/storesapp/resources/product.rb +15 -15
- data/lib/storesapp/resources/product_property.rb +3 -3
- data/lib/storesapp/resources/variant.rb +9 -0
- data/lib/storesapp/resources/variant_property.rb +6 -0
- data/storesapp.gemspec +1 -1
- metadata +6 -12
- data/lib/storesapp/resources/cart.rb +0 -9
- data/lib/storesapp/resources/cart_item.rb +0 -9
- data/lib/storesapp/resources/cart_item_property.rb +0 -6
- data/lib/storesapp/resources/order.rb +0 -9
- data/lib/storesapp/resources/order_item.rb +0 -9
- data/lib/storesapp/resources/order_item_property.rb +0 -6
- data/lib/storesapp/resources/product_property_value.rb +0 -6
- data/lib/storesapp/resources/product_variant.rb +0 -9
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/
|
16
|
-
lib/storesapp/resources/
|
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
|
-
|
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
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
def images
|
9
|
-
|
10
|
-
end
|
11
|
-
|
12
|
-
def properties
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
def variants
|
17
|
-
|
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
|
-
|
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
|
data/storesapp.gemspec
CHANGED
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.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-
|
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/
|
84
|
-
- lib/storesapp/resources/
|
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 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
|