magentor 0.2.18 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.18
1
+ 0.3.0
data/lib/magento/base.rb CHANGED
@@ -15,9 +15,13 @@ module Magento
15
15
  # Uses the classes name and method to make an rpc call through connection
16
16
  def commit(method, *args)
17
17
  # TODO: need to catch errors sent back from magento and bubble them up appropriately
18
- method = "#{to_s.split('::').last.underscore.downcase}.#{method}"
18
+ method = "#{api_path}.#{method}"
19
19
  Magento::Base.connection.call(method, *args)
20
20
  end
21
+
22
+ def api_path
23
+ to_s.split('::').last.underscore.downcase
24
+ end
21
25
  end
22
26
 
23
27
  module InstanceMethods
@@ -122,6 +122,10 @@ module Magento
122
122
  results
123
123
  end
124
124
  end
125
+
126
+ def api_path
127
+ "order_shipment"
128
+ end
125
129
  end
126
130
  end
127
131
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magentor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 18
10
- version: 0.2.18
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Preston Stuteville
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-11 00:00:00 -08:00
18
+ date: 2011-02-24 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,7 +28,6 @@ extensions: []
28
28
  extra_rdoc_files:
29
29
  - README.rdoc
30
30
  files:
31
- - .gitignore
32
31
  - MIT-LICENSE
33
32
  - README.rdoc
34
33
  - Rakefile
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg/*