cleanrpc 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -0
- data/Gemfile.lock +30 -34
- data/README.md +11 -1
- data/lib/cleanrpc/rpc.rb +2 -0
- data/lib/cleanrpc/version.rb +1 -1
- metadata +6 -6
- data/cleanrpc.gemspec +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8700c590ef84d075cc1a1df6fc5043662b3dc56066df8ba01ffe3698409ba48f
|
|
4
|
+
data.tar.gz: 021a8bd2e3d7881affa3fa1a5a169a5035f8235098d6e4f70f1887af25d1bf39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8358df99eda9915dc0bb8abaa9862bdd4e3392864d616e147477e66a1bbf5608f31bc3f7bfae67c750106199c2cd710e697c870eede52ffc81866023cb69220e
|
|
7
|
+
data.tar.gz: d063319424284295e9864d2784e5ebfdc457e5d597fc5becaf7bbe70f6fda6ce717b0df1fedfe60b0b30c9d209b73eca60266d689e965cd952093960c695c7a6
|
data/.rubocop.yml
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cleanrpc (0.0.
|
|
4
|
+
cleanrpc (0.0.3)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -9,57 +9,52 @@ GEM
|
|
|
9
9
|
ansi (1.5.0)
|
|
10
10
|
ast (2.4.2)
|
|
11
11
|
coderay (1.1.3)
|
|
12
|
-
diff-lcs (1.5.
|
|
12
|
+
diff-lcs (1.5.1)
|
|
13
13
|
docile (1.4.0)
|
|
14
|
-
json (2.
|
|
14
|
+
json (2.7.2)
|
|
15
15
|
language_server-protocol (3.17.0.3)
|
|
16
|
-
method_source (1.
|
|
17
|
-
parallel (1.
|
|
18
|
-
parser (3.
|
|
16
|
+
method_source (1.1.0)
|
|
17
|
+
parallel (1.25.1)
|
|
18
|
+
parser (3.3.3.0)
|
|
19
19
|
ast (~> 2.4.1)
|
|
20
20
|
racc
|
|
21
21
|
pry (0.14.2)
|
|
22
22
|
coderay (~> 1.1)
|
|
23
23
|
method_source (~> 1.0)
|
|
24
|
-
racc (1.
|
|
24
|
+
racc (1.8.0)
|
|
25
25
|
rainbow (3.1.1)
|
|
26
|
-
rake (13.1
|
|
27
|
-
regexp_parser (2.
|
|
28
|
-
rexml (3.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
rspec-
|
|
32
|
-
rspec-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
rake (13.2.1)
|
|
27
|
+
regexp_parser (2.9.2)
|
|
28
|
+
rexml (3.3.0)
|
|
29
|
+
strscan
|
|
30
|
+
rspec (3.13.0)
|
|
31
|
+
rspec-core (~> 3.13.0)
|
|
32
|
+
rspec-expectations (~> 3.13.0)
|
|
33
|
+
rspec-mocks (~> 3.13.0)
|
|
34
|
+
rspec-core (3.13.0)
|
|
35
|
+
rspec-support (~> 3.13.0)
|
|
36
|
+
rspec-expectations (3.13.1)
|
|
36
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
37
|
-
rspec-support (~> 3.
|
|
38
|
-
rspec-mocks (3.
|
|
38
|
+
rspec-support (~> 3.13.0)
|
|
39
|
+
rspec-mocks (3.13.1)
|
|
39
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.
|
|
41
|
-
rspec-support (3.
|
|
42
|
-
rubocop (1.
|
|
41
|
+
rspec-support (~> 3.13.0)
|
|
42
|
+
rspec-support (3.13.1)
|
|
43
|
+
rubocop (1.64.1)
|
|
43
44
|
json (~> 2.3)
|
|
44
45
|
language_server-protocol (>= 3.17.0)
|
|
45
46
|
parallel (~> 1.10)
|
|
46
|
-
parser (>= 3.
|
|
47
|
+
parser (>= 3.3.0.2)
|
|
47
48
|
rainbow (>= 2.2.2, < 4.0)
|
|
48
49
|
regexp_parser (>= 1.8, < 3.0)
|
|
49
50
|
rexml (>= 3.2.5, < 4.0)
|
|
50
|
-
rubocop-ast (>= 1.
|
|
51
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
51
52
|
ruby-progressbar (~> 1.7)
|
|
52
53
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
53
|
-
rubocop-ast (1.
|
|
54
|
-
parser (>= 3.
|
|
55
|
-
rubocop-
|
|
56
|
-
rubocop (~> 1.
|
|
57
|
-
rubocop-factory_bot (2.24.0)
|
|
58
|
-
rubocop (~> 1.33)
|
|
59
|
-
rubocop-rspec (2.25.0)
|
|
60
|
-
rubocop (~> 1.40)
|
|
61
|
-
rubocop-capybara (~> 2.17)
|
|
62
|
-
rubocop-factory_bot (~> 2.22)
|
|
54
|
+
rubocop-ast (1.31.3)
|
|
55
|
+
parser (>= 3.3.1.0)
|
|
56
|
+
rubocop-rspec (3.0.1)
|
|
57
|
+
rubocop (~> 1.61)
|
|
63
58
|
ruby-progressbar (1.13.0)
|
|
64
59
|
simplecov (0.22.0)
|
|
65
60
|
docile (~> 1.1)
|
|
@@ -71,6 +66,7 @@ GEM
|
|
|
71
66
|
terminal-table
|
|
72
67
|
simplecov-html (0.12.3)
|
|
73
68
|
simplecov_json_formatter (0.1.4)
|
|
69
|
+
strscan (3.1.0)
|
|
74
70
|
terminal-table (3.0.2)
|
|
75
71
|
unicode-display_width (>= 1.1.1, < 3)
|
|
76
72
|
unicode-display_width (2.5.0)
|
data/README.md
CHANGED
|
@@ -21,6 +21,16 @@ Or install it yourself as:
|
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
$ ./bin/console
|
|
27
|
+
irb(main):001:0> rpc = Cleanrpc::Rpc.new("http://aUser:aPassword@localhost:8332")
|
|
28
|
+
=> #<Cleanrpc::Rpc:0x0000000103787bf8 @uri=#<URI::HTTP http://aUser:aPassword@localhost:8332>>
|
|
29
|
+
irb(main):002:0> rpc.getblockcount
|
|
30
|
+
=> 816336
|
|
31
|
+
irb(main):003:0>
|
|
32
|
+
```
|
|
33
|
+
|
|
24
34
|
## Development
|
|
25
35
|
|
|
26
36
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
@@ -43,7 +53,7 @@ rake spec # Run RSpec code examples
|
|
|
43
53
|
|
|
44
54
|
## Contributing
|
|
45
55
|
|
|
46
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
56
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/BrantaOps/cleanrpc.
|
|
47
57
|
|
|
48
58
|
## License
|
|
49
59
|
|
data/lib/cleanrpc/rpc.rb
CHANGED
data/lib/cleanrpc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cleanrpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Gardner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -115,22 +115,22 @@ extensions: []
|
|
|
115
115
|
extra_rdoc_files: []
|
|
116
116
|
files:
|
|
117
117
|
- ".rspec_status"
|
|
118
|
+
- ".rubocop.yml"
|
|
118
119
|
- ".ruby-version"
|
|
119
120
|
- Gemfile
|
|
120
121
|
- Gemfile.lock
|
|
121
122
|
- LICENSE
|
|
122
123
|
- README.md
|
|
123
124
|
- Rakefile
|
|
124
|
-
- cleanrpc.gemspec
|
|
125
125
|
- lib/cleanrpc.rb
|
|
126
126
|
- lib/cleanrpc/rpc.rb
|
|
127
127
|
- lib/cleanrpc/version.rb
|
|
128
128
|
- sig/cleanrpc.rbs
|
|
129
|
-
homepage: https://github.com/
|
|
129
|
+
homepage: https://github.com/BrantaOps/cleanrpc
|
|
130
130
|
licenses: []
|
|
131
131
|
metadata:
|
|
132
|
-
homepage_uri: https://github.com/
|
|
133
|
-
source_code_uri: https://github.com/
|
|
132
|
+
homepage_uri: https://github.com/BrantaOps/cleanrpc
|
|
133
|
+
source_code_uri: https://github.com/BrantaOps/cleanrpc
|
|
134
134
|
post_install_message:
|
|
135
135
|
rdoc_options: []
|
|
136
136
|
require_paths:
|
data/cleanrpc.gemspec
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative 'lib/cleanrpc/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'cleanrpc'
|
|
7
|
-
spec.version = Cleanrpc::VERSION
|
|
8
|
-
spec.authors = ['Keith Gardner']
|
|
9
|
-
|
|
10
|
-
spec.summary = 'Zero-dependency RPC for Bitcoin Core in Ruby.'
|
|
11
|
-
spec.homepage = 'https://github.com/Carolina-Bitcoin-Project/cleanrpc'
|
|
12
|
-
spec.required_ruby_version = '>= 2.6.0'
|
|
13
|
-
|
|
14
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
|
15
|
-
spec.metadata['source_code_uri'] = 'https://github.com/Carolina-Bitcoin-Project/cleanrpc'
|
|
16
|
-
|
|
17
|
-
# Specify which files should be added to the gem when it is released.
|
|
18
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
19
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
20
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
|
21
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
spec.bindir = 'exe'
|
|
25
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
26
|
-
spec.require_paths = ['lib']
|
|
27
|
-
|
|
28
|
-
spec.add_development_dependency 'pry'
|
|
29
|
-
spec.add_development_dependency 'rake'
|
|
30
|
-
spec.add_development_dependency 'rspec'
|
|
31
|
-
spec.add_development_dependency 'rubocop'
|
|
32
|
-
spec.add_development_dependency 'rubocop-rspec'
|
|
33
|
-
spec.add_development_dependency 'simplecov'
|
|
34
|
-
spec.add_development_dependency 'simplecov-console'
|
|
35
|
-
end
|