chockstone 0.3.2 → 0.3.3
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/chockstone.gemspec +1 -1
- data/lib/chockstone/connection.rb +24 -0
- metadata +2 -2
data/chockstone.gemspec
CHANGED
|
@@ -109,6 +109,26 @@ module Chockstone
|
|
|
109
109
|
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
+
# not implemented
|
|
113
|
+
def get_account_balance
|
|
114
|
+
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
def transfer_account from, to
|
|
118
|
+
request('transfer-account',
|
|
119
|
+
:from => {
|
|
120
|
+
:account => {
|
|
121
|
+
:id => from
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
:to => {
|
|
125
|
+
:account => {
|
|
126
|
+
:id => to
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
end
|
|
131
|
+
|
|
112
132
|
|
|
113
133
|
private
|
|
114
134
|
|
|
@@ -126,6 +146,8 @@ module Chockstone
|
|
|
126
146
|
p = XML::Parser.string(resp)
|
|
127
147
|
doc = p.parse
|
|
128
148
|
|
|
149
|
+
#puts doc
|
|
150
|
+
|
|
129
151
|
response = doc.find('//response')[0]
|
|
130
152
|
status = response.find('//status')[0]
|
|
131
153
|
|
|
@@ -171,6 +193,8 @@ module Chockstone
|
|
|
171
193
|
req.attributes['version'] = '1'
|
|
172
194
|
req.attributes['revision'] = '1'
|
|
173
195
|
|
|
196
|
+
#puts xml
|
|
197
|
+
|
|
174
198
|
send(xml)
|
|
175
199
|
end
|
|
176
200
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chockstone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: libxml-ruby
|