rubysl-digest 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -3
- data/lib/md5.rb +23 -0
- data/lib/rubysl/digest/version.rb +1 -1
- data/lib/sha1.rb +23 -0
- data/rubysl-digest.gemspec +2 -1
- metadata +30 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf9456a56f3dce4642dc0c0bdc9c8be878de605
|
4
|
+
data.tar.gz: 830f9344cc9f4dce06ff807932881b38e2bd1d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea9a6727e4d4d7ae33f137629ec75561675152ea62ea24ebc9c434e2c42558867c9145d1e4e2effc813069bb3266a0fa17c45a2a062966ff9e4f9a816275bb11
|
7
|
+
data.tar.gz: 81c1d94ec28800a66aa231741b0c319a88a3092c1a2a4cb2573f1706453a3c24fe109851adf41fbb8e84449ea5afeb20b8c7c6be0b6dde0f9accf1eb0d3335f9
|
data/.travis.yml
CHANGED
data/lib/md5.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# just for compatibility; requiring "md5" is obsoleted
|
2
|
+
#
|
3
|
+
# $RoughId: md5.rb,v 1.4 2001/07/13 15:38:27 knu Exp $
|
4
|
+
# $Id: md5.rb 12007 2007-03-06 10:09:51Z knu $
|
5
|
+
|
6
|
+
require 'digest/md5'
|
7
|
+
|
8
|
+
class MD5 < Digest::MD5
|
9
|
+
class << self
|
10
|
+
alias orig_new new
|
11
|
+
def new(str = nil)
|
12
|
+
if str
|
13
|
+
orig_new.update(str)
|
14
|
+
else
|
15
|
+
orig_new
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def md5(*args)
|
20
|
+
new(*args)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/sha1.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# just for compatibility; requiring "sha1" is obsoleted
|
2
|
+
#
|
3
|
+
# $RoughId: sha1.rb,v 1.4 2001/07/13 15:38:27 knu Exp $
|
4
|
+
# $Id: sha1.rb 12007 2007-03-06 10:09:51Z knu $
|
5
|
+
|
6
|
+
require 'digest/sha1'
|
7
|
+
|
8
|
+
class SHA1 < Digest::SHA1
|
9
|
+
class << self
|
10
|
+
alias orig_new new
|
11
|
+
def new(str = nil)
|
12
|
+
if str
|
13
|
+
orig_new.update(str)
|
14
|
+
else
|
15
|
+
orig_new
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def sha1(*args)
|
20
|
+
new(*args)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/rubysl-digest.gemspec
CHANGED
@@ -22,9 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.
|
25
|
+
spec.required_ruby_version = "~> 1.8.7"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
29
|
spec.add_development_dependency "mspec", "~> 1.5"
|
30
|
+
spec.add_development_dependency "rubysl-prettyprint", "~> 1.0"
|
30
31
|
end
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-digest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: redcard
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
|
-
- - ~>
|
17
|
+
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
19
|
version: '1.3'
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- - ~>
|
24
|
+
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '1.3'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - ~>
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
33
|
version: '10.0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - ~>
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '10.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: mspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - ~>
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: '1.5'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - ~>
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '1.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubysl-prettyprint
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
69
|
description: Ruby standard library digest.
|
70
70
|
email:
|
71
71
|
- brixen@gmail.com
|
@@ -79,8 +79,8 @@ extensions:
|
|
79
79
|
- ext/rubysl/digest/sha2/extconf.rb
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
-
- .gitignore
|
83
|
-
- .travis.yml
|
82
|
+
- ".gitignore"
|
83
|
+
- ".travis.yml"
|
84
84
|
- Gemfile
|
85
85
|
- LICENSE
|
86
86
|
- README.md
|
@@ -128,9 +128,11 @@ files:
|
|
128
128
|
- lib/digest/rmd160.rb
|
129
129
|
- lib/digest/sha1.rb
|
130
130
|
- lib/digest/sha2.rb
|
131
|
+
- lib/md5.rb
|
131
132
|
- lib/rubysl/digest.rb
|
132
133
|
- lib/rubysl/digest/digest.rb
|
133
134
|
- lib/rubysl/digest/version.rb
|
135
|
+
- lib/sha1.rb
|
134
136
|
- rubysl-digest.gemspec
|
135
137
|
- spec/hexencode_spec.rb
|
136
138
|
- spec/md5/append_spec.rb
|
@@ -219,17 +221,17 @@ require_paths:
|
|
219
221
|
- lib
|
220
222
|
required_ruby_version: !ruby/object:Gem::Requirement
|
221
223
|
requirements:
|
222
|
-
- -
|
224
|
+
- - "~>"
|
223
225
|
- !ruby/object:Gem::Version
|
224
|
-
version:
|
226
|
+
version: 1.8.7
|
225
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
228
|
requirements:
|
227
|
-
- -
|
229
|
+
- - ">="
|
228
230
|
- !ruby/object:Gem::Version
|
229
231
|
version: '0'
|
230
232
|
requirements: []
|
231
233
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.2.2
|
233
235
|
signing_key:
|
234
236
|
specification_version: 4
|
235
237
|
summary: Ruby standard library digest.
|