1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Properly display package/gem version for mongrel_service. Closes #13823.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@582 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
luislavena 2007-09-10 20:39:51 +00:00
parent 537f843a1b
commit 2eaecba2ff
2 changed files with 10 additions and 1 deletions

View file

@ -92,6 +92,7 @@ namespace :native do
build_to 'bin' build_to 'bin'
define 'DEBUG_LOG' unless ENV['RELEASE'] define 'DEBUG_LOG' unless ENV['RELEASE']
define "GEM_VERSION=#{GEM_VERSION}"
main 'native/mongrel_service.bas' main 'native/mongrel_service.bas'
source 'native/process.bas' source 'native/process.bas'

View file

@ -22,8 +22,16 @@
#include once "lib/ServiceFB/ServiceFB.bi" #include once "lib/ServiceFB/ServiceFB.bi"
#include once "process.bi" #include once "process.bi"
'# use for debug versions
#if not defined(GEM_VERSION)
#define GEM_VERSION (debug mode)
#endif
'# preprocessor stringize
#define PPSTR(x) #x
namespace mongrel_service namespace mongrel_service
const VERSION as string = "0.3.1" const VERSION as string = PPSTR(GEM_VERSION)
'# namespace include '# namespace include
using fb.svc using fb.svc