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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82f01f1176a863816de18e547817c501d796873019601fc84a6c01a2e97c713
|
4
|
+
data.tar.gz: eab594e87a7613d6126e124757f63f2acc35fcbf24485a50d84e96f2609c6f51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|