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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d1c288600a8f27bd51232a67835072bd3490bce
4
- data.tar.gz: f6348c808953e9ebd3ec97c1b1074b21e95f903d
3
+ metadata.gz: 95e812ea5d9334a509ca80471ce69fbb638dfe1a
4
+ data.tar.gz: ab415f25a20288a7fd80f4cc52fa53b0e79bda1d
5
5
  SHA512:
6
- metadata.gz: 5356a5f4c3744e2ce9186e1cc871ed0e07ee3ddf4557bbb753fdb0e92988f3887adfb86d1ffe82c027d8ce4f4c9c2d71ad1c0c2f30f6a9d56ab3280b05359764
7
- data.tar.gz: e116e8da798069b4025aba518d02146f4ee6929bca60ce6d606bf518bc99ebc1f7f959603f23fb603b970683990529c50349aee75e0c712e58129ec458e74c9e
6
+ metadata.gz: 0bdceb1ff68ee99be6c0f99b0f1e7a4daef0e6ed6e6d87b8c2453c392eb353666176455bbed44c113d1d35c4af9e78d73066c8b81ee91110e13f5fb35fdc2331
7
+ data.tar.gz: e9ea40071118087ca1a653d7a6401cb878a213cdceab945f2baadd6c9ae64e291b2029cefbd3bec6852a10038e075dbe83197a29e7cc09ad7c2d81f53a06baf7
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module Digest
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
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.1.0
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-03 00:00:00.000000000 Z
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