dighasher 0.3.2 → 0.3.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: 2459cb11b83d6c5307b85a6910783264ba1615aa
4
- data.tar.gz: cf76143d0bea9beab2a982eab5c65982ec5f5c8b
3
+ metadata.gz: af6f18a9712dd8b969acdf8e34814c425e7f09f7
4
+ data.tar.gz: 5adee98fbdb38e20a82d3d50c15cc51ff3b4f352
5
5
  SHA512:
6
- metadata.gz: 3173cd570f91abfcd1b205edc2e489e3e7e264354aec5e416ff092130319b4f1f1f8283a0b5fd6e82d2e4da9fd89cf7ea36f031c6cedce9b94d5178866ca2ea2
7
- data.tar.gz: 9198ed4c9e1d2602a464be842833c5a9b7739d92f7bf6b46cc6c6a017a108a7499d854c9a4f6d43f12269c98a9abcd4b42ccf352af58a3f2649416e59e65dea1
6
+ metadata.gz: 25d11314650b7f2f740b406daa5819e33527df2d5e35d0fff980a99f112036b7069a3e3b1fe0d9cfd8cfebae96c52a10bff36d1e24384edf31f9f010a362016c
7
+ data.tar.gz: 652608b622aafbfc54d5f3dcf7ec76b1a013a7deacf906c68f3a69200566ec6a7783ed2a5cdffc651e027180d2bc1079eb24276f31f54285ab33fadfbe5b8f9b
data/README.md CHANGED
@@ -42,7 +42,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
42
42
 
43
43
  ## Contributing
44
44
 
45
- Bug reports and pull requests are welcome on GitHub at https://github.com/h-shigemoto/dighasher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/koyupi/dighasher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
46
46
 
47
47
 
48
48
  ## License
data/dighasher.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["corporation.ore@gmail.com"]
11
11
  spec.summary = %q{This gem is generate hash. Use digest lib.}
12
12
  spec.description = %q{This gem is generate hash. Use digest lib. Digest use MD5, SHA1, SHA2(256, 384, 512).}
13
- spec.homepage = "https://github.com/h-shigemoto/dighasher"
13
+ spec.homepage = "https://github.com/koyupi/dighasher"
14
14
  spec.license = "MIT"
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
@@ -42,7 +42,8 @@ module Dighasher
42
42
  when SHA256, SHA512, SHA2 then
43
43
  digest = Digest::SHA2.new(bitlen)
44
44
  else
45
- digest = nil
45
+ # raise error.
46
+ raise TypeError.new("invalid mode : #{mode}")
46
47
  end
47
48
 
48
49
  # set str
@@ -1,3 +1,3 @@
1
1
  module Dighasher
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dighasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - h.shigemoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-03 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,7 @@ files:
75
75
  - lib/dighasher/digest_generator.rb
76
76
  - lib/dighasher/generator.rb
77
77
  - lib/dighasher/version.rb
78
- homepage: https://github.com/h-shigemoto/dighasher
78
+ homepage: https://github.com/koyupi/dighasher
79
79
  licenses:
80
80
  - MIT
81
81
  metadata: {}