Skip to content
This repository
Browse code

v0.4.0 -- switch to manual gemspec

  • Loading branch information...
commit b5a272da6a9d9f81df533ebac8a5e571bddab3e8 1 parent 8844ce2
Mislav Marohnić authored

Showing 3 changed files with 13 additions and 77 deletions. Show diff stats Hide diff stats

  1. +1 52 Rakefile
  2. +0 1  VERSION
  3. +12 24 rspactor.gemspec
53 Rakefile
@@ -2,56 +2,5 @@ task :default => :spec
2 2
3 3 desc "starts RSpactor"
4 4 task :spec do
5   - system "ruby -Ilib bin/rspactor"
6   -end
7   -
8   -desc "generates .gemspec file"
9   -task :gemspec => "version:read" do
10   - spec = Gem::Specification.new do |gem|
11   - gem.name = "rspactor"
12   - gem.summary = "RSpactor is a command line tool to automatically run your changed specs (much like autotest)."
13   - gem.email = "mislav.marohnic@gmail.com"
14   - gem.homepage = "http://github.com/mislav/rspactor"
15   - gem.authors = ["Mislav Marohnić", "Andreas Wolff", "Pelle Braendgaard"]
16   - gem.has_rdoc = false
17   -
18   - gem.version = GEM_VERSION
19   - gem.files = FileList['Rakefile', '{bin,lib,images,spec}/**/*', 'README*', 'LICENSE*']
20   - gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
21   - end
22   -
23   - spec_string = spec.to_ruby
24   -
25   - begin
26   - Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
27   - rescue
28   - abort "unsafe gemspec: #{$!}"
29   - else
30   - File.open("#{spec.name}.gemspec", 'w') { |file| file.write spec_string }
31   - end
32   -end
33   -
34   -task :bump => ["version:bump", :gemspec]
35   -
36   -namespace :version do
37   - task :read do
38   - unless defined? GEM_VERSION
39   - GEM_VERSION = File.read("VERSION")
40   - end
41   - end
42   -
43   - task :bump => :read do
44   - if ENV['VERSION']
45   - GEM_VERSION.replace ENV['VERSION']
46   - else
47   - GEM_VERSION.sub!(/\d+$/) { |num| num.to_i + 1 }
48   - end
49   -
50   - File.open("VERSION", 'w') { |v| v.write GEM_VERSION }
51   - end
52   -end
53   -
54   -task :release => :bump do
55   - system %(git commit VERSION *.gemspec -m "release v#{GEM_VERSION}")
56   - system %(git tag -am "release v#{GEM_VERSION}" v#{GEM_VERSION})
  5 + system "/usr/bin/ruby -Ilib bin/rspactor"
57 6 end
1  VERSION
... ... @@ -1 +0,0 @@
1   -0.3.3
36 rspactor.gemspec
... ... @@ -1,27 +1,15 @@
1 1 # -*- encoding: utf-8 -*-
2 2
3   -Gem::Specification.new do |s|
4   - s.name = %q{rspactor}
5   - s.version = "0.3.3"
6   -
7   - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8   - s.authors = ["Mislav Marohni\304\207", "Andreas Wolff", "Pelle Braendgaard"]
9   - s.date = %q{2009-04-23}
10   - s.email = %q{mislav.marohnic@gmail.com}
11   - s.executables = ["rspactor", "rspactor-system"]
12   - 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"]
13   - s.homepage = %q{http://github.com/mislav/rspactor}
14   - s.require_paths = ["lib"]
15   - s.rubygems_version = %q{1.3.2}
16   - s.summary = %q{RSpactor is a command line tool to automatically run your changed specs (much like autotest).}
17   -
18   - if s.respond_to? :specification_version then
19   - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
20   - s.specification_version = 3
21   -
22   - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
23   - else
24   - end
25   - else
26   - end
  3 +Gem::Specification.new do |gem|
  4 + gem.name = "rspactor"
  5 + gem.version = "0.4.0"
  6 +
  7 + gem.summary = "File watcher that automatically runs changed specs"
  8 + gem.description = "RSpactor is a command line tool to automatically run your changed specs (much like autotest)."
  9 + gem.homepage = "http://github.com/mislav/rspactor"
  10 + gem.email = "mislav.marohnic@gmail.com"
  11 + gem.authors = ["Mislav Marohnić", "Andreas Wolff", "Pelle Braendgaard"]
  12 +
  13 + gem.files = Dir['Rakefile', '{bin,lib,images,spec}/**/*', 'README*', 'LICENSE*']
  14 + gem.has_rdoc = false
27 15 end

0 comments on commit b5a272d

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