nano_rpc 0.10.0 → 0.11.0
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 -3
- data/lib/nano_rpc/helpers/account_helper.rb +4 -0
- data/lib/nano_rpc/version.rb +1 -1
- data/nano_rpc.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19d46c77ad8cab903761e7d507889dfc7e4f446df62f88c9fb4dfbf505f332cc
|
4
|
+
data.tar.gz: f8d400e69bb56c02c9d7ada64fe7dd023a58c24d0c64f99f46e5f3a9211b6c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b854f7dec81c5f8d5744f57a45f0e5517ba9dffc5d03d5f4acbb9b46a308415f5eb17be22bd245aa3744c42d39b339d391446a204c8d434b1a650d2eb5ef42b
|
7
|
+
data.tar.gz: 17ffae12a7599c097a46554355af5fb6c6b589308668ac2ebb7922bb16f37238b3b1bfc28abf96600cefccbac2c610d4b3e5713e616544f91586f78875732f02
|
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/nano_rpc.svg)](https://badge.fury.io/rb/nano_rpc)
|
2
|
+
![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/nano_rpc?type=total)
|
3
|
+
[![Build Status](https://travis-ci.org/jcraigk/ruby_nano_rpc.svg?branch=master)](https://travis-ci.org/jcraigk/ruby_nano_rpc)
|
4
|
+
[![codecov](https://codecov.io/gh/jcraigk/ruby_nano_rpc/branch/master/graph/badge.svg)](https://codecov.io/gh/jcraigk/ruby_nano_rpc)
|
1
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability)
|
2
6
|
|
3
7
|
![Ruby Nano RPC Logo](https://i.imgur.com/ihmmYcp.png)
|
@@ -86,9 +90,9 @@ Proxy objects are provided to ease interaction with the API by providing logical
|
|
86
90
|
`Account`, `Accounts`, and `Wallet` each require a single parameter to be passed during initialization (`address`, `addresses`, and `seed`, respectively). This parameter is persisted for subsequent calls. All RPC methods are provided directly as methods.
|
87
91
|
|
88
92
|
```ruby
|
89
|
-
account = node.account('xrb_1234') # Account address required
|
90
|
-
accounts = node.accounts([
|
91
|
-
wallet = node.wallet('3AF91AE') # Wallet seed required
|
93
|
+
account = NanoRpc.node.account('xrb_1234') # Account address required
|
94
|
+
accounts = NanoRpc.node.accounts(%w[xrb_1234 xrb_456]) # Array of account addresses required
|
95
|
+
wallet = NanoRpc.node.wallet('3AF91AE') # Wallet seed required
|
92
96
|
```
|
93
97
|
|
94
98
|
You can call standard RPC methods on each object:
|
data/lib/nano_rpc/version.rb
CHANGED
data/nano_rpc.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = %w[lib]
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.16.1'
|
27
|
+
spec.add_development_dependency 'codecov', '~> 0.1.10'
|
27
28
|
spec.add_development_dependency 'pry', '~> 0.11.3'
|
28
29
|
spec.add_development_dependency 'rake', '~> 12.3.1'
|
29
30
|
spec.add_development_dependency 'rspec', '~> 3.7.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nano_rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Craig-Kuhn (JCK)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.16.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: codecov
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.10
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.10
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: pry
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|