tunemygc 1.0.48 → 1.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tunemygc/spies/base.rb +8 -1
- data/lib/tunemygc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64a8df2641487e0f2e437e55248574f21767dc7
|
4
|
+
data.tar.gz: b47de1dd1e22f8aee7dc05ab31b1d1cb224bfdfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5942561a984cd4bd57b2687f8bbde059264ef243b4807a5c2ed192944f49b4e65389e62c109ab109372104e6fa7782c10cf74c46c1737bded29109721b02247
|
7
|
+
data.tar.gz: e3c448aa1f782eeaf7d062b5e651b813650c728cc186299d928ee36ef09cd21d35124dcdb510d71c618a0e0b0eb5a9753bee2df9a895beae622a2666dd487e79
|
data/lib/tunemygc/spies/base.rb
CHANGED
@@ -18,7 +18,7 @@ module TuneMyGc
|
|
18
18
|
|
19
19
|
def check_uninstall
|
20
20
|
if ENV["RUBY_GC_TUNE"]
|
21
|
-
@limit ||=
|
21
|
+
@limit ||= parse_gc_tune
|
22
22
|
@processed += 1
|
23
23
|
if @processed == @limit
|
24
24
|
uninstall
|
@@ -26,6 +26,13 @@ module TuneMyGc
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
29
|
+
|
30
|
+
private
|
31
|
+
def parse_gc_tune
|
32
|
+
Integer(ENV["RUBY_GC_TUNE"])
|
33
|
+
rescue ArgumentError
|
34
|
+
1
|
35
|
+
end
|
29
36
|
end
|
30
37
|
end
|
31
38
|
end
|
data/lib/tunemygc/version.rb
CHANGED