Skip to content

Commit

Permalink
up merkletree
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Jan 10, 2021
1 parent a7328b6 commit 2486427
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions merkletree/Manifest.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
HISTORY.md
LICENSE.md
CHANGELOG.md
Manifest.txt
README.md
Rakefile
Expand Down
6 changes: 3 additions & 3 deletions merkletree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
merkletree library / gem - build your own crypto hash trees; named after Ralph Merkle who patented hash trees in 1979 (the patent expired in 2002); grow your own money on trees


* home :: [github.com/openblockchains/merkletree.rb](https://github.com/openblockchains/merkletree.rb)
* bugs :: [github.com/openblockchains/merkletree.rb/issues](https://github.com/openblockchains/merkletree.rb/issues)
* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* gem :: [rubygems.org/gems/merkletree](https://rubygems.org/gems/merkletree)
* rdoc :: [rubydoc.info/gems/merkletree](http://rubydoc.info/gems/merkletree)

Expand Down Expand Up @@ -144,7 +144,7 @@ puts merkle_root_value

## Merkle Tree in the Real World

- [**blockchain-lite**](https://github.com/openblockchains/blockchain.lite.rb) - build your own blockchain with crypto hashes - revolutionize the world with blockchains, blockchains, blockchains one block at a time
- [**blockchain-lite**](https://github.com/rubycoco/blockchain) - build your own blockchain with crypto hashes - revolutionize the world with blockchains, blockchains, blockchains one block at a time
- You? Add your library / service


Expand Down
4 changes: 2 additions & 2 deletions merkletree/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Hoe.spec 'merkletree' do
self.summary = "merkletree - build your own crypto hash trees; named after Ralph Merkle who patented hash trees in 1979; grow your own money on trees"
self.description = summary

self.urls = ['https://github.com/openblockchains/merkletree.rb']
self.urls = { home: 'https://github.com/rubycoco/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'

# switch extension to .markdown for gihub formatting
self.readme_file = 'README.md'
self.history_file = 'HISTORY.md'
self.history_file = 'CHANGELOG.md'

## self.extra_deps = [
## ]
Expand Down
2 changes: 1 addition & 1 deletion merkletree/lib/merkletree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ def self.calc_hash( data )


# say hello
puts MerkleTree.banner if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
puts MerkleTree.banner ## if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
8 changes: 3 additions & 5 deletions merkletree/lib/merkletree/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@


class MerkleTree ## note: use class (!) for now and NOT module


MAJOR = 0
MINOR = 1
PATCH = 0
PATCH = 1
VERSION = [MAJOR,MINOR,PATCH].join('.')

def self.version
VERSION
end

def self.banner
"merkletree/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
"merkletree/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end

def self.root
"#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end

end # module MerkleTree

0 comments on commit 2486427

Please sign in to comment.