licensed 3.2.1 → 3.3.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -1
  3. data/docs/sources/cargo.md +19 -0
  4. data/lib/licensed/commands/cache.rb +4 -2
  5. data/lib/licensed/commands/command.rb +5 -2
  6. data/lib/licensed/sources/bundler/missing_specification.rb +10 -7
  7. data/lib/licensed/sources/bundler.rb +6 -2
  8. data/lib/licensed/sources/cargo.rb +70 -0
  9. data/lib/licensed/sources/manifest.rb +17 -22
  10. data/lib/licensed/sources/npm.rb +17 -3
  11. data/lib/licensed/sources.rb +1 -0
  12. data/lib/licensed/version.rb +1 -1
  13. data/licensed.gemspec +1 -1
  14. metadata +4 -32
  15. data/.github/dependabot.yml +0 -19
  16. data/.github/workflows/release.yml +0 -213
  17. data/.github/workflows/test.yml +0 -528
  18. data/.gitignore +0 -57
  19. data/.licensed.yml +0 -7
  20. data/.rubocop.yml +0 -8
  21. data/.ruby-version +0 -1
  22. data/docker/Dockerfile.build-linux +0 -15
  23. data/script/bootstrap +0 -6
  24. data/script/cibuild +0 -7
  25. data/script/console +0 -15
  26. data/script/package +0 -20
  27. data/script/packages/build +0 -95
  28. data/script/packages/linux +0 -57
  29. data/script/packages/mac +0 -41
  30. data/script/setup +0 -5
  31. data/script/source-setup/bower +0 -17
  32. data/script/source-setup/bundler +0 -20
  33. data/script/source-setup/cabal +0 -19
  34. data/script/source-setup/composer +0 -38
  35. data/script/source-setup/git_submodule +0 -39
  36. data/script/source-setup/go +0 -31
  37. data/script/source-setup/mix +0 -19
  38. data/script/source-setup/npm +0 -34
  39. data/script/source-setup/nuget +0 -17
  40. data/script/source-setup/pip +0 -29
  41. data/script/source-setup/pipenv +0 -21
  42. data/script/source-setup/swift +0 -22
  43. data/script/source-setup/yarn +0 -17
  44. data/script/test +0 -16
@@ -1,528 +0,0 @@
1
- name: Test
2
-
3
- on: pull_request
4
-
5
- jobs:
6
- bower:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Setup node
11
- uses: actions/setup-node@v2
12
- with:
13
- node-version: 8
14
- - name: Install Bower
15
- run: npm install -g bower
16
- - name: Set up Ruby
17
- uses: ruby/setup-ruby@v1
18
- with:
19
- ruby-version: 2.6
20
- - run: bundle lock
21
- - uses: actions/cache@v2
22
- name: cache gem dependencies
23
- with:
24
- path: vendor/gems
25
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
26
- restore-keys: |
27
- ${{ runner.os }}-gem-2.6-
28
- - name: Bootstrap
29
- run: script/bootstrap
30
- - name: Set up fixtures
31
- run: script/source-setup/bower
32
- - name: Run tests
33
- run: script/test bower
34
-
35
- bundler:
36
- runs-on: ubuntu-latest
37
- strategy:
38
- matrix:
39
- bundler: [ '~> 1.17.0', '~> 2.0.0', '~> 2.1.0', '~> 2.2.0' ]
40
- steps:
41
- - uses: actions/checkout@v2
42
- - name: Set up Ruby
43
- uses: ruby/setup-ruby@v1
44
- with:
45
- ruby-version: 2.6
46
- - name: Set up Bundler
47
- run: |
48
- yes | gem uninstall bundler --all
49
- gem install bundler -v "${{ matrix.bundler }}"
50
- - run: bundle lock
51
- - uses: actions/cache@v2
52
- name: cache gem dependencies
53
- with:
54
- path: vendor/gems
55
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
56
- restore-keys: |
57
- ${{ runner.os }}-gem-2.6-
58
- - name: Bootstrap
59
- run: script/bootstrap
60
- - name: Set up fixtures
61
- run: script/source-setup/bundler
62
- - name: Run tests
63
- run: script/test bundler
64
-
65
- cabal:
66
- runs-on: ubuntu-latest
67
- strategy:
68
- matrix:
69
- ghc: [ '8.6', '8.8', '8.10', '9.0' ]
70
- cabal: [ '3.0', '3.2', '3.4' ]
71
- steps:
72
- - uses: actions/checkout@v2
73
- - name: Set up Ruby
74
- uses: ruby/setup-ruby@v1
75
- with:
76
- ruby-version: 2.6
77
- - name: Setup Haskell
78
- uses: haskell/actions/setup@v1
79
- with:
80
- ghc-version: ${{ matrix.ghc }}
81
- cabal-version: ${{ matrix.cabal }}
82
- - run: bundle lock
83
- - name: cache cabal dependencies
84
- uses: actions/cache@v2
85
- with:
86
- path: |
87
- ~/.cabal/packages
88
- ~/.cabal/store
89
- key: ${{ runner.os }}-cabal-${{ matrix.ghc }}-${{ hashFiles('**/app.cabal') }}
90
- restore-keys: |
91
- ${{ runner.os }}-cabal-
92
- - uses: actions/cache@v2
93
- name: cache gem dependencies
94
- with:
95
- path: vendor/gems
96
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
97
- restore-keys: |
98
- ${{ runner.os }}-gem-2.6-
99
- - name: Bootstrap
100
- run: script/bootstrap
101
- - name: Set up fixtures
102
- run: script/source-setup/cabal
103
- - name: Run tests
104
- run: script/test cabal
105
-
106
- composer:
107
- runs-on: ubuntu-latest
108
- strategy:
109
- matrix:
110
- php: [ '7.4', '8.0' ]
111
- steps:
112
- - uses: actions/checkout@v2
113
- - name: Setup php
114
- uses: nanasess/setup-php@v3.0.8
115
- with:
116
- php-version: ${{ matrix.php }}
117
- - name: Set up Ruby
118
- uses: ruby/setup-ruby@v1
119
- with:
120
- ruby-version: 2.6
121
- - run: bundle lock
122
- - uses: actions/cache@v2
123
- name: cache gem dependencies
124
- with:
125
- path: vendor/gems
126
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
127
- restore-keys: |
128
- ${{ runner.os }}-gem-2.6-
129
- - name: Bootstrap
130
- run: script/bootstrap
131
- - name: Set up fixtures
132
- run: script/source-setup/composer
133
- - name: Run tests
134
- run: script/test composer
135
-
136
- core:
137
- runs-on: ubuntu-latest
138
- strategy:
139
- matrix:
140
- ruby: [ 2.6, 2.7, 3.0 ]
141
- steps:
142
- - uses: actions/checkout@v2
143
- - name: Set up Ruby
144
- uses: ruby/setup-ruby@v1
145
- with:
146
- ruby-version: ${{matrix.ruby}}
147
- - name: Set up Bundler
148
- run: gem install bundler
149
- - run: bundle lock
150
- - uses: actions/cache@v2
151
- name: cache gem dependencies
152
- with:
153
- path: vendor/gems
154
- key: ${{ runner.os }}-gem-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
155
- restore-keys: |
156
- ${{ runner.os }}-gem-${{ matrix.ruby }}-
157
- - name: Bootstrap
158
- run: script/bootstrap
159
- - name: Build and lint
160
- run: bundle exec rake rubocop build
161
- - name: Core functionality tests
162
- run: script/test core
163
-
164
- dep:
165
- runs-on: ubuntu-latest
166
- steps:
167
- - uses: actions/checkout@v2
168
- - name: Setup go
169
- uses: actions/setup-go@v2
170
- with:
171
- go-version: 1.10.x
172
- - name: Set up Ruby
173
- uses: ruby/setup-ruby@v1
174
- with:
175
- ruby-version: 2.6
176
- - run: bundle lock
177
- - uses: actions/cache@v2
178
- name: cache gem dependencies
179
- with:
180
- path: vendor/gems
181
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
182
- restore-keys: |
183
- ${{ runner.os }}-gem-2.6-
184
- - name: Bootstrap
185
- run: script/bootstrap
186
- - name: Set up fixtures
187
- run: script/source-setup/go
188
- - name: Run tests
189
- run: script/test dep
190
-
191
- go:
192
- runs-on: ubuntu-latest
193
- strategy:
194
- matrix:
195
- go: [ '1.12.x', '1.13.x', '1.14.x', '1.15.x', '1.16.x' ]
196
- steps:
197
- - uses: actions/checkout@v2
198
- - name: Setup go
199
- uses: actions/setup-go@v2
200
- with:
201
- go-version: ${{ matrix.go }}
202
- - name: Set up Ruby
203
- uses: ruby/setup-ruby@v1
204
- with:
205
- ruby-version: 2.6
206
- - run: bundle lock
207
- - uses: actions/cache@v2
208
- name: cache go dependencies
209
- with:
210
- path: |
211
- ~/.cache/go-build
212
- ~/go/pkg/mod
213
- key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
214
- restore-keys: |
215
- ${{ runner.os }}-go-
216
- - uses: actions/cache@v2
217
- name: cache gem dependencies
218
- with:
219
- path: vendor/gems
220
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
221
- restore-keys: |
222
- ${{ runner.os }}-gem-2.6-
223
- - name: Bootstrap
224
- run: script/bootstrap
225
- - name: Set up fixtures
226
- run: script/source-setup/go
227
- - name: Run tests
228
- run: script/test go
229
- env:
230
- GO111MODULE: "on"
231
-
232
- gradle:
233
- runs-on: ubuntu-latest
234
- strategy:
235
- matrix:
236
- # TODO: the reporting plugin used to gather data is not yet fully compatible with
237
- # gradle 7, which is needed for compatibility with Java 16. after compatibility issues
238
- # are resolved, update this matrix list with '16'.
239
- # possibly fixed by https://github.com/jk1/Gradle-License-Report/pull/166
240
- java: [ '11' ]
241
- steps:
242
- - uses: actions/checkout@v2
243
- - name: Set up Ruby
244
- uses: ruby/setup-ruby@v1
245
- with:
246
- ruby-version: 2.6
247
- - run: bundle lock
248
- - name: Set up Java
249
- uses: actions/setup-java@v2
250
- with:
251
- java-version: ${{ matrix.java }}
252
- distribution: adopt
253
- - uses: actions/cache@v2
254
- name: cache gradle dependencies
255
- with:
256
- path: |
257
- ~/.gradle/caches
258
- ~/.gradle/wrapper
259
- key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
260
- restore-keys: |
261
- ${{ runner.os }}-gradle-
262
- - uses: actions/cache@v2
263
- name: cache gem dependencies
264
- with:
265
- path: vendor/gems
266
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
267
- restore-keys: |
268
- ${{ runner.os }}-gem-2.6-
269
- - name: Bootstrap
270
- run: script/bootstrap
271
- - name: Gradle version
272
- run: test/fixtures/gradle/gradlew --quiet --version
273
- - name: Run tests
274
- run: script/test gradle
275
-
276
- manifest:
277
- runs-on: ubuntu-latest
278
- steps:
279
- - uses: actions/checkout@v2
280
- - name: Set up Ruby
281
- uses: ruby/setup-ruby@v1
282
- with:
283
- ruby-version: 2.6
284
- - run: bundle lock
285
- - uses: actions/cache@v2
286
- name: cache gem dependencies
287
- with:
288
- path: vendor/gems
289
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
290
- restore-keys: |
291
- ${{ runner.os }}-gem-2.6-
292
- - name: Bootstrap
293
- run: script/bootstrap
294
- - name: Run tests
295
- run: script/test manifest
296
-
297
- mix:
298
- runs-on: ubuntu-latest
299
- strategy:
300
- matrix:
301
- otp: [22.x, 23.x, 24.x]
302
- elixir: [ 1.11.x, 1.12.x ]
303
- steps:
304
- - uses: actions/checkout@v2
305
- - uses: erlef/setup-elixir@v1.9
306
- with:
307
- otp-version: ${{matrix.otp}}
308
- elixir-version: ${{matrix.elixir}}
309
- - name: Set up Ruby
310
- uses: ruby/setup-ruby@v1
311
- with:
312
- ruby-version: 2.6
313
- - run: bundle lock
314
- - uses: actions/cache@v2
315
- name: cache gem dependencies
316
- with:
317
- path: vendor/gems
318
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
319
- restore-keys: |
320
- ${{ runner.os }}-gem-2.6-
321
- - name: Bootstrap
322
- run: script/bootstrap
323
- - name: Set up fixtures
324
- run: script/source-setup/mix
325
- - name: Run tests
326
- run: script/test mix
327
-
328
- npm:
329
- runs-on: ubuntu-latest
330
- strategy:
331
- matrix:
332
- node_version: [ 12, 14, 16 ]
333
- steps:
334
- - uses: actions/checkout@v2
335
- - name: Setup node
336
- uses: actions/setup-node@v2
337
- with:
338
- node-version: ${{ matrix.node_version }}
339
- - name: Set up Ruby
340
- uses: ruby/setup-ruby@v1
341
- with:
342
- ruby-version: 2.6
343
- - run: bundle lock
344
- - uses: actions/cache@v2
345
- name: cache gem dependencies
346
- with:
347
- path: vendor/gems
348
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
349
- restore-keys: |
350
- ${{ runner.os }}-gem-2.6-
351
- - name: Bootstrap
352
- run: script/bootstrap
353
- - name: Set up fixtures
354
- run: script/source-setup/npm
355
- - name: Run tests
356
- run: script/test npm
357
-
358
- nuget:
359
- runs-on: ubuntu-latest
360
- strategy:
361
- matrix:
362
- dotnet: [ '3.1.x', '5.x' ]
363
- steps:
364
- - uses: actions/checkout@v2
365
- - name: Setup dotnet
366
- uses: actions/setup-dotnet@v1
367
- with:
368
- dotnet-version: ${{ matrix.dotnet }}
369
- - name: Set up Ruby
370
- uses: ruby/setup-ruby@v1
371
- with:
372
- ruby-version: 2.6
373
- - run: bundle lock
374
- - uses: actions/cache@v2
375
- name: cache gem dependencies
376
- with:
377
- path: vendor/gems
378
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
379
- restore-keys: |
380
- ${{ runner.os }}-gem-2.6-
381
- - name: Bootstrap
382
- run: script/bootstrap
383
- - name: Set up fixtures
384
- run: script/source-setup/nuget
385
- - name: Run tests
386
- run: script/test nuget
387
-
388
- pip:
389
- runs-on: ubuntu-latest
390
- strategy:
391
- matrix:
392
- python: [ '3.6', '3.7', '3.8', '3.9' ]
393
- steps:
394
- - uses: actions/checkout@v2
395
- - name: Setup python
396
- uses: actions/setup-python@v2
397
- with:
398
- python-version: ${{ matrix.python }}
399
- architecture: x64
400
- - name: Set up Ruby
401
- uses: ruby/setup-ruby@v1
402
- with:
403
- ruby-version: 2.6
404
- - run: bundle lock
405
- - uses: actions/cache@v2
406
- name: cache pip dependencies
407
- with:
408
- path: ~/.cache/pip
409
- key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
410
- restore-keys: |
411
- ${{ runner.os }}-pip-
412
- - uses: actions/cache@v2
413
- name: cache gem dependencies
414
- with:
415
- path: vendor/gems
416
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
417
- restore-keys: |
418
- ${{ runner.os }}-gem-2.6-
419
- - name: Bootstrap
420
- run: script/bootstrap
421
- - name: Install virtualenv
422
- run: pip install virtualenv
423
- - name: Set up fixtures
424
- run: script/source-setup/pip
425
- - name: Run tests
426
- run: script/test pip
427
-
428
- pipenv:
429
- runs-on: ubuntu-latest
430
- steps:
431
- - uses: actions/checkout@v2
432
- - name: Setup python
433
- uses: actions/setup-python@v2
434
- with:
435
- python-version: '3.x'
436
- architecture: x64
437
- - name: Set up Ruby
438
- uses: ruby/setup-ruby@v1
439
- with:
440
- ruby-version: 2.6
441
- - run: bundle lock
442
- - uses: actions/cache@v2
443
- name: cache gem dependencies
444
- with:
445
- path: vendor/gems
446
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
447
- restore-keys: |
448
- ${{ runner.os }}-gem-2.6-
449
- - name: Bootstrap
450
- run: script/bootstrap
451
- - name: Install pipenv
452
- run: pip install pipenv
453
- - name: Set up fixtures
454
- run: script/source-setup/pipenv
455
- - name: Run tests
456
- run: script/test pipenv
457
-
458
- swift:
459
- runs-on: ubuntu-latest
460
- strategy:
461
- matrix:
462
- swift: [ "5.4", "5.3" ]
463
- steps:
464
- - uses: actions/checkout@v2
465
- - name: Setup Swift
466
- uses: fwal/setup-swift@v1
467
- with:
468
- swift-version: ${{ matrix.swift }}
469
- - name: Set up Ruby
470
- uses: ruby/setup-ruby@v1
471
- with:
472
- ruby-version: 2.6
473
- - run: bundle lock
474
- - uses: actions/cache@v2
475
- name: cache spm dependencies
476
- with:
477
- path: .build
478
- key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
479
- restore-keys: |
480
- ${{ runner.os }}-spm-
481
- - uses: actions/cache@v2
482
- name: cache gem dependencies
483
- with:
484
- path: vendor/gems
485
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
486
- restore-keys: |
487
- ${{ runner.os }}-gem-2.6-
488
- - name: Bootstrap
489
- run: script/bootstrap
490
- - name: Set up fixtures
491
- run: script/source-setup/swift
492
- - name: Run tests
493
- run: script/test swift
494
-
495
- yarn:
496
- runs-on: ubuntu-latest
497
- strategy:
498
- matrix:
499
- # not using 1.0.0 because it doesn't support `yarn list --production`
500
- yarn_version: [ 1.4.0, latest ]
501
- steps:
502
- - uses: actions/checkout@v2
503
- - name: Setup node
504
- uses: actions/setup-node@v2
505
- with:
506
- node-version: 12
507
- - name: Install Yarn
508
- run: npm install -g yarn@${YARN_VERSION}
509
- env:
510
- YARN_VERSION: ${{ matrix.yarn_version }}
511
- - name: Set up Ruby
512
- uses: ruby/setup-ruby@v1
513
- with:
514
- ruby-version: 2.6
515
- - run: bundle lock
516
- - uses: actions/cache@v2
517
- name: cache gem dependencies
518
- with:
519
- path: vendor/gems
520
- key: ${{ runner.os }}-gem-2.6-${{ hashFiles('**/Gemfile.lock') }}
521
- restore-keys: |
522
- ${{ runner.os }}-gem-2.6-
523
- - name: Bootstrap
524
- run: script/bootstrap
525
- - name: Set up fixtures
526
- run: script/source-setup/yarn
527
- - name: Run tests
528
- run: script/test yarn
data/.gitignore DELETED
@@ -1,57 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # test fixtures
12
- test/fixtures/bundler/.bundle/
13
- test/fixtures/bundler/vendor/
14
- test/fixtures/bundler/Gemfile.lock
15
-
16
- test/fixtures/bower/bower_components
17
-
18
- test/fixtures/npm/node_modules
19
- test/fixtures/npm/package-lock.json
20
- test/fixtures/npm/package.json
21
-
22
- test/fixtures/go/src/*
23
- test/fixtures/go/pkg
24
- !test/fixtures/go/src/test
25
- !test/fixtures/go/src/modules_test
26
-
27
- test/fixtures/cabal/*
28
- !test/fixtures/cabal/app*
29
-
30
- test/fixtures/git_submodule/*
31
- !test/fixtures/git_submodule/README
32
-
33
- test/fixtures/pip/venv
34
-
35
- test/fixtures/pipenv/Pipfile.lock
36
-
37
- !test/fixtures/migrations/**/*
38
-
39
- test/fixtures/composer/**/*
40
- !test/fixtures/composer/composer.json
41
-
42
- test/fixtures/mix/_build
43
- test/fixtures/mix/deps
44
- test/fixtures/mix/mix.lock
45
-
46
- test/fixtures/yarn/*
47
- !test/fixtures/yarn/package.json
48
-
49
- test/fixtures/nuget/obj/*
50
-
51
- vendor/licenses
52
- .licenses
53
- *.gem
54
- vendor/gems
55
- .byebug_history
56
-
57
- bin/
data/.licensed.yml DELETED
@@ -1,7 +0,0 @@
1
- allowed:
2
- - mit
3
- - apache-2.0
4
-
5
- reviewed:
6
- bundler:
7
- - pathname-common_prefix
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- inherit_gem:
2
- rubocop-github:
3
- - config/default.yml
4
-
5
- AllCops:
6
- Exclude:
7
- - test/fixtures/**/*
8
- - vendor/gems/**/*
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.7.4
@@ -1,15 +0,0 @@
1
- FROM ruby:2.6.8-slim-stretch
2
-
3
- RUN apt-get update \
4
- && apt-get install -y --no-install-recommends cmake make gcc pkg-config squashfs-tools git curl bison rsync \
5
- && rm -rf /var/lib/apt/lists/*
6
-
7
- RUN curl -L https://github.com/kontena/ruby-packer/releases/download/2.6.0-0.6.0/rubyc-2.6.0-0.6.0-linux-amd64.gz | gunzip > /usr/local/bin/rubyc \
8
- && chmod +x /usr/local/bin/rubyc
9
-
10
- RUN gem update --system && gem update bundler
11
-
12
- ENV CPPFLAGS="-P"
13
- ENV RUBYC="/usr/local/bin/rubyc"
14
- ENV LANG=C.UTF-8
15
- ENV SSL_CERT_DIR="/etc/ssl/certs"
data/script/bootstrap DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle config set path 'vendor/gems'
6
- bundle install
data/script/cibuild DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
-
3
- set -e
4
-
5
- bundle exec rake test
6
- bundle exec rubocop -S -D
7
- gem build licensed.gemspec
data/script/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "licensed"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start
data/script/package DELETED
@@ -1,20 +0,0 @@
1
- #!/bin/bash
2
- #/ Usage: script/package [PLATFORM] [VERSION]
3
- #/
4
- #/ Builds distributable packages for licensed.
5
- #/ Packages are of the form licensed-$VERSION-$PLATFORM-x64.tar.gz and contain a `./licensed` executable
6
- #/ Built packages are placed in the <root>/pkg directory.
7
- #/
8
- #/ OPTIONS:
9
- #/ [PLATFORM] (optional, default to all platforms) platform to build exe for
10
- #/ [VERSION] (optional, default to current git branch or SHA1) version of licensed to build exe at
11
- #/
12
-
13
- set -e
14
-
15
- PLATFORM=""
16
- if [ -n "$1" ]; then
17
- PLATFORM=":$1"
18
- fi
19
-
20
- bundle exec rake "package$PLATFORM"