licensed 2.11.0 → 2.11.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
  SHA256:
3
- metadata.gz: 9cb9d80097e4329d3aa276faf53b72cac7fed2c2f4c09edc500bc627fb8d942b
4
- data.tar.gz: f2ba113cfac5f807980f44a7d60a40dd6c946c85a351bf8161854b72d715d625
3
+ metadata.gz: 22d2a3480b9386c6041c7ab17c90ca28ffedfb58f802974c9e7a4aef6c017919
4
+ data.tar.gz: c441684e72e0bdc85f55da6e34181758902226dd89f4abf844b6a8cb5c8c9907
5
5
  SHA512:
6
- metadata.gz: dcdc95e2d512dbf8f9e84f76409f4d94b93ae3bdf95d17fa4b668f04e996cdcda340c5e7f09dd499c509b122e92cfc90d58838f33df24d690fd4ae1b759550b0
7
- data.tar.gz: bba8ba26db299965d6fc7e2d783060d827e5f45cd7f1a287414f63c39298b39dfb6739beebe46d152e6619830705a8abf822a33ce01d94335fc195596a65e6cb
6
+ metadata.gz: 11527ca53a55700ec9626fe8d625ada1539453e53482d4d75394ef8115d79f2ee697f93fbc200eed6dbb0f76dde2138b6874dfd5de7c01ff10fc78c669374b8b
7
+ data.tar.gz: b24cedd6ab775e54c0fa503ca79e0ad93eef0f19ae15199aac3db66f891dbf8f71c98bc4fc58dff167e606be589ffee25ccf827da4ca5892b95ae25e356cdb5e
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 2.11.1
10
+ 2020-06-09
11
+
12
+ ### Fixed
13
+ - `notices` command properly reads cached dependency notices contents (https://github.com/github/licensed/pull/283)
14
+
9
15
  ## 2.11.0
10
16
  2020-06-02
11
17
 
@@ -312,4 +318,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
312
318
 
313
319
  Initial release :tada:
314
320
 
315
- [Unreleased]: https://github.com/github/licensed/compare/2.11.0...HEAD
321
+ [Unreleased]: https://github.com/github/licensed/compare/2.11.1...HEAD
@@ -55,7 +55,16 @@ module Licensed
55
55
  return unless cached_record
56
56
 
57
57
  texts = cached_record.licenses.map(&:text)
58
- texts.concat(cached_record.notices)
58
+ cached_record.notices.each do |notice|
59
+ case notice
60
+ when Hash
61
+ texts << notice["text"]
62
+ when String
63
+ texts << notice
64
+ else
65
+ shell.warn "* unable to parse notices for #{report.target.name}"
66
+ end
67
+ end
59
68
 
60
69
  <<~NOTICE
61
70
  #{cached_record["name"]}@#{cached_record["version"]}
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "2.11.0".freeze
3
+ VERSION = "2.11.1".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: 2.11.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee