goat 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/channel-srv +7 -1
- data/bin/state-srv +1 -0
- data/bin/yodel +1 -0
- data/goat.gemspec +1 -1
- data/lib/goat.rb +0 -5
- data/lib/goat/common.rb +9 -0
- metadata +3 -3
data/bin/channel-srv
CHANGED
@@ -6,7 +6,12 @@ require 'json'
|
|
6
6
|
require 'thin'
|
7
7
|
require 'rack'
|
8
8
|
|
9
|
-
|
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))
|
data/bin/state-srv
CHANGED
data/bin/yodel
CHANGED
data/goat.gemspec
CHANGED
data/lib/goat.rb
CHANGED
@@ -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
|
data/lib/goat/common.rb
CHANGED
@@ -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:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 14
|
10
|
+
version: 0.3.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Patrick Collison
|