Skip to content

Commit

Permalink
Mabdullahlkhalil/gemdependacies (#73)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mabdullahkhalil authored Jan 4, 2022
1 parent 8903f1a commit 08bf756
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Unreleased

## [0.4.17]
### Changed
- Gems: bump version to 0.4.17 [#70](https://github.com/se3000/ruby-eth/pull/70)
- Gems: bump keccak to 1.3.0 [#69](https://github.com/se3000/ruby-eth/pull/69)

## [0.4.16]
### Changed
- Docs: update changelog [#65](https://github.com/se3000/ruby-eth/pull/65)
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'money-tree', git: 'https://github.com/GemHQ/money-tree.git'
source 'https://rubygems.org'
# Specify your gem's dependencies in eth.gemspec
gemspec
8 changes: 4 additions & 4 deletions eth.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.test_files = spec.files.grep %r{^(test|spec|features)/}

spec.add_dependency 'keccak', '~> 1.2'
spec.add_dependency 'keccak', '~> 1.3'
spec.add_dependency 'ffi', '~> 1.15'
spec.add_dependency 'money-tree', '~> 0.10'
spec.add_dependency 'openssl', '~> 2.2'
spec.add_dependency 'money-tree', '~> 0.11'
spec.add_dependency 'openssl', '~> 3.0'
spec.add_dependency 'rlp', '~> 0.7'
spec.add_dependency 'scrypt', '~> 3.0'

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = ">= 2.2", "< 4.0"
spec.required_ruby_version = ">= 2.6", "< 4.0"

spec.add_development_dependency 'bundler', '~> 2.2'
spec.add_development_dependency 'pry', '~> 0.14'
Expand Down
2 changes: 1 addition & 1 deletion lib/eth.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'digest/sha3'
require 'digest/keccak'
require 'ffi'
require 'money-tree'
require 'rlp'
Expand Down
5 changes: 2 additions & 3 deletions lib/eth/utils.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Eth
module Utils

extend self

def normalize_address(address)
Expand Down Expand Up @@ -66,11 +65,11 @@ def sha256(x)
end

def keccak256(x)
Digest::SHA3.new(256).digest(x)
Digest::Keccak.new(256).digest(x)
end

def keccak512(x)
Digest::SHA3.new(512).digest(x)
Digest::Keccak.new(512).digest(x)
end

def keccak256_rlp(x)
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Eth
VERSION = "0.4.17"
VERSION = "0.4.18"
end

0 comments on commit 08bf756

Please sign in to comment.