remnant 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  class Remnant
2
2
  class GC
3
3
  module ClassMethods
4
+ def enabled?
5
+ _gc.enabled?
6
+ end
7
+
4
8
  def enable_stats
5
9
  _gc.enable_stats
6
10
  end
@@ -2,6 +2,10 @@ class Remnant
2
2
  class GC
3
3
  class Base
4
4
  module ClassMethods
5
+ def enabled?
6
+ false
7
+ end
8
+
5
9
  def time
6
10
  0
7
11
  end
@@ -2,6 +2,10 @@ class Remnant
2
2
  class GC
3
3
  class Ree
4
4
  module ClassMethods
5
+ def enabled?
6
+ true
7
+ end
8
+
5
9
  def time
6
10
  # returns time in microseconds so convert to ms
7
11
  ::GC.time / 1000
@@ -1,3 +1,3 @@
1
1
  class Remnant
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remnant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: