Module: Moron
- Defined in:
- lib/moron/gemspec.rb,
lib/moron.rb,
lib/moron/hook.rb,
lib/moron/version.rb,
lib/moron/specification.rb
Overview
The Gem Specification plus some extras for moron.
Defined Under Namespace
Classes: Command, Hook, Specification, Version
Constant Summary collapse
- ROOT_DIR =
File.(File.join(File.dirname(__FILE__),".."))
- LIB_DIR =
File.join(ROOT_DIR,"lib").freeze
- RESOURCE_DIR =
File.join(ROOT_DIR,"resources").freeze
- SPEC =
Moron::Specification.new do |spec| spec.name = "moron" spec.version = Moron::VERSION spec.rubyforge_project = "moron" spec. = "LeMarsu" spec.email = "[email protected]" spec.homepage = "http://moron.rubyforge.org/" spec.summary = "A Summary of moron." spec.description = <<-DESC A longer more detailed description of moron. DESC spec.extra_rdoc_files = FileList["[A-Z]*"] spec.has_rdoc = true spec.rdoc_main = "README" spec. = [ "--line-numbers" , "--inline-source" ] spec.test_files = FileList["spec/**/*.rb", "test/**/*.rb"] spec.files = spec.test_files + spec.extra_rdoc_files + FileList["lib/**/*.rb", "resources/**/*"] spec.executables = [spec.name, "#{spec.name}-init", "#{spec.name}-hook"] # add dependencies # spec.add_dependency("somegem", ">= 0.4.2") spec.add_dependency('git', '>= 1.0.5') spec.add_dependency('rake', '>= 0.8.4') spec.platform = Gem::Platform::RUBY spec.local_rdoc_dir = "doc/rdoc" spec.remote_rdoc_dir = "#{spec.name}/rdoc" spec.local_coverage_dir = "doc/coverage" spec.remote_coverage_dir= "#{spec.name}/coverage" spec.remote_site_dir = "#{spec.name}/" end
- VERSION =
Version.to_s
Class Method Summary collapse
-
.require_all_libs_relative_to(fname) ⇒ Object
Utility method to require all files ending in .rb in the directory with the same name as this file minus .rb.
Class Method Details
.require_all_libs_relative_to(fname) ⇒ Object
Utility method to require all files ending in .rb in the directory with the same name as this file minus .rb
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/moron.rb', line 9 def require_all_libs_relative_to(fname) prepend = File.basename(fname,".rb") search_me = File.join(File.dirname(fname),prepend) Dir.entries(search_me).each do |rb| if File.extname(rb) == ".rb" then require "#{prepend}/#{File.basename(rb,".rb")}" end end end |