Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed auto loading of classes #15

Open
wants to merge 1 commit into from

3 participants

@joelvh

Classes were not loading because the directory name was not "magentor". Simply renaming worked to fix it.

@pigoz

+1 please pull this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 47 additions and 46 deletions.
  1. +1 −0  .gitignore
  2. +1 −1  VERSION
  3. +22 −22 lib/magentor.rb
  4. 0  lib/{magento → magentor}/base.rb
  5. 0  lib/{magento → magentor}/category.rb
  6. 0  lib/{magento → magentor}/category_attribute.rb
  7. 0  lib/{magento → magentor}/connection.rb
  8. 0  lib/{magento → magentor}/country.rb
  9. 0  lib/{magento → magentor}/customer.rb
  10. 0  lib/{magento → magentor}/customer_address.rb
  11. 0  lib/{magento → magentor}/customer_group.rb
  12. 0  lib/{magento → magentor}/inventory.rb
  13. 0  lib/{magento → magentor}/invoice.rb
  14. 0  lib/{magento → magentor}/order.rb
  15. 0  lib/{magento → magentor}/order_item.rb
  16. 0  lib/{magento → magentor}/product.rb
  17. 0  lib/{magento → magentor}/product_attribute.rb
  18. 0  lib/{magento → magentor}/product_attribute_set.rb
  19. 0  lib/{magento → magentor}/product_link.rb
  20. 0  lib/{magento → magentor}/product_media.rb
  21. 0  lib/{magento → magentor}/product_stock.rb
  22. 0  lib/{magento → magentor}/product_tier_price.rb
  23. 0  lib/{magento → magentor}/product_type.rb
  24. 0  lib/{magento → magentor}/region.rb
  25. 0  lib/{magento → magentor}/shipment.rb
  26. +23 −23 magentor.gemspec
View
1  .gitignore
@@ -1 +1,2 @@
pkg/*
+.project
View
2  VERSION
@@ -1 +1 @@
-0.3.2
+0.3.3
View
44 lib/magentor.rb
@@ -14,28 +14,28 @@
XMLRPC::Config.send(:remove_const, :ENABLE_NIL_CREATE)
XMLRPC::Config.send(:const_set, :ENABLE_NIL_CREATE, true)
-require 'magento/connection'
-require 'magento/base'
+require 'magentor/connection'
+require 'magentor/base'
module Magento
- autoload :CategoryAttribute, "magento/category_attribute"
- autoload :Category, "magento/category"
- autoload :Country, "magento/country"
- autoload :CustomerAddress, "magento/customer_address"
- autoload :CustomerGroup, "magento/customer_group"
- autoload :Customer, "magento/customer"
- autoload :Inventory, "magento/inventory"
- autoload :Invoice, "magento/invoice"
- autoload :OrderItem, "magento/order_item"
- autoload :Order, "magento/order"
- autoload :ProductAttribute, "magento/product_attribute"
- autoload :ProductAttributeSet, "magento/product_attribute_set"
- autoload :ProductLink, "magento/product_link"
- autoload :ProductMedia, "magento/product_media"
- autoload :Product, "magento/product"
- autoload :ProductStock, "magento/product_stock"
- autoload :ProductTierPrice, "magento/product_tier_price"
- autoload :ProductType, "magento/product_type"
- autoload :Region, "magento/region"
- autoload :Shipment, "magento/shipment"
+ autoload :CategoryAttribute, "magentor/category_attribute"
+ autoload :Category, "magentor/category"
+ autoload :Country, "magentor/country"
+ autoload :CustomerAddress, "magentor/customer_address"
+ autoload :CustomerGroup, "magentor/customer_group"
+ autoload :Customer, "magentor/customer"
+ autoload :Inventory, "magentor/inventory"
+ autoload :Invoice, "magentor/invoice"
+ autoload :OrderItem, "magentor/order_item"
+ autoload :Order, "magentor/order"
+ autoload :ProductAttribute, "magentor/product_attribute"
+ autoload :ProductAttributeSet, "magentor/product_attribute_set"
+ autoload :ProductLink, "magentor/product_link"
+ autoload :ProductMedia, "magentor/product_media"
+ autoload :Product, "magentor/product"
+ autoload :ProductStock, "magentor/product_stock"
+ autoload :ProductTierPrice, "magentor/product_tier_price"
+ autoload :ProductType, "magentor/product_type"
+ autoload :Region, "magentor/region"
+ autoload :Shipment, "magentor/shipment"
end
View
0  lib/magento/base.rb → lib/magentor/base.rb
File renamed without changes
View
0  lib/magento/category.rb → lib/magentor/category.rb
File renamed without changes
View
0  lib/magento/category_attribute.rb → lib/magentor/category_attribute.rb
File renamed without changes
View
0  lib/magento/connection.rb → lib/magentor/connection.rb
File renamed without changes
View
0  lib/magento/country.rb → lib/magentor/country.rb
File renamed without changes
View
0  lib/magento/customer.rb → lib/magentor/customer.rb
File renamed without changes
View
0  lib/magento/customer_address.rb → lib/magentor/customer_address.rb
File renamed without changes
View
0  lib/magento/customer_group.rb → lib/magentor/customer_group.rb
File renamed without changes
View
0  lib/magento/inventory.rb → lib/magentor/inventory.rb
File renamed without changes
View
0  lib/magento/invoice.rb → lib/magentor/invoice.rb
File renamed without changes
View
0  lib/magento/order.rb → lib/magentor/order.rb
File renamed without changes
View
0  lib/magento/order_item.rb → lib/magentor/order_item.rb
File renamed without changes
View
0  lib/magento/product.rb → lib/magentor/product.rb
File renamed without changes
View
0  lib/magento/product_attribute.rb → lib/magentor/product_attribute.rb
File renamed without changes
View
0  lib/magento/product_attribute_set.rb → lib/magentor/product_attribute_set.rb
File renamed without changes
View
0  lib/magento/product_link.rb → lib/magentor/product_link.rb
File renamed without changes
View
0  lib/magento/product_media.rb → lib/magentor/product_media.rb
File renamed without changes
View
0  lib/magento/product_stock.rb → lib/magentor/product_stock.rb
File renamed without changes
View
0  lib/magento/product_tier_price.rb → lib/magentor/product_tier_price.rb
File renamed without changes
View
0  lib/magento/product_type.rb → lib/magentor/product_type.rb
File renamed without changes
View
0  lib/magento/region.rb → lib/magentor/region.rb
File renamed without changes
View
0  lib/magento/shipment.rb → lib/magentor/shipment.rb
File renamed without changes
View
46 magentor.gemspec
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{magentor}
- s.version = "0.3.2"
+ s.version = "0.3.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Preston Stuteville"]
@@ -22,28 +22,28 @@ Gem::Specification.new do |s|
"TODOS",
"VERSION",
"init.rb",
- "lib/magento/base.rb",
- "lib/magento/category.rb",
- "lib/magento/category_attribute.rb",
- "lib/magento/connection.rb",
- "lib/magento/country.rb",
- "lib/magento/customer.rb",
- "lib/magento/customer_address.rb",
- "lib/magento/customer_group.rb",
- "lib/magento/inventory.rb",
- "lib/magento/invoice.rb",
- "lib/magento/order.rb",
- "lib/magento/order_item.rb",
- "lib/magento/product.rb",
- "lib/magento/product_attribute.rb",
- "lib/magento/product_attribute_set.rb",
- "lib/magento/product_link.rb",
- "lib/magento/product_media.rb",
- "lib/magento/product_stock.rb",
- "lib/magento/product_tier_price.rb",
- "lib/magento/product_type.rb",
- "lib/magento/region.rb",
- "lib/magento/shipment.rb",
+ "lib/magentor/base.rb",
+ "lib/magentor/category.rb",
+ "lib/magentor/category_attribute.rb",
+ "lib/magentor/connection.rb",
+ "lib/magentor/country.rb",
+ "lib/magentor/customer.rb",
+ "lib/magentor/customer_address.rb",
+ "lib/magentor/customer_group.rb",
+ "lib/magentor/inventory.rb",
+ "lib/magentor/invoice.rb",
+ "lib/magentor/order.rb",
+ "lib/magentor/order_item.rb",
+ "lib/magentor/product.rb",
+ "lib/magentor/product_attribute.rb",
+ "lib/magentor/product_attribute_set.rb",
+ "lib/magentor/product_link.rb",
+ "lib/magentor/product_media.rb",
+ "lib/magentor/product_stock.rb",
+ "lib/magentor/product_tier_price.rb",
+ "lib/magentor/product_type.rb",
+ "lib/magentor/region.rb",
+ "lib/magentor/shipment.rb",
"lib/magentor.rb",
"magentor.gemspec"
]
Something went wrong with that request. Please try again.