Sha256: 479825519cacafbbe35b7c0e8721e7ae2d779017939db0fe23b2a0b266e333b7

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

#!/usr/bin/env ruby

require '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')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newgem-1.2.0 bin/newgem
newgem-1.1.0 bin/newgem