licensed 3.7.1 → 3.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +1 -1
- data/lib/licensed/dependency_record.rb +9 -1
- data/lib/licensed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f187eacefe804712d35112ff72bc25e5d4cdd8696ac529327689999de6160e
|
4
|
+
data.tar.gz: 6154eb5ff6efebaf727da8b03315dd7eed04b96911c9e43a81569138a39d0497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e433eac2fa6ae6b394f6919fabb2c7f7b38fe335619cd13d392ce8bd208a9d6be06016789ba563660acf31110548daa2d3ebac306115dc01b3c3bb11d88f21d9
|
7
|
+
data.tar.gz: 2fab2eac0cce0339c50d8a7242cd29627ec2bdce027104dfec70c405cc0e3b1e50961ead3a6375d2cbd8476703c8af03dd7957fd0762f6794855caa47c1a2e73
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 3.7.2
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Comparing dependency license contents now finds matching contents regardless of the order of the licenses (https://github.com/github/licensed/pull/516)
|
14
|
+
- Fixed typo in a link in README.md (https://github.com/github/licensed/pull/514)
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- Elixir testing setup is migrated to erlef/setup-beam (https://github.com/github/licensed/pull/512)
|
19
|
+
|
9
20
|
## 3.7.1
|
10
21
|
|
11
22
|
### Fixed
|
@@ -609,4 +620,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
609
620
|
|
610
621
|
Initial release :tada:
|
611
622
|
|
612
|
-
[Unreleased]: https://github.com/github/licensed/compare/3.7.
|
623
|
+
[Unreleased]: https://github.com/github/licensed/compare/3.7.2...HEAD
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ A configuration file is required for most commands. See the [configuration file
|
|
86
86
|
|
87
87
|
### Available dependency sources
|
88
88
|
|
89
|
-
Licensed can enumerate dependency for many languages, package managers, and frameworks. See the [sources documentation](./docs/sources) for the list of currently available sources. Sources can be explicitly enabled and disabled as a [configuration option](./docs/configuration/dependency_source_enumerators.md
|
89
|
+
Licensed can enumerate dependency for many languages, package managers, and frameworks. See the [sources documentation](./docs/sources) for the list of currently available sources. Sources can be explicitly enabled and disabled as a [configuration option](./docs/configuration/dependency_source_enumerators.md).
|
90
90
|
|
91
91
|
## Development
|
92
92
|
|
@@ -27,6 +27,14 @@ module Licensed
|
|
27
27
|
"text" => text
|
28
28
|
}
|
29
29
|
end
|
30
|
+
|
31
|
+
def key
|
32
|
+
@key ||= begin
|
33
|
+
# rubocop:disable GitHub/InsecureHashAlgorithm
|
34
|
+
Digest::XXHash64.digest(sources.join("") + text)
|
35
|
+
# rubocop:enable GitHub/InsecureHashAlgorithm
|
36
|
+
end
|
37
|
+
end
|
30
38
|
end
|
31
39
|
|
32
40
|
include Licensee::ContentHelper
|
@@ -84,7 +92,7 @@ module Licensed
|
|
84
92
|
# `Licensee::CotentHelper`
|
85
93
|
def content
|
86
94
|
return if licenses.nil? || licenses.empty?
|
87
|
-
licenses.map(&:text).compact.join
|
95
|
+
licenses.sort_by(&:key).map(&:text).compact.join
|
88
96
|
end
|
89
97
|
|
90
98
|
# Returns whether two records match based on their contents
|
data/lib/licensed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: licensed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|