Skip to content

Commit

Permalink
Remove old references to Github gem building
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Reagan committed Feb 1, 2010
1 parent 811d725 commit a40c61e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 63 deletions.
15 changes: 3 additions & 12 deletions README.rdoc
Expand Up @@ -6,17 +6,8 @@ Creating RubyGems is fun work, but dealing with the complexity of hoe / bones /

== Installation

Ideally:

sudo gem install reagent-simple-gem --source=http://gems.github.com

But GitHub doesn't seem to consistently build gems, so use this as a fallback:

$ git clone git://github.com/reagent/simple-gem.git
$ cd simple-gem
$ rake gem
$ sudo gem install pkg/simple-gem-x.x.x.gem

$ sudo gem install simple-gem

== Usage

$ simple-gem my-gem
Expand All @@ -29,7 +20,7 @@ Your new gem provides some Rake tasks for convenience:

* <tt>rake gem</tt> - Build the gem and drop it into the <tt>pkg/</tt> directory for installation.
* <tt>rake test</tt> - The default test task, it will run the tests in <tt>test</tt>. If this is a newly-created gem, your tests will flunk.
* <tt>rake github</tt> - Generate <tt>my_gem.gemspec</tt> file to use if you're serving your gem from GitHub (requires flagging your GitHub project as a rubygem).
* <tt>rake coverage</tt> - If RCov is installed on your system, this will run all tests and report coverage. This replaces the default test task.

That's it. Enjoy.

Expand Down
11 changes: 1 addition & 10 deletions Rakefile
Expand Up @@ -28,13 +28,4 @@ Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end

desc 'Generate the gemspec for the Gem (useful when serving from Github)'
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, 'w') {|f| f << spec.to_ruby }
puts "Created gemspec: #{file}"
end

task :github => :gemspec
end
30 changes: 0 additions & 30 deletions simple-gem.gemspec

This file was deleted.

13 changes: 2 additions & 11 deletions templates/Rakefile.erb
Expand Up @@ -43,15 +43,6 @@ begin
task :default => :coverage

rescue LoadError
warn "\n**** Install rcov (sudo gem install relevance-rcov) to get coverage stats ****\n"
warn "\n**** Install rcov (gem install rcov) to get coverage stats ****\n"
task :default => :test
end

desc 'Generate the gemspec for the Gem (useful when serving from Github)'
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, 'w') {|f| f << spec.to_ruby }
puts "Created gemspec: #{file}"
end

task :github => :gemspec
end

0 comments on commit a40c61e

Please sign in to comment.