chockstone 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/chockstone.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{chockstone}
3
- s.version = %q{0.3.2}
3
+ s.version = %q{0.3.3}
4
4
  s.summary = ""
5
5
  s.description = "Wrapper for Chockstone API requests"
6
6
  s.authors = ["Thomas Mulloy"]
@@ -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.2
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-04-13 00:00:00.000000000 Z
12
+ date: 2012-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libxml-ruby