Skip to content

Commit

Permalink
Updated suggested usage (begin/rescue loading jeweler).
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Oct 12, 2008
1 parent 403b98c commit e215e49
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
24 changes: 15 additions & 9 deletions README.markdown
Expand Up @@ -6,17 +6,23 @@
# Create a Rakefile:

require 'rake'
require 'jeweler'

Jeweler.gemspec = Gem::Specification.new do |s|
s.name = "jeweler"
s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.email = "josh@technicalpickles.com"
s.homepage = "http://github.com/technicalpickles/jeweler"
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.authors = ["Josh Nichols"]

begin
require 'jeweler'
Jeweler.gemspec = Gem::Specification.new do |s|
s.name = "jeweler"
s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.email = "josh@technicalpickles.com"
s.homepage = "http://github.com/technicalpickles/jeweler"
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.authors = ["Josh Nichols", "Dan Croak"]
s.files = FileList["[A-Z]*", "{generators,lib,test}/**/*"]
end
rescue LoadError
puts "Jeweler not available. Try installing technicalpickles-jeweler."
end


Note, we don't include 'date', or 'version'. Jeweler takes care of that.

If you don't specify `s.files`, it will use `s.files = FileList["[A-Z]*", "{generators,lib,test,spec}/**/*"]`
Expand Down
24 changes: 14 additions & 10 deletions Rakefile
Expand Up @@ -2,14 +2,18 @@ require 'rake'
require 'rake/testtask'

$:.unshift('lib')
require 'jeweler'

Jeweler.gemspec = Gem::Specification.new do |s|
s.name = "jeweler"
s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.email = "josh@technicalpickles.com"
s.homepage = "http://github.com/technicalpickles/jeweler"
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.authors = ["Josh Nichols", "Dan Croak"]
s.files = FileList["[A-Z]*", "{generators,lib,test}/**/*"]
end
begin
require 'jeweler'
Jeweler.gemspec = Gem::Specification.new do |s|
s.name = "jeweler"
s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.email = "josh@technicalpickles.com"
s.homepage = "http://github.com/technicalpickles/jeweler"
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
s.authors = ["Josh Nichols", "Dan Croak"]
s.files = FileList["[A-Z]*", "{generators,lib,test}/**/*"]
end
rescue LoadError
puts "Jeweler not available. Try installing technicalpickles-jeweler."
end
1 change: 0 additions & 1 deletion TODO
Expand Up @@ -2,6 +2,5 @@
* ruby-debug -> Ruby::Debug
* safety_valve -> SafetyValve
* Generator for making new Jeweler projects
* Add output of what version was just bumped to
* Git tagging/branching
* Release task

0 comments on commit e215e49

Please sign in to comment.