goat 0.3.29 → 0.3.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/state-srv +9 -2
  2. data/goat.gemspec +1 -1
  3. metadata +3 -3
data/bin/state-srv CHANGED
@@ -359,7 +359,12 @@ module Goat
359
359
  end
360
360
 
361
361
  def run
362
- Goat.logd "Garbage collecting. Live objects: #{ObjectSpace.live_objects}"
362
+ if ObjectSpace.respond_to?(:live_objects)
363
+ Goat.logd "Sweeping. Live objects: #{ObjectSpace.live_objects}"
364
+ else
365
+ Goat.logd "Sweeping"
366
+ end
367
+
363
368
  @registry.connected_pages.each do |pgid|
364
369
  if @registry.last_connected_delta(pgid) > (60 * 60)
365
370
  Goat.logd "Deleting page #{pgid}"
@@ -382,7 +387,9 @@ module Goat
382
387
  end
383
388
  end
384
389
 
385
- Goat.logd "Done. Live objects: #{ObjectSpace.live_objects}"
390
+ if ObjectSpace.respond_to?(:live_objects)
391
+ Goat.logd "Done. Live objects: #{ObjectSpace.live_objects}"
392
+ end
386
393
  end
387
394
  end
388
395
 
data/goat.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'goat'
3
- s.version = '0.3.29'
3
+ s.version = '0.3.30'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 29
10
- version: 0.3.29
9
+ - 30
10
+ version: 0.3.30
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Collison