licensed 3.7.1 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03de72b78b61eb285dc7f28303375a782ac1061997cd8a1dc7e664874d017ab6
4
- data.tar.gz: af3660d69f8a235b7b40b08ede58f0bc8250ead97aa3a19c51cebfb88922c5e9
3
+ metadata.gz: 31f187eacefe804712d35112ff72bc25e5d4cdd8696ac529327689999de6160e
4
+ data.tar.gz: 6154eb5ff6efebaf727da8b03315dd7eed04b96911c9e43a81569138a39d0497
5
5
  SHA512:
6
- metadata.gz: 2e8125e6de6e0892a1afca36dd6cf5ae6091d101b7bbc58a3fd3086c1ac58838323f4979d859ea2de7e3ecc32f4af222f3eab433d6cccd95b73687b1f2626eb3
7
- data.tar.gz: 4c18508e167faeb8d81dfb1548e9f5ed71fbc38c18b0a610dbc230911f7940062deadc4bed7a153e39ff8d94642bcab82b61a9ad7948860f508a84dc0b2f6175
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.1...HEAD
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.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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "3.7.1".freeze
3
+ VERSION = "3.7.2".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
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.1
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-05-13 00:00:00.000000000 Z
11
+ date: 2022-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee