ethereum 0.4.96 → 0.4.97
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ethereum/http_client.rb +6 -2
- data/lib/ethereum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e13e5f377c9928e972270b0dfc7847fb4008712
|
4
|
+
data.tar.gz: d2ac0d7b4d981b02c6b830ccac5e65eaaf714a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6558f7e08e2fa3117b96c90faa3614f753bbf8e50def818189ff8e2fb5ba095c3664c09b8fb33f3aaf8492171d1e8af815a281221f41ad54fa128ac154b0d46d
|
7
|
+
data.tar.gz: 4cc8725c1fcf88e4505771abbe5cb5e2ddad4b90c280c684cd2f25aa0425e60303963d073f7d7f665dce4221ec7b54f7ee01363f71694b218805d1e4ad356b0e
|
data/lib/ethereum/http_client.rb
CHANGED
@@ -3,11 +3,15 @@ module Ethereum
|
|
3
3
|
class HttpClient < Client
|
4
4
|
attr_accessor :command, :id, :host, :port, :batch, :converted_transactions, :uri
|
5
5
|
|
6
|
-
def initialize(host, port)
|
6
|
+
def initialize(host, port, ssl = false)
|
7
7
|
@host = host
|
8
8
|
@port = port
|
9
9
|
@id = 1
|
10
|
-
|
10
|
+
if ssl
|
11
|
+
@uri = URI("https://#{@host}:#{@port}")
|
12
|
+
else
|
13
|
+
@uri = URI("http://#{@host}:#{@port}")
|
14
|
+
end
|
11
15
|
@batch = []
|
12
16
|
end
|
13
17
|
|
data/lib/ethereum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethereum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.97
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DigixGlobal Pte Ltd (https://dgx.io)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|