license_finder 5.10.0 → 5.10.1

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: 7f523ba2c6fa31d014881ee139ea643859d311aa86c5e1c478a42c37534d08da
4
- data.tar.gz: 04264f68a64b7260576135ee6069aeb0c36d5220e0bde8744a398901083fb4ef
3
+ metadata.gz: 9609493df2fc615c9dceb1f50ea4ea205d0719b18e3fc446e37ffd25162ad713
4
+ data.tar.gz: a9c6e93f0d823e3a56d171bf0f60becc17a5445edf8f2744a0852f539bb80f05
5
5
  SHA512:
6
- metadata.gz: b95faa766907dc8c749770916ddd7daa5d59560de2abdf23ed6203ca363a62a7a4563f345e28abb4ef04ad8de311356f076a987220c48a2f300a439eabe5b531
7
- data.tar.gz: f9a05a6f98983222ecfed1c916a1084f8c6f4a6645a81d2725a8c98c6b1c805d9f422e137a1d3b39145666058da9f23568dfebee7a74467e1c249925380530ed
6
+ metadata.gz: 608bc01a4cb1bb0b0b183aaac5606d06c20367d69fd0f7ccd63efb05b76216afc928ac84582b0e4c9d48eac2770e895a18cd4157af42d1ab156eb0100262e0b5
7
+ data.tar.gz: 913f2810e50ae417a2f51998980707eac402140b7aa8358fe7cd529c3b52a716608a8e3fae71122759efeb0f163bca22328cfc0dab4b717bf2f120226857a686
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # [5.10.1] / 2019-08-28
2
+
3
+ ### Fixed
4
+ * Mix bailing early when elixir is not installed - [13b120e](https://github.com/pivotal/LicenseFinder/commit/13b120ed7c121243be987f449cc29d00ec6e6450)
5
+
1
6
  # [5.10.0] / 2019-08-26
2
7
 
3
8
  ### Changed
@@ -740,3 +745,4 @@ Bugfixes:
740
745
  [5.9.1]: https://github.com/pivotal/LicenseFinder/compare/v5.9.0...v5.9.1
741
746
  [5.9.2]: https://github.com/pivotal/LicenseFinder/compare/v5.9.1...v5.9.2
742
747
  [5.10.0]: https://github.com/pivotal/LicenseFinder/compare/v5.9.2...v5.10.0
748
+ [5.10.1]: https://github.com/pivotal/LicenseFinder/compare/v5.10.0...v5.10.1
data/Dockerfile CHANGED
@@ -15,13 +15,14 @@ ENV COMPOSER_ALLOW_SUPERUSER 1
15
15
  RUN apt-get update && apt-get install -y \
16
16
  build-essential \
17
17
  curl \
18
- git-core \
19
18
  sudo \
20
19
  unzip \
21
20
  wget \
22
21
  gnupg2 \
23
22
  software-properties-common
24
23
 
24
+ RUN add-apt-repository ppa:git-core/ppa && apt-get update && apt-get install -y git
25
+
25
26
  # nodejs seems to be required for the one of the gems
26
27
  RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
27
28
  apt-get -y install nodejs
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.10.0
1
+ 5.10.1
@@ -7,7 +7,6 @@ module LicenseFinder
7
7
  @command = options[:mix_command] || Mix.package_management_command
8
8
  @elixir_command = options[:elixir_command] || 'elixir'
9
9
  @deps_path = Pathname(options[:mix_deps_dir] || 'deps')
10
- @licenses_by_package = load_all_licenses
11
10
  end
12
11
 
13
12
  def current_packages
@@ -23,7 +22,8 @@ module LicenseFinder
23
22
  end
24
23
 
25
24
  def licenses(name)
26
- @licenses_by_package.fetch(name, ['license is not in deps'])
25
+ licenses_by_package = load_all_licenses
26
+ licenses_by_package.fetch(name, ['license is not in deps'])
27
27
  end
28
28
 
29
29
  def self.package_management_command
@@ -42,6 +42,19 @@ module LicenseFinder
42
42
  [project_path.join('mix.exs')]
43
43
  end
44
44
 
45
+ def self.installed?(logger = Core.default_logger)
46
+ if package_management_command.nil?
47
+ logger.debug self, 'no command defined'
48
+ true
49
+ elsif command_exists?('elixir') && command_exists?('mix')
50
+ logger.debug self, 'is installed', color: :green
51
+ true
52
+ else
53
+ logger.info self, '(elixir) is not installed', color: :red
54
+ false
55
+ end
56
+ end
57
+
45
58
  private
46
59
 
47
60
  def load_all_licenses
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: 5.10.0
4
+ version: 5.10.1
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: 2019-08-26 00:00:00.000000000 Z
30
+ date: 2019-08-28 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler