cleanrpc 0.0.1 → 0.0.3

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: 6ba622121edbc58080996cb465fd9330b4c1dbc39aa75f2c89b27c247f8634d6
4
- data.tar.gz: b3e8099b5e4b43fb9c46c307b3797e9cd3639d6957a0553075ab1fa925c9c31b
3
+ metadata.gz: 8700c590ef84d075cc1a1df6fc5043662b3dc56066df8ba01ffe3698409ba48f
4
+ data.tar.gz: 021a8bd2e3d7881affa3fa1a5a169a5035f8235098d6e4f70f1887af25d1bf39
5
5
  SHA512:
6
- metadata.gz: fdbe9aab358f4cfbdb61d2ba0c6bdafd13e0aba218f5981846c64792aca3721a78faf1d46023e1744a6dec867ec8200c6345242935af06121dc35e191c74bc7f
7
- data.tar.gz: 9299ba65e748b885ea0f5862901e71ee3eb1abe97f4b847cdb2327c4d4e2aa628b077edd1a3ab11f74d43f05674f192bc9818ddb894b227615467751be0682fe
6
+ metadata.gz: 8358df99eda9915dc0bb8abaa9862bdd4e3392864d616e147477e66a1bbf5608f31bc3f7bfae67c750106199c2cd710e697c870eede52ffc81866023cb69220e
7
+ data.tar.gz: d063319424284295e9864d2784e5ebfdc457e5d597fc5becaf7bbe70f6fda6ce717b0df1fedfe60b0b30c9d209b73eca60266d689e965cd952093960c695c7a6
data/.rspec_status CHANGED
@@ -1,3 +1,7 @@
1
- example_id | status | run_time |
2
- ---------------------------- | ------ | --------------- |
3
- ./spec/cleanrpc_spec.rb[1:1] | passed | 0.00116 seconds |
1
+ example_id | status | run_time |
2
+ ---------------------------------- | ------ | --------------- |
3
+ ./spec/cleanrpc/rpc_spec.rb[1:1:1] | passed | 0.00018 seconds |
4
+ ./spec/cleanrpc/rpc_spec.rb[1:2] | passed | 0.00555 seconds |
5
+ ./spec/cleanrpc/rpc_spec.rb[1:3] | passed | 0.00029 seconds |
6
+ ./spec/cleanrpc/rpc_spec.rb[1:4] | passed | 0.00792 seconds |
7
+ ./spec/cleanrpc_spec.rb[1:1] | passed | 0.00125 seconds |
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ SuggestExtensions: false
3
+ Style/Documentation:
4
+ Enabled: false
5
+ Style/MissingRespondToMissing:
6
+ Enabled: false
7
+ Gemspec/RequiredRubyVersion:
8
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cleanrpc (0.0.1)
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.0)
12
+ diff-lcs (1.5.1)
13
13
  docile (1.4.0)
14
- json (2.6.3)
14
+ json (2.7.2)
15
15
  language_server-protocol (3.17.0.3)
16
- method_source (1.0.0)
17
- parallel (1.23.0)
18
- parser (3.2.2.4)
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.7.3)
24
+ racc (1.8.0)
25
25
  rainbow (3.1.1)
26
- rake (13.1.0)
27
- regexp_parser (2.8.2)
28
- rexml (3.2.6)
29
- rspec (3.12.0)
30
- rspec-core (~> 3.12.0)
31
- rspec-expectations (~> 3.12.0)
32
- rspec-mocks (~> 3.12.0)
33
- rspec-core (3.12.2)
34
- rspec-support (~> 3.12.0)
35
- rspec-expectations (3.12.3)
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.12.0)
38
- rspec-mocks (3.12.6)
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.12.0)
41
- rspec-support (3.12.1)
42
- rubocop (1.57.2)
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.2.2.4)
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.28.1, < 2.0)
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.30.0)
54
- parser (>= 3.2.1.0)
55
- rubocop-capybara (2.19.0)
56
- rubocop (~> 1.41)
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
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/cleanrpc.svg)](https://badge.fury.io/rb/cleanrpc)
2
+
1
3
  # Cleanrpc
2
4
 
3
5
 
@@ -19,6 +21,16 @@ Or install it yourself as:
19
21
 
20
22
  ## Usage
21
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
+
22
34
  ## Development
23
35
 
24
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.
@@ -41,7 +53,7 @@ rake spec # Run RSpec code examples
41
53
 
42
54
  ## Contributing
43
55
 
44
- Bug reports and pull requests are welcome on GitHub at https://github.com/Carolina-Bitcoin-Project/UTXOracle.
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/BrantaOps/cleanrpc.
45
57
 
46
58
  ## License
47
59
 
data/lib/cleanrpc/rpc.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'net/http'
2
4
  require 'uri'
3
5
  require 'json'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cleanrpc
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.3'
5
5
  end
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.1
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: 2023-11-06 00:00:00.000000000 Z
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/Carolina-Bitcoin-Project/cleanrpc
129
+ homepage: https://github.com/BrantaOps/cleanrpc
130
130
  licenses: []
131
131
  metadata:
132
- homepage_uri: https://github.com/Carolina-Bitcoin-Project/cleanrpc
133
- source_code_uri: https://github.com/Carolina-Bitcoin-Project/cleanrpc
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