Browse files

renamed namespace

  • Loading branch information...
1 parent b0d795c commit 7e12866cf52e8ee337fe64ebade8f77d66e5f253 @pstuteville committed Sep 24, 2010
View
2 init.rb
@@ -1 +1 @@
-require 'magento'
+require 'magentor'
View
4 lib/magento.rb → lib/magentor.rb
@@ -5,12 +5,12 @@
#
# Inspiration from the Magento plugin from Tim Matheson (http://github.com/timmatheson/Magento)
-require 'magento/connection'
+require 'magentor/connection'
#require 'xmlrpc'
require 'xmlrpc/client'
-require 'magento/base'
+require 'magentor/base'
XMLRPC::Config::ENABLE_NIL_PARSER = true
XMLRPC::Config::ENABLE_NIL_CREATE = true
View
2 lib/magento/base.rb → lib/magentor/base.rb
@@ -6,7 +6,7 @@
# And the following instance attributes:
# * <tt>attributes</tt>: the attributes of the magento object
#
-module Magento
+module Magentor
class Base
attr_accessor :attributes
class << self; attr_accessor :connection end
View
2 lib/magento/category.rb → lib/magentor/category.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/category_attribute.rb → lib/magentor/category_attribute.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/connection.rb → lib/magentor/connection.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
class Connection
attr_accessor :client, :config, :logger
def initialize(config = {})
View
2 lib/magento/country.rb → lib/magentor/country.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/directory_country
class Country < Base
class << self
View
2 lib/magento/customer.rb → lib/magentor/customer.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/customer_address.rb → lib/magentor/customer_address.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/customer_group.rb → lib/magentor/customer_group.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/customer_group
class CustomerGroup < Base
class << self
View
2 lib/magento/inventory.rb → lib/magentor/inventory.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
class Inventory < Base
end
end
View
2 lib/magento/invoice.rb → lib/magentor/invoice.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/order.rb → lib/magentor/order.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
class Order < Base
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/sales_order
# 100 Requested order not exists.
View
2 lib/magento/product.rb → lib/magentor/product.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product
# 100 Requested store view not found.
# 101 Product not exists.
View
2 lib/magento/product_attribute.rb → lib/magentor/product_attribute.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/product_attribute_set.rb → lib/magentor/product_attribute_set.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute_set
class ProductAttributeSet < Base
class << self
View
2 lib/magento/product_link.rb → lib/magentor/product_link.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_link
# 100 Given invalid link type.
# 101 Product not exists.
View
2 lib/magento/product_media.rb → lib/magentor/product_media.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/product_stock.rb → lib/magentor/product_stock.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/product_tier_price.rb → lib/magentor/product_tier_price.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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/magento/product_type.rb → lib/magentor/product_type.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_type
class ProductType < Base
class << self
View
2 lib/magento/region.rb → lib/magentor/region.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# http://www.magentocommerce.com/wiki/doc/webservices-api/api/directory_region
class Region < Base
class << self
View
2 lib/magento/shipment.rb → lib/magentor/shipment.rb
@@ -1,4 +1,4 @@
-module Magento
+module Magentor
# 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.

0 comments on commit 7e12866

Please sign in to comment.