goat 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,12 @@ require 'json'
6
6
  require 'thin'
7
7
  require 'rack'
8
8
 
9
- %w{extn net-common state-srv}.each {|f| require File.join(File.dirname(__FILE__), "../lib/goat/#{f}")}
9
+ $:.unshift(File.join(File.dirname(__FILE__), '../lib'))
10
+
11
+ require 'goat/extn'
12
+ require 'goat/common'
13
+ require 'goat/net-common'
14
+ require 'goat/state-srv'
10
15
 
11
16
  $verbose = ARGV.include?('-v')
12
17
 
@@ -142,6 +147,7 @@ app = Rack::Builder.app do |builder|
142
147
  run Goat::ChannelSrv::Srv
143
148
  end
144
149
 
150
+ Goat.announce_launch('channel-srv')
145
151
  EM.run do
146
152
  Goat::ChannelSrv::ChannelStateConnection.connect
147
153
  Rack::Handler::Thin.run(app, :Port => (ARGV.first ? ARGV.first.to_i : 8050))
@@ -397,6 +397,7 @@ module Goat
397
397
  end
398
398
  end
399
399
 
400
+ Goat.announce_launch('state-srv')
400
401
  EM.run do
401
402
  Goat::StateSrv::Sweeper.start
402
403
  Goat::StateSrv::RecvServer.start
data/bin/yodel CHANGED
@@ -22,6 +22,7 @@ OptionParser.new do |opts|
22
22
  opts.on('-h') {usage; exit 1}
23
23
  end.parse!(ARGV)
24
24
 
25
+ Goat.announce_launch('yodel')
25
26
  EM.run do
26
27
  Yodel::BroadcastServer.start($host, $bport)
27
28
  Yodel::RecvServer.start($host, $rport)
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'goat'
3
- s.version = '0.3.13'
3
+ s.version = '0.3.14'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
@@ -73,11 +73,6 @@ module Goat
73
73
  end
74
74
  end
75
75
 
76
- def self.version
77
- specpath = File.join(File.dirname(__FILE__), '../goat.gemspec')
78
- Gem::Specification.load(specpath).version.to_s
79
- end
80
-
81
76
  def self.goat_path(f); File.join(File.dirname(__FILE__), 'goat', f); end
82
77
 
83
78
  def self.extend_mongo
@@ -1,4 +1,13 @@
1
1
  module Goat
2
+ def self.version
3
+ specpath = File.join(File.dirname(__FILE__), '../../goat.gemspec')
4
+ Gem::Specification.load(specpath).version.to_s
5
+ end
6
+
7
+ def self.announce_launch(svc)
8
+ $stderr.puts "#{Time.now.to_s} #{svc} #{Goat.version} starting..."
9
+ end
10
+
2
11
  class ComponentSkeleton
3
12
  attr_reader :pgid, :id, :spec
4
13
  attr_accessor :dom, :state
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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 13
10
- version: 0.3.13
9
+ - 14
10
+ version: 0.3.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Collison