tron.rb 1.0.2 → 1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tron/version.rb +1 -1
  3. data/lib/tron.rb +10 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68e2df783fb208cc34d8e404c6c93b7fd27aae0066b2f6efec8650c739b5c623
4
- data.tar.gz: a13fae572eaebef060a24485db75d70d4d8a71a5952e62f18624b98926225258
3
+ metadata.gz: 47245c19132066a0f55673961d9bd8501bef9377debef4eaadc9e2ed879915e7
4
+ data.tar.gz: 589e32a25eab5e81040e094e3178f334084830b0abf023b290e13b0c8d6720f6
5
5
  SHA512:
6
- metadata.gz: f74287a0bd02186a0b8b2b7c4faf62a25fe4ba5e78168da5388855e21d9b3c36e6b5eaeda8d7ea2a787837729971fb033d3174d81352417f3839d043ccc5b275
7
- data.tar.gz: 21779f5695517650257c97719bb8903e4de98d4a0c69157816d2cf71a25420385cdfd9d3c8225f6c037a00cce41fe201f4ecbe75dd1231705d4424fe05f0cd79
6
+ metadata.gz: b690a27e2d498cd3f30fa5ac6390ef7a789a4c1f3647b144e13ea81e9a9caa894e73ca71c44f5d2b8f649a36cc5bfd1bb55ac03b396f4e95e71fe1f01bae8f8a
7
+ data.tar.gz: a25185d641615a26d40bcbb21ea8fb6f0fc6bf9aea69d842fe54d159cc0932a932f34966ce1d72bf2353ab945540b32c9ddaacff7c7338996fdaacfaeb231632
data/lib/tron/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # lib/tron/version.rb
4
4
  module Tron
5
- VERSION = "1.0.2".freeze
5
+ VERSION = "1.0.3".freeze
6
6
  end
data/lib/tron.rb CHANGED
@@ -8,7 +8,12 @@ require_relative 'tron/configuration'
8
8
  module Tron
9
9
  class << self
10
10
  def client
11
- @client ||= Client.new
11
+ @client ||= Client.new(
12
+ api_key: Client.configuration.api_key,
13
+ tronscan_api_key: Client.configuration.tronscan_api_key,
14
+ network: Client.configuration.network,
15
+ timeout: Client.configuration.timeout
16
+ )
12
17
  end
13
18
 
14
19
  def configure(&block)
@@ -16,6 +21,10 @@ module Tron
16
21
  Client.configure(&block)
17
22
  end
18
23
 
24
+ def configuration
25
+ Client.configuration
26
+ end
27
+
19
28
  # Delegate common methods to the default client
20
29
  def method_missing(method, *args, &block)
21
30
  if client.respond_to?(method)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tron.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-17 00:00:00.000000000 Z
11
+ date: 2025-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base58