harmony-api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harmony/api/client.rb +2 -1
- data/lib/harmony/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90cd6fbfdd6bfc8dd0bdf7eaefd9d5e81e34d3051662b623f0aeaecef0badf75
|
4
|
+
data.tar.gz: c208f1342ef273164a82e503cd3efd660ef9ba5c66d0ba9ac0878832b8e7fe57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb38ee0df3142d3c4e3d26df1132bf1ae63eda3df21fad1bea052eb5ac8da05482d57acf0e2387cb7f0c82ab5697cba8f37ca63b0f80114914ca636c77489bd
|
7
|
+
data.tar.gz: 58adae6f19dcce68904cbb686579d9dc29aa30fefed25acd6f69edc934366cb1c7af513d834b6a444b9e2d9c937e0ac5a658fcc7faca12d6b3b3aec0d966a375
|
data/lib/harmony/api/client.rb
CHANGED
@@ -5,7 +5,7 @@ module Harmony
|
|
5
5
|
class Client
|
6
6
|
attr_accessor :url, :payload, :configuration, :connection, :headers, :api_version
|
7
7
|
|
8
|
-
def initialize(network: :
|
8
|
+
def initialize(network: :mainnet, shard: 0, configuration: ::Harmony::Api.configuration, options: {})
|
9
9
|
self.configuration = configuration
|
10
10
|
|
11
11
|
set_url(network, shard)
|
@@ -78,6 +78,7 @@ module Harmony
|
|
78
78
|
def log(tag = self.class.name, message)
|
79
79
|
puts "[#{tag}] - #{Time.now}: #{message}" if configuration.verbose
|
80
80
|
end
|
81
|
+
|
81
82
|
end
|
82
83
|
end
|
83
84
|
end
|
data/lib/harmony/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harmony-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|