license_patrol 1.2.0 → 1.2.1

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: bfadea16931d270ad27f48e5db7d22d95751c39335299a0375b037b192d88925
4
- data.tar.gz: acba13bf06366eb312bde648d1aefc653576ff2fa67cae75a2cbddf9d697a84b
3
+ metadata.gz: b6ab801f8c2ec50887f574cd31ff918dc078b2a3d2a6b733da4d758c4bc9dc9b
4
+ data.tar.gz: 2b1ea4a322bbf350a0037731c4f9288c05a721a8c2e3b96f50bbeb7ab5fe6e5d
5
5
  SHA512:
6
- metadata.gz: bd3c0356c36aa7aae5ed0891ce8e4b4baff329fdbbd21f26316f87f13d6de4daf9f4d3b6ed1831f4b1cbac9a7763f0224ef371d9cc2a87abf8ea67e760ad8a10
7
- data.tar.gz: ba987bba63a5b6161407ad3fb73c904d15e6d4d2438cf6ce8cfea6e867dfb7435e8cfab1be6c7f2b3c2bb34bd19ff955de05155356d0cff3519c58863f7ac89d
6
+ metadata.gz: ceabc84d0fb8a6ff14355946086eb3139382ee855d761038378713db056cf2ea99ea32c1cd37f9edb85dd3da3032aad3da1dd198d78768fb8145d758b3016580
7
+ data.tar.gz: cf939b1b461cedd5fca2470e556d2e183fa635db030698c86c0cbf784f669ba4f79fa92115de740423bc432b3c6081bd6ffb3318fd5d1ca1bc7af0a32a2d78af
@@ -7,10 +7,16 @@ updates:
7
7
  time: "20:00"
8
8
  timezone: America/Los_Angeles
9
9
  open-pull-requests-limit: 10
10
- - package-ecosystem: docker
10
+ commit-message:
11
+ prefix: chore
12
+ include: scope
13
+ - package-ecosystem: docker
11
14
  directory: "/"
12
15
  schedule:
13
16
  interval: daily
14
17
  time: "20:00"
15
18
  timezone: America/Los_Angeles
16
19
  open-pull-requests-limit: 10
20
+ commit-message:
21
+ prefix: chore
22
+ include: scope
@@ -8,6 +8,7 @@ jobs:
8
8
  uses: powerhome/github-actions-workflows/.github/workflows/ruby-gem.yml@main
9
9
  with:
10
10
  package: ${{ github.workflow }}
11
+ release-tag: false
11
12
  ruby: '["3.3"]'
12
13
  before_build: .github/workflows/install-test-tools.sh
13
14
  secrets: inherit
@@ -0,0 +1,21 @@
1
+ # Managed by https://github.com/powerhome/software. Do not make changes here, they will be reverted.
2
+
3
+ name: PR title
4
+
5
+ on:
6
+ pull_request:
7
+ types: [opened, edited, synchronize, reopened]
8
+
9
+ permissions:
10
+ pull-requests: read
11
+
12
+ jobs:
13
+ pr-title:
14
+ name: Conventional Commit title
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ # The repository squash-merges with the PR title as the commit subject,
18
+ # so the title is what has to be a Conventional Commit.
19
+ - uses: amannn/action-semantic-pull-request@2252a14e810aa9b85c2d560bd7070c802206ecf6 # v6.1.2
20
+ env:
21
+ GITHUB_TOKEN: ${{ github.token }}
@@ -0,0 +1,42 @@
1
+ name: release-please
2
+
3
+ # Keeps a release pull request open against master that bumps the gem to the
4
+ # next version, pins it in Gemfile.lock and adds it to CHANGELOG.md, worked out
5
+ # from the Conventional Commit titles merged since the last release. Merging
6
+ # that pull request tags the release vX.Y.Z and creates its GitHub Release, and
7
+ # the tag's push publishes the gem. See release/instructions.md.
8
+ #
9
+ # It runs as the release GitHub App, not GITHUB_TOKEN: a pull request or tag
10
+ # GITHUB_TOKEN creates starts no workflows, so the release pull request would
11
+ # never get its required checks and the tag would never publish the gem. The
12
+ # App's key is in the release environment, which only master can deploy to, so
13
+ # no run from another branch or a tag can read it.
14
+
15
+ on:
16
+ push:
17
+ branches: [master]
18
+
19
+ permissions: {}
20
+
21
+ concurrency:
22
+ group: ${{ github.workflow }}
23
+ cancel-in-progress: false
24
+
25
+ jobs:
26
+ release-please:
27
+ name: Release pull request
28
+ runs-on: ubuntu-latest
29
+ environment: release
30
+ steps:
31
+ - name: Create GitHub App token
32
+ id: app-token
33
+ uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
34
+ with:
35
+ client-id: ${{ vars.RELEASE_APP_CLIENT_ID }}
36
+ private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
37
+ permission-contents: write
38
+ permission-pull-requests: write
39
+ - name: Open or update the release pull request, or tag a merged one
40
+ uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
41
+ with:
42
+ token: ${{ steps.app-token.outputs.token }}
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.2.1"
3
+ }
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6.0
2
+ TargetRubyVersion: 3.0
3
3
  Exclude:
4
4
  - 'lib/license_patrol/reports/**/*'
5
5
  - 'features/fixtures/**/*'
data/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
- # [1.2.0] / 2026-10-28
1
+ # Changelog
2
+
3
+ Notable changes to LicensePatrol are documented in this file. After 1.2.0,
4
+ release-please writes each release's entry from the Conventional Commit titles
5
+ of its pull requests; see [release/instructions.md](release/instructions.md).
6
+ Entries before 1.0.0 are LicenseFinder's history.
7
+
8
+ ## [1.2.1](https://github.com/powerhome/license_patrol/compare/v1.2.0...v1.2.1) (2026-11-12)
9
+
10
+
11
+ ### Fixed
12
+
13
+ * **deps:** Require rubyzip 3.4 to patch path traversal ([#11](https://github.com/powerhome/license_patrol/issues/11)) ([81e2049](https://github.com/powerhome/license_patrol/commit/81e20497365375ff8401279581f8fbd401ba5e35))
14
+
15
+ ## [1.2.0] / 2026-10-28
2
16
 
3
17
  ### Fixed
4
18
  * Yarn 2, 3 and 4 projects scan without the third-party licenses plugin, reading packages from the built-in `yarn info` - [6a46a083](https://github.com/powerhome/license_patrol/commit/6a46a083) - Carlos Palhares
@@ -6,18 +20,18 @@
6
20
  ### Changed
7
21
  * Yarn 2+ no longer reports workspaces as packages, and `--prepare` only runs `yarn install` - [6a46a083](https://github.com/powerhome/license_patrol/commit/6a46a083) - Carlos Palhares
8
22
 
9
- # [1.1.0] / 2026-10-21
23
+ ## [1.1.0] / 2026-10-21
10
24
 
11
25
  ### Added
12
26
  * `bundler_gemfiles` option to scan many gemfiles, such as Appraisal's `gemfiles/*.gemfile`, in one run - [5d7e1372](https://github.com/powerhome/license_patrol/commit/5d7e1372) - Carlos Palhares
13
27
 
14
- # [1.0.0] / 2026-10-21
28
+ ## [1.0.0] / 2026-10-21
15
29
 
16
30
  First release as `license_patrol`, forked from LicenseFinder 7.2.1. Earlier entries are LicenseFinder's history.
17
31
 
18
- # [7.2.1] / 2024-05-08
32
+ ## [7.2.1] / 2024-05-08
19
33
 
20
- # [7.2.0] / 2024-05-07
34
+ ## [7.2.0] / 2024-05-07
21
35
 
22
36
  ### Added
23
37
  * Support for Ruby 3.3.x - [3bbe12f7](https://github.com/pivotal/LicenseFinder/commit/3bbe12f76d5305879df89d856d90f0b9eaf967d4)
@@ -43,7 +57,7 @@ First release as `license_patrol`, forked from LicenseFinder 7.2.1. Earlier entr
43
57
  * Remove Ruby 2.6 tests- [c48ddb74](https://github.com/pivotal/LicenseFinder/commit/c48ddb745bb85971fc14e21d2c3c308c849ef2a3)
44
58
  * Remove Dep package manager for jammy release - [42bed10d](https://github.com/pivotal/LicenseFinder/commit/42bed10d80e4b0e6fac1c62dd5eca2097ffc3517)
45
59
 
46
- # [7.1.0] / 2022-11-28
60
+ ## [7.1.0] / 2022-11-28
47
61
 
48
62
  ### Added
49
63
  * Missing New BSD alternative name - [64d425d9](https://github.com/pivotal/LicenseFinder/commit/64d425d9210794c6b45c60bf730931e459a1e959)
@@ -62,13 +76,13 @@ First release as `license_patrol`, forked from LicenseFinder 7.2.1. Earlier entr
62
76
  ### Changed
63
77
  * - Bump docker image golang version to 1.17.13 - [4f3df246](https://github.com/pivotal/LicenseFinder/commit/4f3df246d2f5245681a943a6fb6dee49e3ed3ed1)
64
78
 
65
- # [7.0.1] / 2022-03-18
79
+ ## [7.0.1] / 2022-03-18
66
80
  ### Fixed
67
81
  * Maven Wrapper command path must be relative to working directory - [298a733a](https://github.com/pivotal/LicenseFinder/commit/298a733a67f34341ffabc7dfbf2ee5c27574b979) - jbmgrtn
68
82
  * Support yarn license command for yarn v2+ - [ed3b319b](https://github.com/pivotal/LicenseFinder/commit/ed3b319b64bf9c72c12fd5a365952137cf7f33b6)
69
83
 
70
84
 
71
- # [7.0.0] / 2022-03-04
85
+ ## [7.0.0] / 2022-03-04
72
86
 
73
87
  ### Added
74
88
  * Ruby 3.x Support - [02497dfb](https://github.com/pivotal/LicenseFinder/commit/02497dfb60d458e51a43ef26568389b5fcf302af)
@@ -83,7 +97,7 @@ First release as `license_patrol`, forked from LicenseFinder 7.2.1. Earlier entr
83
97
  ### Deprecated
84
98
  * Remove support for Ruby 2.3 - [02497dfb](https://github.com/pivotal/LicenseFinder/commit/02497dfb60d458e51a43ef26568389b5fcf302af)
85
99
 
86
- # [6.15.0] / 2021-12-17
100
+ ## [6.15.0] / 2021-12-17
87
101
 
88
102
  ### Added
89
103
  * Add Yarn2 support - [7f08790c](https://github.com/pivotal/LicenseFinder/commit/7f08790ce1d7cd12ccd0aa9de114ca3366ab408c)
@@ -94,12 +108,12 @@ First release as `license_patrol`, forked from LicenseFinder 7.2.1. Earlier entr
94
108
  ### Fixed
95
109
  * Fix docker Conan and swift - [66031df9](https://github.com/pivotal/LicenseFinder/commit/66031df912c2e1e21aa794a4b897fc61c9ec6b02)
96
110
 
97
- # [6.14.2] / 2021-10-27
111
+ ## [6.14.2] / 2021-10-27
98
112
 
99
113
  ### Added
100
114
  * Zlib License - [0f004b52](https://github.com/pivotal/LicenseFinder/commit/0f004b528d436b4d53db8bd373ede0594c07d9e8) - blooper05
101
115
 
102
- # [6.14.1] / 2021-06-25
116
+ ## [6.14.1] / 2021-06-25
103
117
 
104
118
  First two commit were supposed to show up in v6.14.0, but GPG bug prevented a correct build. Therefore, a follow up patch build was made to include the GPG fix.
105
119
 
@@ -117,46 +131,46 @@ First two commit were supposed to show up in v6.14.0, but GPG bug prevented a co
117
131
  Thanks to Joern Schneeweisz Staff Security Engineer, Security Research | GitLab for raising the issue
118
132
 
119
133
 
120
- # [6.13.0] / 2021-04-27
134
+ ## [6.13.0] / 2021-04-27
121
135
 
122
136
  ### Fixed
123
137
  * Ignore packages with nil modules - [4eca0ec1](https://github.com/pivotal/LicenseFinder/commit/4eca0ec15dc6266afa48b74b3742278351246eb8)
124
138
 
125
- # [6.12.2] / 2021-04-14
139
+ ## [6.12.2] / 2021-04-14
126
140
 
127
141
  ### Changed
128
142
  * exit when go mod list command fails - [fcf1f707](https://github.com/pivotal/LicenseFinder/commit/fcf1f7076dee2ff730e3c8b608381aca22de0e92) - Jeff Jun
129
143
 
130
- # [6.12.1] / 2021-04-12
144
+ ## [6.12.1] / 2021-04-12
131
145
 
132
- # [6.12.0] / 2021-03-05
146
+ ## [6.12.0] / 2021-03-05
133
147
 
134
148
  ### Added
135
149
  * Provide homepage information for GoDep and Go15Vendor package managers - [bae1bda9](https://github.com/pivotal/LicenseFinder/commit/bae1bda9d76cb922405d7efca9c67e2583db70d4) - Jeff Jun
136
150
 
137
- # [6.11.0] / 2021-03-04
151
+ ## [6.11.0] / 2021-03-04
138
152
 
139
153
  ### Added
140
154
  * Add homepage for go_modules package manager - [912394a8](https://github.com/pivotal/LicenseFinder/commit/912394a8a6ab4c31b6918a21da9f37d5b368ed6b)
141
155
 
142
- # [6.10.1] / 2021-01-08
156
+ ## [6.10.1] / 2021-01-08
143
157
 
144
- # [6.10.0] / 2020-11-27
158
+ ## [6.10.0] / 2020-11-27
145
159
 
146
- # [6.9.0] / 2020-10-05
160
+ ## [6.9.0] / 2020-10-05
147
161
 
148
162
  ### Changed
149
163
  * to recognize permitted licenses with AND in the name [#173997648] - [eab14250](https://github.com/pivotal/LicenseFinder/commit/eab14250d188153f8c2b0b5c0191fec19bcddf55) - Raymond Lee
150
164
 
151
- # [6.8.2] / 2020-09-08
165
+ ## [6.8.2] / 2020-09-08
152
166
 
153
- # [6.8.1] / 2020-08-13
167
+ ## [6.8.1] / 2020-08-13
154
168
 
155
- # [6.8.0] / 2020-08-06
169
+ ## [6.8.0] / 2020-08-06
156
170
 
157
- # [6.7.0] / 2020-07-23
171
+ ## [6.7.0] / 2020-07-23
158
172
 
159
- # [6.6.2] / 2020-07-09
173
+ ## [6.6.2] / 2020-07-09
160
174
 
161
175
  ### Added
162
176
  * support for rebar3 - [b20e7444](https://github.com/pivotal/LicenseFinder/commit/b20e7444c147d8dbfa46eb4e8e549e03be751e02) - Jeff Jun
@@ -173,16 +187,16 @@ First two commit were supposed to show up in v6.14.0, but GPG bug prevented a co
173
187
  * support for rebar2 [#173637980] - [b20e7444](https://github.com/pivotal/LicenseFinder/commit/b20e7444c147d8dbfa46eb4e8e549e03be751e02) - Jeff Jun
174
188
  * Removed the unnecessary prepare command for Go modules - [284cc5c8](https://github.com/pivotal/LicenseFinder/commit/284cc5c821270a6e56275e32bac836a3e451f46b)
175
189
 
176
- # [6.6.1] / 2020-06-30
190
+ ## [6.6.1] / 2020-06-30
177
191
 
178
192
  ### Changed
179
193
  * Handle multiple solution files for nuget [#173021333] - [040d9559](https://github.com/pivotal/LicenseFinder/commit/040d9559a4bda07490255cc34c1a7891081bc511)
180
194
  * matches license names from pypi api call with known licenses to avoid returning misformatted licenses [#173421573] - [6b96d746](https://github.com/pivotal/LicenseFinder/commit/6b96d74600034abcacee6ed2b322aa3abfaa0992) - Jeff Jun
181
195
  * Update Nuget Package Manager prepare command - [6ac07066](https://github.com/pivotal/LicenseFinder/commit/6ac070668955bc034da1647658440ce5bb0d9bd2) - Jason Smith
182
196
 
183
- # [6.6.0] / 2020-06-22
197
+ ## [6.6.0] / 2020-06-22
184
198
 
185
- # [6.5.0] / 2020-06-01
199
+ ## [6.5.0] / 2020-06-01
186
200
 
187
201
  ### Added
188
202
  * Support legacy nuget projects [#172950097] - [0cccbcf9](https://github.com/pivotal/LicenseFinder/commit/0cccbcf9aa92f4297ef0174242bdb19da1babc65)
@@ -190,7 +204,7 @@ First two commit were supposed to show up in v6.14.0, but GPG bug prevented a co
190
204
  ### Changed
191
205
  * Upgrade to golang 1.14.3. Update dotnet-sdk to 3.1 - [0969e98f](https://github.com/pivotal/LicenseFinder/commit/0969e98fde4a82f8931601baa4dd96dc01300a14)
192
206
 
193
- # [6.4.0] / 2020-05-22
207
+ ## [6.4.0] / 2020-05-22
194
208
 
195
209
  Big shout out to @forelabs for introducing many new features and improvements for this release. Thanks again!!
196
210
 
@@ -212,7 +226,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
212
226
  * Significantly improve the license text matching file to be more dynamic - [acf5705](https://github.com/pivotal/LicenseFinder/commit/acf570573b4a2414d9c43212dea5d4ecb157319e)
213
227
  * Update Ruby version to 2.7.1 [#172295831] - [475e2948](https://github.com/pivotal/LicenseFinder/commit/475e2948ec1ad859aee59e77aa9ce2a51e1a5029)
214
228
 
215
- # [6.3.0] / 2020-05-06
229
+ ## [6.3.0] / 2020-05-06
216
230
 
217
231
  ### Added
218
232
  * OFL License - [d475bbb1](https://github.com/pivotal/LicenseFinder/commit/d475bbb1380e217f154f262caaa73c12f5b9792b) - Sven Dunemann
@@ -229,7 +243,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
229
243
  * GoModules: fix compute with vendor mod - [067eb19](https://github.com/pivotal/LicenseFinder/commit/067eb1916ce024039631bdbd4114ababa6c02c3a) - forelabs
230
244
  * Do not set Bundle path. Bundler will figure it out. - [6319a7a](https://github.com/pivotal/LicenseFinder/commit/6319a7a281bd9cc997c08c903674ab51fcc6545e) - mvz
231
245
 
232
- # [6.2.0] / 2020-04-07
246
+ ## [6.2.0] / 2020-04-07
233
247
 
234
248
  ### Fixed
235
249
  * Break dependency of specs on released license_finder gem - [ef69fa00](https://github.com/pivotal/LicenseFinder/commit/ef69fa00deb7a8f8ebd74312afa9f130be2d9fda) - Matijs van Zuijlen
@@ -239,9 +253,9 @@ Big shout out to @forelabs for introducing many new features and improvements fo
239
253
  * Run glide install in folder containing glide.lock - [cec3ff47](https://github.com/pivotal/LicenseFinder/commit/cec3ff4759f1c06df2cd0c39ac8004fcd156a6e6) - Jeff Jun
240
254
  * specify path for bundle install [#168042947] - [431355dc](https://github.com/pivotal/LicenseFinder/commit/431355dc1d0172c65444d2f4bcb5b4416fc52af7)
241
255
 
242
- # [6.1.2] / 2020-03-16
256
+ ## [6.1.2] / 2020-03-16
243
257
 
244
- # [6.1.0] / 2020-02-21
258
+ ## [6.1.0] / 2020-02-21
245
259
 
246
260
  ### Fixed
247
261
  * Testing dsl now correctly creates gem project - [6158d767](https://github.com/pivotal/LicenseFinder/commit/6158d76758f4232f3efd652729a83aa632a67dee) - Jeff Jun
@@ -250,7 +264,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
250
264
  * Upgrade golang version to 1.13.3 - [51ecbcbc](https://github.com/pivotal/LicenseFinder/commit/51ecbcbc7992366c1baed2e8b805a7f820f70160)
251
265
  * Uses correct package management command for pip based on options that are passed in - [3f4034ab](https://github.com/pivotal/LicenseFinder/commit/3f4034ab3479da23088174ad8cf56828b3cda9ad)
252
266
 
253
- # [6.0.0] / 2020-01-22
267
+ ## [6.0.0] / 2020-01-22
254
268
 
255
269
  ### Added
256
270
  * License Finder now recognizes pip requirement markers - [99fbc184](https://github.com/pivotal/LicenseFinder/commit/99fbc18463ef45f920ad506a72dc0b3a93d0f5bf) - Jason Smith
@@ -277,7 +291,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
277
291
  ### Deprecated
278
292
  * Remove support for jruby 9.1* [#169590215] - [81e75f8c](https://github.com/pivotal/LicenseFinder/commit/81e75f8cd61ca35e30562352dee2579b1b6c991e)
279
293
 
280
- # [5.11.1] / 2019-11-05
294
+ ## [5.11.1] / 2019-11-05
281
295
 
282
296
  ### Fixed
283
297
  * Crash when gradle runs with project roots recursive [#169465210] - [08e0df85](https://github.com/pivotal/LicenseFinder/commit/08e0df857c7fa4273eb6e2e4a7c01bb46550a91f)
@@ -286,7 +300,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
286
300
  * Bump docker ruby version to 2.6.5 [#169539985] - [26b6d4b2](https://github.com/pivotal/LicenseFinder/commit/26b6d4b25133fa50dbf92265a20bed2350305245)
287
301
  * Gradle version updated to 5.6.4 - [9e32228f](https://github.com/pivotal/LicenseFinder/commit/9e32228fae3dacae38e7827946a0e0412a20ccb0)
288
302
 
289
- # [5.11.0] / 2019-10-24
303
+ ## [5.11.0] / 2019-10-24
290
304
 
291
305
  ### Fixed
292
306
  * Fix crash in LF for null deps in godep - [aec335e5](https://github.com/pivotal/LicenseFinder/commit/aec335e574b65c1e9927787e88fb95f1296cdd26)
@@ -295,30 +309,30 @@ Big shout out to @forelabs for introducing many new features and improvements fo
295
309
  * Exclude Gradle subprojects from project roots - [4efea4c8](https://github.com/pivotal/LicenseFinder/commit/4efea4c8892f48c24ed6ec46a4be85cb06dc6672) - Jason Smith
296
310
  * project_roots will skip maven subprojects - [61b88513](https://github.com/pivotal/LicenseFinder/commit/61b885135bd02cf2b5c6be4bc1fba85020d42f6a) - Peter Tran
297
311
 
298
- # [5.10.2] / 2019-09-03
312
+ ## [5.10.2] / 2019-09-03
299
313
 
300
314
  ### Added
301
315
  * Added bzr app to image - [8fd43f01](https://github.com/pivotal/LicenseFinder/commit/8fd43f01a5de575596c92bcfc38a5e9ba7bf6b3d)
302
316
 
303
- # [5.10.1] / 2019-08-28
317
+ ## [5.10.1] / 2019-08-28
304
318
 
305
319
  ### Fixed
306
320
  * Mix bailing early when elixir is not installed - [13b120e](https://github.com/pivotal/LicenseFinder/commit/13b120ed7c121243be987f449cc29d00ec6e6450)
307
321
 
308
- # [5.10.0] / 2019-08-26
322
+ ## [5.10.0] / 2019-08-26
309
323
 
310
324
  ### Changed
311
325
  * Dotnet projects only detected if csproj is at root level - [b9f810d](https://github.com/pivotal/LicenseFinder/commit/b9f810d96f92f458fcfe4855307fdddfb7f1082b)
312
326
  * sha for composer-setup.php - [64b782a](https://github.com/pivotal/LicenseFinder/commit/64b782a137a287980a317fcb48f595b6e93f85d0) - Debbie Chen
313
327
 
314
- # [5.9.2] / 2019-07-02
328
+ ## [5.9.2] / 2019-07-02
315
329
 
316
330
  ### Changed
317
331
  * Bump ruby version to 2.6.3 - [dcdcc1c](https://github.com/pivotal/LicenseFinder/commit/dcdcc1c3e4fd29ec4d180a54fb67b2aa07e932de)
318
332
 
319
- # [5.9.1] / 2019-06-10
333
+ ## [5.9.1] / 2019-06-10
320
334
 
321
- # [5.9.0] / 2019-06-10
335
+ ## [5.9.0] / 2019-06-10
322
336
 
323
337
  ### Added
324
338
  * composer PHP support - [c671309](https://github.com/pivotal/LicenseFinder/commit/c671309d89c54a4dfac3ac40aab1bf70e3c3f6a2)
@@ -332,7 +346,7 @@ Big shout out to @forelabs for introducing many new features and improvements fo
332
346
  ### Changed
333
347
  * Fix license definition tests - [15b524f](https://github.com/pivotal/LicenseFinder/commit/15b524fa52f63e04a82d160a7fc3d49c288d01e8)
334
348
 
335
- # [5.8.0] / 2019-05-22
349
+ ## [5.8.0] / 2019-05-22
336
350
 
337
351
  ### Added
338
352
  * Trash Package Manager - [3a3d854](https://github.com/pivotal/LicenseFinder/commit/3a3d8541c4ea64607df6b120111aff324f93778d)
@@ -340,9 +354,9 @@ Big shout out to @forelabs for introducing many new features and improvements fo
340
354
  ### Fixed
341
355
  * Prefer to use `origin` over `path` for govendor - [31c6041](https://github.com/pivotal/LicenseFinder/commit/31c6041926a27b61c35c05c6433a87d0af78c1e5)
342
356
 
343
- # [5.7.1] / 2019-03-08
357
+ ## [5.7.1] / 2019-03-08
344
358
 
345
- # [5.7.0] / 2019-03-01
359
+ ## [5.7.0] / 2019-03-01
346
360
 
347
361
  ### Added
348
362
  * Ruby 2.6.1 support - [8d60ed1](https://github.com/pivotal/LicenseFinder/commit/8d60ed13f99b830cc1352900f90e2b298105f518)
@@ -350,14 +364,14 @@ Big shout out to @forelabs for introducing many new features and improvements fo
350
364
  ### Changed
351
365
  * Conan version is locked to 1.11.2 to avoid breaking changes - [72b766a](https://github.com/pivotal/LicenseFinder/commit/72b766a948be5b0f8eade75e716796f50ea9ebf3)
352
366
 
353
- # [5.6.2] / 2019-01-28
367
+ ## [5.6.2] / 2019-01-28
354
368
 
355
- # [5.6.1] / 2019-01-25
369
+ ## [5.6.1] / 2019-01-25
356
370
 
357
371
  ### Changed
358
372
  * Updated GOLANG to 1.11.4 in Docker image [#163424880] - [67e5e1f](https://github.com/pivotal/LicenseFinder/commit/67e5e1ffef19acf3a63cac55c5aa3626fb4c7491)
359
373
 
360
- # [5.6.0] / 2018-12-19
374
+ ## [5.6.0] / 2018-12-19
361
375
 
362
376
  ### Added
363
377
  * Add support for JSON reports [#161595251] - [5a1f735](https://github.com/pivotal/LicenseFinder/commit/5a1f73515c83cbf8ce17275c4c9d1af43d0db772)
@@ -376,12 +390,12 @@ Revert "* Go modules reports incorrect install paths" - [fcead98](https://github
376
390
  ### Changed
377
391
  * Updated go-lang to 1.11.2 in the Docker - [d720f9c](https://github.com/pivotal/LicenseFinder/commit/d720f9c16f82044b5024213bec41b8e9f34cf306)
378
392
 
379
- # [5.5.2] / 2018-10-17
393
+ ## [5.5.2] / 2018-10-17
380
394
 
381
395
  ### Fixed
382
396
  * go mod prepare command being incorrect - [480c465](https://github.com/pivotal/LicenseFinder/commit/480c4654cde7342456318ed4e28b6cebd4a09e4b)
383
397
 
384
- # [5.5.1] / 2018-10-16
398
+ ## [5.5.1] / 2018-10-16
385
399
 
386
400
  ### Added
387
401
  * Documentation for asterisks being added to license names [#158960018] - [154b727](https://github.com/pivotal/LicenseFinder/commit/154b7273b1c18e64afa48799b50588251f99e982)
@@ -390,7 +404,7 @@ Revert "* Go modules reports incorrect install paths" - [fcead98](https://github
390
404
  ### Fixed
391
405
  * Go modules are forced to be enabled on go mod package managers - [cf9123d](https://github.com/pivotal/LicenseFinder/commit/cf9123d654b98cdef872d3b21631e69960abe365)
392
406
 
393
- # [5.5.0] / 2018-10-11
407
+ ## [5.5.0] / 2018-10-11
394
408
 
395
409
  ### Added
396
410
  * Go Module support - [8a20210](https://github.com/pivotal/LicenseFinder/commit/8a202109e942316434978befd33854aa985dd872)
@@ -407,13 +421,13 @@ Revert "* Go modules reports incorrect install paths" - [fcead98](https://github
407
421
  * dlf gemfile directory issues [#160758436 finish] - [2db3972](https://github.com/pivotal/LicenseFinder/commit/2db397261654bca89771e85984b4ae6819274e55)
408
422
  Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://github.com/pivotal/LicenseFinder/commit/6b17ddc4202518ffd167c8d38a2045a36eb00144)
409
423
 
410
- # [5.4.1] / 2018-09-18
424
+ ## [5.4.1] / 2018-09-18
411
425
 
412
426
  ### Fixed
413
427
  * Extra dependencies showing up for some go projects [#160438065] - [dfb1367](https://github.com/pivotal/LicenseFinder/commit/dfb136724721843c1196e74a6b4c762538af62ba)
414
428
  * remove workspace-aggregator as a yarn dependency [#159612717 finish] - [4e0afd0](https://github.com/pivotal/LicenseFinder/commit/4e0afd0ba79623f5bb4c055d42a76ba77ce1c785)
415
429
 
416
- # [5.4.0] / 2018-08-20
430
+ ## [5.4.0] / 2018-08-20
417
431
 
418
432
  ### Added
419
433
  * NuGet + mono installation to Dockerfile
@@ -422,7 +436,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
422
436
  ### Changed
423
437
  * Upgrades Dockerfile base to Xenial
424
438
 
425
- # [5.3.0] / 2018-06-05
439
+ ## [5.3.0] / 2018-06-05
426
440
 
427
441
  ### Added
428
442
  * Experimental support for Rust dependencies with Cargo - [2ef3129](https://github.com/pivotal/LicenseFinder/commit/2ef31290f7abf51db5b7173302d1e535508bbd7a)
@@ -431,19 +445,19 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
431
445
  ### Removed
432
446
  * Remove HTTParty dependency - [c52d014](https://github.com/pivotal/LicenseFinder/commit/c52d014df1ca9cd3838d03c60daa6fad954c5579)
433
447
 
434
- # [5.2.3] / 2018-05-14
448
+ ## [5.2.3] / 2018-05-14
435
449
 
436
- # [5.2.1] / 2018-05-14
450
+ ## [5.2.1] / 2018-05-14
437
451
 
438
452
  ### Changed
439
453
  * Updated go-lang to 1.10.2 in the Docker * Updated Maven to 3.5.3 in the Docker - [1decf6a](https://github.com/pivotal/LicenseFinder/commit/1decf6ad27c9edf96b4f5cccd9a7ca0955fed9f2) - Mark Fioravanti
440
454
 
441
- # [5.2.0] / 2018-05-09
455
+ ## [5.2.0] / 2018-05-09
442
456
 
443
457
  ### Fixed
444
458
  * Support for pip 10.0.1 - [286f679](https://github.com/pivotal/LicenseFinder/commit/286f6790dc71c97c0e93ecdfe0c6fddad75165cc)
445
459
 
446
- # [5.1.1] / 2018-05-08
460
+ ## [5.1.1] / 2018-05-08
447
461
 
448
462
  ### Added
449
463
  * CC License detection
@@ -453,7 +467,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
453
467
  * in_umbrella: true dependencies for Mix
454
468
  * Pivotal Repo Renamed to pivotal
455
469
 
456
- # [5.1.0] / 2018-04-02
470
+ ## [5.1.0] / 2018-04-02
457
471
 
458
472
  ### Added
459
473
  * Support for Ruby 2.5.1 - [9c82a84](https://github.com/pivotal/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00)
@@ -469,13 +483,13 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
469
483
  * Support for Ruby 2.2
470
484
  * Support for jruby - [9c82a84](https://github.com/pivotal/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00)
471
485
 
472
- # [5.0.3] / 2018-02-13
486
+ ## [5.0.3] / 2018-02-13
473
487
 
474
488
  ### Changed
475
489
  * Add the -vendor-only flag to dep-ensure calls - [e305bd1](https://github.com/pivotal/LicenseFinder/commit/e305bd1d5b2d9653f828c3940b59a12903904699)
476
490
  * Update detected paths for Nuget - [3fe8995](https://github.com/pivotal/LicenseFinder/commit/3fe89955d82c3467628abbd2ca9ba159bfeb7df6)
477
491
 
478
- # [5.0.2] / 2018-02-06
492
+ ## [5.0.2] / 2018-02-06
479
493
 
480
494
  ### Fixed
481
495
  * Add conditional production flag to npm - [533f9b8](https://github.com/pivotal/LicenseFinder/commit/533f9b8fda250655f3613444da49fdce60215237)
@@ -485,7 +499,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
485
499
 
486
500
  * Fix yarn not working with --project_path option - [c6ed08d](https://github.com/pivotal/LicenseFinder/commit/c6ed08dd8342dec9fcc3e6377f88d5ef01600928)
487
501
 
488
- # [5.0.0] / 2018-01-15
502
+ ## [5.0.0] / 2018-01-15
489
503
 
490
504
  ### Added
491
505
  * NPM prepare - [e7a0d30](https://github.com/pivotal/LicenseFinder/commit/e7a0d30cb77e5503b5a934b26dbd3dc272dc5605)
@@ -501,20 +515,20 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
501
515
  ### Changed
502
516
  * Package Manager will now log if prepare step fails. Instead of erroring out - [54da71e](https://github.com/pivotal/LicenseFinder/commit/54da71e98f14cd199c39dfd7b762030fcac60ccb)
503
517
 
504
- # [4.0.2] / 2017-11-16
518
+ ## [4.0.2] / 2017-11-16
505
519
 
506
520
  ### Fixed
507
521
 
508
522
  * Fixed --quiet not being available on the report task
509
523
  * Fixed --recursive not being available on the action_items task
510
524
 
511
- # [4.0.1] / 2017-11-14
525
+ ## [4.0.1] / 2017-11-14
512
526
 
513
527
  ### Fixed
514
528
 
515
529
  * Add missing toml dependency to gemspec
516
530
 
517
- # [4.0.0] / 2017-11-10
531
+ ## [4.0.0] / 2017-11-10
518
532
 
519
533
  ### Changed
520
534
 
@@ -525,7 +539,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
525
539
 
526
540
  * Fixed issue where dangling symbolic link would cause License Finder to crash and not continue. Instead, License Finder will now warn about the issue and continue.
527
541
 
528
- # [3.1.0] / 2017-11-10
542
+ ## [3.1.0] / 2017-11-10
529
543
 
530
544
  ### Added
531
545
 
@@ -550,7 +564,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
550
564
  * `build-essential` was added back into the Dockerfile after accidentally being removed
551
565
  * Ignore leading prefixes such as 'The' when looking for licenses
552
566
 
553
- # [3.0.4] / 2017-09-14
567
+ ## [3.0.4] / 2017-09-14
554
568
 
555
569
  ### Added
556
570
  * Added concourse pipeline file for Docker image process (#335, #337)
@@ -560,9 +574,9 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
560
574
  ### Fixed
561
575
  * Fixed NPM stack too deep issue (#327, #329)
562
576
 
563
- # [3.0.3] / Skipped because of accidentally yanking gem
577
+ ## [3.0.3] / Skipped because of accidentally yanking gem
564
578
 
565
- # [3.0.2] / 2017-07-27:
579
+ ## [3.0.2] / 2017-07-27:
566
580
 
567
581
  ### Added
568
582
 
@@ -574,7 +588,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
574
588
  * Use different env-var to indicate ruby version for tests (#303)
575
589
  * Resolve NPM circular dependencies (#306, #307, #311, #313, #314, #319, #322)
576
590
 
577
- # [3.0.1] / 2017-07-12:
591
+ ## [3.0.1] / 2017-07-12:
578
592
 
579
593
  ### Added
580
594
 
@@ -591,7 +605,7 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
591
605
  * Fix dockerfile by explicitly using rvm stable (#303)
592
606
  * Report multiple versions of the same NPM dependency (#310)
593
607
 
594
- # [3.0.0] / 2016-03-02
608
+ ## [3.0.0] / 2016-03-02
595
609
 
596
610
  ### Added
597
611
 
@@ -620,14 +634,14 @@ Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://
620
634
  * Add JSON lib attribute to handle deeply nested JSON (#269. Thanks, @antongurov!)
621
635
  * Use the fully qualified name of the license-maven-plugin (#284)
622
636
 
623
- # 2.1.2 / 2016-06-10
637
+ ## 2.1.2 / 2016-06-10
624
638
 
625
639
  Bugfixes:
626
640
 
627
641
  * NuGet limits its recursive search for .nupkg packages to the `vendor` subdirectory. (#228)
628
642
 
629
643
 
630
- # 2.1.1 / 2016-06-09
644
+ ## 2.1.1 / 2016-06-09
631
645
 
632
646
  Features:
633
647
 
@@ -639,7 +653,7 @@ Bugfixes:
639
653
  * NuGet now correctly chooses a directory with vendored .nupkg packages
640
654
 
641
655
 
642
- # 2.1.0 / 2016-04-01
656
+ ## 2.1.0 / 2016-04-01
643
657
 
644
658
  * Features
645
659
  * support a `groups` in reports (#210) (Thanks, Jon Wolski!)
@@ -675,21 +689,21 @@ Bugfixes:
675
689
  * gradle's use of termcaps avoided (#194)
676
690
 
677
691
 
678
- # 2.0.4 / 2015-04-16
692
+ ## 2.0.4 / 2015-04-16
679
693
 
680
694
  * Features
681
695
 
682
696
  * Allow project path to be set in a command line option (Thanks, @robertclancy!)
683
697
 
684
698
 
685
- # 2.0.3 / 2015-03-18
699
+ ## 2.0.3 / 2015-03-18
686
700
 
687
701
  * Bugfixes
688
702
 
689
703
  * Ignoring subdirectories of a LICENSE directory. (#143) (Thanks, @pmeskers and @yuki24!)
690
704
 
691
705
 
692
- # 2.0.2 / 2015-03-14
706
+ ## 2.0.2 / 2015-03-14
693
707
 
694
708
  * Features
695
709
 
@@ -705,14 +719,14 @@ Bugfixes:
705
719
  distributions, which may include distributions from other projects. #119
706
720
 
707
721
 
708
- # 2.0.1 / 2015-03-02
722
+ ## 2.0.1 / 2015-03-02
709
723
 
710
724
  * Features
711
725
 
712
726
  * Support for rebar projects
713
727
 
714
728
 
715
- # 2.0.0 / 2015-03-02
729
+ ## 2.0.0 / 2015-03-02
716
730
 
717
731
  * Features
718
732
 
@@ -741,14 +755,14 @@ Bugfixes:
741
755
  * `license_finder` does not write anything to the file system, #94, #114, #117
742
756
 
743
757
 
744
- # 1.2.1 / unreleased
758
+ ## 1.2.1 / unreleased
745
759
 
746
760
  * Features
747
761
 
748
762
  * Can list dependencies that were added manually
749
763
 
750
764
 
751
- # 1.2 / 2014-11-10
765
+ ## 1.2 / 2014-11-10
752
766
 
753
767
  * Features
754
768
 
@@ -759,7 +773,7 @@ Bugfixes:
759
773
  packages, dependencies and where each license was discovered.
760
774
 
761
775
 
762
- # 1.1.1 / 2014-07-29
776
+ ## 1.1.1 / 2014-07-29
763
777
 
764
778
  * Bugfixes
765
779
 
@@ -768,7 +782,7 @@ Bugfixes:
768
782
  * Allow license_finder to process incorrectly-defined dependencies.
769
783
 
770
784
 
771
- # 1.0.1 / 2014-05-28
785
+ ## 1.0.1 / 2014-05-28
772
786
 
773
787
  * Features
774
788
 
@@ -783,14 +797,14 @@ Bugfixes:
783
797
  * Dependency reports generate when config is changed through the command line
784
798
 
785
799
 
786
- # 1.0.0.1 / 2014-05-23
800
+ ## 1.0.0.1 / 2014-05-23
787
801
 
788
802
  * Bugfixes
789
803
 
790
804
  * LicenseFinder detects its own license
791
805
 
792
806
 
793
- # 1.0.0 / 2014-04-03
807
+ ## 1.0.0 / 2014-04-03
794
808
 
795
809
  * Features
796
810
 
@@ -800,14 +814,14 @@ Bugfixes:
800
814
  the shell.
801
815
 
802
816
 
803
- # 0.9.5.1 / 2014-01-30
817
+ ## 0.9.5.1 / 2014-01-30
804
818
 
805
819
  * Features
806
820
 
807
821
  * Adds homepage for Bower, NPM, and PIP packages
808
822
 
809
823
 
810
- # 0.9.5 / 2014-01-30
824
+ ## 0.9.5 / 2014-01-30
811
825
 
812
826
  * Features
813
827
 
@@ -821,7 +835,7 @@ Bugfixes:
821
835
  * Clean up directories created during test runs
822
836
 
823
837
 
824
- # 0.9.4 / 2014-01-05
838
+ ## 0.9.4 / 2014-01-05
825
839
 
826
840
  * Features
827
841
 
@@ -836,7 +850,7 @@ Bugfixes:
836
850
  * Use all dependencies by default for npm as bundler does
837
851
 
838
852
 
839
- # 0.9.3 / 2013-10-01
853
+ ## 0.9.3 / 2013-10-01
840
854
 
841
855
  * Features
842
856
 
@@ -847,7 +861,7 @@ Bugfixes:
847
861
  * Fix problem which prevented license finder from running in rails < 3.2
848
862
 
849
863
 
850
- # 0.9.2 / 2013-08-17
864
+ ## 0.9.2 / 2013-08-17
851
865
 
852
866
  * Features
853
867
 
@@ -858,7 +872,7 @@ Bugfixes:
858
872
  * Fix HTML output in firefox
859
873
 
860
874
 
861
- # 0.9.1 / 2013-07-30
875
+ ## 0.9.1 / 2013-07-30
862
876
 
863
877
  * Features
864
878
 
@@ -877,7 +891,7 @@ Bugfixes:
877
891
  * dependencies.txt is now dependencies.csv (It was always a csv in spirit)
878
892
 
879
893
 
880
- # 0.9.0 / 2013-07-16
894
+ ## 0.9.0 / 2013-07-16
881
895
 
882
896
  * Features
883
897
 
@@ -891,7 +905,7 @@ Bugfixes:
891
905
  * Using license_finder in a non-RVM environment now works (Issue #35)
892
906
 
893
907
 
894
- # 0.8.2 / 2013-07-09
908
+ ## 0.8.2 / 2013-07-09
895
909
 
896
910
  * Features
897
911
 
@@ -907,7 +921,7 @@ Bugfixes:
907
921
  * Upgrading from 0.7.2 no longer removes non-gem dependencies (Issue #20)
908
922
 
909
923
 
910
- # 0.8.1 / 2013-04-14
924
+ ## 0.8.1 / 2013-04-14
911
925
 
912
926
  * Features
913
927
 
@@ -920,7 +934,7 @@ Bugfixes:
920
934
  * Fix ruby 1.9.2 support.
921
935
 
922
936
 
923
- # 0.8.0 / 2013-04-03
937
+ ## 0.8.0 / 2013-04-03
924
938
 
925
939
  * Features
926
940
 
@@ -942,14 +956,14 @@ Bugfixes:
942
956
  files.
943
957
 
944
958
 
945
- # 0.7.2 / 2013-02-18
959
+ ## 0.7.2 / 2013-02-18
946
960
 
947
961
  * Features
948
962
 
949
963
  * Dependency cleanup.
950
964
 
951
965
 
952
- # 0.7.1 / 2013-02-18
966
+ ## 0.7.1 / 2013-02-18
953
967
 
954
968
  * Features
955
969
 
@@ -957,7 +971,7 @@ Bugfixes:
957
971
  * Remove README files from data persistence.
958
972
 
959
973
 
960
- # 0.7.0 / 2012-09-25
974
+ ## 0.7.0 / 2012-09-25
961
975
 
962
976
  * Features
963
977
 
@@ -965,7 +979,7 @@ Bugfixes:
965
979
  * Dependencies licenses can be set via CLI.
966
980
 
967
981
 
968
- # 0.6.0 / 2012-09-15
982
+ ## 0.6.0 / 2012-09-15
969
983
 
970
984
  * Features
971
985
 
@@ -981,7 +995,7 @@ Bugfixes:
981
995
  * Fix formatting of `rake license:action_items` output.
982
996
 
983
997
 
984
- # 0.5.0 / 2012-09-12
998
+ ## 0.5.0 / 2012-09-12
985
999
 
986
1000
  * Features
987
1001
 
@@ -1000,7 +1014,7 @@ Bugfixes:
1000
1014
  * Better support for non-US word spellings.
1001
1015
 
1002
1016
 
1003
- # 0.4.5 / 2012-09-09
1017
+ ## 0.4.5 / 2012-09-09
1004
1018
 
1005
1019
  * Features
1006
1020
 
data/CONTRIBUTING.md CHANGED
@@ -6,7 +6,7 @@
6
6
  * Create a feature branch.
7
7
  * Make your feature addition or bug fix. Please make sure there is appropriate test coverage.
8
8
  * Rebase on top of master.
9
- * Send a pull request with commit messages tagged with an entry specified here: https://keepachangelog.com/en/1.0.0/.
9
+ * Send a pull request with a [Conventional Commit](https://www.conventionalcommits.org/) title, which release-please turns into the changelog entry. See [release/instructions.md](release/instructions.md).
10
10
 
11
11
  ## Running Tests
12
12
 
@@ -3,21 +3,21 @@
3
3
  module LicensePatrol
4
4
  class License
5
5
  module Text
6
- SPACES = /\s+/.freeze
7
- QUOTES = /['`"]{1,2}/.freeze
8
- YEAR_PLACEHOLDERS = /<year>/.freeze
9
- PLACEHOLDERS = /<[^<>]+>/.freeze
10
- SPECIAL_SINGLE_QUOTES = /[‘’]/.freeze
11
- SPECIAL_DOUBLE_QUOTES = /[“”„«»]/.freeze
12
- ALPHABET_ORDERED_LIST = /\\\([a-z]\\\)\\\s/.freeze
6
+ SPACES = /\s+/
7
+ QUOTES = /['`"]{1,2}/
8
+ YEAR_PLACEHOLDERS = /<year>/
9
+ PLACEHOLDERS = /<[^<>]+>/
10
+ SPECIAL_SINGLE_QUOTES = /[‘’]/
11
+ SPECIAL_DOUBLE_QUOTES = /[“”„«»]/
12
+ ALPHABET_ORDERED_LIST = /\\\([a-z]\\\)\\\s/
13
13
  ALPHABET_ORDERED_LIST_OPTIONAL = '(\([a-z]\)\s)?'
14
- LIST_BULLETS = /(\d{1,2}\\\.|\\\*|\\-)\\\s/.freeze
14
+ LIST_BULLETS = /(\d{1,2}\\\.|\\\*|\\-)\\\s/
15
15
  LIST_BULLETS_OPTIONAL = '(\d{1,2}.|\*|\-)?\s*'
16
- NEWLINE_CHARACTER = /\n+/.freeze
17
- QUOTE_COMMENT_CHARACTER = /^\s*>+/.freeze
18
- ESCAPED_QUOTES = /\\"/.freeze
19
- SPECIAL_CHARACTERS = /§/.freeze
20
- SPECIAL_DASHES = /–/.freeze
16
+ NEWLINE_CHARACTER = /\n+/
17
+ QUOTE_COMMENT_CHARACTER = /^\s*>+/
18
+ ESCAPED_QUOTES = /\\"/
19
+ SPECIAL_CHARACTERS = /§/
20
+ SPECIAL_DASHES = /–/
21
21
 
22
22
  def self.normalize_punctuation(text)
23
23
  text.dup.force_encoding('UTF-8')
@@ -8,7 +8,7 @@ module LicensePatrol
8
8
 
9
9
  class GoWorkspace < PackageManager
10
10
  Submodule = Struct.new :install_path, :revision
11
- ENVRC_REGEXP = /GOPATH|GO15VENDOREXPERIMENT/.freeze
11
+ ENVRC_REGEXP = /GOPATH|GO15VENDOREXPERIMENT/
12
12
 
13
13
  def initialize(options = {})
14
14
  super
@@ -5,7 +5,7 @@ require 'license_patrol/package_utils/possible_license_file'
5
5
  module LicensePatrol
6
6
  class LicenseFiles
7
7
  CANDIDATE_FILE_NAMES = %w[LICENSE License license LICENCE Licence licence COPYING copying README readme].freeze
8
- CANDIDATE_PATH_WILDCARD = "*{#{CANDIDATE_FILE_NAMES.join(',')}}*"
8
+ CANDIDATE_PATH_WILDCARD = "*{#{CANDIDATE_FILE_NAMES.join(',')}}*".freeze
9
9
 
10
10
  def self.find(install_path, options = {})
11
11
  new(install_path).find(options)
@@ -5,8 +5,8 @@ require 'license_patrol/package_utils/possible_license_file'
5
5
  module LicensePatrol
6
6
  class NoticeFiles
7
7
  CANDIDATE_FILE_NAMES = %w[NOTICE Notice].freeze
8
- CANDIDATE_PATH_WILDCARD_STRICT = "{#{CANDIDATE_FILE_NAMES.join(',')}}*"
9
- CANDIDATE_PATH_WILDCARD = "*#{CANDIDATE_PATH_WILDCARD_STRICT}"
8
+ CANDIDATE_PATH_WILDCARD_STRICT = "{#{CANDIDATE_FILE_NAMES.join(',')}}*".freeze
9
+ CANDIDATE_PATH_WILDCARD = "*#{CANDIDATE_PATH_WILDCARD_STRICT}".freeze
10
10
 
11
11
  def self.find(install_path, options = {})
12
12
  new(install_path).find(options)
@@ -4,7 +4,7 @@ require 'set'
4
4
 
5
5
  module LicensePatrol
6
6
  class PipPackage < Package
7
- LICENSE_FORMAT = /^License.*::\s*(.*)$/.freeze
7
+ LICENSE_FORMAT = /^License.*::\s*(.*)$/
8
8
  INVALID_LICENSES = ['', 'UNKNOWN'].to_set
9
9
 
10
10
  def self.license_names_from_spec(spec)
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LicensePatrol
4
- root = File.expand_path('../..', __dir__)
5
- VERSION = File.read("#{root}/VERSION").strip
4
+ VERSION = '1.2.1'
6
5
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- version = File.read(File.expand_path('VERSION', __dir__)).strip
3
+ require_relative 'lib/license_patrol/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.required_ruby_version = '>= 2.6.0'
6
+ s.required_ruby_version = '>= 3.0.0'
7
7
  s.name = 'license_patrol'
8
- s.version = version
8
+ s.version = LicensePatrol::VERSION
9
9
 
10
10
  s.authors = [
11
11
  'Ryan Collins',
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
45
45
 
46
46
  s.add_dependency 'bundler'
47
47
  s.add_dependency 'csv', '~> 3.2'
48
- s.add_dependency 'rubyzip', '>=1', '<3'
48
+ s.add_dependency 'rubyzip', '>= 3.4', '< 4'
49
49
  s.add_dependency 'thor', '~> 1.2'
50
50
  s.add_dependency 'tomlrb', '>= 1.3', '< 2.1'
51
51
  s.add_dependency 'with_env', '1.1.0'
@@ -1,8 +1,60 @@
1
- ## Release
1
+ # Release
2
2
 
3
- Releasing involves building a package, tagging its version on github and
4
- pushing it to http://rubygems.org.
3
+ LicensePatrol follows [Semantic Versioning](https://semver.org/). The version
4
+ lives in `lib/license_patrol/version.rb` (`LicensePatrol::VERSION`).
5
5
 
6
- Like other gems, you can build, tag and release `license_patrol` with `rake
7
- release`. You may want to run `rake -T` before releasing to confirm you are
8
- releasing the correct version.
6
+ Don't change it by hand:
7
+ [release-please](https://github.com/googleapis/release-please) does, along
8
+ with `.release-please-manifest.json`, `Gemfile.lock` and the
9
+ [CHANGELOG](../CHANGELOG.md).
10
+
11
+ ## Pull request titles
12
+
13
+ Pull requests are squash-merged, so each title becomes the commit on `master`
14
+ that release-please reads. Titles follow
15
+ [Conventional Commits](https://www.conventionalcommits.org/), and the
16
+ required `Conventional Commit title` check enforces it:
17
+
18
+ | Title | Release | In the changelog |
19
+ | ------------------------------------------------------------------ | ------- | ---------------- |
20
+ | `feat: …` | minor | Added |
21
+ | `fix: …` | patch | Fixed |
22
+ | `perf: …` | patch | Changed |
23
+ | `feat!: …`, or a `BREAKING CHANGE:` footer | major | ⚠ BREAKING CHANGES |
24
+ | `docs:`, `refactor:`, `test:`, `build:`, `ci:`, `chore:`, `style:` | none | no |
25
+
26
+ The summary after the colon is the changelog line, so write it for the
27
+ people who use the gem.
28
+
29
+ ## Releasing
30
+
31
+ 1. Every push to `master` makes the `release-please` workflow open or update
32
+ a release pull request. It bumps the version, pins it in `Gemfile.lock`,
33
+ and adds the release's changelog entry.
34
+ 2. Review the pull request and merge it when you want to release. To release
35
+ a different version than the one it proposes, merge a commit to `master`
36
+ with a `Release-As: 2.0.0` footer first.
37
+ 3. Merging it tags the commit `vMAJOR.MINOR.PATCH` and creates the GitHub
38
+ Release. The tag runs the `license_patrol` workflow, which publishes the
39
+ gem to RubyGems.
40
+
41
+ If publishing fails, publish the gem by hand from the tag:
42
+
43
+ ```sh
44
+ git checkout vMAJOR.MINOR.PATCH
45
+ bundle exec rake build release:rubygem_push
46
+ ```
47
+
48
+ ## Credentials
49
+
50
+ - The `release-please` workflow acts as a GitHub App, because pull requests
51
+ and tags made with the workflow's own `GITHUB_TOKEN` don't start other
52
+ workflows: the release pull request's required checks would never run, and
53
+ the tag would never publish the gem. The app needs read and write access to
54
+ contents and pull requests on this repository. Its `RELEASE_APP_CLIENT_ID`
55
+ variable and `RELEASE_APP_PRIVATE_KEY` secret live in the `release`
56
+ environment, which only `master` can deploy to, so no run from another
57
+ branch or a tag can read the key. Never add them as repository secrets or
58
+ variables.
59
+ - The `license_patrol` workflow publishes the gem with the `RUBYGEMS_API_KEY`
60
+ secret.
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3
+ "include-component-in-tag": false,
4
+ "last-release-sha": "b95e9c438ee6bef949a938c38a0db2a99b4972c9",
5
+ "packages": {
6
+ ".": {
7
+ "release-type": "ruby",
8
+ "package-name": "license_patrol",
9
+ "version-file": "lib/license_patrol/version.rb",
10
+ "changelog-sections": [
11
+ { "type": "feat", "section": "Added" },
12
+ { "type": "fix", "section": "Fixed" },
13
+ { "type": "perf", "section": "Changed" },
14
+ { "type": "revert", "section": "Reverted" },
15
+ { "type": "docs", "section": "Documentation", "hidden": true },
16
+ { "type": "refactor", "section": "Refactoring", "hidden": true },
17
+ { "type": "test", "section": "Tests", "hidden": true },
18
+ { "type": "build", "section": "Build", "hidden": true },
19
+ { "type": "ci", "section": "CI", "hidden": true },
20
+ { "type": "style", "section": "Style", "hidden": true },
21
+ { "type": "chore", "section": "Chores", "hidden": true }
22
+ ]
23
+ }
24
+ }
25
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_patrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -62,20 +62,20 @@ dependencies:
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '1'
65
+ version: '3.4'
66
66
  - - "<"
67
67
  - !ruby/object:Gem::Version
68
- version: '3'
68
+ version: '4'
69
69
  type: :runtime
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1'
75
+ version: '3.4'
76
76
  - - "<"
77
77
  - !ruby/object:Gem::Version
78
- version: '3'
78
+ version: '4'
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: thor
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -400,9 +400,12 @@ files:
400
400
  - ".github/dependabot.yml"
401
401
  - ".github/workflows/install-test-tools.sh"
402
402
  - ".github/workflows/license_patrol.yml"
403
+ - ".github/workflows/pr-title.yml"
404
+ - ".github/workflows/release-please.yml"
403
405
  - ".github/workflows/stale.yml"
404
406
  - ".gitignore"
405
407
  - ".pre-commit-hooks.yaml"
408
+ - ".release-please-manifest.json"
406
409
  - ".rspec"
407
410
  - ".rubocop.yml"
408
411
  - CHANGELOG.md
@@ -413,7 +416,6 @@ files:
413
416
  - README.md
414
417
  - Rakefile
415
418
  - TODO.md
416
- - VERSION
417
419
  - bin/license_patrol
418
420
  - bin/license_patrol_pip.py
419
421
  - ci/pipelines/pull-request.yml.erb
@@ -591,6 +593,7 @@ files:
591
593
  - lib/license_patrol/shared_helpers/common_path.rb
592
594
  - lib/license_patrol/version.rb
593
595
  - license_patrol.gemspec
596
+ - release-please-config.json
594
597
  - release/instructions.md
595
598
  - swift-all-keys.asc
596
599
  homepage: https://github.com/powerhome/license_patrol
@@ -604,7 +607,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
604
607
  requirements:
605
608
  - - ">="
606
609
  - !ruby/object:Gem::Version
607
- version: 2.6.0
610
+ version: 3.0.0
608
611
  required_rubygems_version: !ruby/object:Gem::Requirement
609
612
  requirements:
610
613
  - - ">="
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.2.0