magentor 0.2.18 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/magento/base.rb +5 -1
- data/lib/magento/shipment.rb +4 -0
- metadata +5 -6
- data/.gitignore +0 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
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 = "#{
|
|
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
|
data/lib/magento/shipment.rb
CHANGED
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
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:
|
|
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/*
|