digest 3.1.0.pre3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/digest/extconf.rb +4 -0
- data/lib/digest/version.rb +1 -1
- data/lib/digest.rb +12 -14
- metadata +5 -7
- data/ext/digest/depend +0 -3
- data/ext/digest/install_headers.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7207f387ca787774225cd9df57fae5c62761095cbe5976d3b0e92844ce700add
|
4
|
+
data.tar.gz: 7c5bdbbac47aa05a44bc9bc37a4519a4eb7c062dfc781dd8b4c6b567a6596aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b589e6eb9462f1e9572ba5186840437f85bf6c5c7a12665ef3b6b6d0848a2e372f1df9b228a49b6e5321ca280353cf5de652ad5404af5cc200c4fe301ce37760
|
7
|
+
data.tar.gz: 40f9583406b3f58ff6f22c8af4a2a414db6753b472201d22471eca5df1c16ca5563ca56700357a3165250505697a9fa58e6f73da7c0baf8ea56a5e12589aff3e
|
data/ext/digest/extconf.rb
CHANGED
data/lib/digest/version.rb
CHANGED
data/lib/digest.rb
CHANGED
@@ -1,25 +1,23 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
|
13
|
-
|
14
|
-
# %r{/(rubygems/gem_runner|bundler/cli)\.rb}.match?(l.path)
|
15
|
-
# }
|
3
|
+
if defined?(Digest) &&
|
4
|
+
/\A(?:2\.|3\.0\.[0-2]\z)/.match?(RUBY_VERSION) &&
|
5
|
+
caller_locations.any? { |l|
|
6
|
+
%r{/(rubygems/gem_runner|bundler/cli)\.rb}.match?(l.path)
|
7
|
+
}
|
8
|
+
# Before Ruby 3.0.3/3.1.0, the gem and bundle commands used to load
|
9
|
+
# the digest library before loading additionally installed gems, so
|
10
|
+
# you will get constant redefinition warnings and unexpected
|
11
|
+
# implementation overwriting if we proceed here. Avoid that.
|
12
|
+
return
|
13
|
+
end
|
16
14
|
|
17
15
|
require 'digest/version'
|
18
16
|
require 'digest/loader'
|
19
17
|
|
20
18
|
module Digest
|
21
19
|
# A mutex for Digest().
|
22
|
-
REQUIRE_MUTEX
|
20
|
+
REQUIRE_MUTEX = Thread::Mutex.new
|
23
21
|
|
24
22
|
def self.const_missing(name) # :nodoc:
|
25
23
|
case name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides a framework for message digest libraries.
|
14
14
|
email:
|
@@ -28,12 +28,10 @@ files:
|
|
28
28
|
- ext/digest/bubblebabble/bubblebabble.c
|
29
29
|
- ext/digest/bubblebabble/extconf.rb
|
30
30
|
- ext/digest/defs.h
|
31
|
-
- ext/digest/depend
|
32
31
|
- ext/digest/digest.c
|
33
32
|
- ext/digest/digest.h
|
34
33
|
- ext/digest/digest_conf.rb
|
35
34
|
- ext/digest/extconf.rb
|
36
|
-
- ext/digest/install_headers.rb
|
37
35
|
- ext/digest/lib/digest/loader.rb
|
38
36
|
- ext/digest/lib/digest/sha2/loader.rb
|
39
37
|
- ext/digest/md5/extconf.rb
|
@@ -76,11 +74,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
74
|
version: 2.5.0
|
77
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
76
|
requirements:
|
79
|
-
- - "
|
77
|
+
- - ">="
|
80
78
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
79
|
+
version: '0'
|
82
80
|
requirements: []
|
83
|
-
rubygems_version: 3.2.
|
81
|
+
rubygems_version: 3.2.32
|
84
82
|
signing_key:
|
85
83
|
specification_version: 4
|
86
84
|
summary: Provides a framework for message digest libraries.
|
data/ext/digest/depend
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require "fileutils"
|
2
|
-
|
3
|
-
*files, dest = ARGV
|
4
|
-
|
5
|
-
if File.exist?(File.join(dest, "ruby.h"))
|
6
|
-
warn "installing header files"
|
7
|
-
|
8
|
-
files.each { |file|
|
9
|
-
FileUtils.install file, dest, mode: 0644, verbose: true
|
10
|
-
}
|
11
|
-
else
|
12
|
-
warn "not installing header files when installed as an external library"
|
13
|
-
end
|