Permalink
Browse files

new versions

  • Loading branch information...
1 parent cd24401 commit 33a7e84a02a4f4ad1836a03bc53c7b5348b68f0b @fabiokung committed Jun 25, 2009
Showing with 6 additions and 17 deletions.
  1. +1 −1 script/console
  2. +5 −16 script/txt2html
View
@@ -5,6 +5,6 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
-libs << " -r #{File.dirname(__FILE__) + '/../lib/jetty_rails.rb'}"
+libs << " -r #{File.dirname(__FILE__) + '/../lib/jetty-rails.rb'}"
puts "Loading jetty-rails gem"
exec "#{irb} #{libs} --simple-prompt"
View
@@ -1,27 +1,16 @@
#!/usr/bin/env ruby
-GEM_NAME = 'jetty-rails' # what ppl will type to install your gem
-RUBYFORGE_PROJECT = 'jetty-rails'
-
-require 'rubygems'
-begin
- require 'newgem'
- require 'rubyforge'
-rescue LoadError
- puts "\n\nGenerating the website requires the newgem RubyGem"
- puts "Install: gem install newgem\n\n"
- exit(1)
-end
+load File.dirname(__FILE__) + "/../Rakefile"
+require 'rubyforge'
require 'redcloth'
require 'syntax/convertors/html'
require 'erb'
-require File.dirname(__FILE__) + "/../lib/jetty_rails/version.rb"
-version = JettyRails::VERSION::STRING
-download = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
+download = "http://rubyforge.org/projects/#{$hoe.rubyforge_name}"
+version = $hoe.version
def rubyforge_project_id
- RubyForge.new.autoconfig["group_ids"][RUBYFORGE_PROJECT]
+ RubyForge.new.configure.autoconfig["group_ids"][$hoe.rubyforge_name]
end
class Fixnum

0 comments on commit 33a7e84

Please sign in to comment.