Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added gemspec to repo
  • Loading branch information
banister committed Apr 2, 2012
1 parent b2809c5 commit 5ef6008
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -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)
Expand All @@ -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"
Expand Down
35 changes: 35 additions & 0 deletions 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.