Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.4.0 -- switch to manual gemspec

  • Loading branch information...
commit b5a272da6a9d9f81df533ebac8a5e571bddab3e8 1 parent 8844ce2
@mislav mislav authored
Showing with 13 additions and 77 deletions.
  1. +1 −52 Rakefile
  2. +0 −1  VERSION
  3. +12 −24 rspactor.gemspec
View
53 Rakefile
@@ -2,56 +2,5 @@ task :default => :spec
desc "starts RSpactor"
task :spec do
- system "ruby -Ilib bin/rspactor"
-end
-
-desc "generates .gemspec file"
-task :gemspec => "version:read" do
- spec = Gem::Specification.new do |gem|
- gem.name = "rspactor"
- gem.summary = "RSpactor is a command line tool to automatically run your changed specs (much like autotest)."
- gem.email = "mislav.marohnic@gmail.com"
- gem.homepage = "http://github.com/mislav/rspactor"
- gem.authors = ["Mislav Marohnić", "Andreas Wolff", "Pelle Braendgaard"]
- gem.has_rdoc = false
-
- gem.version = GEM_VERSION
- gem.files = FileList['Rakefile', '{bin,lib,images,spec}/**/*', 'README*', 'LICENSE*']
- gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
- 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
-
-task :bump => ["version:bump", :gemspec]
-
-namespace :version do
- task :read do
- unless defined? GEM_VERSION
- GEM_VERSION = File.read("VERSION")
- end
- end
-
- task :bump => :read do
- if ENV['VERSION']
- GEM_VERSION.replace ENV['VERSION']
- else
- GEM_VERSION.sub!(/\d+$/) { |num| num.to_i + 1 }
- end
-
- File.open("VERSION", 'w') { |v| v.write GEM_VERSION }
- end
-end
-
-task :release => :bump do
- system %(git commit VERSION *.gemspec -m "release v#{GEM_VERSION}")
- system %(git tag -am "release v#{GEM_VERSION}" v#{GEM_VERSION})
+ system "/usr/bin/ruby -Ilib bin/rspactor"
end
View
1  VERSION
@@ -1 +0,0 @@
-0.3.3
View
36 rspactor.gemspec
@@ -1,27 +1,15 @@
# -*- encoding: utf-8 -*-
-Gem::Specification.new do |s|
- s.name = %q{rspactor}
- s.version = "0.3.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Mislav Marohni\304\207", "Andreas Wolff", "Pelle Braendgaard"]
- s.date = %q{2009-04-23}
- s.email = %q{mislav.marohnic@gmail.com}
- s.executables = ["rspactor", "rspactor-system"]
- s.files = ["Rakefile", "bin/rspactor", "bin/rspactor-system", "lib/rspactor", "lib/rspactor/growl.rb", "lib/rspactor/inspector.rb", "lib/rspactor/interactor.rb", "lib/rspactor/listener.rb", "lib/rspactor/runner.rb", "lib/rspactor.rb", "lib/rspec_growler.rb", "images/failed.png", "images/pending.png", "images/success.png", "spec/inspector_spec.rb", "spec/listener_spec.rb", "spec/runner_spec.rb", "LICENSE"]
- s.homepage = %q{http://github.com/mislav/rspactor}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.2}
- s.summary = %q{RSpactor is a command line tool to automatically run your changed specs (much like autotest).}
-
- 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
- else
- end
- else
- end
+Gem::Specification.new do |gem|
+ gem.name = "rspactor"
+ gem.version = "0.4.0"
+
+ gem.summary = "File watcher that automatically runs changed specs"
+ gem.description = "RSpactor is a command line tool to automatically run your changed specs (much like autotest)."
+ gem.homepage = "http://github.com/mislav/rspactor"
+ gem.email = "mislav.marohnic@gmail.com"
+ gem.authors = ["Mislav Marohnić", "Andreas Wolff", "Pelle Braendgaard"]
+
+ gem.files = Dir['Rakefile', '{bin,lib,images,spec}/**/*', 'README*', 'LICENSE*']
+ gem.has_rdoc = false
end
Please sign in to comment.
Something went wrong with that request. Please try again.