Permalink
Browse files

update gem settings

  • Loading branch information...
1 parent 4b5e5a7 commit 9b15adefc9aaeb2b1fba16057bdb3a0f21cfa658 Paul Campbell committed Dec 4, 2009
Showing with 71 additions and 28 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 CHANGELOG
  3. +18 −16 Rakefile
  4. +49 −12 url_field.gemspec
View
@@ -1 +1,2 @@
spec/debug.log
+pkg/*
View
@@ -0,0 +1,3 @@
+Thursday, 3rd December 2009
+- - - - - - - - - - -
+- added support for multiple fields
View
@@ -19,21 +19,23 @@ PKG_FILES = FileList[
'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
View
@@ -1,15 +1,52 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
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 = ["init.rb", "lib/url_field.rb", "Rakefile", "README.textile", "spec/spec_helper.rb", "spec/url_field_spec.rb"]
- s.require_path = "lib"
- s.has_rdoc = false
- s.extra_rdoc_files = ["README.textile"]
-end
+ s.name = %q{url_field}
+ s.version = "0.0.2"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Paul Campbell"]
+ s.date = %q{2009-12-04}
+ s.email = %q{paul@rslw.com}
+ s.extra_rdoc_files = [
+ "README.textile"
+ ]
+ s.files = [
+ "CHANGELOG",
+ "README.textile",
+ "Rakefile",
+ "init.rb",
+ "lib/url_field.rb",
+ "rails/init.rb",
+ "spec/database.yml",
+ "spec/debug.log",
+ "spec/schema.rb",
+ "spec/spec_helper.rb",
+ "spec/url_field_spec.rb",
+ "url_field.gemspec"
+ ]
+ s.homepage = %q{http://www.github.com/paulca/url_field}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{A simple ActiveRecord plugin to correctly format a URL in the database whether the user enters 'http://' or not}
+ s.test_files = [
+ "spec/schema.rb",
+ "spec/spec_helper.rb",
+ "spec/url_field_spec.rb"
+ ]
+
+ 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
+

0 comments on commit 9b15ade

Please sign in to comment.