Permalink
Browse files

add version file.

  • Loading branch information...
1 parent cb2d401 commit 95160524eed58584c8d37d65c636ebebb7175b78 @ry ry committed Aug 19, 2008
Showing with 13 additions and 9 deletions.
  1. +1 −1 Rakefile
  2. +8 −8 lib/ebb.rb
  3. +4 −0 lib/ebb/version.rb
View
@@ -9,7 +9,7 @@ class String
end
end
-require 'lib/ebb'
+require 'lib/ebb/version'
libev_dist = "http://dist.schmorp.de/libev/Attic"
libev_release = "libev-3.43.tar.gz"
View
@@ -2,11 +2,10 @@
# Copyright (c) 2008 Ry Dahl. This software is released under the MIT License.
# See README file for details.
+require File.dirname(__FILE__) + '/ebb/version'
+
module Ebb
- VERSION = "0.3.0"
- VERSION_STRING = "Ebb #{VERSION}"
- LIBDIR = File.dirname(__FILE__)
- autoload :FFI, LIBDIR + '/../ext/ebb_ffi'
+ autoload :FFI, File.dirname(__FILE__) + '/../ext/ebb_ffi'
def self.running?
FFI::server_open?
@@ -21,10 +20,11 @@ def self.start_server(app, options={})
fd = options[:fileno].to_i
FFI::server_listen_on_fd(fd)
log.puts "Ebb is listening on file descriptor #{fd}"
- elsif options.has_key?(:unix_socket)
- socketfile = options[:unix_socket]
- FFI::server_listen_on_unix_socket(socketfile)
- log.puts "Ebb is listening on unix socket #{socketfile}"
+# missing until libebb adds UNIX socket support
+# elsif options.has_key?(:unix_socket)
+# socketfile = options[:unix_socket]
+# FFI::server_listen_on_unix_socket(socketfile)
+# log.puts "Ebb is listening on unix socket #{socketfile}"
else
port = (options[:Port] || options[:port] || 4001).to_i
FFI::server_listen_on_port(port)
View
@@ -0,0 +1,4 @@
+module Ebb
+ VERSION = "0.3.0"
+ VERSION_STRING = "Ebb #{VERSION}"
+end

0 comments on commit 9516052

Please sign in to comment.