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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c09921afabe5d9ba60b1b2edf93b0fb9d14ae96
4
- data.tar.gz: bd40f84232d0c97ec00e63028716f1c365b98e78
3
+ metadata.gz: 1cf9456a56f3dce4642dc0c0bdc9c8be878de605
4
+ data.tar.gz: 830f9344cc9f4dce06ff807932881b38e2bd1d36
5
5
  SHA512:
6
- metadata.gz: e8dfd971aa37c3411f7fb6194b8dfb3e5ff8fe0f834a48b64d522fd74075281517b3a54893ef027289b9b520152ba8d841c1c704e27d299829f9e5e64cdc4da2
7
- data.tar.gz: 1b8c0514abf04b64676ed03e154cca8694f94f9fa193feb86cce5133893fd44adac877668f8171183ca4db9b7a93134cebbd1eabdb9e9d08dbf0873033e1f11e
6
+ metadata.gz: ea9a6727e4d4d7ae33f137629ec75561675152ea62ea24ebc9c434e2c42558867c9145d1e4e2effc813069bb3266a0fa17c45a2a062966ff9e4f9a816275bb11
7
+ data.tar.gz: 81c1d94ec28800a66aa231741b0c319a88a3092c1a2a4cb2573f1706453a3c24fe109851adf41fbb8e84449ea5afeb20b8c7c6be0b6dde0f9accf1eb0d3335f9
data/.travis.yml CHANGED
@@ -1,7 +1,11 @@
1
1
  language: ruby
2
2
  env:
3
- - RUBYLIB=lib
4
- script: bundle exec mspec
3
+ - RUBYLIB=lib:.
4
+ script: mspec spec
5
+ branches:
6
+ only:
7
+ - 1.0
8
+ - 2.0
5
9
  rvm:
6
10
  - 1.8.7
7
- - rbx-nightly-18mode
11
+ - rbx-1
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
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module Digest
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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
@@ -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.add_runtime_dependency "redcard", "~> 1.0"
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.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: 2013-08-27 00:00:00.000000000 Z
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: '0'
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.0.7
234
+ rubygems_version: 2.2.2
233
235
  signing_key:
234
236
  specification_version: 4
235
237
  summary: Ruby standard library digest.