Skip to content

Commit

Permalink
updating ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Matheson committed Oct 15, 2009
1 parent c001bc6 commit 2e84f71
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 55 deletions.
8 changes: 7 additions & 1 deletion .gitignore
@@ -1,3 +1,9 @@
.git
pkg
refs
hooks
info
doc
Manifest
Manifest
HEAD
config/magento.yml
6 changes: 0 additions & 6 deletions config/magento.yml

This file was deleted.

4 changes: 1 addition & 3 deletions lib/customer_address.rb
Expand Up @@ -27,6 +27,4 @@ def self.delete(customer_address_id)
@connection.call("customer_address.delete",customer_address_id)
end
end
end

puts Magento::CustomerAddress.list
end
20 changes: 10 additions & 10 deletions lib/magento.rb
@@ -1,12 +1,3 @@
require 'extensions'
require 'xmlrpc'
require 'xmlrpc/client'
require 'configuration'
require 'customer'
require 'inventory'
require 'invoice'
require 'order'

module Magento
class Connection
attr_accessor :client
Expand All @@ -21,4 +12,13 @@ def call(method = nil, *args)
client.call("call",@session, method, args)
end
end
end
end

require 'extensions'
#require 'xmlrpc'
require 'xmlrpc/client'
require 'configuration'
require 'customer'
require 'inventory'
require 'invoice'
require 'order'
8 changes: 2 additions & 6 deletions lib/order.rb
Expand Up @@ -5,6 +5,7 @@ def self.list(*args)
orders = commit("order.list",args)
order_list = []
orders.each do |order|
puts order.inspect
order_list.push(order.to_struct(self.class.to_s))
end
order_list
Expand Down Expand Up @@ -36,9 +37,4 @@ def cancel
commit("order.cancel",self.increment_id)
end
end
end

#o = Magento::Order.find("100000001")
#puts o.attributes

puts Magento::Order.find("100000001").hold
end
6 changes: 0 additions & 6 deletions pkg/magento-api-0.1.0/config/magento.yml

This file was deleted.

4 changes: 1 addition & 3 deletions pkg/magento-api-0.1.0/lib/customer_address.rb
Expand Up @@ -27,6 +27,4 @@ def self.delete(customer_address_id)
@connection.call("customer_address.delete",customer_address_id)
end
end
end

puts Magento::CustomerAddress.list
end
20 changes: 10 additions & 10 deletions pkg/magento-api-0.1.0/lib/magento.rb
@@ -1,12 +1,3 @@
require 'extensions'
require 'xmlrpc'
require 'xmlrpc/client'
require 'configuration'
require 'customer'
require 'inventory'
require 'invoice'
require 'order'

module Magento
class Connection
attr_accessor :client
Expand All @@ -21,4 +12,13 @@ def call(method = nil, *args)
client.call("call",@session, method, args)
end
end
end
end

require 'extensions'
#require 'xmlrpc'
require 'xmlrpc/client'
require 'configuration'
require 'customer'
require 'inventory'
require 'invoice'
require 'order'
8 changes: 2 additions & 6 deletions pkg/magento-api-0.1.0/lib/order.rb
Expand Up @@ -5,6 +5,7 @@ def self.list(*args)
orders = commit("order.list",args)
order_list = []
orders.each do |order|
puts order.inspect
order_list.push(order.to_struct(self.class.to_s))
end
order_list
Expand Down Expand Up @@ -36,9 +37,4 @@ def cancel
commit("order.cancel",self.increment_id)
end
end
end

#o = Magento::Order.find("100000001")
#puts o.attributes

puts Magento::Order.find("100000001").hold
end
5 changes: 3 additions & 2 deletions pkg/magento-api-0.1.0/test/test_helper.rb
@@ -1,8 +1,9 @@
require 'autotest'
require 'rubygems'
require 'magento'
require 'autotest'
require 'redgreen'
require 'test/unit'
require 'magento'




5 changes: 3 additions & 2 deletions test/test_helper.rb
@@ -1,8 +1,9 @@
require 'autotest'
require 'rubygems'
require 'magento'
require 'autotest'
require 'redgreen'
require 'test/unit'
require 'magento'




0 comments on commit 2e84f71

Please sign in to comment.