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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7f60f4accb0b4fce08cce625244279a02997d08
4
- data.tar.gz: 15c522d7e297e41c889df3d89673af903833f692
3
+ metadata.gz: f64a8df2641487e0f2e437e55248574f21767dc7
4
+ data.tar.gz: b47de1dd1e22f8aee7dc05ab31b1d1cb224bfdfd
5
5
  SHA512:
6
- metadata.gz: 423d1e332908f3911e1407da94299245f0a6b508249ab2280a0c00e93cee4366f4a25df996178c0db69d49570b52ea04fb2493dc674ab7101e5ae8868084a51d
7
- data.tar.gz: 4812346a34b637a686802904bcd208823ba98a1e282db346f7181ea8e179eae79d5230bcbc06193ad19ac9b864edbeb267052e62c8a7ec22c5c4db9dabd51184
6
+ metadata.gz: f5942561a984cd4bd57b2687f8bbde059264ef243b4807a5c2ed192944f49b4e65389e62c109ab109372104e6fa7782c10cf74c46c1737bded29109721b02247
7
+ data.tar.gz: e3c448aa1f782eeaf7d062b5e651b813650c728cc186299d928ee36ef09cd21d35124dcdb510d71c618a0e0b0eb5a9753bee2df9a895beae622a2666dd487e79
@@ -18,7 +18,7 @@ module TuneMyGc
18
18
 
19
19
  def check_uninstall
20
20
  if ENV["RUBY_GC_TUNE"]
21
- @limit ||= Integer(ENV["RUBY_GC_TUNE"])
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.48"
4
+ VERSION = "1.0.49"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.48
4
+ version: 1.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal