digest 3.1.0.pre2-java → 3.2.0.pre0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +4 -3
- data/README.md +10 -0
- data/lib/digest/version.rb +5 -0
- data/lib/digest.jar +0 -0
- data/lib/digest.rb +13 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b89d1fd682c38380675e5b3f5463ea4a91fd83908bdcbf6424f1cdc5dadd21b5
|
4
|
+
data.tar.gz: fa6189ee8d365a8130ef929db63b1d4ede2ef7c09c897fe4cf4097df484a2c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b463d14a54628a967cf10efde0da24eafbec794534d54fb8301319a3eca22c9365800a2f1bd3fa6f4786a2497648ffd48baed4350ed37456aabc0aa71580e4bb
|
7
|
+
data.tar.gz: b41482911ee6cd5a2bce2fbbc54a03a952261fe065f25d077f4f189e1c4ca553398784800096a2929ec5c5ac02c25163fb9a3baa04b9574a7827c46d035240be
|
data/LICENSE.txt
CHANGED
@@ -4,10 +4,11 @@ Redistribution and use in source and binary forms, with or without
|
|
4
4
|
modification, are permitted provided that the following conditions
|
5
5
|
are met:
|
6
6
|
1. Redistributions of source code must retain the above copyright
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
8
|
2. Redistributions in binary form must reproduce the above copyright
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
10
|
-
documentation and/or other materials provided with the
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the
|
11
|
+
distribution.
|
11
12
|
|
12
13
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
14
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
data/README.md
CHANGED
@@ -82,6 +82,16 @@ SHA2 family::
|
|
82
82
|
|
83
83
|
The latest versions of the FIPS publications can be found here: http://csrc.nist.gov/publications/PubsFIPS.html.
|
84
84
|
|
85
|
+
## For Gem developers
|
86
|
+
|
87
|
+
If you want to use digest algorithms in your C extension, you can use the `digest.h` header file provided by digest gem. You should add the following code to your `extconf.rb`:
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
spec = Gem::Specification.find_by_name("digest")
|
91
|
+
source_dir = File.join(spec.full_gem_path, "ext", "digest")
|
92
|
+
$INCFLAGS += " -I#{source_dir}"
|
93
|
+
```
|
94
|
+
|
85
95
|
## Development
|
86
96
|
|
87
97
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/digest.jar
CHANGED
Binary file
|
data/lib/digest.rb
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
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
|
14
|
+
|
15
|
+
require 'digest/version'
|
3
16
|
require 'digest/loader'
|
4
17
|
|
5
18
|
module Digest
|
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.
|
4
|
+
version: 3.2.0.pre0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides a framework for message digest libraries.
|
14
14
|
email:
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib/digest.jar
|
36
36
|
- lib/digest.rb
|
37
37
|
- lib/digest/sha2.rb
|
38
|
+
- lib/digest/version.rb
|
38
39
|
homepage: https://github.com/ruby/digest
|
39
40
|
licenses:
|
40
41
|
- Ruby
|
@@ -53,11 +54,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
54
|
version: 2.5.0
|
54
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
56
|
requirements:
|
56
|
-
- - "
|
57
|
+
- - ">="
|
57
58
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
59
|
+
version: '0'
|
59
60
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
61
|
+
rubygems_version: 3.5.23
|
61
62
|
signing_key:
|
62
63
|
specification_version: 4
|
63
64
|
summary: Provides a framework for message digest libraries.
|