Permalink
Browse files

Remove old references to Github gem building

  • Loading branch information...
1 parent 811d725 commit a40c61e0d042da78ad773e4df690b25fdbf42eab @reagent committed Feb 1, 2010
Showing with 6 additions and 63 deletions.
  1. +3 −12 README.rdoc
  2. +1 −10 Rakefile
  3. +0 −30 simple-gem.gemspec
  4. +2 −11 templates/Rakefile.erb
View
@@ -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
@@ -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.
View
@@ -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
View
@@ -1,30 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{simple-gem}
- s.version = "0.4.2"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Patrick Reagan"]
- s.date = %q{2009-09-30}
- s.default_executable = %q{simple-gem}
- s.email = %q{reaganpr@gmail.com}
- s.executables = ["simple-gem"]
- s.extra_rdoc_files = ["README.rdoc"]
- s.files = ["README.rdoc", "Rakefile", "lib/simple_gem", "lib/simple_gem/gem.rb", "lib/simple_gem/version.rb", "lib/simple_gem.rb", "test/simple_gem", "test/simple_gem/gem_test.rb", "templates/gitignore.erb", "templates/lib.rb.erb", "templates/lib_version.rb.erb", "templates/Rakefile.erb", "templates/README.rdoc.erb", "templates/test.rb.erb", "templates/test_helper.rb.erb", "bin/simple-gem"]
- s.homepage = %q{http://sneaq.net}
- s.rdoc_options = ["--main", "README.rdoc"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.4}
- s.summary = %q{Make gems. Simple.}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end
View
@@ -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.