GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Added Waves.version to return current version.
dyoder (author)
Sat Aug 23 23:47:11 -0700 2008
automatthew (committer)
Tue Aug 26 06:35:37 -0700 2008
commit  fdf2e3d2eec22520b446ff779728b5cb9f99e0a4
tree    13a62b013fce5f9362b8a18ea422b5704f9b71ec
parent  70ffa331d207a92033ef2898764af6be2cbe85ea
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ gem = Gem::Specification.new do |gem|
0
   gem.name = "waves"
0
   gem.rubyforge_project = "waves"
0
   gem.summary = "Open-source framework for building Ruby-based Web applications."
0
- gem.version = '0.8.0'
0
+ gem.version = File.read('doc/VERSION')
0
   gem.homepage = 'http://rubywaves.com'
0
   gem.author = 'Dan Yoder'
0
   gem.email = 'dan@zeraweb.com'
...
23
24
25
 
 
26
27
28
...
23
24
25
26
27
28
29
30
0
@@ -23,6 +23,8 @@ module Waves
0
 
0
   # Returns the most recently created instance of Waves::Runtime.
0
   def self.instance ; Waves::Runtime.instance ; end
0
+
0
+ def self.version ; File.read( File.expand_path( "#{File.dirname(__FILE__)}/../../doc/VERSION" ) ) ; end
0
 
0
   def self.method_missing(name,*args,&block) ; instance.send(name,*args,&block) ; end
0
 
...
52
53
54
55
 
56
57
58
...
52
53
54
 
55
56
57
58
0
@@ -52,7 +52,7 @@ module Waves
0
     def start
0
       daemonize if options[:daemon]
0
       start_debugger if options[:debugger]
0
- log.info "** Waves Server v0.7.7 starting on #{host}:#{port}"
0
+ log.info "** Waves Server #{Waves.version} starting on #{host}:#{port}"
0
       handler, options = config.handler
0
       handler.run( config.application.to_app, options ) do |server|
0
         @server = server

Comments

    No one has commented yet.