diff --git a/Rakefile b/Rakefile index c3daeecf3..9eb397ddd 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,30 @@ require 'rake' require 'rake/rdoctask' require 'spec/rake/spectask' +begin + GEM = "formtastic" + AUTHOR = "Justin French" + EMAIL = "justin@indent.com.au" + SUMMARY = "A Rails form builder plugin/gem with semantically rich and accessible markup" + HOMEPAGE = "http://github.com/justinfrench/formtastic/tree/master" + + require 'jeweler' + Jeweler::Tasks.new do |s| + s.name = GEM + s.summary = SUMMARY + s.email = EMAIL + s.homepage = HOMEPAGE + s.description = SUMMARY + s.author = AUTHOR + + s.require_path = 'lib' + s.autorequire = GEM + s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,spec}/**/*") + end +rescue LoadError + puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" +end + desc 'Default: run unit specs.' task :default => :spec diff --git a/VERSION.yml b/VERSION.yml new file mode 100644 index 000000000..0066fa4ee --- /dev/null +++ b/VERSION.yml @@ -0,0 +1,4 @@ +--- +:major: 0 +:minor: 1 +:patch: 0 diff --git a/formtastic.gemspec b/formtastic.gemspec new file mode 100644 index 000000000..4a0d36920 --- /dev/null +++ b/formtastic.gemspec @@ -0,0 +1,31 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{formtastic} + s.version = "0.1.1" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Justin French"] + s.autorequire = %q{formtastic} + s.date = %q{2009-03-08} + s.description = %q{A Rails form builder plugin/gem with semantically rich and accessible markup} + s.email = %q{justin@indent.com.au} + s.extra_rdoc_files = ["README.textile"] + s.files = ["MIT-LICENSE", "README.textile", "Rakefile", "rails/init.rb", "lib/formtastic.rb", "lib/justin_french", "lib/justin_french/formtastic.rb", "lib/locale", "lib/locale/en.yml", "spec/formtastic_spec.rb", "spec/test_helper.rb"] + s.has_rdoc = true + s.homepage = %q{http://github.com/justinfrench/formtastic/tree/master} + s.rdoc_options = ["--inline-source", "--charset=UTF-8"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.1} + s.summary = %q{A Rails form builder plugin/gem with semantically rich and accessible markup} + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 2 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + else + end + else + end +end