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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94ae596cedd3c432afd505ed23db0b46fec14eac
4
- data.tar.gz: a5f7e3cdc70dc4ba21e7233a19bd2e7b9015e059
3
+ metadata.gz: 8e13e5f377c9928e972270b0dfc7847fb4008712
4
+ data.tar.gz: d2ac0d7b4d981b02c6b830ccac5e65eaaf714a58
5
5
  SHA512:
6
- metadata.gz: 2ba9f9b83a4bdcfc0ae400f164811f3f1e82ca5a65e035db6c640f938e0f7d93053d11e57a7a8863ad80035dd5883eaa10ab5b9982ccb3c88529e61ff1cd688e
7
- data.tar.gz: 4a0a0a3fb4f0f3f63ef16d9a3fea1072a8f817049505b6370f6918097dcff22901fcdf8cfd4925c8ac54eb7119bbb7df6fa1c609a23d519b118ea72d1e2490fd
6
+ metadata.gz: 6558f7e08e2fa3117b96c90faa3614f753bbf8e50def818189ff8e2fb5ba095c3664c09b8fb33f3aaf8492171d1e8af815a281221f41ad54fa128ac154b0d46d
7
+ data.tar.gz: 4cc8725c1fcf88e4505771abbe5cb5e2ddad4b90c280c684cd2f25aa0425e60303963d073f7d7f665dce4221ec7b54f7ee01363f71694b218805d1e4ad356b0e
@@ -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
- @uri = URI("http://#{@host}:#{@port}")
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
 
@@ -1,3 +1,3 @@
1
1
  module Ethereum
2
- VERSION = "0.4.96"
2
+ VERSION = "0.4.97"
3
3
  end
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.96
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-03-30 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler