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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a14ad62aa7895381a7d304358397e3e0c84895e98a910d6958d8f89f0caf80c
4
- data.tar.gz: f873b576248b45a70bcddca71721215dde596950c9ce1833918b1dfa66a72133
3
+ metadata.gz: 19d46c77ad8cab903761e7d507889dfc7e4f446df62f88c9fb4dfbf505f332cc
4
+ data.tar.gz: f8d400e69bb56c02c9d7ada64fe7dd023a58c24d0c64f99f46e5f3a9211b6c8a
5
5
  SHA512:
6
- metadata.gz: baef53c6d16c0ffc55bc649335dbf61c339a7e3638bf5d05bf199b9de990e108938af88ec01888275efe99e61f96dfb8ef7862b3b861a8264297adec1ba6534a
7
- data.tar.gz: 583673b49fc417a05d8b0c08d9caa8ad9bfad57eabb26bbaff0e735222b27ea6f6f5c564c76cc1ee256024412c0e4416dcce7b5428a5483a9c253b9d862b1dda
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(['xrb_1234', 'xrb_456']) # Array of account addresses required
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:
@@ -63,6 +63,10 @@ module NanoRpc::AccountHelper
63
63
  ).set == 1
64
64
  end
65
65
 
66
+ def valid?
67
+ validate_account_number.valid == 1
68
+ end
69
+
66
70
  def weight
67
71
  account_weight.weight
68
72
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module NanoRpc
3
- VERSION = '0.10.0'
3
+ VERSION = '0.11.0'
4
4
  end
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.10.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-05-24 00:00:00.000000000 Z
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