Permalink
Browse files

! fixes broken release

  • Loading branch information...
1 parent ddf881a commit ba43c241896cede38453517c985c585e70d23bc2 @kschiess committed Sep 13, 2011
Showing with 12 additions and 72 deletions.
  1. +1 −1 History.txt
  2. +4 −45 Rakefile
  3. +7 −26 ndo.gemspec
View
@@ -1,5 +1,5 @@
-= 0.2.2 /
+= 0.2.3 / 13Sep2011
* Some sort of proper error handling.
View
@@ -6,56 +6,15 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :default => :spec
-# This builds the actual gem. For details of what all these options
-# mean, and other ones you can add, check the documentation here:
-#
-# http://rubygems.org/read/chapter/20
-#
-spec = Gem::Specification.new do |s|
+# This task actually builds the gem.
+task :gem => :spec
+spec = eval(File.read('ndo.gemspec'))
- # Change these as appropriate
- s.name = "ndo"
- s.version = "0.2.2"
- s.summary = "Execute commands on multiple hosts at once."
- s.author = "Kaspar Schiess"
- s.email = "kaspar.schiess@absurd.li"
- s.homepage = "http://blog.absurd.li"
-
- s.has_rdoc = true
- s.extra_rdoc_files = %w(README)
- s.rdoc_options = %w(--main README)
-
- # Add any extra files to include in the gem
- s.files = %w(Gemfile Gemfile.lock LICENSE README) + Dir.glob("{bin,spec,lib/**/*}")
- s.executables = FileList["bin/**"].map { |f| File.basename(f) }
- s.require_paths = ["lib"]
-
- s.add_dependency 'procrastinate', '~> 0.3'
- s.add_dependency 'text-highlight', '~> 1.0'
-
- s.add_development_dependency("rspec")
- s.add_development_dependency("flexmock")
-end
-
-# This task actually builds the gem. We also regenerate a static
-# .gemspec file, which is useful if something (i.e. GitHub) will
-# be automatically building a gem for this project. If you're not
-# using GitHub, edit as appropriate.
-#
-# To publish your gem online, install the 'gemcutter' gem; Read more
-# about that here: http://gemcutter.org/pages/gem_docs
+desc "Generate the gem package."
Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
-desc "Build the gemspec file #{spec.name}.gemspec"
-task :gemspec do
- file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
- File.open(file, "w") {|f| f << spec.to_ruby }
-end
-
-task :package => :gemspec
-
# Generate documentation
RDoc::Task.new do |rd|
rd.main = "README"
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{ndo}
- s.version = "0.2.2"
+ s.version = "0.2.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kaspar Schiess"]
@@ -11,35 +11,16 @@ Gem::Specification.new do |s|
s.email = %q{kaspar.schiess@absurd.li}
s.executables = ["ndo"]
s.extra_rdoc_files = ["README"]
- s.files = ["Gemfile", "Gemfile.lock", "LICENSE", "README", "bin", "spec", "lib/ndo", "lib/ndo/host.rb", "lib/ndo/multi_command.rb", "lib/ndo/results.rb", "lib/ndo.rb", "bin/ndo"]
+ s.files = %w(Gemfile HISTORY.txt LICENSE Rakefile README) + Dir.glob("{lib,examples,bin}/**/*")
s.homepage = %q{http://blog.absurd.li}
s.rdoc_options = ["--main", "README"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Execute commands on multiple hosts at once.}
- 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<open4>, [">= 0.9"])
- s.add_runtime_dependency(%q<procrastinate>, ["~> 0.3"])
- s.add_runtime_dependency(%q<text-highlight>, ["~> 1.0"])
- s.add_development_dependency(%q<rspec>, [">= 0"])
- s.add_development_dependency(%q<flexmock>, [">= 0"])
- else
- s.add_dependency(%q<open4>, [">= 0.9"])
- s.add_dependency(%q<procrastinate>, ["~> 0.3"])
- s.add_dependency(%q<text-highlight>, ["~> 1.0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<flexmock>, [">= 0"])
- end
- else
- s.add_dependency(%q<open4>, [">= 0.9"])
- s.add_dependency(%q<procrastinate>, ["~> 0.3"])
- s.add_dependency(%q<text-highlight>, ["~> 1.0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<flexmock>, [">= 0"])
- end
+ s.add_dependency(%q<procrastinate>, ["~> 0.3"])
+ s.add_dependency(%q<text-highlight>, ["~> 1.0"])
+
+ s.add_development_dependency(%q<rspec>, [">= 0"])
+ s.add_development_dependency(%q<flexmock>, [">= 0"])
end

0 comments on commit ba43c24

Please sign in to comment.