monacoin_client 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +1 -0
- data/cert_file +4665 -0
- data/lib/monacoin_client/monacoin_rpc.rb +28 -0
- data/lib/monacoin_client/version.rb +3 -0
- data/lib/monacoin_client.rb +5 -0
- data/monacoin_client.gemspec +25 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 67c70e0e4fea8b96577e9463c66f467e57b1f8d3
|
4
|
+
data.tar.gz: 4988772122d088aaacced0c7c1e01a6f2bfba733
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1ef1c58748b6ce7a3b78bbdf7bf887730a2380948b8cdce5b3617208f0bb45a6e2842a449509abfb889904fb7732bff720b4a8d241b1cf0c50b7cce19108ae32
|
7
|
+
data.tar.gz: addb6ee7e53da946d61047c73189602967c7e4455d12d24e4f23245b33a7a78b0e8fee865eed9c19bf4946269e9b9eede6d3eca4ae52894e53b1bbece8a83e16
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Bart Koopmans
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# MonacoinClient
|
2
|
+
|
3
|
+
client for monacoin.
|
4
|
+
|
5
|
+
It includes:
|
6
|
+
|
7
|
+
- Monacoin RPC
|
8
|
+
|
9
|
+
Todo:
|
10
|
+
|
11
|
+
- Other userfull monacoin tools, ideas?
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
$ rake build
|
16
|
+
$ gem install pkg/monacoin_tools-X.X.X.gem
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
Example for the RPC:
|
21
|
+
|
22
|
+
```
|
23
|
+
require 'monacoin_client'
|
24
|
+
|
25
|
+
lt = MonacoinRPC.new('http://user:password@127.0.0.1:9332')
|
26
|
+
p lt.getbalance # this outputs the balance
|
27
|
+
```
|
28
|
+
|
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
|
+
## Contributing
|
37
|
+
|
38
|
+
1. Fork it
|
39
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
40
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
41
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
42
|
+
5. Create new Pull Request
|
43
|
+
|
44
|
+
If someone has some suggestions for this gem let me know.
|
45
|
+
|
46
|
+
## Donations
|
47
|
+
|
48
|
+
Monacoin address : MMhwb8rehZt2iFH87USvJmi6WHKLPfSdS2
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|