ry / ebb fork watch download tarball
public this repo is viewable by everyone
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
add version file
Ryan Dahl (author)
2 months ago
commit  3d4a4f70abc7eb097d4f5b8c6a4e4cdd52ae08f6
tree    92329005f483d4214efbe843c1d53c4bc43f722e
parent  489e487914c2127720f7d47d240dfaaeec9e402b
...
1
2
3
4
5
...
1
 
2
3
4
0
@@ -1,5 +1,4 @@
0
 Ebb Web Server
0
-Version 0.0.1
0
 
0
 = Design
0
 
...
17
18
19
20
 
21
22
23
...
25
26
27
28
 
29
30
31
...
17
18
19
 
20
21
22
23
...
25
26
27
 
28
29
30
31
0
@@ -17,7 +17,7 @@ spec = Gem::Specification.new do |s|
0
   s.author = 'ry dahl'
0
   s.email = 'ry@tinyclouds.org'
0
   s.homepage = 'http://repo.or.cz/w/ebb.git'
0
- s.version = '0.0.1'
0
+ s.version = File.read(File.dirname(__FILE__) + "/VERSION").gsub(/\s/,'')
0
   s.requirements << 'none'
0
   
0
   s.require_path = 'ruby_lib'
0
@@ -25,7 +25,7 @@ spec = Gem::Specification.new do |s|
0
   s.bindir = 'bin'
0
   s.executables = %w(ebb_rails)
0
   
0
- s.files = ['{src,libev,benchmark,ruby_lib}/*.(rb|c|h)', 'bin/ebb_rails','README']
0
+ s.files = FileList.new ['{src,libev,benchmark,ruby_lib}/*.(rb|c|h)', 'bin/ebb_rails','README']
0
 end
0
 
0
 Rake::GemPackageTask.new(spec) do |pkg|
...
 
0
...
1
2
0
@@ -0,0 +1 @@
0
+0.0.1
0
\ No newline at end of file
...
41
42
43
44
 
45
46
47
...
41
42
43
 
44
45
46
47
0
@@ -41,7 +41,7 @@ opts = OptionParser.new do |opts|
0
   end
0
 
0
   opts.on_tail('-v', '--version', "Show version") do
0
- puts "Ebb 0.0.1"
0
+ puts "Ebb #{Ebb::VERSION}"
0
     exit
0
   end
0
 
...
3
4
5
 
6
7
8
...
12
13
14
15
 
16
17
18
...
24
25
26
27
28
29
 
 
 
30
31
32
...
3
4
5
6
7
8
9
...
13
14
15
 
16
17
18
19
...
25
26
27
 
 
 
28
29
30
31
32
33
0
@@ -3,6 +3,7 @@
0
 # This software is released under the "MIT License". See README file for details.
0
 module Ebb
0
   LIBDIR = File.expand_path(File.dirname(__FILE__))
0
+ VERSION = File.read(LIBDIR + "/../VERSION").gsub(/\s/,'')
0
 end
0
 
0
 $: << Ebb::LIBDIR
0
@@ -12,7 +13,7 @@ require 'daemonizable'
0
 module Ebb
0
   class Client
0
     BASE_ENV = {
0
- 'SERVER_SOFTWARE' => 'Ebb 0.0.1',
0
+ 'SERVER_SOFTWARE' => "Ebb #{Ebb::VERSION}",
0
       'SERVER_PROTOCOL' => 'HTTP/1.1',
0
       'GATEWAY_INTERFACE' => 'CGI/1.2',
0
       'rack.version' => [0, 1],
0
@@ -24,9 +25,9 @@ module Ebb
0
     
0
     def env
0
       @env ||= begin
0
- @env = @ebb_env.update(BASE_ENV)
0
- @env['rack.input'] = Input.new(self)
0
- @env
0
+ env = @ebb_env.update(BASE_ENV)
0
+ env['rack.input'] = Input.new(self)
0
+ env
0
       end
0
     end
0
   end

Comments

    No one has commented yet.