monacoin_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -8
- data/lib/monacoin_client/monacoin_rpc.rb +3 -1
- data/lib/monacoin_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a9ddcc7a7ecf8df68b35e342680767eb19a570
|
4
|
+
data.tar.gz: 83d9dee0b3fcbe302c7f4620244b03b9ad33dc2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154acf902025db05cb78548fe07994e66aa49475c6c012aaf6ded28d5440c34a2768e9897e670e986fefc96a4fe9f820e444b03bbcb1ef47429ee94752869766
|
7
|
+
data.tar.gz: 2a4302c914541fc60b1e50f5ee7a36f17ce115b3b30dea83599d25e3bd229c9b93e75807a48cb5e227ba1adeb976cf8c4cd073e618eb7946b66070441ddad207
|
data/README.md
CHANGED
@@ -12,8 +12,12 @@ Todo:
|
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
15
|
+
$ gem install monacoin_client
|
16
|
+
|
17
|
+
or
|
18
|
+
|
15
19
|
$ rake build
|
16
|
-
$ gem install pkg/
|
20
|
+
$ gem install pkg/monacoin_client-X.X.X.gem
|
17
21
|
|
18
22
|
## Usage
|
19
23
|
|
@@ -26,13 +30,6 @@ lt = MonacoinRPC.new('http://user:password@127.0.0.1:9332')
|
|
26
30
|
p lt.getbalance # this outputs the balance
|
27
31
|
```
|
28
32
|
|
29
|
-
|
30
|
-
Example for a BTCe Priceticker:
|
31
|
-
|
32
|
-
MonacoinTickers::BTCe.ltcusd
|
33
|
-
|
34
|
-
This returns a hash that contains info about the ltc value in usd on BTC-e
|
35
|
-
|
36
33
|
## Contributing
|
37
34
|
|
38
35
|
1. Fork it
|
@@ -41,6 +38,8 @@ This returns a hash that contains info about the ltc value in usd on BTC-e
|
|
41
38
|
4. Push to the branch (`git push origin my-new-feature`)
|
42
39
|
5. Create new Pull Request
|
43
40
|
|
41
|
+
Please join our community. https://www.facebook.com/groups/849211301755891/
|
42
|
+
|
44
43
|
If someone has some suggestions for this gem let me know.
|
45
44
|
|
46
45
|
## Donations
|
@@ -21,7 +21,9 @@ class MonacoinRPC
|
|
21
21
|
request.basic_auth @uri.user, @uri.password
|
22
22
|
request.content_type = 'application/json'
|
23
23
|
request.body = post_body
|
24
|
-
http.request(request).body
|
24
|
+
ret = http.request(request).body
|
25
|
+
http.finish
|
26
|
+
return ret
|
25
27
|
end
|
26
28
|
|
27
29
|
class JSONRPCError < RuntimeError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monacoin_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuma Wakimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.2.
|
78
|
+
rubygems_version: 2.2.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: This gem provides monacoin client
|