Changeset 1001
- Timestamp:
- 03/31/08 03:19:17 (5 months ago)
- Files:
-
- branches/stable_1-2 (modified) (2 props)
- branches/stable_1-2/Manifest (modified) (2 diffs)
- branches/stable_1-2/Rakefile (modified) (10 diffs)
- branches/stable_1-2/projects/fastthread/Rakefile (modified) (3 diffs)
- branches/stable_1-2/projects/gem_plugin/Rakefile (modified) (2 diffs)
- branches/stable_1-2/projects/mongrel_service/Rakefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable_1-2
- Property bzr:revision-id:v3-trunk0 changed from
814 luislavena@gmail.com-20080331074345-8r7ghwi05bwwqz7f
815 luislavena@gmail.com-20080331075048-t48wb12km03z1k7d
to
814 luislavena@gmail.com-20080331074345-8r7ghwi05bwwqz7f
815 luislavena@gmail.com-20080331075048-t48wb12km03z1k7d
816 luislavena@gmail.com-20080331081757-x3m83b2w24vlgbhz - Property bzr:revision-info changed from
timestamp: 2008-03-31 04:50:48.828000069 -0300
committer: Luis Lavena <luislavena@gmail.com>
properties:
branch-nick: stable_1-2
to
timestamp: 2008-03-31 05:17:57.890000105 -0300
committer: Luis Lavena <luislavena@gmail.com>
properties:
branch-nick: stable_1-2
- Property bzr:revision-id:v3-trunk0 changed from
branches/stable_1-2/Manifest
r975 r1001 45 45 lib/mongrel/uri_classifier.rb 46 46 lib/mongrel.rb 47 lib/mongrel.rb.rej48 47 LICENSE 49 48 Manifest … … 64 63 test/unit/test_debug.rb 65 64 test/unit/test_handlers.rb 66 test/unit/test_http 11.rb65 test/unit/test_http_parser.rb 67 66 test/unit/test_redirect_handler.rb 68 67 test/unit/test_request_progress.rb branches/stable_1-2/Rakefile
r995 r1001 1 1 2 2 require 'rubygems' 3 gem 'echoe', '>=2.7. 5'3 gem 'echoe', '>=2.7.11' 4 4 require 'echoe' 5 5 6 6 e = Echoe.new("mongrel") do |p| 7 7 p.summary = "A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps." 8 p.author ="Zed A. Shaw" 8 p.author = "Zed A. Shaw" 9 p.email = "mongrel-development@rubyforge.org" 9 10 p.clean_pattern = ['ext/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'ext/http11/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'site/output', '.config', 'lib/http11.jar', 'ext/http11_java/classes', 'coverage', 'test_*.log', 'log', 'doc'] 10 11 p.url = "http://mongrel.rubyforge.org" … … 16 17 p.extension_pattern = nil 17 18 18 p.certificate_chain = case ENV['USER']19 p.certificate_chain = case (ENV['USER'] || ENV['USERNAME']).downcase 19 20 when 'eweaver' 20 21 ['~/p/configuration/gem_certificates/mongrel/mongrel-public_cert.pem', 21 22 '~/p/configuration/gem_certificates/evan_weaver-mongrel-public_cert.pem'] 22 when 'luislavena' 23 ['~/ gem_certificates/mongrel-public_cert.pem',24 '~/ gem_certificates/luislavena-mongrel-public_cert.pem']23 when 'luislavena', 'luis' 24 ['~/projects/gem_certificates/mongrel-public_cert.pem', 25 '~/projects/gem_certificates/luislavena-mongrel-public_cert.pem'] 25 26 end 26 27 … … 28 29 p.need_tgz = true 29 30 30 if RUBY_PLATFORM !~ /mswin|java/31 unless Platform.windows? or Platform.java? 31 32 p.extension_pattern = ["ext/**/extconf.rb"] 32 33 end 33 34 34 35 p.eval = proc do 35 case RUBY_PLATFORM 36 when /mswin/ 36 if Platform.windows? 37 37 self.files += ['lib/http11.so'] 38 38 self.platform = Gem::Platform::CURRENT 39 when /java/39 elsif Platform.java? 40 40 self.files += ['lib/http11.jar'] 41 41 self.platform = 'jruby' # XXX Is this right? … … 83 83 end 84 84 85 case RUBY_PLATFORM 86 when /mswin/ 85 if Platform.windows? 87 86 filename = "lib/http11.so" 88 87 file filename do 89 88 Dir.chdir("ext/http11") do 90 89 ruby "extconf.rb" 91 system(P LATFORM =~ /mswin/ ? 'nmake' : 'make')90 system(Platform.make) 92 91 end 93 92 move_extensions … … 95 94 task :compile => [filename] 96 95 97 when /java/ 96 elsif Platform.java? 98 97 99 98 # Avoid JRuby in-process launching problem … … 122 121 targets.each do |target| 123 122 Dir.chdir "projects/#{project}" do 124 unless RUBY_PLATFORM =~ /mswin/ 125 sh("rake #{target.to_s}") # --trace 126 end 123 sh("#{Platform.rake} #{target.to_s}") # --trace 127 124 end 128 125 end 126 end 127 128 desc "Compile all the projects" 129 task :compile_all => [:compile] do 130 sub_project("fastthread", :compile) 131 sub_project("mongrel_service", :compile) 129 132 end 130 133 … … 140 143 sub_project("mongrel_experimental", :package) 141 144 142 sh("rake java package") unless RUBY_PLATFORM =~ /java/145 sh("rake java package") unless Platform.windows? 143 146 144 # XXX Broken by RubyGems 0.9.5 145 # sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/ 146 # sh("rake mswin package") unless RUBY_PLATFORM =~ /mswin/ 147 sub_project("mongrel_service", :package) if Platform.windows? 147 148 end 148 149 … … 162 163 sub_project("mongrel_cluster", :install) 163 164 # sub_project("mongrel_experimental", :install) 164 sub_project("mongrel_service", :install) if RUBY_PLATFORM =~ /mswin/165 sub_project("mongrel_service", :install) if Platform.windows? 165 166 end 166 167 … … 174 175 sub_project("fastthread", :uninstall) 175 176 # sub_project("mongrel_experimental", :uninstall) 176 sub_project("mongrel_service", :uninstall) if RUBY_PLATFORM =~ /mswin/177 sub_project("mongrel_service", :uninstall) if Platform.windows? 177 178 end 178 179 179 180 desc "for Mongrel and all its subprojects" 180 task :clean do181 task :clean_all => [:clean] do 181 182 sub_project("gem_plugin", :clean) 182 183 sub_project("cgi_multipart_eof_fix", :clean) … … 187 188 sub_project("mongrel_cluster", :clean) 188 189 sub_project("mongrel_experimental", :clean) 189 sub_project("mongrel_service", :clean) if RUBY_PLATFORM =~ /mswin/190 sub_project("mongrel_service", :clean) if Platform.windows? 190 191 end 191 192 branches/stable_1-2/projects/fastthread/Rakefile
r591 r1001 1 1 2 require 'rubygems' 3 gem 'echoe', '>=2.7.11' 2 4 require 'echoe' 3 5 … … 5 7 p.project = "mongrel" 6 8 p.author = "MenTaLguY <mental@rydia.net>" 9 p.email = "mental@rydia.net" 7 10 p.summary = "Optimized replacement for thread.rb primitives" 8 11 p.extensions = "ext/fastthread/extconf.rb" … … 15 18 p.require_signed = true 16 19 17 p.eval = proc do 18 if RUBY_PLATFORM.match("win32")19 platform = Gem::Platform::WIN3220 files += ['lib/fastthread.so']20 p.eval = proc do 21 if Platform.windows? 22 self.platform = Gem::Platform::CURRENT 23 self.files += ['lib/fastthread.so'] 21 24 task :package => [:clean, :compile] 22 25 end branches/stable_1-2/projects/gem_plugin/Rakefile
r874 r1001 1 1 2 require 'rubygems' 3 gem 'echoe', '>=2.7.11' 2 4 require 'echoe' 3 5 4 6 Echoe.new("gem_plugin") do |p| 5 p.author="Zed A. Shaw" 7 p.author= "Zed A. Shaw" 8 p.email = "mongrel-development@rubyforge.org" 6 9 p.project = "mongrel" 7 10 p.summary = "A plugin system based on rubygems that uses dependencies only" … … 16 19 p.clean_pattern += ["pkg", "lib/*.bundle", "*.gem", ".config"] 17 20 p.rdoc_pattern = ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc'] 18 p.rdoc_template = ` allison--path`.chomp21 p.rdoc_template = `#{Platform.windows? ? 'allison.bat' : 'allison'} --path`.chomp 19 22 end 20 23 branches/stable_1-2/projects/mongrel_service/Rakefile
r737 r1001 1 2 require 'rubygems' 3 gem 'echoe', '>=2.7.11' 1 4 require 'echoe' 2 5 require 'tools/freebasic' … … 11 14 p.description = "This plugin offer native win32 services for rails, powered by Mongrel." 12 15 p.author = "Luis Lavena" 13 p.platform = Gem::Platform::WIN32 16 p.email = "luislavena@gmail.com" 17 p.platform = Gem::Platform::CURRENT 14 18 p.dependencies = ['gem_plugin >=0.2.3', 'mongrel >=1.0.2', 'win32-service >=0.5.0'] 15 19 … … 18 22 p.need_tar_gz = false 19 23 p.need_zip = true 20 p.certificate_chain = ['~/ gem_certificates/mongrel-public_cert.pem',21 '~/ gem_certificates/luislavena-mongrel-public_cert.pem']24 p.certificate_chain = ['~/projects/gem_certificates/mongrel-public_cert.pem', 25 '~/projects/gem_certificates/luislavena-mongrel-public_cert.pem'] 22 26 p.require_signed = true 23 27 end
