licensed 4.0.2 → 4.0.4

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: f4589c212dd085a4f62711a077b50ec04ee1ca398a1c4b39e29644caebd4795e
4
- data.tar.gz: e2366f102dec2839fa56e3050ceedcba249ecc9fb8012a2cf5074356918a20f4
3
+ metadata.gz: e4862d2463055e895e3aac366c32821ee047360646946860d0cd6eb86ef9701f
4
+ data.tar.gz: b75cf3b200090387ef2f104295bb90fc8874668bd895797335f02a23c9357296
5
5
  SHA512:
6
- metadata.gz: c40137a979df559cb8b3adeaf4645c453102b96b7b177fcf391276eb0b93154e10be855325021c231ea1ebd27fca55d43d858ba77b73051a07f1f783d122eeba
7
- data.tar.gz: 856405d0edbd8dc18d29705004e361a3307fb52efbea60372d17adb941f0a8ebccc977548bae136b16e3956607354b1ab8a3a646fef44344d942e44b83be23f7
6
+ metadata.gz: 766f5196aea9b41034c0a76e11ebe7e7272ce1554661d552ad88895dd45cc43544cb737f7c36173ab612fc71f352d14ac30d2449f7414f8b7813174e294828c5
7
+ data.tar.gz: 0c6a31ae81db6abe8744d4a64b07e695b86b18536ce7308f7757c0c69183684e6d39d91082c87edd5a693617f30884a6c322ec3aa0e017a87bc137bf1e0793b7
data/CHANGELOG.md CHANGED
@@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 4.0.4
10
+
11
+ ### Changed
12
+
13
+ - Dependency version requirements are more relaxed (https://github.com/github/licensed/pull/619)
14
+
15
+ ## 4.0.3
16
+
17
+ ### Changed
18
+
19
+ - Cocoapods dependency enumeration has been disabled (https://github.com/github/licensed/pull/616)
20
+
21
+ ### Fixed
22
+
23
+ - Fixed method signature change in Bundler API with Bundler >= 2.4.4 (:tada: @CvX https://github.com/github/licensed/pull/614)
24
+ - Fixed installation dependency compatibility with Rails >= 7.0 (https://github.com/github/licensed/pull/616)
25
+
9
26
  ## 4.0.2
10
27
 
11
28
  ### Fixed
@@ -689,4 +706,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
689
706
 
690
707
  Initial release :tada:
691
708
 
692
- [Unreleased]: https://github.com/github/licensed/compare/4.0.2...HEAD
709
+ [Unreleased]: https://github.com/github/licensed/compare/4.0.4...HEAD
data/Gemfile.lock ADDED
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ licensed (4.0.4)
5
+ json (~> 2.6)
6
+ licensee (~> 9.16)
7
+ parallel (~> 1.22)
8
+ pathname-common_prefix (~> 0.0.1)
9
+ reverse_markdown (~> 2.1)
10
+ ruby-xxHash (~> 0.4.0)
11
+ thor (~> 1.2)
12
+ tomlrb (~> 2.0)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ activesupport (7.0.4.2)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ addressable (2.8.1)
23
+ public_suffix (>= 2.0.2, < 6.0)
24
+ ast (2.4.2)
25
+ byebug (11.1.3)
26
+ concurrent-ruby (1.2.0)
27
+ dotenv (2.8.1)
28
+ faraday (2.7.4)
29
+ faraday-net_http (>= 2.0, < 3.1)
30
+ ruby2_keywords (>= 0.0.4)
31
+ faraday-net_http (3.0.2)
32
+ i18n (1.12.0)
33
+ concurrent-ruby (~> 1.0)
34
+ json (2.6.3)
35
+ licensee (9.16.0)
36
+ dotenv (~> 2.0)
37
+ octokit (>= 4.20, < 7.0)
38
+ reverse_markdown (>= 1, < 3)
39
+ rugged (>= 0.24, < 2.0)
40
+ thor (>= 0.19, < 2.0)
41
+ mini_portile2 (2.8.1)
42
+ minitest (5.17.0)
43
+ mocha (2.0.2)
44
+ ruby2_keywords (>= 0.0.5)
45
+ nokogiri (1.14.0)
46
+ mini_portile2 (~> 2.8.0)
47
+ racc (~> 1.4)
48
+ octokit (6.0.1)
49
+ faraday (>= 1, < 3)
50
+ sawyer (~> 0.9)
51
+ parallel (1.22.1)
52
+ parser (3.2.0.0)
53
+ ast (~> 2.4.1)
54
+ pathname-common_prefix (0.0.1)
55
+ public_suffix (5.0.1)
56
+ racc (1.6.2)
57
+ rack (3.0.4.1)
58
+ rainbow (3.1.1)
59
+ rake (13.0.6)
60
+ regexp_parser (2.6.2)
61
+ reverse_markdown (2.1.1)
62
+ nokogiri
63
+ rexml (3.2.5)
64
+ rubocop (1.44.1)
65
+ json (~> 2.3)
66
+ parallel (~> 1.10)
67
+ parser (>= 3.2.0.0)
68
+ rainbow (>= 2.2.2, < 4.0)
69
+ regexp_parser (>= 1.8, < 3.0)
70
+ rexml (>= 3.2.5, < 4.0)
71
+ rubocop-ast (>= 1.24.1, < 2.0)
72
+ ruby-progressbar (~> 1.7)
73
+ unicode-display_width (>= 2.4.0, < 3.0)
74
+ rubocop-ast (1.24.1)
75
+ parser (>= 3.1.1.0)
76
+ rubocop-github (0.20.0)
77
+ rubocop (>= 1.37)
78
+ rubocop-performance (>= 1.15)
79
+ rubocop-rails (>= 2.17)
80
+ rubocop-performance (1.15.2)
81
+ rubocop (>= 1.7.0, < 2.0)
82
+ rubocop-ast (>= 0.4.0)
83
+ rubocop-rails (2.17.4)
84
+ activesupport (>= 4.2.0)
85
+ rack (>= 1.1)
86
+ rubocop (>= 1.33.0, < 2.0)
87
+ ruby-progressbar (1.11.0)
88
+ ruby-xxHash (0.4.0.2)
89
+ ruby2_keywords (0.0.5)
90
+ rugged (1.5.1)
91
+ sawyer (0.9.2)
92
+ addressable (>= 2.3.5)
93
+ faraday (>= 0.17.3, < 3)
94
+ thor (1.2.1)
95
+ tomlrb (2.0.3)
96
+ tzinfo (2.0.5)
97
+ concurrent-ruby (~> 1.0)
98
+ unicode-display_width (2.4.2)
99
+
100
+ PLATFORMS
101
+ ruby
102
+
103
+ DEPENDENCIES
104
+ byebug (~> 11.1)
105
+ licensed!
106
+ minitest (~> 5.17)
107
+ mocha (~> 2.0)
108
+ rake (~> 13.0)
109
+ rubocop-github (~> 0.20)
110
+
111
+ BUNDLED WITH
112
+ 2.3.26
@@ -1,10 +1,12 @@
1
1
  # CocoaPods
2
2
 
3
+ **NOTE!**: Enumerating Cocoapods dependencies is disabled until the cocoapods-core gem is compatible with Rails 7+. See https://github.com/CocoaPods/Core/pull/733
4
+
3
5
  The cocoapods source will detect dependencies when `Podfile` and `Podfile.lock` are found at an app's `source_path`.
4
6
 
5
7
  It uses the `pod` CLI commands to enumerate dependencies and gather metadata on each package.
6
8
 
7
- ### Evaluating dependencies from a specific target
9
+ ## Evaluating dependencies from a specific target
8
10
 
9
11
  The `cocoapods.targets` property is used to specify which targets to analyze dependencies from. By default, dependencies from all targets will be analyzed.
10
12
 
@@ -47,8 +47,8 @@ module Licensed
47
47
  Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
48
48
  end
49
49
 
50
- def __materialize__(*args)
51
- spec = super(*args)
50
+ def __materialize__(*args, **kwargs)
51
+ spec = super(*args, **kwargs)
52
52
  return spec if spec
53
53
 
54
54
  Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
@@ -2,15 +2,20 @@
2
2
  require "json"
3
3
  require "pathname"
4
4
  require "uri"
5
- require "cocoapods-core"
5
+
6
+ # **NOTE** Cocoapods is disabled until cocoapods-core supports recent rails versions
7
+ # https://github.com/CocoaPods/Core/pull/733
8
+ # require "cocoapods-core"
6
9
 
7
10
  module Licensed
8
11
  module Sources
9
12
  class Cocoapods < Source
10
13
  def enabled?
11
- return unless Licensed::Shell.tool_available?("pod")
14
+ false
15
+
16
+ # return unless Licensed::Shell.tool_available?("pod")
12
17
 
13
- config.pwd.join("Podfile").exist? && config.pwd.join("Podfile.lock").exist?
18
+ # config.pwd.join("Podfile").exist? && config.pwd.join("Podfile.lock").exist?
14
19
  end
15
20
 
16
21
  def enumerate_dependencies
@@ -46,11 +51,13 @@ module Licensed
46
51
  end
47
52
 
48
53
  def lockfile
49
- @lockfile ||= Pod::Lockfile.from_file(config.pwd.join("Podfile.lock"))
54
+ @lockfile = nil
55
+ # @lockfile ||= Pod::Lockfile.from_file(config.pwd.join("Podfile.lock"))
50
56
  end
51
57
 
52
58
  def podfile
53
- @podfile ||= Pod::Podfile.from_file(config.pwd.join("Podfile"))
59
+ @podfile = nil
60
+ # @podfile ||= Pod::Podfile.from_file(config.pwd.join("Podfile"))
54
61
  end
55
62
 
56
63
  def dependency_path(name)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "4.0.2".freeze
3
+ VERSION = "4.0.4".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
data/licensed.gemspec CHANGED
@@ -23,19 +23,19 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = ">= 2.6.0"
25
25
 
26
- spec.add_dependency "licensee", "9.16.0"
27
- spec.add_dependency "thor", "1.2.1"
28
- spec.add_dependency "pathname-common_prefix", "0.0.1"
29
- spec.add_dependency "tomlrb", "2.0.3"
30
- spec.add_dependency "ruby-xxHash", "0.4.0.2"
31
- spec.add_dependency "parallel", "1.22.1"
32
- spec.add_dependency "reverse_markdown", "2.1.1"
33
- spec.add_dependency "json", "2.6.3"
34
- spec.add_dependency "cocoapods-core", "1.11.3"
26
+ spec.add_dependency "licensee", "~> 9.16"
27
+ spec.add_dependency "thor", "~> 1.2"
28
+ spec.add_dependency "pathname-common_prefix", "~> 0.0.1"
29
+ spec.add_dependency "tomlrb", "~> 2.0"
30
+ spec.add_dependency "ruby-xxHash", "~> 0.4.0"
31
+ spec.add_dependency "parallel", "~> 1.22"
32
+ spec.add_dependency "reverse_markdown", "~> 2.1"
33
+ spec.add_dependency "json", "~> 2.6"
34
+ # spec.add_dependency "cocoapods-core", "~> 1.11"
35
35
 
36
- spec.add_development_dependency "rake", "13.0.6"
37
- spec.add_development_dependency "minitest", "5.17.0"
38
- spec.add_development_dependency "mocha", "2.0.2"
39
- spec.add_development_dependency "rubocop-github", "0.20.0"
40
- spec.add_development_dependency "byebug", "11.1.3"
36
+ spec.add_development_dependency "rake", "~> 13.0"
37
+ spec.add_development_dependency "minitest", "~> 5.17"
38
+ spec.add_development_dependency "mocha", "~> 2.0"
39
+ spec.add_development_dependency "rubocop-github", "~> 0.20"
40
+ spec.add_development_dependency "byebug", "~> 11.1"
41
41
  end
metadata CHANGED
@@ -1,211 +1,197 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensed
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 9.16.0
19
+ version: '9.16'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 9.16.0
26
+ version: '9.16'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.1
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2.1
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pathname-common_prefix
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tomlrb
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.3
61
+ version: '2.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '='
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.3
68
+ version: '2.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ruby-xxHash
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.4.0.2
75
+ version: 0.4.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.4.0.2
82
+ version: 0.4.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: parallel
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.22.1
89
+ version: '1.22'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.22.1
96
+ version: '1.22'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: reverse_markdown
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.1
103
+ version: '2.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.1.1
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.6.3
117
+ version: '2.6'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.6.3
125
- - !ruby/object:Gem::Dependency
126
- name: cocoapods-core
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 1.11.3
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 1.11.3
124
+ version: '2.6'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rake
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - '='
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 13.0.6
131
+ version: '13.0'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - '='
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 13.0.6
138
+ version: '13.0'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: minitest
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - '='
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 5.17.0
145
+ version: '5.17'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - '='
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 5.17.0
152
+ version: '5.17'
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: mocha
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - '='
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 2.0.2
159
+ version: '2.0'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - '='
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 2.0.2
166
+ version: '2.0'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: rubocop-github
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - '='
171
+ - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 0.20.0
173
+ version: '0.20'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - '='
178
+ - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: 0.20.0
180
+ version: '0.20'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: byebug
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
- - - '='
185
+ - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 11.1.3
187
+ version: '11.1'
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - '='
192
+ - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: 11.1.3
194
+ version: '11.1'
209
195
  description: Licensed automates extracting and validating the licenses of dependencies.
210
196
  email:
211
197
  - opensource+licensed@github.com
@@ -218,6 +204,7 @@ files:
218
204
  - CODE_OF_CONDUCT.md
219
205
  - CONTRIBUTING.md
220
206
  - Gemfile
207
+ - Gemfile.lock
221
208
  - LICENSE
222
209
  - README.md
223
210
  - Rakefile