Skip to content
Browse files

added gemspec to repo

  • Loading branch information...
1 parent b2809c5 commit 5ef6008aeec489b74bafad23f7a65fa3b1bf953c @banister banister committed Apr 3, 2012
Showing with 44 additions and 0 deletions.
  1. +9 −0 Rakefile
  2. +35 −0 pry-git.gemspec
View
9 Rakefile
@@ -39,6 +39,9 @@ task :test do
sh "bacon -Itest -rubygems -a"
end
+desc "generate a gemspec"
+task :gemspec => "ruby:gemspec"
+
namespace :ruby do
spec = Gem::Specification.new do |s|
apply_spec_defaults(s)
@@ -49,6 +52,12 @@ namespace :ruby do
pkg.need_zip = false
pkg.need_tar = false
end
+
+ task :gemspec do
+ File.open("#{spec.name}.gemspec", "w") do |f|
+ f << spec.to_ruby
+ end
+ end
end
desc "build all platform gems at once"
View
35 pry-git.gemspec
@@ -0,0 +1,35 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "pry-git"
+ s.version = "0.2.3"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["John Mair (banisterfiend)"]
+ s.date = "2012-04-03"
+ s.description = "A Ruby-aware git layer"
+ s.email = "jrmair@gmail.com"
+ s.files = ["lib/pry-git/version.rb", "lib/pry-git.rb", "test/test.rb", "CHANGELOG", "README.md", "Rakefile"]
+ s.homepage = "http://github.com/pry/pry-git"
+ s.require_paths = ["lib"]
+ s.rubygems_version = "1.8.16"
+ s.summary = "A Ruby-aware git layer"
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<diffy>, [">= 0"])
+ s.add_runtime_dependency(%q<grit>, [">= 0"])
+ s.add_runtime_dependency(%q<pry>, [">= 0.9.8"])
+ else
+ s.add_dependency(%q<diffy>, [">= 0"])
+ s.add_dependency(%q<grit>, [">= 0"])
+ s.add_dependency(%q<pry>, [">= 0.9.8"])
+ end
+ else
+ s.add_dependency(%q<diffy>, [">= 0"])
+ s.add_dependency(%q<grit>, [">= 0"])
+ s.add_dependency(%q<pry>, [">= 0.9.8"])
+ end
+end

0 comments on commit 5ef6008

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