Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding gemspec

  • Loading branch information...
commit 8087790e52cc55d01447ed4e3dd4706d6adcc7ae 1 parent 4363490
@brynary authored
Showing with 65 additions and 3 deletions.
  1. +1 −0  .gitignore
  2. +34 −3 Rakefile
  3. +30 −0 features2cards.gemspec
View
1  .gitignore
@@ -0,0 +1 @@
+pkg
View
37 Rakefile
@@ -1,7 +1,38 @@
require 'rubygems'
-require 'hoe'
+require "rake/gempackagetask"
+require "rake/clean"
require './lib/features2cards.rb'
-Hoe.new('features2cards', Features2Cards::VERSION) do |p|
- p.developer 'Bryan Helmkamp', 'bryan#brynary.com'.sub('#', '@')
+spec = Gem::Specification.new do |s|
+ s.name = "features2cards"
+ s.version = Features2Cards::VERSION
+ s.author = "Bryan Helmkamp"
+ s.email = "bryan" + "@" + "brynary.com"
+ s.homepage = "http://github.com/brynary/features2cards"
+ s.summary = "features2cards. Generate printable PDF index cards from Cucumber feature files"
+ s.description = s.summary
+ s.files = %w[History.txt MIT-LICENSE.txt README.txt Rakefile] + Dir["bin/*"] + Dir["lib/**/*"] + Dir["vendor/**/*"]
+
+ s.add_dependency "prawn"
end
+
+Rake::GemPackageTask.new(spec) do |package|
+ package.gem_spec = spec
+end
+
+desc 'Show information about the gem.'
+task :write_gemspec do
+ File.open("features2cards.gemspec", 'w') do |f|
+ f.write spec.to_ruby
+ end
+ puts "Generated: features2cards.gemspec"
+end
+
+CLEAN.include ["pkg", "*.gem", "doc", "ri", "coverage"]
+
+desc 'Install the package as a gem.'
+task :install_gem => [:clean, :package] do
+ gem = Dir['pkg/*.gem'].first
+ sh "sudo gem install --local #{gem}"
+end
+
View
30 features2cards.gemspec
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{features2cards}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Bryan Helmkamp"]
+ s.date = %q{2008-12-08}
+ s.description = %q{features2cards. Generate printable PDF index cards from Cucumber feature files}
+ s.email = %q{bryan@brynary.com}
+ s.files = ["History.txt", "MIT-LICENSE.txt", "README.txt", "Rakefile", "bin/features2cards", "lib/features2cards", "lib/features2cards/card.rb", "lib/features2cards/cli.rb", "lib/features2cards/prawn.rb", "lib/features2cards.rb"]
+ s.homepage = %q{http://github.com/brynary/features2cards}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{features2cards. Generate printable PDF index cards from Cucumber feature files}
+
+ 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
+ s.add_runtime_dependency(%q<prawn>, [">= 0"])
+ else
+ s.add_dependency(%q<prawn>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<prawn>, [">= 0"])
+ end
+end

0 comments on commit 8087790

Please sign in to comment.
Something went wrong with that request. Please try again.