Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Publishing a gem

  • Loading branch information...
commit 4ae0cab61316619be8f3fd2248e65da5e5ba8912 1 parent f758989
@nicksieger authored
Showing with 30 additions and 58 deletions.
  1. +1 −1  Manifest → Manifest.txt
  2. +9 −7 Rakefile
  3. +20 −50 stickshift.gemspec
View
2  Manifest → Manifest.txt
@@ -4,7 +4,7 @@ History.txt
lib/stickshift/version.rb
lib/stickshift.rb
LICENSE.txt
-Manifest
+Manifest.txt
Rakefile
README.markdown
stickshift.gemspec
View
16 Rakefile
@@ -1,24 +1,26 @@
require 'rake/testtask'
begin
- require 'echoe'
- require File.dirname(__FILE__) + '/lib/stickshift/version'
- echoe = Echoe.new("stickshift", Stickshift::VERSION) do |p|
+ require 'hoe'
+ Hoe.plugin :rubyforge
+ hoe = Hoe.spec("stickshift") do |p|
+ require File.dirname(__FILE__) + '/lib/stickshift/version'
+ p.version = Stickshift::VERSION
p.rubyforge_name = "caldersphere"
p.url = "http://caldersphere.rubyforge.org/stickshift"
+ p.readme_file = "README.markdown"
p.author = "Nick Sieger"
p.email = "nick@nicksieger.com"
p.summary = "Stickshift is a pedal-to-the-metal manual profiler."
p.description = "Stickshift is a simple, manual-instrumenting call-tree profiler in as few lines of code as possible."
- p.include_rakefile = true
end
task :gemspec do
- File.open("#{echoe.name}.gemspec", "w") {|f| f << echoe.spec.to_ruby }
+ File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
end
task :package => :gemspec
rescue LoadError
- puts "You need echoe installed to be able to package this gem"
+ puts "You need hoe installed to be able to package this gem"
end
# Hoe has its own test, but I want Rake::TestTask
@@ -33,4 +35,4 @@ task :example do
puts *(File.readlines("examples/example.rake"))
puts "# Running it"
ruby "-Ilib -S rake -f examples/example.rake"
-end
View
70 stickshift.gemspec
@@ -1,66 +1,36 @@
-
-# Gem::Specification for Stickshift-0.1
-# Originally generated by Echoe
+# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{stickshift}
s.version = "0.1"
- s.specification_version = 2 if s.respond_to? :specification_version=
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Sieger"]
- s.date = %q{2008-05-31}
+ s.date = %q{2011-04-25}
s.description = %q{Stickshift is a simple, manual-instrumenting call-tree profiler in as few lines of code as possible.}
s.email = %q{nick@nicksieger.com}
- s.extra_rdoc_files = ["lib/stickshift/version.rb", "lib/stickshift.rb", "LICENSE.txt", "README.markdown"]
- s.files = ["examples/example.rake", "examples/stickshift_rails.rb", "History.txt", "lib/stickshift/version.rb", "lib/stickshift.rb", "LICENSE.txt", "Manifest", "Rakefile", "README.markdown", "stickshift.gemspec", "test/test_stickshift.rb"]
- s.has_rdoc = true
+ s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt"]
+ s.files = ["examples/example.rake", "examples/stickshift_rails.rb", "History.txt", "lib/stickshift/version.rb", "lib/stickshift.rb", "LICENSE.txt", "Manifest.txt", "Rakefile", "README.markdown", "stickshift.gemspec", "test/test_stickshift.rb", ".gemtest"]
s.homepage = %q{http://caldersphere.rubyforge.org/stickshift}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Stickshift", "--main", "README.markdown"]
+ s.rdoc_options = ["--main", "README.markdown"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{caldersphere}
- s.rubygems_version = %q{1.0.1}
+ s.rubygems_version = %q{1.5.1}
s.summary = %q{Stickshift is a pedal-to-the-metal manual profiler.}
s.test_files = ["test/test_stickshift.rb"]
-end
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
-# # Original Rakefile source (requires the Echoe gem):
-#
-# require 'rake/testtask'
-#
-# begin
-# require 'echoe'
-# require File.dirname(__FILE__) + '/lib/stickshift/version'
-# echoe = Echoe.new("stickshift", Stickshift::VERSION) do |p|
-# p.rubyforge_name = "caldersphere"
-# p.url = "http://caldersphere.rubyforge.org/stickshift"
-# p.author = "Nick Sieger"
-# p.email = "nick@nicksieger.com"
-# p.summary = "Stickshift is a pedal-to-the-metal manual profiler."
-# p.description = "Stickshift is a simple, manual-instrumenting call-tree profiler in as few lines of code as possible."
-# p.include_rakefile = true
-# end
-#
-# task :gemspec do
-# File.open("#{echoe.name}.gemspec", "w") {|f| f << echoe.spec.to_ruby }
-# end
-# task :package => :gemspec
-# rescue LoadError
-# puts "You need echoe installed to be able to package this gem"
-# end
-#
-# # Hoe has its own test, but I want Rake::TestTask
-# Rake::Task['test'].send :instance_variable_set, "@actions", []
-# Rake::TestTask.new
-#
-# task :default => :test
-#
-# desc "Run the instrumented rake example"
-# task :example do
-# puts "# Here is the example Rakefile"
-# puts *(File.readlines("examples/example.rake"))
-# puts "# Running it"
-# ruby "-Ilib -S rake -f examples/example.rake"
-# end
+ s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
+ s.add_development_dependency(%q<hoe>, [">= 2.9.4"])
+ else
+ s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
+ s.add_dependency(%q<hoe>, [">= 2.9.4"])
+ end
+ else
+ s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
+ s.add_dependency(%q<hoe>, [">= 2.9.4"])
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.