license-acceptance 2.1.1 → 2.1.2

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: 6c2e076dba9be610985535dca130a348b58d6beb27efba823d97fd86077d8d60
4
- data.tar.gz: 6370bf24f3c58e13194975b9e0dbb06a2dc577cd5b632def8aa6b92acbaeeae4
3
+ metadata.gz: d82f01f1176a863816de18e547817c501d796873019601fc84a6c01a2e97c713
4
+ data.tar.gz: eab594e87a7613d6126e124757f63f2acc35fcbf24485a50d84e96f2609c6f51
5
5
  SHA512:
6
- metadata.gz: 93edc97194f0dc6556867113a1faf12ff559c28ab4b5ad41b1eeeca6a8a84305db55d2be10f251b6f0cf760630867b08912eef9a33757fa51ad69fbec4b66996
7
- data.tar.gz: 767e584dc945ff8e324a965a574cd174905089b2918c2a99ca28221edba28616a9a23fa9dea624f66c3d67d688583719ccb648fc7fa1e5d871737eb7875f6662
6
+ metadata.gz: c9ed6dd65f3fb274f110157fab725a9b2cc0b341aff313f38a4a30809fd19aaef0dd52d9eabeb95a8f1738c45fff0f3efdf39a9d681fb4b9ed3118b0eeb0090e
7
+ data.tar.gz: 3fe1ba49289e95c77ffc863deea1221bd418cb5a111262904349d4c92e3dc2a5a760e5c562175d0a167916c3f028bcf8d0a346e038e8b935a69aadc6d147f3f6
@@ -28,11 +28,9 @@ module LicenseAcceptance
28
28
  logger.debug("Searching for the following licenses: #{missing_licenses.map(&:id)}")
29
29
 
30
30
  searching.each do |product|
31
- found = false
32
31
  config.license_locations.each do |loc|
33
32
  f = ::File.join(loc, product.filename)
34
33
  if ::File.exist?(f)
35
- found = true
36
34
  logger.debug("Found license #{product.filename} at #{f}")
37
35
  missing_licenses.delete(product)
38
36
  break
@@ -12,15 +12,15 @@ module LicenseAcceptance
12
12
  end
13
13
 
14
14
  def accepted?
15
- value == ACCEPT
15
+ String(value).downcase == ACCEPT
16
16
  end
17
17
 
18
18
  def silent?
19
- value == ACCEPT_SILENT
19
+ String(value).downcase == ACCEPT_SILENT
20
20
  end
21
21
 
22
22
  def no_persist?
23
- value == ACCEPT_NO_PERSIST
23
+ String(value).downcase == ACCEPT_NO_PERSIST
24
24
  end
25
25
 
26
26
  def value?
@@ -1,3 +1,3 @@
1
1
  module LicenseAcceptance
2
- VERSION = "2.1.1".freeze
2
+ VERSION = "2.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license-acceptance
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tyler-ball