multihashes 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -7
- data/lib/multihashes/version.rb +1 -1
- data/lib/multihashes.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a95084248a28b831e0fd3497b13976257d4ae8
|
4
|
+
data.tar.gz: d5688edebe1445b25bdd21db616994a1451ea6b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c734cc7cdd4c812b498076ac7eb1f9a917bed22b539f7674ea90c4253a80f51dbad150d8052b75f3b7c80c1feac80e89b40bda6fcbbac944e14eb787be0fdf20
|
7
|
+
data.tar.gz: f624a5af66df17f46798704aebc301d1f15e74045ee5f3f785cdaa0b1b63e787b2cd6dbb2801498b5516bacb4cc46f9d0eaccc44620982b8f4a83723f1fae4dc
|
data/README.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
|
-
#
|
1
|
+
# ruby-multihash
|
2
2
|
|
3
|
-
|
3
|
+
[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats)
|
4
|
+
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
|
5
|
+
[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
|
6
|
+
[![Travis CI](https://img.shields.io/travis/multiformats/ruby-multihash.svg?style=flat-square&branch=master)](https://travis-ci.org/multiformats/ruby-multihash)
|
7
|
+
[![codecov.io](https://img.shields.io/codecov/c/github/multiformats/ruby-multihash.svg?style=flat-square&branch=master)](https://codecov.io/github/multiformats/ruby-multihash?branch=master)
|
8
|
+
|
9
|
+
> A simple [Multihash](https://github.com/multiformats/multihash) implementation for ruby.
|
4
10
|
|
5
11
|
A multihash is a digest with an embedded hash function code (and length) (['cause you never know](https://twitter.com/matthew_d_green/status/597409850381836288)). It was developed primarily for use with [IPFS](https://github.com/ipfs/ipfs), but is not specific to it.
|
6
12
|
|
7
|
-
##
|
13
|
+
## Install
|
8
14
|
|
9
15
|
Add this line to your application's Gemfile:
|
10
16
|
|
@@ -38,9 +44,10 @@ out = Multihashes.decode multihash_binary_string
|
|
38
44
|
|
39
45
|
```
|
40
46
|
|
41
|
-
Hash function names (latest is [here](https://github.com/
|
47
|
+
Hash function names (latest is [here](https://github.com/multiformats/multihash/blob/master/hashtable.csv))
|
42
48
|
|
43
49
|
code name
|
50
|
+
0xd5 md5
|
44
51
|
0x11 sha1
|
45
52
|
0x12 sha2-256
|
46
53
|
0x13 sha2-512
|
@@ -56,10 +63,18 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
56
63
|
|
57
64
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
58
65
|
|
59
|
-
##
|
66
|
+
## Maintainers
|
67
|
+
|
68
|
+
[@kyledrake](https://github.com/kyledrake)
|
69
|
+
|
70
|
+
## Contribute
|
71
|
+
|
72
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/multiformats/ruby-multihash.
|
73
|
+
|
74
|
+
Check out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
|
60
75
|
|
61
|
-
|
76
|
+
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
|
62
77
|
|
63
78
|
## License
|
64
79
|
|
65
|
-
The gem is available as open source under the terms of the [MIT License](
|
80
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT) © 2015 Kyle Drake.
|
data/lib/multihashes/version.rb
CHANGED
data/lib/multihashes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multihashes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Drake
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.6.11
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: A simple multihash (https://github.com/jbenet/multihash) implementation for
|