Permalink
Browse files

Gemspec added

  • Loading branch information...
1 parent c88a64e commit a0cf27c8b6e94372a9a881e6689f1025e8370974 @jeroeningen committed Apr 28, 2011
Showing with 127 additions and 1 deletion.
  1. +3 −0 Gemfile
  2. +36 −1 Rakefile
  3. +88 −0 acts_as_price.gemspec
View
@@ -11,4 +11,7 @@ group :test do
gem 'rcov'
gem 'metrical'
gem 'activerecord-nulldb-adapter'
+end
+group :development do
+ gem "jeweler", "~> 1.5.2"
end
View
@@ -1,3 +1,5 @@
+require 'rubygems'
+require 'bundler'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
@@ -20,4 +22,37 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include("README.rdoc")
rdoc.rdoc_files.include('lib/**/*.rb')
-end
+end
+
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "acts_as_price"
+ gem.homepage = "http://github.com/jeroeningen/acts_as_price"
+ gem.license = "MIT"
+ gem.summary = %Q{A specified database column acts as a price}
+ gem.description = %Q{A specified database column acts as a price and creates on the fly methods like 'price' and 'price_in_cents'. For more information visit: http://github.com/jeroeningen/acts_as_price}
+ gem.email = "jeroeningen@gmail.com"
+ gem.authors = ["Jeroen van Ingen"]
+ gem.add_runtime_dependency 'rails', '3.0.7'
+ gem.add_development_dependency 'rspec-rails'
+ gem.add_development_dependency 'shoulda-matchers'
+ gem.add_development_dependency 'autotest'
+ gem.add_development_dependency 'autotest-growl'
+ gem.add_development_dependency 'rcov'
+ gem.add_development_dependency 'metrical'
+ gem.add_development_dependency 'activerecord-nulldb-adapter'
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
+end
+Jeweler::RubygemsDotOrgTasks.new
View
@@ -0,0 +1,88 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{acts_as_price}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Jeroen van Ingen"]
+ s.date = %q{2011-04-28}
+ s.description = %q{A specified database column acts as a price and creates on the fly methods like 'price' and 'price_in_cents'. For more information visit: http://github.com/jeroeningen/acts_as_price}
+ s.email = %q{jeroeningen@gmail.com}
+ s.extra_rdoc_files = [
+ "README.rdoc"
+ ]
+ s.files = [
+ "Gemfile",
+ "MIT-LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "init.rb",
+ "install.rb",
+ "lib/acts_as_price.rb",
+ "lib/acts_as_price_helper.rb",
+ "spec/car_spec.rb",
+ "spec/fueltype_spec.rb",
+ "spec/models/car.rb",
+ "spec/models/fueltype.rb",
+ "spec/spec_helper.rb",
+ "uninstall.rb"
+ ]
+ s.homepage = %q{http://github.com/jeroeningen/acts_as_price}
+ s.licenses = ["MIT"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{A specified database column acts as a price}
+ s.test_files = [
+ "spec/car_spec.rb",
+ "spec/fueltype_spec.rb",
+ "spec/models/car.rb",
+ "spec/models/fueltype.rb",
+ "spec/spec_helper.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
+ s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_development_dependency(%q<rspec-rails>, [">= 0"])
+ s.add_development_dependency(%q<shoulda-matchers>, [">= 0"])
+ s.add_development_dependency(%q<autotest>, [">= 0"])
+ s.add_development_dependency(%q<autotest-growl>, [">= 0"])
+ s.add_development_dependency(%q<rcov>, [">= 0"])
+ s.add_development_dependency(%q<metrical>, [">= 0"])
+ s.add_development_dependency(%q<activerecord-nulldb-adapter>, [">= 0"])
+ else
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
+ s.add_dependency(%q<shoulda-matchers>, [">= 0"])
+ s.add_dependency(%q<autotest>, [">= 0"])
+ s.add_dependency(%q<autotest-growl>, [">= 0"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<metrical>, [">= 0"])
+ s.add_dependency(%q<activerecord-nulldb-adapter>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
+ s.add_dependency(%q<shoulda-matchers>, [">= 0"])
+ s.add_dependency(%q<autotest>, [">= 0"])
+ s.add_dependency(%q<autotest-growl>, [">= 0"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<metrical>, [">= 0"])
+ s.add_dependency(%q<activerecord-nulldb-adapter>, [">= 0"])
+ end
+end
+

0 comments on commit a0cf27c

Please sign in to comment.