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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/helpers/bin/run +22 -24
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca3b63f402fd45f0db88328a1b063a44081caa58393022754e65155109f24b1a
4
- data.tar.gz: 437eb9f1cc52679eaaa78fa42132e4ff4a9487ac71db827419f8f8521d8e83fe
3
+ metadata.gz: 13891d6686809f06a38c1f0289f5c0773010337247e999bbd1e0bbaa8b5559c5
4
+ data.tar.gz: 574a514e0ec0360a4dafb9c4bb9498708030ccf659b22a28c1514f915ccf81d2
5
5
  SHA512:
6
- metadata.gz: 1da7f421865b04461c3522d9b33670295e22101fd5607d223871c4286b2fd68426bc8c5b18c496f991e7141c16668fbe1437bf7740098f6b1f39c41c0174864c
7
- data.tar.gz: a73d397871f518afe0cbe65eed5a598a25fce418dc708b825d467a0c75a13970641223e5dbad553211e49bfcb9932f763386fd91e18a1955890de409f9b789f0
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
- $memoryInBytes = function ($value) {
16
- $unit = strtolower(substr($value, -1, 1));
17
- $value = (int) $value;
18
- switch ($unit) {
19
- case 'g':
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
- // no break (cumulative multiplier)
22
- case 'm':
23
- $value *= 1024;
24
- // no break (cumulative multiplier)
25
- case 'k':
26
- $value *= 1024;
27
- }
25
+ }
28
26
 
29
- return $value;
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
- ini_set('memory_limit', '1900M');
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
- ini_set('memory_limit', $memoryLimit);
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.66
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.66
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.66
26
+ version: 0.98.67
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement