Permalink
Browse files

Merge branch 'master' of git@github.com:fabien/minigems

  • Loading branch information...
2 parents 7d112d0 + 9e3a483 commit c1412d450a8c8c2dab77e4b13767e6f5a8cf94d0 @fabien committed Sep 23, 2008
Showing with 39 additions and 5 deletions.
  1. +2 −2 Rakefile
  2. +6 −3 lib/minigems.rb
  3. +31 −0 minigems.gemspec
View
@@ -63,14 +63,14 @@ end
desc "create a gemspec file"
task :make_spec do
- File.open("#{GEM}.gemspec", "w") do |file|
+ File.open("#{GEM_NAME}.gemspec", "w") do |file|
file.puts spec.to_ruby
end
end
desc "Install the gem"
task :install => [:clean, :package] do
- sh %{#{sudo} gem install #{install_home} pkg/#{GEM_NAME}-#{GEM_VERSION} --no-wrapper --no-update-sources --no-rdoc --no-ri}
+ sh %{#{sudo} #{Gem.ruby} -S gem install #{install_home} pkg/#{GEM_NAME}-#{GEM_VERSION} --no-wrapper --no-update-sources --no-rdoc --no-ri}
end
namespace :jruby do
View
@@ -166,9 +166,12 @@ def self.default_path
@default_path ||= if defined? RUBY_FRAMEWORK_VERSION then
File.join File.dirname(RbConfig::CONFIG["sitedir"]), 'Gems',
RbConfig::CONFIG["ruby_version"]
- elsif defined? RUBY_ENGINE then
- File.join RbConfig::CONFIG["libdir"], RUBY_ENGINE, 'gems',
- RbConfig::CONFIG["ruby_version"]
+ elsif defined?(RUBY_ENGINE) && File.directory?(
+ File.join(RbConfig::CONFIG["libdir"], RUBY_ENGINE, 'gems',
+ RbConfig::CONFIG["ruby_version"])
+ )
+ File.join RbConfig::CONFIG["libdir"], RUBY_ENGINE, 'gems',
+ RbConfig::CONFIG["ruby_version"]
else
File.join RbConfig::CONFIG["libdir"], 'ruby', 'gems',
RbConfig::CONFIG["ruby_version"]
View
@@ -0,0 +1,31 @@
+Gem::Specification.new do |s|
+ s.name = %q{minigems}
+ s.version = "0.9.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Fabien Franzen"]
+ s.date = %q{2008-09-20}
+ s.default_executable = %q{minigem}
+ s.description = %q{Lighweight drop-in replacement for rubygems.}
+ s.email = %q{info@atelierfabien.be}
+ s.executables = ["minigem"]
+ s.extra_rdoc_files = ["README", "LICENSE"]
+ s.files = ["LICENSE", "README", "Rakefile", "lib/minigems", "lib/minigems/executable_wrapper", "lib/minigems/script_helper.rb", "lib/minigems.rb", "bin/minigem", "spec/fixtures", "spec/fixtures/cache", "spec/fixtures/cache/gem_with_lib-0.0.1.gem", "spec/fixtures/cache/gem_with_lib-0.0.2.gem", "spec/fixtures/gems", "spec/fixtures/gems/gem_with_lib-0.0.1", "spec/fixtures/gems/gem_with_lib-0.0.1/lib", "spec/fixtures/gems/gem_with_lib-0.0.1/lib/gem_with_lib.rb", "spec/fixtures/gems/gem_with_lib-0.0.1/LICENSE", "spec/fixtures/gems/gem_with_lib-0.0.1/Rakefile", "spec/fixtures/gems/gem_with_lib-0.0.1/README", "spec/fixtures/gems/gem_with_lib-0.0.1/TODO", "spec/fixtures/gems/gem_with_lib-0.0.2", "spec/fixtures/gems/gem_with_lib-0.0.2/bin", "spec/fixtures/gems/gem_with_lib-0.0.2/bin/gem_with_lib", "spec/fixtures/gems/gem_with_lib-0.0.2/lib", "spec/fixtures/gems/gem_with_lib-0.0.2/lib/gem_with_lib.rb", "spec/fixtures/gems/gem_with_lib-0.0.2/LICENSE", "spec/fixtures/gems/gem_with_lib-0.0.2/Rakefile", "spec/fixtures/gems/gem_with_lib-0.0.2/README", "spec/fixtures/gems/gem_with_lib-0.0.2/TODO", "spec/fixtures/specifications", "spec/fixtures/specifications/gem_with_lib-0.0.1.gemspec", "spec/fixtures/specifications/gem_with_lib-0.0.2.gemspec", "spec/minigems_spec.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://merbivore.com}
+ s.post_install_message = %q{Run 'minigem' for instructions on how to proceed.}
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{merb}
+ s.rubygems_version = %q{1.2.0}
+ s.summary = %q{Lighweight drop-in replacement for rubygems.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if current_version >= 3 then
+ else
+ end
+ else
+ end
+end

0 comments on commit c1412d4

Please sign in to comment.