Sha256: c8dd558f4e30e32c5f39cddadf6b8dcb52c3959ecaa8233f9fe1ef6f64a97641

Contents?: true

Size: 986 Bytes

Versions: 6

Compression:

Stored size: 986 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems' unless ENV['NO_RUBYGEMS']
require 'rubigen'

if %w(-v --version).include? ARGV.first
  require File.dirname(__FILE__) + "/../lib/newgem"
  puts "#{File.basename($0)} #{Newgem::VERSION}"
  exit(0)
end

require 'rubigen/scripts/generate'

require "pp"
RubiGen::Base.use_application_sources! :rubygems
RubiGen::Base.prepend_sources(*[ 
  RubiGen::PathSource.new(:app, File.join(File.dirname(__FILE__), "..", "app_generators")),
  RubiGen::PathSource.new(:app, File.join(File.dirname(__FILE__), "..", "newgem_generators")),
  RubiGen::PathSource.new(:app, File.join(File.dirname(__FILE__), "..", "newgem_theme_generators")),
  RubiGen::PathSource.new(:app, File.join(File.dirname(__FILE__), "..", "rubygems_generators"))
])
# 
# pp RubiGen::Base.sources

if ARGV.delete "--simple"
  RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newgem_simple')
else
  RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newgem', :backtrace => true)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newgem-1.5.3 bin/newgem
newgem-1.5.0 bin/newgem
newgem-1.5.1 bin/newgem
newgem-1.5.2 bin/newgem
newgem-1.4.0 bin/newgem
newgem-1.4.1 bin/newgem