Rakefile in url_field-0.0.1 vs Rakefile in url_field-0.0.2

- old
+ new

@@ -17,23 +17,25 @@ 'rails/**/*', 'tasks/**/*', 'spec/**/*' ] -spec = Gem::Specification.new do |s| - s.name = "url_field" - s.version = "0.0.1" - s.author = "Paul Campbell" - s.email = "paul@rslw.com" - s.homepage = "http://www.github.com/paulca/url_field" - s.platform = Gem::Platform::RUBY - s.summary = "A simple ActiveRecord plugin to correctly format a URL in the database whether the user enters 'http://' or not" - s.files = PKG_FILES.to_a - s.require_path = "lib" - s.has_rdoc = false - s.extra_rdoc_files = ["README.textile"] +begin + require 'jeweler' + Jeweler::Tasks.new do |s| + s.name = "url_field" + s.version = "0.0.2" + s.author = "Paul Campbell" + s.email = "paul@rslw.com" + s.homepage = "http://www.github.com/paulca/url_field" + s.platform = Gem::Platform::RUBY + s.summary = "A simple ActiveRecord plugin to correctly format a URL in the database whether the user enters 'http://' or not" + s.files = PKG_FILES.to_a + s.require_path = "lib" + s.has_rdoc = false + s.extra_rdoc_files = ["README.textile"] + end +rescue LoadError + puts "Jeweler not available. Install it with: sudo gem install jeweler" end -desc 'Turn this plugin into a gem.' -Rake::GemPackageTask.new(spec) do |pkg| - pkg.gem_spec = spec -end +Jeweler::GemcutterTasks.new \ No newline at end of file