multihashes 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af8e16174ea380ecf973c5cd7c37122fb00e497c
4
- data.tar.gz: 128a26ad0f4bd259a54f1e0fb3d46d09979e6a40
3
+ metadata.gz: 49a95084248a28b831e0fd3497b13976257d4ae8
4
+ data.tar.gz: d5688edebe1445b25bdd21db616994a1451ea6b8
5
5
  SHA512:
6
- metadata.gz: 39864436457038c35acb79fd20413053de7ffab3c65a339a88224ba5a5091afd1d78a9218333295749d0de31723f3e71fe0db56f26d3553d478de4c5b6c6b73a
7
- data.tar.gz: 9ac19eb64fce65f6eff34adf6cbdc0d742c9506771c4331ca0c5025c2e9138d5087b798e1b900b0ce746881baee60d120443c8e9230d68cfb53072fea2856737
6
+ metadata.gz: c734cc7cdd4c812b498076ac7eb1f9a917bed22b539f7674ea90c4253a80f51dbad150d8052b75f3b7c80c1feac80e89b40bda6fcbbac944e14eb787be0fdf20
7
+ data.tar.gz: f624a5af66df17f46798704aebc301d1f15e74045ee5f3f785cdaa0b1b63e787b2cd6dbb2801498b5516bacb4cc46f9d0eaccc44620982b8f4a83723f1fae4dc
data/README.md CHANGED
@@ -1,10 +1,16 @@
1
- # Multihashes
1
+ # ruby-multihash
2
2
 
3
- A [Multihash](https://github.com/jbenet/multihash) implementation for ruby.
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
- ## Installation
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/jbenet/multihash/blob/master/hashtable.csv))
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
- ## Contributing
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/neocities/multihashes.
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](http://opensource.org/licenses/MIT).
80
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT) © 2015 Kyle Drake.
@@ -1,3 +1,3 @@
1
1
  module Multihashes
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/multihashes.rb CHANGED
@@ -6,6 +6,7 @@ module Multihashes
6
6
 
7
7
  # https://github.com/jbenet/multihash
8
8
  TABLE = {
9
+ 0xd5 => 'md5',
9
10
  0x11 => 'sha1',
10
11
  0x12 => 'sha2-256',
11
12
  0x13 => 'sha2-512',
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.2
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: 2015-06-09 00:00:00.000000000 Z
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.4.6
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