eth-patched 0.4.14 → 0.4.15

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
  SHA256:
3
- metadata.gz: 02f180318ccfb11ccd826d6085e0b5c35def92c2e96dd524fc351af1487cb113
4
- data.tar.gz: ac6c1a37e277cf1843f00c9a9b5d1ccda020802f0d049afccd36c230be8d8156
3
+ metadata.gz: 920dea5ad02e9f03ad61544044791c8140e163a3dbf7247a3ff5c39d579a8efd
4
+ data.tar.gz: 4b482c0032c45081818044faa65a7718cb7bf322a680cf2e19cb11814efe4265
5
5
  SHA512:
6
- metadata.gz: f329bbf7c8731d850716552979c9e0f7dfdca63b5b12eb4e310fcf8a872fdf28e1526baf03d3909732f5748f946997b50c3b5fcb8ce9652ad7a4a4d88d46f1b0
7
- data.tar.gz: e61f1f550ffdb602d320266dfcae7bc5a781c94f6ef3f1884b50942a14dccf55aa216605bb169ba8987acd772d46c8785a24a97276c71dce3e6cca8ba4841fd6
6
+ metadata.gz: 02d8d1122b937c7dd1d6ae4010f23c01f488cdbfd362442768a90126b6973fd14a5c6968a7d93907dc9d618dc769e94e229cb2072af3bbea9f6b14f6e98df84d
7
+ data.tar.gz: 6eb880754eccab0dc60bb42c639290c612ac937edcd5b6a7a54f4f25eaa0b285fb25df255ee728f6590e11123c6ad47c9c8111edfd1659b33e2cd07c0c12796d
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Build
3
+
4
+ on: [push, pull_request]
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0
14
+ - name: Install Dependencies
15
+ run: |
16
+ git submodule update --init
17
+ bundle install
18
+ - name: Run Tests
19
+ run: |
20
+ rspec
data/.gitignore CHANGED
@@ -1,10 +1,43 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
1
+ *.DS_Store
2
+
3
+ /test/test_vectors.rb
4
+ /ext/digest/Makefile
5
+ /ext/digest/keccak.so
6
+ /ext/digest/mkmf.log
7
+
8
+ *.o
9
+ *.so
10
+ *.gem
11
+ *.log
12
+ *.rbc
13
+ /.config
14
+ /.rake_tasks~
5
15
  /coverage/
6
- /doc/
16
+ /InstalledFiles
7
17
  /pkg/
8
- /spec/reports/
9
18
  /tmp/
10
- .ruby-version
19
+
20
+ # RSpec configuration and generated files:
21
+ /.rspec
22
+ /spec/examples.txt
23
+
24
+ # Documentation cache and generated files:
25
+ /.yardoc/
26
+ /_yardoc/
27
+ /doc/
28
+ /rdoc/
29
+
30
+ # Environment normalization:
31
+ /.bundle/
32
+ /vendor/bundle/*
33
+ !/vendor/bundle/.keep
34
+ /lib/bundler/man/
35
+
36
+ # For a library or gem, you might want to ignore these files since the code is
37
+ # intended to run in multiple environments; otherwise, check them in:
38
+ /Gemfile.lock
39
+ /.ruby-version
40
+ /.ruby-gemset
41
+
42
+ # Unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
43
+ .rvmrc
data/CHANGELOG.md CHANGED
@@ -6,63 +6,67 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ### Unreleased
8
8
 
9
- ## [0.4.13] "eth-patched"
9
+ ## [0.4.15] "eth-patched"
10
+ ### Changed
11
+ - docs: update changelog for 1.4.15
12
+ - docs: update readme for eth-patched
13
+ - ci: checkout github submodules
14
+ - ci: replace travis with github actions
15
+ - lib: bump version to 1.4.15
16
+ - gems: improve gemspec
17
+ - git: update gitignore
18
+ - relicense to APACHE 2.0
19
+
20
+ ## [0.4.14] "eth-patched"
21
+ ### Changed
22
+ - gems: replace sha3 with keccak
10
23
 
24
+ ## [0.4.13] "eth-patched"
11
25
  ### Changed
12
- - Bump digest-sha3-patched-ruby-3 version for ruby 3 support
26
+ - gems: release eth-patched 0.4.13
27
+ - gems: replace digest-sha3-patched with digest-sha3-patched-ruby-3
13
28
 
14
29
  ## [0.4.12]
15
-
16
30
  ### Changed
17
31
  - Bump rake version because of security vulnerability
18
32
 
19
33
  ## [0.4.11]
20
-
21
34
  ### Added
22
35
  - Support for recovering signatures with a V value below 27 (like from Ledger hardware wallets)
23
36
 
24
37
  ## [0.4.10]
25
-
26
38
  ### Changed
27
39
  - Use updated sha3 dependency
28
40
  - Improved OpenSSL support
29
-
30
41
  ### Changed
31
42
  - Changed Eth::Configuration.default_chain_id back to .chain_id for dependent libraries.
32
43
 
33
44
  ## [0.4.9]
34
-
35
45
  ### Changed
36
46
  - [escoffon](https://github.com/escoffon) added support for chain IDs larger than 120.
37
47
 
38
48
  ## [0.4.8]
39
-
40
49
  ### Added
41
50
  - [@buhrmi](https://github.com/buhrmi) added Eth::Key#personal_sign.
42
51
  - [@buhrmi](https://github.com/buhrmi) added Eth::Key#personal_recover.
43
52
 
44
53
  ## [0.4.7]
45
-
46
54
  ### Changed
47
55
  - Updated MoneyTree dependency.
48
56
 
49
57
  ## [0.4.6]
50
-
51
58
  ### Added
52
59
  - Support scrypt private key decryption
53
60
 
54
61
  ## [0.4.5]
55
-
56
62
  ### Changed
57
63
  - Further improve Open SSL configurability
58
64
 
59
65
  ## [0.4.4]
60
-
61
66
  ### Changed
62
67
  - Support old versions of SSL to help avoid preious breaking changes
63
68
 
64
69
  ## [0.4.3]
65
-
66
70
  ### Added
67
71
  - Eth::Key::Encrypter class to handle encrypting keys.
68
72
  - Eth::Key.encrypt as a nice wrapper around Encrypter class.
@@ -70,29 +74,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
70
74
  - Eth::Key.decrypt as a nice wrapper around Decrypter class.
71
75
 
72
76
  ## [0.4.2]
73
-
74
77
  ### Added
75
78
  - Address#valid? to validate EIP55 checksums.
76
79
  - Address#checksummed to generate EIP55 checksums.
77
80
  - Utils.valid_address? to easily validate EIP55 checksums.
78
81
  - Utils.format_address to easily convert an address to EIP55 checksummed.
79
-
80
82
  ### Changed
81
83
  - Dependencies no longer include Ethereum::Base. Eth now implements those helpers directly and includes ffi, digest-sha3, and rlp directly.
82
84
 
83
85
 
84
86
  ## [0.4.1]
85
-
86
87
  ### Changed
87
88
  - Tx#hash includes the '0x' hex prefix.
88
89
 
89
90
  ## [0.4.0]
90
-
91
91
  ### Added
92
92
  - Tx#data_bin returns the data field of a transaction in binary.
93
93
  - Tx#data_hex returns the data field of a transaction as a hexadecimal string.
94
94
  - Tx#id is an alias of Tx#hash
95
-
96
95
  ### Changed
97
96
  - Tx#data is configurable to return either hex or binary: `config.tx_data_hex = true`.
98
97
  - Tx#hex includes the '0x' hex prefix.
data/COPYRIGHT.txt ADDED
@@ -0,0 +1,5 @@
1
+ Copyright (c) 2016-2020 Steve Ellis; licensed under MIT License
2
+ https://github.com/se3000/ruby-eth
3
+
4
+ Copyright (c) 2021-2022 Afri Schoedon; re-licensed under Apache 2.0
5
+ https://github.com/q9f/ruby-eth
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
- # Specify your gem's dependencies in ethereum-tx.gemspec
5
+ # Specify your gem's dependencies in eth.gemspec
4
6
  gemspec
data/LICENSE.txt CHANGED
@@ -1,21 +1,202 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Steve Ellis
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2019 @q9f
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Eth [![Travis-CI](https://travis-ci.org/se3000/ruby-eth.svg?branch=master)](https://travis-ci.org/se3000/ruby-eth) [![Code Climate](https://codeclimate.com/github/se3000/ruby-eth/badges/gpa.svg)](https://codeclimate.com/github/se3000/ruby-eth) [![Gitter](https://badges.gitter.im/ruby-eth/Lobby.svg)](https://gitter.im/ruby-eth/Lobby)
1
+ # Eth (Patched for Ruby 3)
2
+ [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/q9f/ruby-eth/Build/q9f/release/patch)](https://github.com/q9f/ruby-eth/actions)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/3398dbeb83d7fcb690eb/maintainability)](https://codeclimate.com/github/q9f/ruby-eth/maintainability)
2
4
 
3
5
  A simple library to build and sign Ethereum transactions. Allows separation of key and node management. Sign transactions and handle keys anywhere you can run ruby, broadcast transactions through any node.
4
6
 
@@ -7,16 +9,16 @@ A simple library to build and sign Ethereum transactions. Allows separation of k
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'eth'
12
+ gem 'eth-patched'
11
13
  ```
12
14
 
13
15
  And then execute:
14
16
 
15
- $ bundle
17
+ $ bundle install
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install eth
21
+ $ gem install eth-patched
20
22
 
21
23
  ## Usage
22
24
 
@@ -118,7 +120,7 @@ end
118
120
 
119
121
  ## Contributing
120
122
 
121
- Bug reports and pull requests are welcome on GitHub at https://github.com/se3000/ethereum-tx. Tests are encouraged.
123
+ Bug reports and pull requests are welcome on GitHub at https://github.com/q9f/ruby-eth. Tests are encouraged.
122
124
 
123
125
  ### Tests
124
126
 
@@ -136,7 +138,9 @@ rspec
136
138
 
137
139
  ## License
138
140
 
139
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
141
+ The gem is available as open-source software under the terms of the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
142
+
143
+ This gem was initially developed and published as `eth` (MIT): https://github.com/se3000/ruby-eth
140
144
 
141
145
  ## TODO
142
146
 
data/eth.gemspec CHANGED
@@ -1,31 +1,46 @@
1
+ # frozen_string_literal: true
1
2
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ lib = File.expand_path('lib', __dir__).freeze
5
+ $LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
6
+
4
7
  require 'eth/version'
5
8
 
6
9
  Gem::Specification.new do |spec|
7
10
  spec.name = "eth-patched"
8
11
  spec.version = Eth::VERSION
9
12
  spec.authors = ["Steve Ellis", "Afri Schoedon"]
10
- spec.email = ["email@steveell.is", "gems@q9f.cc"]
13
+ spec.email = "%w[ruby@q9f.cc]"
11
14
 
12
15
  spec.summary = %q{Simple API to sign Ethereum transactions.}
13
16
  spec.description = %q{Library to build, parse, and sign Ethereum transactions.}
14
17
  spec.homepage = "https://github.com/q9f/ruby-eth"
15
- spec.license = "MIT"
18
+ spec.license = "Apache-2.0"
19
+
20
+ spec.metadata = {
21
+ 'homepage_uri' => 'https://github.com/q9f/ruby-eth',
22
+ 'source_code_uri' => 'https://github.com/q9f/ruby-eth',
23
+ 'github_repo' => 'https://github.com/q9f/ruby-eth',
24
+ 'bug_tracker_uri' => 'https://github.com/q9f/ruby-eth/issues',
25
+ }.freeze
16
26
 
17
27
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
28
  spec.bindir = "exe"
19
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
30
  spec.require_paths = ["lib"]
31
+ spec.test_files = spec.files.grep %r{^(test|spec|features)/}
21
32
 
22
33
  spec.add_dependency 'keccak', '~> 1.2'
23
- spec.add_dependency 'ffi', '~> 1.0'
24
- spec.add_dependency 'money-tree', '~> 0.10.0'
25
- spec.add_dependency 'rlp', '~> 0.7.3'
26
- spec.add_dependency 'scrypt', '~> 3.0.6'
27
-
28
- spec.add_development_dependency 'pry', '~> 0.1'
29
- spec.add_development_dependency 'rake', '>= 12.3.3'
30
- spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_dependency 'ffi', '~> 1.15'
35
+ spec.add_dependency 'money-tree', '~> 0.10'
36
+ spec.add_dependency 'rlp', '~> 0.7'
37
+ spec.add_dependency 'scrypt', '~> 3.0'
38
+
39
+ spec.platform = Gem::Platform::RUBY
40
+ spec.required_ruby_version = ">= 2.2", "< 4.0"
41
+
42
+ spec.add_development_dependency 'bundler', '~> 2.2'
43
+ spec.add_development_dependency 'pry', '~> 0.14'
44
+ spec.add_development_dependency 'rake', '~> 13.0'
45
+ spec.add_development_dependency 'rspec', '~> 3.10'
31
46
  end
data/lib/eth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eth
2
- VERSION = "0.4.14"
2
+ VERSION = "0.4.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eth-patched
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.14
4
+ version: 0.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Ellis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-09-30 00:00:00.000000000 Z
12
+ date: 2021-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: keccak
@@ -31,111 +31,124 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.0'
34
+ version: '1.15'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: '1.15'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: money-tree
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.10.0
48
+ version: '0.10'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 0.10.0
55
+ version: '0.10'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rlp
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.7.3
62
+ version: '0.7'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.7.3
69
+ version: '0.7'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: scrypt
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 3.0.6
76
+ version: '3.0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 3.0.6
83
+ version: '3.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: bundler
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '2.2'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.2'
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: pry
86
100
  requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
102
  - - "~>"
89
103
  - !ruby/object:Gem::Version
90
- version: '0.1'
104
+ version: '0.14'
91
105
  type: :development
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
109
  - - "~>"
96
110
  - !ruby/object:Gem::Version
97
- version: '0.1'
111
+ version: '0.14'
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: rake
100
114
  requirement: !ruby/object:Gem::Requirement
101
115
  requirements:
102
- - - ">="
116
+ - - "~>"
103
117
  - !ruby/object:Gem::Version
104
- version: 12.3.3
118
+ version: '13.0'
105
119
  type: :development
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
108
122
  requirements:
109
- - - ">="
123
+ - - "~>"
110
124
  - !ruby/object:Gem::Version
111
- version: 12.3.3
125
+ version: '13.0'
112
126
  - !ruby/object:Gem::Dependency
113
127
  name: rspec
114
128
  requirement: !ruby/object:Gem::Requirement
115
129
  requirements:
116
130
  - - "~>"
117
131
  - !ruby/object:Gem::Version
118
- version: '3.0'
132
+ version: '3.10'
119
133
  type: :development
120
134
  prerelease: false
121
135
  version_requirements: !ruby/object:Gem::Requirement
122
136
  requirements:
123
137
  - - "~>"
124
138
  - !ruby/object:Gem::Version
125
- version: '3.0'
139
+ version: '3.10'
126
140
  description: Library to build, parse, and sign Ethereum transactions.
127
- email:
128
- - email@steveell.is
129
- - gems@q9f.cc
141
+ email: "%w[ruby@q9f.cc]"
130
142
  executables: []
131
143
  extensions: []
132
144
  extra_rdoc_files: []
133
145
  files:
146
+ - ".github/workflows/build.yml"
134
147
  - ".gitignore"
135
148
  - ".gitmodules"
136
149
  - ".rspec"
137
- - ".travis.yml"
138
150
  - CHANGELOG.md
151
+ - COPYRIGHT.txt
139
152
  - Gemfile
140
153
  - LICENSE.txt
141
154
  - README.md
@@ -157,8 +170,12 @@ files:
157
170
  - lib/eth/version.rb
158
171
  homepage: https://github.com/q9f/ruby-eth
159
172
  licenses:
160
- - MIT
161
- metadata: {}
173
+ - Apache-2.0
174
+ metadata:
175
+ homepage_uri: https://github.com/q9f/ruby-eth
176
+ source_code_uri: https://github.com/q9f/ruby-eth
177
+ github_repo: https://github.com/q9f/ruby-eth
178
+ bug_tracker_uri: https://github.com/q9f/ruby-eth/issues
162
179
  post_install_message:
163
180
  rdoc_options: []
164
181
  require_paths:
@@ -167,14 +184,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
184
  requirements:
168
185
  - - ">="
169
186
  - !ruby/object:Gem::Version
170
- version: '0'
187
+ version: '2.2'
188
+ - - "<"
189
+ - !ruby/object:Gem::Version
190
+ version: '4.0'
171
191
  required_rubygems_version: !ruby/object:Gem::Requirement
172
192
  requirements:
173
193
  - - ">="
174
194
  - !ruby/object:Gem::Version
175
195
  version: '0'
176
196
  requirements: []
177
- rubygems_version: 3.2.27
197
+ rubygems_version: 3.2.28
178
198
  signing_key:
179
199
  specification_version: 4
180
200
  summary: Simple API to sign Ethereum transactions.
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- sudo: false
2
- dist: xenial
3
- language: ruby
4
- rvm:
5
- - 2.2.0
6
- - 2.3.0
7
- - 2.4.0
8
- - 2.5.3
9
- - 2.6.0
10
- before_install: gem install bundler -v 1.12.3