rubysl-digest 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubysl/digest/digest.rb +0 -26
- data/lib/rubysl/digest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95e812ea5d9334a509ca80471ce69fbb638dfe1a
|
4
|
+
data.tar.gz: ab415f25a20288a7fd80f4cc52fa53b0e79bda1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bdceb1ff68ee99be6c0f99b0f1e7a4daef0e6ed6e6d87b8c2453c392eb353666176455bbed44c113d1d35c4af9e78d73066c8b81ee91110e13f5fb35fdc2331
|
7
|
+
data.tar.gz: e9ea40071118087ca1a653d7a6401cb878a213cdceab945f2baadd6c9ae64e291b2029cefbd3bec6852a10038e075dbe83197a29e7cc09ad7c2d81f53a06baf7
|
data/lib/rubysl/digest/digest.rb
CHANGED
@@ -28,13 +28,6 @@ module Digest
|
|
28
28
|
def self.file(name)
|
29
29
|
new.file(name)
|
30
30
|
end
|
31
|
-
|
32
|
-
# Returns the base64 encoded hash value of a given _string_. The
|
33
|
-
# return value is properly padded with '=' and contains no line
|
34
|
-
# feeds.
|
35
|
-
def self.base64digest(str, *args)
|
36
|
-
[digest(str, *args)].pack('m0')
|
37
|
-
end
|
38
31
|
end
|
39
32
|
|
40
33
|
module Instance
|
@@ -49,25 +42,6 @@ module Digest
|
|
49
42
|
}
|
50
43
|
self
|
51
44
|
end
|
52
|
-
|
53
|
-
# If none is given, returns the resulting hash value of the digest
|
54
|
-
# in a base64 encoded form, keeping the digest's state.
|
55
|
-
#
|
56
|
-
# If a +string+ is given, returns the hash value for the given
|
57
|
-
# +string+ in a base64 encoded form, resetting the digest to the
|
58
|
-
# initial state before and after the process.
|
59
|
-
#
|
60
|
-
# In either case, the return value is properly padded with '=' and
|
61
|
-
# contains no line feeds.
|
62
|
-
def base64digest(str = nil)
|
63
|
-
[str ? digest(str) : digest].pack('m0')
|
64
|
-
end
|
65
|
-
|
66
|
-
# Returns the resulting hash value and resets the digest to the
|
67
|
-
# initial state.
|
68
|
-
def base64digest!
|
69
|
-
[digest!].pack('m0')
|
70
|
-
end
|
71
45
|
end
|
72
46
|
end
|
73
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-digest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
version_requirements: !ruby/object:Gem::Requirement
|