ethereum.rb 2.3 → 2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c33919d2cb389821935ad3be1720651dc881e1eee3cc6f1d14a032fda3a67537
4
- data.tar.gz: 77732ab3a7e55ca68cfcbdb19d9ee5d46ae034b61494381976e0dba36d6e4371
3
+ metadata.gz: ee62dd3b5d2d9e9b29cd797f21bff2514998e95476d69da2367b57f0ac90c660
4
+ data.tar.gz: f9f08d7ffcb196d8c954c6ab79f902cb36f5bec5ef6f6ec9b8a39d4454ff241f
5
5
  SHA512:
6
- metadata.gz: b0ea22590997e63558511be9763c4dfc6d49b11b8b0fe1188b68617f433bf084d921ffb82c636519c5fde7d150b3ace3b92e398d2d25b23c71fac8aad9a1551c
7
- data.tar.gz: 49fc134565158beaec9f97e5e124e70ecb1b7171aa35026d2833d8920c473ad2f0ded9e81427ceaa4a1214eaf8e9513bcae2b61eaf9b4c9191d01e4d86099b8a
6
+ metadata.gz: c696336cb44fe3c43b2b4403bcb78695d8958d49319bd463068d86248f125183742622ad33a62425cbea625c8df8c209465fbc74b9913566b9d4f26845f4e25c
7
+ data.tar.gz: '09b2a85c0bec50dcdcb8470a76b552c81bec5563c6309f7d5a03cacd5f983be49ccbf9a362abf5fe16d54b9f62f855fe48c5bb952d249498c1b5c38808eb25b1'
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug
6
+ assignees: kurotaky
7
+
8
+ ---
9
+
10
+ ### Steps to reproduce
11
+ <!-- Steps to reproduce the behavior -->
12
+
13
+ ### Expected behavior
14
+ <!-- Tell us what should happen -->
15
+
16
+ ### Actual behavior
17
+ <!-- Tell us what happens instead -->
18
+
19
+ ### System configuration
20
+ **Ruby version**:
21
+ **Solc version**:
22
+ **Parity version**:
23
+ **OS**:
24
+
25
+ ### Failure Logs
26
+ <!-- Please include any relevant log snippets or files here-->
@@ -3,6 +3,8 @@ language: ruby
3
3
  rvm:
4
4
  - 2.4.3
5
5
  - 2.5.0
6
+ - 2.6
7
+ - 2.7
6
8
  env:
7
9
  - PARITY="2.5.12"
8
10
  cache:
@@ -3,7 +3,7 @@
3
3
  ## Compatibility and requirements
4
4
 
5
5
  * Tested with parity 2.5, might work with geth and older parity, but was not tested.
6
- * Tested with solc 0.4.16
6
+ * Tested with solc 0.5.16
7
7
  * Ruby 2.x
8
8
  * UNIX/Linux or OS X environment
9
9
 
@@ -5,7 +5,7 @@ sudo add-apt-repository ppa:ethereum/ethereum -y
5
5
  sudo apt-get update
6
6
  sudo apt-get -y install dpkg
7
7
  sudo apt-get -y install libssl-dev
8
- curl -o /usr/bin/solc -fL https://github.com/ethereum/solidity/releases/download/v0.4.16/solc-static-linux \
8
+ curl -o /usr/bin/solc -fL https://github.com/ethereum/solidity/releases/download/v0.5.16/solc-static-linux \
9
9
  && chmod 775 /usr/bin/solc \
10
10
  && chown travis:travis /usr/bin/solc
11
11
  echo "Solc version"
@@ -84,7 +84,7 @@ module Ethereum
84
84
  code = nil
85
85
  end
86
86
  else
87
- abi = JSON.parse(abi) if abi.is_a? String
87
+ abi = abi.is_a?(String) ? JSON.parse(abi) : abi.map(&:deep_stringify_keys)
88
88
  end
89
89
  contract = Ethereum::Contract.new(name, code, abi, client)
90
90
  contract.build
@@ -10,7 +10,7 @@ module Ethereum
10
10
 
11
11
  class Solidity
12
12
 
13
- OUTPUT_REGEXP = /======= (\S*):(\S*) =======\s*Binary:\s*(\S*)\s*Contract JSON ABI\s*(\S*)/
13
+ OUTPUT_REGEXP = /======= (\S*):(\S*) =======\s*Binary:\s*(\S*)\s*Contract JSON ABI\s*(.*)/
14
14
 
15
15
  def initialize(bin_path = "solc")
16
16
  @bin_path = bin_path
@@ -1,3 +1,3 @@
1
1
  module Ethereum
2
- VERSION = "2.3"
2
+ VERSION = "2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethereum.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.3'
4
+ version: '2.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Kirejczyk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,7 @@ executables: []
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
120
121
  - ".gitignore"
121
122
  - ".rspec"
122
123
  - ".ruby-gemset"