license_finder 6.9.0 → 6.10.0

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: fc2352a955e259632d6033ca1ec13a03ef2d6925c0a0dde89f0bd4bbf125a333
4
- data.tar.gz: 275ec53c07253065b18133ea74bfd4dc69f73cb1a6dff6ba6d08f4ee278111e8
3
+ metadata.gz: 006762262d406303612afa6cecfe8eef1c2812bc845664c976bf93f047775b38
4
+ data.tar.gz: 70d8bf402df648d8d1ad35038e021b30a66511e80a07e120e520e394d656b909
5
5
  SHA512:
6
- metadata.gz: 657b1f48fc7b0f592dbec7428610b8984c9be7f897b0eb2bd0379399d41286ea77b925298207633c48e388da2ffd46f99859fbd1e57d885b508ee434162316fd
7
- data.tar.gz: 02e5b8f9fc1e70ddeb1bd87f55920d4c5537c82511cbbafb7ff96f622dee26f6e4dca3da7e9f03c321a44a1b0bdb6c2135638dd0ca3872169cebdc3731f7b4cc
6
+ metadata.gz: f7bf3097774f1babde5e5326a0568412f4bdfb39bcb02923e89cbc20b0bae316e0c08be77d15a92f4a0d28036c44fdc55f1e7984c607f7a17d4e8f8b42273a96
7
+ data.tar.gz: 2a4e56a8bec0ee4a68b6b91814030bb5b32cf40cb4e2b9cb75e3a082adb96ea27f56f6152dadd46a1b03d4f81e63d1ad78c6071d4a20ee0e14809f1a9e82da61
@@ -1,3 +1,5 @@
1
+ # [6.10.0] / 2020-11-27
2
+
1
3
  # [6.9.0] / 2020-10-05
2
4
 
3
5
  ### Changed
@@ -921,3 +923,4 @@ Bugfixes:
921
923
  [6.8.1]: https://github.com/pivotal/LicenseFinder/compare/v6.8.0...v6.8.1
922
924
  [6.8.2]: https://github.com/pivotal/LicenseFinder/compare/v6.8.1...v6.8.2
923
925
  [6.9.0]: https://github.com/pivotal/LicenseFinder/compare/v6.8.2...v6.9.0
926
+ [6.10.0]: https://github.com/pivotal/LicenseFinder/compare/v6.9.0...v6.10.0
@@ -60,13 +60,13 @@ submitting a pull request which adds new columns to
60
60
  `lib/license_finder/reports/csv_report.rb`.
61
61
 
62
62
  It is also possible to generate a custom report from an ERB template. Use this
63
- [example](https://gist.github.com/mainej/b190d2f138c2b9e2e20a) as a starting
63
+ [example](https://github.com/pivotal/LicenseFinder/blob/master/examples/custom_erb_template.rb) as a starting
64
64
  point. These reports will have access to the helpers in
65
65
  [`LicenseFinder::ErbReport`](https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/reports/erb_report.rb).
66
66
 
67
67
  If you need a report with more detailed data or in a different format, we
68
68
  recommend writing a custom ruby script. This
69
- [example](https://gist.github.com/mainej/48ac616844505d50f510) will get you
69
+ [example](https://github.com/pivotal/LicenseFinder/blob/master/examples/extract_license_data.rb) will get you
70
70
  started.
71
71
 
72
72
  If you come up with something useful, consider posting it to the Google Group
data/Dockerfile CHANGED
@@ -154,12 +154,15 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsof
154
154
  sudo apt-get update &&\
155
155
  sudo apt-get install -y dotnet-runtime-2.1 dotnet-sdk-2.1 dotnet-sdk-2.2 dotnet-sdk-3.0 dotnet-sdk-3.1
156
156
 
157
+ # install Composer
157
158
  RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5267A6C &&\
158
159
  echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/php.list &&\
159
160
  apt-get update &&\
160
161
  apt-get install -y php7.4-cli &&\
162
+ EXPECTED_COMPOSER_INSTALLER_CHECKSUM="$(curl --silent https://composer.github.io/installer.sig)" &&\
161
163
  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&\
162
- php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
164
+ ACTUAL_COMPOSER_INSTALLER_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" &&\
165
+ test "${ACTUAL_COMPOSER_INSTALLER_CHECKSUM}" = "${EXPECTED_COMPOSER_INSTALLER_CHECKSUM}" || (echo "ERROR: Invalid installer checksum" >&2; false) &&\
163
166
  php composer-setup.php &&\
164
167
  php -r "unlink('composer-setup.php');" &&\
165
168
  mv composer.phar /usr/bin/composer
data/README.md CHANGED
@@ -135,7 +135,7 @@ command.
135
135
 
136
136
  If you have docker installed, try using the included `dlf` script (potentially
137
137
  symlinked to be in your path via `ln -s LicenseFinder/dlf /usr/local/bin` or
138
- whatever method you prefer). This will run any commmands passed to it inside a
138
+ whatever method you prefer). This will run any commands passed to it inside a
139
139
  pre-provisioned Docker container to maintain consistent versions of all the
140
140
  package managers. For example,
141
141
 
@@ -159,7 +159,7 @@ passed to it from that directory.
159
159
  Note that the docker image will run the gem which is installed within it.
160
160
  So the docker image tagged `4.0.2` will run *License Finder Version 4.0.2*
161
161
 
162
- See the [contibuting guide](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md) for information on development.
162
+ See the [contributing guide](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md) for information on development.
163
163
 
164
164
  ### Activation
165
165
 
@@ -332,7 +332,7 @@ $ license_finder licenses add my_unknown_dependency MIT --homepage="www.unknown-
332
332
  ```
333
333
 
334
334
  This command would assign the MIT license to the dependency
335
- `my_unknown_dependency`. It will also set its homepage to `wwww.unknown-code.org`.
335
+ `my_unknown_dependency`. It will also set its homepage to `www.unknown-code.org`.
336
336
 
337
337
 
338
338
  ### Adding Hidden Dependencies
@@ -420,6 +420,15 @@ If you store rebar dependencies in a custom directory (by setting `deps_dir` in
420
420
  You can also invoke a custom Mix script `remix` with `--mix_command remix` and
421
421
  set `--mix_deps_dir` to fetch Mix dependencies from a custom directory.
422
422
 
423
+ ### Narrow down Package Manager
424
+
425
+ By default, license_finder will check for all supported package managers,
426
+ but you can narrow it down to use only those you pass to `--enabled-package-manager`.
427
+ For example,
428
+
429
+ ```
430
+ $ license_finder --enabled-package-manager bundler npm
431
+ ```
423
432
 
424
433
  ### Saving Configuration
425
434
 
@@ -437,6 +446,11 @@ rebar_command: './rebarw'
437
446
  rebar_deps_dir: './rebar_deps'
438
447
  mix_command: './mixw'
439
448
  mix_deps_dir: './mix_deps'
449
+ enabled_package_managers:
450
+ - bundler
451
+ - gradle
452
+ - rebar
453
+ - mix
440
454
  ```
441
455
 
442
456
  ### Gradle Projects
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.9.0
1
+ 6.10.0
@@ -13,6 +13,8 @@ resource_types:
13
13
  source:
14
14
  repository: cfcommunity/slack-notification-resource
15
15
  tag: latest
16
+ username: ((LicenseFinderDocker.username))
17
+ password: ((LicenseFinderDocker.password))
16
18
  <% end %>
17
19
 
18
20
  resources:
@@ -8,6 +8,8 @@ resource_types:
8
8
  source:
9
9
  repository: cfcommunity/slack-notification-resource
10
10
  tag: latest
11
+ username: ((LicenseFinderDocker.username))
12
+ password: ((LicenseFinderDocker.password))
11
13
  <% end %>
12
14
 
13
15
  resources:
@@ -5,6 +5,8 @@ image_resource:
5
5
  source:
6
6
  repository: ruby
7
7
  tag: 2.7.1
8
+ username: ((LicenseFinderDocker.username))
9
+ password: ((LicenseFinderDocker.password))
8
10
 
9
11
  inputs:
10
12
  - name: LicenseFinder
@@ -4,6 +4,8 @@ image_resource:
4
4
  source:
5
5
  repository: brenix/alpine-bash-git-ssh
6
6
  tag: latest
7
+ username: ((LicenseFinderDocker.username))
8
+ password: ((LicenseFinderDocker.password))
7
9
  platform: linux
8
10
  inputs:
9
11
  - name: lf-git
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ gem 'license_finder', path: '..'
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'rubygems'
6
+ require 'bundler/setup'
7
+
8
+ # This is an example of how to programatically generate a report using a custom
9
+ # ERB template. Run with
10
+ # > bundle install
11
+ # > ./custom_erb_template.rb
12
+
13
+ require 'license_finder'
14
+
15
+ # See lib/license_finder/core.rb for more configuration options.
16
+ # A quiet logger is required when running reports...
17
+ lf = LicenseFinder::Core.new(LicenseFinder::Configuration.with_optional_saved_config(logger: :quiet))
18
+
19
+ # Find many more examples of complex ERB templates in
20
+ # lib/license_finder/reports/templates/
21
+ template = Pathname.new('./sample_template.erb')
22
+ print LicenseFinder::ErbReport
23
+ .new(lf.acknowledged, project_name: lf.project_name)
24
+ .to_s(template)
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'rubygems'
6
+ require 'bundler/setup'
7
+
8
+ # This is an example of how to programatically extract the information that
9
+ # LicenseFinder has about packages and their licenses.
10
+ # > bundle install
11
+ # > ./extract_license_data.rb
12
+
13
+ require 'license_finder'
14
+
15
+ # See lib/license_finder/core.rb for more configuration options.
16
+ # A quiet logger is required when running reports...
17
+ lf = LicenseFinder::Core.new(LicenseFinder::Configuration.with_optional_saved_config(logger: :quiet))
18
+
19
+ # Groups of packages
20
+ lf.acknowledged # All (non-ignored) packages license_finder is tracking
21
+ lf.unapproved # The packages which have not been approved or permitted
22
+ lf.restricted # The packages which have been restricted
23
+
24
+ # Package details
25
+ lf.acknowledged.each do |package|
26
+ # Approvals
27
+ package.approved? # Whether the package has been approved manually or permitted
28
+ package.approved_manually?
29
+ package.permitted?
30
+ package.restricted?
31
+
32
+ # Licensing
33
+ # The set of licenses, each of which has a name and url, which
34
+ # license_finder will report for this package.
35
+ package.licenses
36
+ # Additional information about how these licenses were chosen
37
+ # (from decision, from spec, from files, or none-found). See
38
+ # LicenseFinder::Licensing and LicenseFinder::Activation
39
+ package.activations
40
+ # The files that look like licenses, found in the package's
41
+ # directory. Caveat: if a package's licenses were specified by a decision or
42
+ # by the package's spec, the license_files will be ignored. That means,
43
+ # package.licenses may report different licenses than those found in
44
+ # license_files.
45
+ package.license_files
46
+ package.license_files.each do |file|
47
+ # The license found in this file.
48
+ file.license
49
+ # The text of the file. Sometimes this will be an entire README file,
50
+ # because license_finder has found the phrase "is released under the
51
+ # MIT license" in it.
52
+ file.text
53
+ end
54
+ package.licensing.activations_from_decisions # If license_finder only knew about decisions, what licenses would it report?
55
+ package.licensing.activations_from_spec # If license_finder only knew about package specs, what licenses would it report?
56
+ package.licensing.activations_from_files # If license_finder only knew about package files, what licenses would it report?
57
+ package.licensing.activations_from_files.each do |activation|
58
+ # Each activation groups together all files that point to the same license.
59
+ # Each file contains its #license and #text.
60
+ activation.license
61
+ activation.files
62
+ end
63
+ end
@@ -0,0 +1,7 @@
1
+ Licenses
2
+
3
+ <%= dependencies.size %> total
4
+
5
+ <% grouped_dependencies.each do |license_name, group| -%>
6
+ * <%= group.size %> <%= license_name %>
7
+ <% end %>
@@ -11,6 +11,10 @@ module LicenseFinder
11
11
  desc: 'Where decisions are saved. Defaults to doc/dependency_decisions.yml.'
12
12
  class_option :log_directory,
13
13
  desc: 'Where logs are saved. Defaults to ./lf_logs/$PROJECT/prepare_$PACKAGE_MANAGER.log'
14
+ class_option :enabled_package_managers,
15
+ desc: 'List of package managers to be enabled. Defaults to all supported package managers.',
16
+ type: :array,
17
+ enum: LicenseFinder::Scanner.supported_package_manager_ids
14
18
 
15
19
  no_commands do
16
20
  def decisions
@@ -32,6 +36,7 @@ module LicenseFinder
32
36
  extract_options(
33
37
  :project_path,
34
38
  :decisions_file,
39
+ :enabled_package_managers,
35
40
  :go_full_version,
36
41
  :gradle_command,
37
42
  :gradle_include_groups,
@@ -19,7 +19,8 @@ module LicenseFinder
19
19
  'markdown' => MarkdownReport,
20
20
  'csv' => CsvReport,
21
21
  'xml' => XmlReport,
22
- 'json' => JsonReport
22
+ 'json' => JsonReport,
23
+ 'junit' => JunitReport
23
24
  }.freeze
24
25
 
25
26
  class_option :go_full_version, desc: 'Whether dependency version should include full version. Only meaningful if used with a Go project. Defaults to false.'
@@ -65,6 +65,10 @@ module LicenseFinder
65
65
  Pathname(path_prefix).expand_path
66
66
  end
67
67
 
68
+ def enabled_package_manager_ids
69
+ get(:enabled_package_managers)
70
+ end
71
+
68
72
  def logger_mode
69
73
  get(:logger)
70
74
  end
@@ -24,7 +24,7 @@ module LicenseFinder
24
24
  # Default +options+:
25
25
  # {
26
26
  # project_path: Pathname.pwd
27
- # logger: {}, # can include quiet: true or debug: true
27
+ # logger: nil, # can be :quiet or :debug
28
28
  # decisions_file: "doc/dependency_decisions.yml",
29
29
  # gradle_command: "gradle",
30
30
  # rebar_command: "rebar",
@@ -93,6 +93,7 @@ module LicenseFinder
93
93
  project_path: config.project_path,
94
94
  log_directory: File.join(config.log_directory, project_name),
95
95
  ignored_groups: decisions.ignored_groups,
96
+ enabled_package_manager_ids: config.enabled_package_manager_ids,
96
97
  go_full_version: config.go_full_version,
97
98
  gradle_command: config.gradle_command,
98
99
  gradle_include_groups: config.gradle_include_groups,
@@ -22,6 +22,10 @@ module LicenseFinder
22
22
  def takes_priority_over
23
23
  nil
24
24
  end
25
+
26
+ def id
27
+ name.split('::').last.downcase
28
+ end
25
29
  end
26
30
 
27
31
  def installed?(logger = Core.default_logger)
@@ -33,7 +33,7 @@ module LicenseFinder
33
33
  end
34
34
 
35
35
  def prepare_command
36
- 'composer install --no-plugins --ignore-platform-reqs --no-interaction'
36
+ 'composer install --no-plugins --no-scripts --ignore-platform-reqs --no-interaction'
37
37
  end
38
38
 
39
39
  def package_path
@@ -14,7 +14,7 @@ module LicenseFinder
14
14
  end
15
15
 
16
16
  def prepare_command
17
- 'npm install --no-save'
17
+ 'npm install --no-save --ignore-scripts'
18
18
  end
19
19
 
20
20
  def possible_package_paths
@@ -56,7 +56,7 @@ module LicenseFinder
56
56
  end
57
57
 
58
58
  def prepare_command
59
- 'yarn install --ignore-engines'
59
+ 'yarn install --ignore-engines --ignore-scripts'
60
60
  end
61
61
 
62
62
  private
@@ -30,3 +30,4 @@ require 'license_finder/reports/html_report'
30
30
  require 'license_finder/reports/markdown_report'
31
31
  require 'license_finder/reports/xml_report'
32
32
  require 'license_finder/reports/json_report'
33
+ require 'license_finder/reports/junit_report'
@@ -0,0 +1,19 @@
1
+ require 'license_finder/reports/erb_report'
2
+
3
+ module LicenseFinder
4
+ class JunitReport < ErbReport
5
+ ROOT_PATH = Pathname.new(__FILE__).dirname
6
+ TEMPLATE_PATH = ROOT_PATH.join('templates')
7
+
8
+ def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb"))
9
+ template = ERB.new(filename.read, nil, '-')
10
+ template.result(binding)
11
+ end
12
+
13
+ private
14
+
15
+ def template_name
16
+ 'junit_report'
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuites failures="<%= unapproved_dependencies.size %>" name="<%= project_name %>" tests="<%= dependencies.size %>">
3
+ <% sorted_dependencies.each_with_index do |dependency, i| -%>
4
+ <testsuite failures="<%= dependency.approved? ? "0" : "1" -%>" id="<%= i %>" name="<%= dependency.name %>" package="Gemfile.lock" skipped="0" tests="1" timestamp="<%= Time.now.strftime("%Y-%m-%dT%H:%M:%S:%6N") %>">
5
+ <testcase classname="<%= license_names(dependency) %>" name="<%= dependency.name %>"<%= dependency.approved? ? " /" : "" %>>
6
+ <%- unless dependency.approved? -%>
7
+ <failure message="Unapproved license in '<%= dependency.name %>' <%= dependency.version %>">
8
+ Name: <%= dependency.name %>
9
+ Version: <%= dependency.version %>
10
+ Licence:
11
+ <%- if dependency.licenses.any? -%>
12
+ <%- dependency.licenses.each do |license| -%>- <%=license.name %>: <%=license.url %><% end %>
13
+ <%- end -%>
14
+ URL: <%= dependency.package_url %>
15
+ Homepage: <%= dependency.homepage %>
16
+ Summary: <%= REXML::Text.new(dependency.summary, false, nil, false) %>
17
+ Description: <%= REXML::Text.new(dependency.description, false, nil, false) %>
18
+ <% if dependency.parents.any? %>
19
+ Dependencies:
20
+ <% dependency.parents.to_a.each do |dep| -%>
21
+ - <%= dep %>
22
+ <% end -%>
23
+ <% end -%>
24
+ <%- if dependency.children.any? -%>
25
+ Requirements:
26
+ <%- dependency.children.each do |req| -%>
27
+ - <%= req %>
28
+ <% end -%>
29
+ <% end -%>
30
+ </failure>
31
+ <system-out>
32
+ stdout
33
+ </system-out>
34
+ <system-err>
35
+ stderr
36
+ </system-err>
37
+ </testcase>
38
+ <%- end -%>
39
+ </testsuite>
40
+ <% end -%>
41
+ </testsuites>
@@ -12,6 +12,10 @@ module LicenseFinder
12
12
  paths.reject { |path| subproject?(Pathname(path)) }
13
13
  end
14
14
 
15
+ def supported_package_manager_ids
16
+ PACKAGE_MANAGERS.map(&:id)
17
+ end
18
+
15
19
  private
16
20
 
17
21
  def subproject?(path)
@@ -28,6 +32,7 @@ module LicenseFinder
28
32
  @config = config
29
33
  @project_path = @config[:project_path]
30
34
  @logger = @config[:logger]
35
+ @enabled_package_manager_ids = @config[:enabled_package_manager_ids]
31
36
  end
32
37
 
33
38
  def active_packages
@@ -40,7 +45,7 @@ module LicenseFinder
40
45
  return @package_managers if @package_managers
41
46
 
42
47
  active_pm_classes = []
43
- PACKAGE_MANAGERS.each do |pm_class|
48
+ enabled_package_managers.each do |pm_class|
44
49
  active = pm_class.new(@config).active?
45
50
 
46
51
  if active
@@ -56,5 +61,22 @@ module LicenseFinder
56
61
  active_pm_classes -= active_pm_classes.map(&:takes_priority_over)
57
62
  @package_managers = active_pm_classes.map { |pm_class| pm_class.new(@config) }
58
63
  end
64
+
65
+ private
66
+
67
+ def enabled_package_managers
68
+ enabled_pm_ids = @enabled_package_manager_ids
69
+
70
+ return PACKAGE_MANAGERS unless enabled_pm_ids
71
+
72
+ enabled_pm_classes = PACKAGE_MANAGERS.select { |pm_class| enabled_pm_ids.include?(pm_class.id) }
73
+
74
+ if enabled_pm_classes.length != enabled_pm_ids.length
75
+ unsupported_pm_ids = enabled_pm_ids - self.class.supported_package_manager_ids
76
+ raise "Unsupported package manager: #{unsupported_pm_ids.join(', ')}"
77
+ end
78
+
79
+ enabled_pm_classes
80
+ end
59
81
  end
60
82
  end
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
46
46
  s.add_dependency 'bundler'
47
47
  s.add_dependency 'rubyzip', '>=1', '<3'
48
48
  s.add_dependency 'thor', '~> 1.0.1'
49
- s.add_dependency 'tomlrb', '~> 1.3.0'
49
+ s.add_dependency 'tomlrb', '>= 1.3', '< 2.1'
50
50
  s.add_dependency 'with_env', '1.1.0'
51
51
  s.add_dependency 'xml-simple', '~> 1.1.5'
52
52
 
@@ -63,6 +63,7 @@ Gem::Specification.new do |s|
63
63
  s.add_development_dependency 'rubocop-performance', '~> 1.5.0'
64
64
  s.add_development_dependency 'webmock', '~> 3.5'
65
65
 
66
+ s.add_development_dependency 'nokogiri', '~>1.10'
66
67
  s.add_development_dependency 'rack', '~> 2.2.2'
67
68
  s.add_development_dependency 'rack-test', '~> 1.1.0', '> 0.7'
68
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.9.0
4
+ version: 6.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2020-10-05 00:00:00.000000000 Z
30
+ date: 2020-11-27 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler
@@ -81,16 +81,22 @@ dependencies:
81
81
  name: tomlrb
82
82
  requirement: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - "~>"
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
- version: 1.3.0
86
+ version: '1.3'
87
+ - - "<"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
87
90
  type: :runtime
88
91
  prerelease: false
89
92
  version_requirements: !ruby/object:Gem::Requirement
90
93
  requirements:
91
- - - "~>"
94
+ - - ">="
92
95
  - !ruby/object:Gem::Version
93
- version: 1.3.0
96
+ version: '1.3'
97
+ - - "<"
98
+ - !ruby/object:Gem::Version
99
+ version: '2.1'
94
100
  - !ruby/object:Gem::Dependency
95
101
  name: with_env
96
102
  requirement: !ruby/object:Gem::Requirement
@@ -273,6 +279,20 @@ dependencies:
273
279
  - - "~>"
274
280
  - !ruby/object:Gem::Version
275
281
  version: '3.5'
282
+ - !ruby/object:Gem::Dependency
283
+ name: nokogiri
284
+ requirement: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - "~>"
287
+ - !ruby/object:Gem::Version
288
+ version: '1.10'
289
+ type: :development
290
+ prerelease: false
291
+ version_requirements: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - "~>"
294
+ - !ruby/object:Gem::Version
295
+ version: '1.10'
276
296
  - !ruby/object:Gem::Dependency
277
297
  name: rack
278
298
  requirement: !ruby/object:Gem::Requirement
@@ -351,6 +371,10 @@ files:
351
371
  - ci/tasks/run-tests.yml
352
372
  - ci/tasks/update-changelog.yml
353
373
  - dlf
374
+ - examples/Gemfile
375
+ - examples/custom_erb_template.rb
376
+ - examples/extract_license_data.rb
377
+ - examples/sample_template.erb
354
378
  - lib/license_finder.rb
355
379
  - lib/license_finder/cli.rb
356
380
  - lib/license_finder/cli/approvals.rb
@@ -472,10 +496,12 @@ files:
472
496
  - lib/license_finder/reports/erb_report.rb
473
497
  - lib/license_finder/reports/html_report.rb
474
498
  - lib/license_finder/reports/json_report.rb
499
+ - lib/license_finder/reports/junit_report.rb
475
500
  - lib/license_finder/reports/markdown_report.rb
476
501
  - lib/license_finder/reports/merged_report.rb
477
502
  - lib/license_finder/reports/templates/bootstrap.css
478
503
  - lib/license_finder/reports/templates/html_report.erb
504
+ - lib/license_finder/reports/templates/junit_report.erb
479
505
  - lib/license_finder/reports/templates/markdown_report.erb
480
506
  - lib/license_finder/reports/templates/xml_report.erb
481
507
  - lib/license_finder/reports/text_report.rb