Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

re-renamed namespace, better this way~

  • Loading branch information...
commit f50244e455c077266d8cc9dfbc4e6df9f322803e 1 parent e6aa25b
@pstuteville authored
Showing with 27 additions and 27 deletions.
  1. +4 −4 README.rdoc
  2. +1 −1  lib/{magentor → magento}/base.rb
  3. +1 −1  lib/{magentor → magento}/category.rb
  4. +1 −1  lib/{magentor → magento}/category_attribute.rb
  5. +1 −1  lib/{magentor → magento}/connection.rb
  6. +1 −1  lib/{magentor → magento}/country.rb
  7. +1 −1  lib/{magentor → magento}/customer.rb
  8. +1 −1  lib/{magentor → magento}/customer_address.rb
  9. +1 −1  lib/{magentor → magento}/customer_group.rb
  10. +1 −1  lib/{magentor → magento}/inventory.rb
  11. +1 −1  lib/{magentor → magento}/invoice.rb
  12. +1 −1  lib/{magentor → magento}/order.rb
  13. +1 −1  lib/{magentor → magento}/product.rb
  14. +1 −1  lib/{magentor → magento}/product_attribute.rb
  15. +1 −1  lib/{magentor → magento}/product_attribute_set.rb
  16. +1 −1  lib/{magentor → magento}/product_link.rb
  17. +1 −1  lib/{magentor → magento}/product_media.rb
  18. +1 −1  lib/{magentor → magento}/product_stock.rb
  19. +1 −1  lib/{magentor → magento}/product_tier_price.rb
  20. +1 −1  lib/{magentor → magento}/product_type.rb
  21. +1 −1  lib/{magentor → magento}/region.rb
  22. +1 −1  lib/{magentor → magento}/shipment.rb
  23. +2 −2 lib/magentor.rb
View
8 README.rdoc
@@ -7,7 +7,7 @@ Magento api documentation: http://www.magentocommerce.com/support/magento_core_a
= Usage
Setup your connection to magento
- Magentor::Base.connection = Magento::Connection.new({
+ Magento::Base.connection = Magento::Connection.new({
:username => 'username',
:api_key => 'api_key',
:host => 'magento.example.org',
@@ -17,9 +17,9 @@ Setup your connection to magento
Then get down to business
- Magentor::Customer.list
- Magentor::Product.info(1).sku
- customer = Magentor::Customer.find(:first, {:email => 'example@magentor.ccc'})
+ Magento::Customer.list
+ Magento::Product.info(1).sku
+ customer = Magento::Customer.find(:first, {:email => 'example@magentor.ccc'})
customer.update_attributes({:firstname => 'duke', :lastname => 'magentor'})
customer.delete
View
2  lib/magentor/base.rb → lib/magento/base.rb
@@ -6,7 +6,7 @@
# And the following instance attributes:
# * <tt>attributes</tt>: the attributes of the magento object
#
-module Magentor
+module Magento
class Base
attr_accessor :attributes
class << self; attr_accessor :connection end
View
2  lib/magentor/category.rb → lib/magento/category.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category
# 100 Requested store view not found.
# 101 Requested website not found.
View
2  lib/magentor/category_attribute.rb → lib/magento/category_attribute.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute
# 100 Requested store view not found.
# 101 Requested attribute not found.
View
2  lib/magentor/connection.rb → lib/magento/connection.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
class Connection
attr_accessor :client, :config, :logger
def initialize(config = {})
View
2  lib/magentor/country.rb → lib/magento/country.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/directory_country
class Country < Base
class << self
View
2  lib/magentor/customer.rb → lib/magento/customer.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/customer
# 100 Invalid customer data. Details in error message.
# 101 Invalid filters specified. Details in error message.
View
2  lib/magentor/customer_address.rb → lib/magento/customer_address.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/customer_address
# 100 Invalid address data. Details in error message.
# 101 Customer not exists.
View
2  lib/magentor/customer_group.rb → lib/magento/customer_group.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/customer_group
class CustomerGroup < Base
class << self
View
2  lib/magentor/inventory.rb → lib/magento/inventory.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
class Inventory < Base
end
end
View
2  lib/magentor/invoice.rb → lib/magento/invoice.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/sales_order_invoice
# 100 Requested shipment does not exists.
# 101 Invalid filters given. Details in error message.
View
2  lib/magentor/order.rb → lib/magento/order.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
class Order < Base
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/sales_order
# 100 Requested order not exists.
View
2  lib/magentor/product.rb → lib/magento/product.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product
# 100 Requested store view not found.
# 101 Product not exists.
View
2  lib/magentor/product_attribute.rb → lib/magento/product_attribute.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute
# 100 Requested store view not found.
# 101 Requested attribute not found.
View
2  lib/magentor/product_attribute_set.rb → lib/magento/product_attribute_set.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute_set
class ProductAttributeSet < Base
class << self
View
2  lib/magentor/product_link.rb → lib/magento/product_link.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_link
# 100 Given invalid link type.
# 101 Product not exists.
View
2  lib/magentor/product_media.rb → lib/magento/product_media.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute_media
# 100 Requested store view not found.
# 101 Product not exists.
View
2  lib/magentor/product_stock.rb → lib/magento/product_stock.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/cataloginventory_stock_item
# 101 Product not exists.
# 102 Product inventory not updated. Details in error message.
View
2  lib/magentor/product_tier_price.rb → lib/magento/product_tier_price.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_type
# 100 Product not exists.
# 101 Invalid data given. Details in error message.
View
2  lib/magentor/product_type.rb → lib/magento/product_type.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_type
class ProductType < Base
class << self
View
2  lib/magentor/region.rb → lib/magento/region.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/directory_region
class Region < Base
class << self
View
2  lib/magentor/shipment.rb → lib/magento/shipment.rb
@@ -1,4 +1,4 @@
-module Magentor
+module Magento
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/sales_order_shipment
# 100 Requested shipment not exists.
# 101 Invalid filters given. Details in error message.
View
4 lib/magentor.rb
@@ -5,12 +5,12 @@
#
# Inspiration from the Magento plugin from Tim Matheson (http://github.com/timmatheson/Magento)
-require 'magentor/connection'
+require 'magento/connection'
#require 'xmlrpc'
require 'xmlrpc/client'
-require 'magentor/base'
+require 'magento/base'
XMLRPC::Config::ENABLE_NIL_PARSER = true
XMLRPC::Config::ENABLE_NIL_CREATE = true
Please sign in to comment.
Something went wrong with that request. Please try again.