Skip to content
Browse files

Fixed server.rb

  • Loading branch information...
1 parent a375f67 commit f992a78626378592c6a6169a1088994486422401 @krakatoa krakatoa committed Sep 2, 2012
Showing with 24 additions and 1 deletion.
  1. +12 −0 cucub-server.gemspec
  2. +11 −0 examples/boot.rb
  3. +1 −1 lib/server.rb
View
12 cucub-server.gemspec
@@ -20,10 +20,19 @@ Gem::Specification.new do |s|
s.files = [
".document",
"Gemfile",
+ "Gemfile.lock",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
+ "VERSION",
+ "bin/cucub-server",
+ "cucub-server.gemspec",
+ "lib/channel.rb",
+ "lib/cli.rb",
"lib/cucub-server.rb",
+ "lib/dispatcher.rb",
+ "lib/object.rb",
+ "lib/server.rb",
"test/helper.rb",
"test/test_cucub-server.rb"
]
@@ -37,6 +46,7 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<thor>, [">= 0"])
s.add_runtime_dependency(%q<servolux>, [">= 0"])
s.add_runtime_dependency(%q<ma-zmq>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
@@ -45,6 +55,7 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
s.add_development_dependency(%q<simplecov>, [">= 0"])
else
+ s.add_dependency(%q<thor>, [">= 0"])
s.add_dependency(%q<servolux>, [">= 0"])
s.add_dependency(%q<ma-zmq>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
@@ -54,6 +65,7 @@ Gem::Specification.new do |s|
s.add_dependency(%q<simplecov>, [">= 0"])
end
else
+ s.add_dependency(%q<thor>, [">= 0"])
s.add_dependency(%q<servolux>, [">= 0"])
s.add_dependency(%q<ma-zmq>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
View
11 examples/boot.rb
@@ -0,0 +1,11 @@
+#require './request_channel_test'
+
+#e = Engine.new
+
+Cucub.run {
+ #e.start
+
+ 1000.times {|i|
+ puts "i"
+ }
+}
View
2 lib/server.rb
@@ -27,7 +27,7 @@ def run_block=(block)
end
def run
- Cucub.init
+ #Cucub.init
Cucub.start!(@host, @run_block)
Process.waitall
end

0 comments on commit f992a78

Please sign in to comment.
Something went wrong with that request. Please try again.