dependabot-composer 0.98.66 → 0.98.67
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/bin/run +22 -24
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13891d6686809f06a38c1f0289f5c0773010337247e999bbd1e0bbaa8b5559c5
|
4
|
+
data.tar.gz: 574a514e0ec0360a4dafb9c4bb9498708030ccf659b22a28c1514f915ccf81d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2392c8ef727a812036a8e43e2978025a21f57719398c6c5d87912df82b93e8dece29e42f9cd77e3766e08906035982e4bf2ff50b223259f11c4ba18f37b190e8
|
7
|
+
data.tar.gz: 557ab9bd11b483150e4ca7da66f4255a6ce04497e4dd03c3649ffacac3eb4e3fac55524d9cf208769d38c5af550385dd82d91315f23cc231b73ff19731748335
|
data/helpers/bin/run
CHANGED
@@ -12,35 +12,33 @@ require __DIR__ . '/../vendor/autoload.php';
|
|
12
12
|
$request = json_decode(file_get_contents('php://stdin'), true);
|
13
13
|
|
14
14
|
// Increase the default memory limit the same way Composer does (but clearer)
|
15
|
-
|
16
|
-
$
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
if (function_exists('ini_set')) {
|
16
|
+
$memoryInBytes = function ($value) {
|
17
|
+
$unit = strtolower(substr($value, -1, 1));
|
18
|
+
$value = (int) $value;
|
19
|
+
if ($unit == 'g') {
|
20
|
+
$value *= (1024 * 1024 * 1024);
|
21
|
+
} elseif ($unit == 'm') {
|
22
|
+
$value *= (1024 * 1024);
|
23
|
+
} elseif ($unit == 'k') {
|
20
24
|
$value *= 1024;
|
21
|
-
|
22
|
-
case 'm':
|
23
|
-
$value *= 1024;
|
24
|
-
// no break (cumulative multiplier)
|
25
|
-
case 'k':
|
26
|
-
$value *= 1024;
|
27
|
-
}
|
25
|
+
}
|
28
26
|
|
29
|
-
|
30
|
-
};
|
27
|
+
return $value;
|
28
|
+
};
|
31
29
|
|
32
|
-
$memoryLimit = trim(ini_get('memory_limit'));
|
33
|
-
// Increase memory_limit if it is lower than 1900MB
|
34
|
-
if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1900) {
|
35
|
-
|
36
|
-
}
|
30
|
+
$memoryLimit = trim(ini_get('memory_limit'));
|
31
|
+
// Increase memory_limit if it is lower than 1900MB
|
32
|
+
if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1900) {
|
33
|
+
@ini_set('memory_limit', '1900M');
|
34
|
+
}
|
37
35
|
|
38
|
-
// Set user defined memory limit
|
39
|
-
if ($memoryLimit = getenv('COMPOSER_MEMORY_LIMIT')) {
|
40
|
-
|
36
|
+
// Set user defined memory limit
|
37
|
+
if ($memoryLimit = getenv('COMPOSER_MEMORY_LIMIT')) {
|
38
|
+
@ini_set('memory_limit', $memoryLimit);
|
39
|
+
}
|
40
|
+
unset($memoryInBytes, $memoryLimit);
|
41
41
|
}
|
42
|
-
unset($memoryInBytes, $memoryLimit);
|
43
|
-
|
44
42
|
|
45
43
|
date_default_timezone_set('Europe/London');
|
46
44
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.98.
|
4
|
+
version: 0.98.67
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.98.
|
19
|
+
version: 0.98.67
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.98.
|
26
|
+
version: 0.98.67
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|