danger-ad_licenselint 1.0.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +51 -36
- data/lib/ad_licenselint/gem_version.rb +1 -1
- data/lib/ad_licenselint/plugin.rb +14 -6
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 199e2b5ad41d89d65c8ff78ef3dcfe683a2f5ddebbb839eace78743dde2568c6
|
4
|
+
data.tar.gz: 8ad58d3c82351dbc4ba9b0a7c163eaf3307d36cadabb31f70e9961b088ef8d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57decc8d4a3428576e6e75d1e77d9b7a79937da753da66f4bb6e19c85cdbdaee7574c82d912505b3b38549ae5d85e242744dfd95e9db46c5b536fa819fd8e5d2
|
7
|
+
data.tar.gz: c4cec40890fa1cc172d822d4042f39d5ea0c96746a2014118255d349df21778b0350f00fc5ebceaf918487a58dfdac1d13d4aaff817eb1f6614f1be40e632d47
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [UNRELEASE]
|
8
|
+
|
9
|
+
## [1.0.1] - 2021-03-23
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Fix `Podfile` and `Podfile.lock` paths ([#12](https://github.com/faberNovel/ad_licenselint/pull/12))
|
14
|
+
|
15
|
+
## [1.0.0] - 2021-03-23
|
16
|
+
|
17
|
+
Initial version
|
data/Gemfile.lock
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-ad_licenselint (1.0.
|
4
|
+
danger-ad_licenselint (1.0.1)
|
5
5
|
ad_licenselint (~> 1.1)
|
6
6
|
danger-plugin-api (~> 1.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (
|
11
|
+
activesupport (6.1.4.1)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
-
i18n (>=
|
14
|
-
minitest (
|
15
|
-
tzinfo (~>
|
16
|
-
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
zeitwerk (~> 2.3)
|
17
|
+
ad_licenselint (1.2.0)
|
17
18
|
cocoapods-core (~> 1.9)
|
18
19
|
colorize (~> 0.8)
|
19
20
|
terminal-table (~> 1.8)
|
20
|
-
addressable (2.
|
21
|
+
addressable (2.8.0)
|
21
22
|
public_suffix (>= 2.0.2, < 5.0)
|
22
23
|
algoliasearch (1.27.5)
|
23
24
|
httpclient (~> 2.8, >= 2.8.3)
|
@@ -28,23 +29,23 @@ GEM
|
|
28
29
|
cork
|
29
30
|
nap
|
30
31
|
open4 (~> 1.3)
|
31
|
-
cocoapods-core (1.
|
32
|
-
activesupport (
|
33
|
-
addressable (~> 2.
|
32
|
+
cocoapods-core (1.11.0)
|
33
|
+
activesupport (>= 5.0, < 7)
|
34
|
+
addressable (~> 2.8)
|
34
35
|
algoliasearch (~> 1.0)
|
35
36
|
concurrent-ruby (~> 1.1)
|
36
37
|
fuzzy_match (~> 2.0.4)
|
37
38
|
nap (~> 1.0)
|
38
39
|
netrc (~> 0.11)
|
39
|
-
public_suffix
|
40
|
+
public_suffix (~> 4.0)
|
40
41
|
typhoeus (~> 1.0)
|
41
42
|
coderay (1.1.3)
|
42
43
|
colored2 (3.1.2)
|
43
44
|
colorize (0.8.1)
|
44
|
-
concurrent-ruby (1.1.
|
45
|
+
concurrent-ruby (1.1.9)
|
45
46
|
cork (0.3.0)
|
46
47
|
colored2 (~> 3.1)
|
47
|
-
danger (8.
|
48
|
+
danger (8.3.1)
|
48
49
|
claide (~> 1.0)
|
49
50
|
claide-plugins (>= 0.9.2)
|
50
51
|
colored2 (~> 3.1)
|
@@ -60,27 +61,41 @@ GEM
|
|
60
61
|
danger-plugin-api (1.0.0)
|
61
62
|
danger (> 2.0)
|
62
63
|
diff-lcs (1.4.4)
|
63
|
-
ethon (0.
|
64
|
-
ffi (>= 1.
|
65
|
-
faraday (1.
|
64
|
+
ethon (0.14.0)
|
65
|
+
ffi (>= 1.15.0)
|
66
|
+
faraday (1.7.1)
|
67
|
+
faraday-em_http (~> 1.0)
|
68
|
+
faraday-em_synchrony (~> 1.0)
|
69
|
+
faraday-excon (~> 1.1)
|
70
|
+
faraday-httpclient (~> 1.0.1)
|
66
71
|
faraday-net_http (~> 1.0)
|
72
|
+
faraday-net_http_persistent (~> 1.1)
|
73
|
+
faraday-patron (~> 1.0)
|
74
|
+
faraday-rack (~> 1.0)
|
67
75
|
multipart-post (>= 1.2, < 3)
|
68
|
-
ruby2_keywords
|
76
|
+
ruby2_keywords (>= 0.0.4)
|
77
|
+
faraday-em_http (1.0.0)
|
78
|
+
faraday-em_synchrony (1.0.0)
|
79
|
+
faraday-excon (1.1.0)
|
69
80
|
faraday-http-cache (2.2.0)
|
70
81
|
faraday (>= 0.8)
|
82
|
+
faraday-httpclient (1.0.1)
|
71
83
|
faraday-net_http (1.0.1)
|
72
|
-
|
73
|
-
|
84
|
+
faraday-net_http_persistent (1.2.0)
|
85
|
+
faraday-patron (1.0.0)
|
86
|
+
faraday-rack (1.0.0)
|
87
|
+
ffi (1.15.4)
|
88
|
+
formatador (0.3.0)
|
74
89
|
fuzzy_match (2.0.4)
|
75
|
-
git (1.
|
90
|
+
git (1.9.1)
|
76
91
|
rchardet (~> 1.8)
|
77
|
-
guard (2.
|
92
|
+
guard (2.18.0)
|
78
93
|
formatador (>= 0.2.4)
|
79
94
|
listen (>= 2.7, < 4.0)
|
80
95
|
lumberjack (>= 1.0.12, < 2.0)
|
81
96
|
nenv (~> 0.1)
|
82
97
|
notiffany (~> 0.0)
|
83
|
-
pry (>= 0.
|
98
|
+
pry (>= 0.13.0)
|
84
99
|
shellany (~> 0.0)
|
85
100
|
thor (>= 0.18.1)
|
86
101
|
guard-compat (1.2.1)
|
@@ -89,7 +104,7 @@ GEM
|
|
89
104
|
guard-compat (~> 1.1)
|
90
105
|
rspec (>= 2.99.0, < 4.0)
|
91
106
|
httpclient (2.8.3)
|
92
|
-
i18n (1.8.
|
107
|
+
i18n (1.8.10)
|
93
108
|
concurrent-ruby (~> 1.0)
|
94
109
|
json (2.5.1)
|
95
110
|
kramdown (2.3.1)
|
@@ -110,25 +125,25 @@ GEM
|
|
110
125
|
notiffany (0.1.3)
|
111
126
|
nenv (~> 0.1)
|
112
127
|
shellany (~> 0.0)
|
113
|
-
octokit (4.
|
128
|
+
octokit (4.21.0)
|
114
129
|
faraday (>= 0.9)
|
115
130
|
sawyer (~> 0.8.0, >= 0.5.3)
|
116
131
|
open4 (1.3.4)
|
117
132
|
parallel (1.20.1)
|
118
|
-
parser (3.0.
|
133
|
+
parser (3.0.2.0)
|
119
134
|
ast (~> 2.4.1)
|
120
|
-
pry (0.14.
|
135
|
+
pry (0.14.1)
|
121
136
|
coderay (~> 1.1)
|
122
137
|
method_source (~> 1.0)
|
123
138
|
public_suffix (4.0.6)
|
124
139
|
rainbow (3.0.0)
|
125
140
|
rake (10.5.0)
|
126
|
-
rb-fsevent (0.
|
141
|
+
rb-fsevent (0.11.0)
|
127
142
|
rb-inotify (0.10.1)
|
128
143
|
ffi (~> 1.0)
|
129
144
|
rchardet (1.8.0)
|
130
145
|
regexp_parser (2.1.1)
|
131
|
-
rexml (3.2.
|
146
|
+
rexml (3.2.5)
|
132
147
|
rspec (3.10.0)
|
133
148
|
rspec-core (~> 3.10.0)
|
134
149
|
rspec-expectations (~> 3.10.0)
|
@@ -142,19 +157,19 @@ GEM
|
|
142
157
|
diff-lcs (>= 1.2.0, < 2.0)
|
143
158
|
rspec-support (~> 3.10.0)
|
144
159
|
rspec-support (3.10.2)
|
145
|
-
rubocop (1.
|
160
|
+
rubocop (1.20.0)
|
146
161
|
parallel (~> 1.10)
|
147
162
|
parser (>= 3.0.0.0)
|
148
163
|
rainbow (>= 2.2.2, < 4.0)
|
149
164
|
regexp_parser (>= 1.8, < 3.0)
|
150
165
|
rexml
|
151
|
-
rubocop-ast (>= 1.
|
166
|
+
rubocop-ast (>= 1.9.1, < 2.0)
|
152
167
|
ruby-progressbar (~> 1.7)
|
153
168
|
unicode-display_width (>= 1.4.0, < 3.0)
|
154
|
-
rubocop-ast (1.
|
155
|
-
parser (>=
|
169
|
+
rubocop-ast (1.11.0)
|
170
|
+
parser (>= 3.0.1.1)
|
156
171
|
ruby-progressbar (1.11.0)
|
157
|
-
ruby2_keywords (0.0.
|
172
|
+
ruby2_keywords (0.0.5)
|
158
173
|
sawyer (0.8.2)
|
159
174
|
addressable (>= 2.3.5)
|
160
175
|
faraday (> 0.8, < 2.0)
|
@@ -162,13 +177,13 @@ GEM
|
|
162
177
|
terminal-table (1.8.0)
|
163
178
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
164
179
|
thor (1.1.0)
|
165
|
-
thread_safe (0.3.6)
|
166
180
|
typhoeus (1.4.0)
|
167
181
|
ethon (>= 0.9.0)
|
168
|
-
tzinfo (
|
169
|
-
|
182
|
+
tzinfo (2.0.4)
|
183
|
+
concurrent-ruby (~> 1.0)
|
170
184
|
unicode-display_width (1.7.0)
|
171
185
|
yard (0.9.26)
|
186
|
+
zeitwerk (2.4.2)
|
172
187
|
|
173
188
|
PLATFORMS
|
174
189
|
ruby
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'ad_licenselint'
|
2
|
-
require 'cocoapods
|
2
|
+
require 'cocoapods'
|
3
3
|
|
4
4
|
module Danger
|
5
5
|
# Lint license from pods in your Podfile
|
@@ -30,7 +30,7 @@ module Danger
|
|
30
30
|
#
|
31
31
|
|
32
32
|
def lint_licenses(inline_mode: false)
|
33
|
-
return if
|
33
|
+
return if podfile_path.nil? || lockfile_path.nil?
|
34
34
|
|
35
35
|
runner = ADLicenseLint::Runner.new({
|
36
36
|
format: ADLicenseLint::Constant::MARKDOWN_FORMAT_OPTION,
|
@@ -49,6 +49,14 @@ module Danger
|
|
49
49
|
|
50
50
|
private
|
51
51
|
|
52
|
+
def podfile_path
|
53
|
+
git.modified_files.grep(/Podfile\z/).first
|
54
|
+
end
|
55
|
+
|
56
|
+
def lockfile_path
|
57
|
+
git.modified_files.grep(/Podfile.lock\z/).first
|
58
|
+
end
|
59
|
+
|
52
60
|
def write_to_file(content)
|
53
61
|
result = nil
|
54
62
|
Tempfile.create { |f|
|
@@ -85,10 +93,10 @@ module Danger
|
|
85
93
|
end
|
86
94
|
|
87
95
|
def get_modified_pods_from_diff
|
88
|
-
after_podfile = write_to_file(git.info_for_file(
|
96
|
+
after_podfile = write_to_file(git.info_for_file(podfile_path)[:after]) { |path|
|
89
97
|
Pod::Podfile.from_file path
|
90
98
|
}
|
91
|
-
before_lockfile = write_to_file(git.info_for_file(
|
99
|
+
before_lockfile = write_to_file(git.info_for_file(lockfile_path)[:before]) { |path|
|
92
100
|
Pod::Lockfile.from_file(Pathname(path))
|
93
101
|
}
|
94
102
|
changes = before_lockfile.detect_changes_with_podfile(after_podfile)
|
@@ -96,14 +104,14 @@ module Danger
|
|
96
104
|
end
|
97
105
|
|
98
106
|
def post_inline_messages(report)
|
99
|
-
podfile_content = git.info_for_file(
|
107
|
+
podfile_content = git.info_for_file(podfile_path)[:after]
|
100
108
|
report
|
101
109
|
.entries
|
102
110
|
.each { |pod_report|
|
103
111
|
line = line_for_content(pod_report.pod_name, podfile_content)
|
104
112
|
warn(
|
105
113
|
comment_for_report(pod_report),
|
106
|
-
file:
|
114
|
+
file: podfile_path,
|
107
115
|
line: line
|
108
116
|
)
|
109
117
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-ad_licenselint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Felgines
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -172,6 +172,7 @@ extensions: []
|
|
172
172
|
extra_rdoc_files: []
|
173
173
|
files:
|
174
174
|
- ".rubocop.yml"
|
175
|
+
- CHANGELOG.md
|
175
176
|
- Gemfile
|
176
177
|
- Gemfile.lock
|
177
178
|
- Guardfile
|
@@ -189,7 +190,7 @@ homepage: https://github.com/fabernovel/danger-ad_licenselint
|
|
189
190
|
licenses:
|
190
191
|
- MIT
|
191
192
|
metadata: {}
|
192
|
-
post_install_message:
|
193
|
+
post_install_message:
|
193
194
|
rdoc_options: []
|
194
195
|
require_paths:
|
195
196
|
- lib
|
@@ -204,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
205
|
- !ruby/object:Gem::Version
|
205
206
|
version: '0'
|
206
207
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
208
|
+
rubygems_version: 3.3.26
|
209
|
+
signing_key:
|
209
210
|
specification_version: 4
|
210
211
|
summary: Danger plugin for ad_licenselint
|
211
212
|
test_files:
|