Skip to content
Browse files

release v0.3.0 with nicer gemspec

  • Loading branch information...
1 parent 192edfe commit 89a25c6b9b142a5be228add734905a4487ae9c79 @mislav committed Nov 25, 2009
Showing with 18 additions and 63 deletions.
  1. +0 −34 Rakefile
  2. +18 −29 git-deploy.gemspec
View
34 Rakefile
@@ -1,34 +0,0 @@
-desc "generates .gemspec file"
-task :gemspec do
- spec = Gem::Specification.new do |p|
- p.name = 'git-deploy'
- p.version = '0.2.0'
-
- p.summary = "Simple git push-based application deployment"
- p.description = "git-deploy is a tool to install useful git hooks on your remote repository to enable git push-based, Heroku-like deployment on your host."
-
- p.author = 'Mislav Marohnić'
- p.email = 'mislav.marohnic@gmail.com'
- p.homepage = 'http://github.com/mislav/git-deploy'
-
- p.add_dependency 'capistrano', '~> 2.5.9'
-
- p.files = FileList.new('Rakefile', '{bin,lib,sample,test,spec,rails}/**/*', 'README*', 'LICENSE*', 'CHANGELOG*')
- p.files &= `git ls-files -z`.split("\0")
-
- p.executables = Dir['bin/*'].map { |f| File.basename(f) }
-
- p.rubyforge_project = nil
- p.has_rdoc = false
- end
-
- spec_string = spec.to_ruby
-
- begin
- Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
- rescue
- abort "unsafe gemspec: #{$!}"
- else
- File.open("#{spec.name}.gemspec", 'w') { |file| file.write spec_string }
- end
-end
View
47 git-deploy.gemspec
@@ -1,30 +1,19 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{git-deploy}
- s.version = "0.2.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Mislav Marohni\304\207"]
- s.date = %q{2009-10-04}
- s.description = %q{git-deploy is a tool to install useful git hooks on your remote repository to enable git push-based, Heroku-like deployment on your host.}
- s.email = %q{mislav.marohnic@gmail.com}
- s.files = ["Rakefile", "lib/git_deploy.rb", "lib/hooks/post-receive.rb", "lib/hooks/post-reset.rb", "README.markdown"]
- s.homepage = %q{http://github.com/mislav/git-deploy}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{Simple git push-based application deployment}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<capistrano>, ["~> 2.5.9"])
- else
- s.add_dependency(%q<capistrano>, ["~> 2.5.9"])
- end
- else
- s.add_dependency(%q<capistrano>, ["~> 2.5.9"])
- end
+Gem::Specification.new do |gem|
+ gem.name = 'git-deploy'
+ gem.version = '0.3.0'
+ gem.date = Date.today.to_s
+
+ gem.add_dependency 'capistrano', '~> 2.5.9'
+
+ gem.summary = "Simple git push-based application deployment"
+ gem.description = "A tool to install useful git hooks on your remote repository to enable push-based, Heroku-like deployment on your host."
+
+ gem.authors = ['Mislav Marohnić']
+ gem.email = 'mislav.marohnic@gmail.com'
+ gem.homepage = 'http://github.com/mislav/git-deploy'
+
+ gem.rubyforge_project = nil
+ gem.has_rdoc = false
+
+ gem.files = Dir['Rakefile', '{bin,lib,rails,test,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files`.split("\n")
end

0 comments on commit 89a25c6

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