Skip to content

Commit 08bf756

Browse files
Mabdullahlkhalil/gemdependacies (#73)
* gems: bump keccak to 1.3.0 (#69) * Gems: bump version to 0.4.17 (#70) * Gems: bump version to 0.4.17 * docs: update changelog * Dependancy money tree changed * Adding Money tree dependanccy * mabdullahlkhalil/gemdependacies * Gem dependanct * Gem dependanct * Gem dependacy * mabdullahlkhalil/gemdependacies * Gem dependacy * Money Tree fix * Update eth.gemspec * Update eth.gemspec
1 parent 8903f1a commit 08bf756

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
### Unreleased
88

9+
## [0.4.17]
10+
### Changed
11+
- Gems: bump version to 0.4.17 [#70](https://github.com/se3000/ruby-eth/pull/70)
12+
- Gems: bump keccak to 1.3.0 [#69](https://github.com/se3000/ruby-eth/pull/69)
13+
914
## [0.4.16]
1015
### Changed
1116
- Docs: update changelog [#65](https://github.com/se3000/ruby-eth/pull/65)

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

3-
source 'https://rubygems.org'
43

4+
gem 'money-tree', git: 'https://github.com/GemHQ/money-tree.git'
5+
source 'https://rubygems.org'
56
# Specify your gem's dependencies in eth.gemspec
67
gemspec

eth.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ Gem::Specification.new do |spec|
3030
spec.require_paths = ["lib"]
3131
spec.test_files = spec.files.grep %r{^(test|spec|features)/}
3232

33-
spec.add_dependency 'keccak', '~> 1.2'
33+
spec.add_dependency 'keccak', '~> 1.3'
3434
spec.add_dependency 'ffi', '~> 1.15'
35-
spec.add_dependency 'money-tree', '~> 0.10'
36-
spec.add_dependency 'openssl', '~> 2.2'
35+
spec.add_dependency 'money-tree', '~> 0.11'
36+
spec.add_dependency 'openssl', '~> 3.0'
3737
spec.add_dependency 'rlp', '~> 0.7'
3838
spec.add_dependency 'scrypt', '~> 3.0'
3939

4040
spec.platform = Gem::Platform::RUBY
41-
spec.required_ruby_version = ">= 2.2", "< 4.0"
41+
spec.required_ruby_version = ">= 2.6", "< 4.0"
4242

4343
spec.add_development_dependency 'bundler', '~> 2.2'
4444
spec.add_development_dependency 'pry', '~> 0.14'

lib/eth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'digest/sha3'
1+
require 'digest/keccak'
22
require 'ffi'
33
require 'money-tree'
44
require 'rlp'

lib/eth/utils.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Eth
22
module Utils
3-
43
extend self
54

65
def normalize_address(address)
@@ -66,11 +65,11 @@ def sha256(x)
6665
end
6766

6867
def keccak256(x)
69-
Digest::SHA3.new(256).digest(x)
68+
Digest::Keccak.new(256).digest(x)
7069
end
7170

7271
def keccak512(x)
73-
Digest::SHA3.new(512).digest(x)
72+
Digest::Keccak.new(512).digest(x)
7473
end
7574

7675
def keccak256_rlp(x)

lib/eth/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Eth
2-
VERSION = "0.4.17"
2+
VERSION = "0.4.18"
33
end

0 commit comments

Comments
 (0)