Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bunderlify and bump to 0.7.0.alpha

  • Loading branch information...
commit 51d055dba18fd5ae3f0b42461d8a688a116f83fd 1 parent 23a5ee0
Michael Grosser grosser authored
6 Gemfile
View
@@ -1,11 +1,9 @@
source :rubygems
+gemspec
-gem 'parallel'
-
-group :dev do
+group :development do
gem 'test-unit', :platform => :ruby_19
gem 'rspec', '>=2.4'
gem 'cucumber'
gem 'rake'
- gem 'jeweler'
end
14 Gemfile.lock
View
@@ -1,3 +1,9 @@
+PATH
+ remote: .
+ specs:
+ parallel_tests (0.7.0.alpha)
+ parallel
+
GEM
remote: http://rubygems.org/
specs:
@@ -11,11 +17,6 @@ GEM
diff-lcs (1.1.2)
gherkin (2.7.6)
json (>= 1.4.6)
- git (1.2.5)
- jeweler (1.6.3)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
json (1.6.4)
parallel (0.5.1)
rake (0.8.7)
@@ -35,8 +36,7 @@ PLATFORMS
DEPENDENCIES
cucumber
- jeweler
- parallel
+ parallel_tests!
rake
rspec (>= 2.4)
test-unit
34 Rakefile
View
@@ -1,20 +1,22 @@
-task :default => :spec
-require "rspec/core/rake_task"
-RSpec::Core::RakeTask.new(:spec) do |t|
- t.rspec_opts = '--backtrace --color'
+require 'bundler/gem_tasks'
+
+task :default do
+ sh "rspec spec/"
end
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "parallel_tests"
- gem.summary = "Run tests / specs / features in parallel"
- gem.email = "grosser.michael@gmail.com"
- gem.homepage = "http://github.com/grosser/#{gem.name}"
- gem.authors = "Michael Grosser"
- end
+# extracted from https://github.com/grosser/project_template
+rule /^version:bump:.*/ do |t|
+ sh "git status | grep 'nothing to commit'" # ensure we are not dirty
+ index = ['major', 'minor','patch'].index(t.name.split(':').last)
+ file = 'lib/GEM_NAME/version.rb'
+
+ version_file = File.read(file)
+ old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
+ version_parts[index] = version_parts[index].to_i + 1
+ version_parts[2] = 0 if index < 2 # remove patch for minor
+ version_parts[1] = 0 if index < 1 # remove minor for major
+ new_version = version_parts * '.'
+ File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
+ sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
end
1  VERSION
View
@@ -1 +0,0 @@
-0.6.20
3  lib/parallel_tests.rb
View
@@ -1,9 +1,8 @@
require 'parallel'
+require 'parallel_tests/version'
require 'parallel_tests/grouper'
module ParallelTests
- VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
-
def self.determine_number_of_processes(count)
[
count,
3  lib/parallel_tests/version.rb
View
@@ -0,0 +1,3 @@
+module ParallelTests
+ VERSION = Version = '0.7.0.alpha'
+end
71 parallel_tests.gemspec
View
@@ -1,65 +1,14 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+name = "parallel_tests"
+require "#{name}/version"
-Gem::Specification.new do |s|
- s.name = "parallel_tests"
- s.version = "0.6.20"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+Gem::Specification.new name, ParallelTests::VERSION do |s|
+ s.summary = "Run tests / specs / features in parallel"
s.authors = ["Michael Grosser"]
- s.date = "2012-02-24"
- s.email = "grosser.michael@gmail.com"
+ s.email = "michael@grosser.it"
+ s.homepage = "http://github.com/grosser/#{name}"
+ s.files = `git ls-files`.split("\n")
+ s.license = "MIT"
s.executables = ["parallel_cucumber", "parallel_spec", "parallel_test"]
- s.files = [
- "Gemfile",
- "Gemfile.lock",
- "Rakefile",
- "Readme.md",
- "VERSION",
- "bin/parallel_cucumber",
- "bin/parallel_spec",
- "bin/parallel_test",
- "lib/parallel_cucumber.rb",
- "lib/parallel_cucumber/runtime_logger.rb",
- "lib/parallel_specs.rb",
- "lib/parallel_specs/failures_logger.rb",
- "lib/parallel_specs/logger_base.rb",
- "lib/parallel_specs/runtime_logger.rb",
- "lib/parallel_specs/summary_logger.rb",
- "lib/parallel_tests.rb",
- "lib/parallel_tests/grouper.rb",
- "lib/parallel_tests/railtie.rb",
- "lib/parallel_tests/runtime_logger.rb",
- "lib/parallel_tests/tasks.rb",
- "lib/tasks/parallel_tests.rake",
- "parallel_tests.gemspec",
- "spec/integration_spec.rb",
- "spec/runner_spec.rb",
- "spec/parallel_specs/failure_logger_spec.rb",
- "spec/parallel_specs/runtime_logger_spec.rb",
- "spec/parallel_specs/summary_logger_spec.rb",
- "spec/runner_spec.rb",
- "spec/parallel_tests/runtime_logger_spec.rb",
- "spec/parallel_tests_spec.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = "http://github.com/grosser/parallel_tests"
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.15"
- s.summary = "Run tests / specs / features in parallel"
-
- 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<parallel>, [">= 0"])
- else
- s.add_dependency(%q<parallel>, [">= 0"])
- end
- else
- s.add_dependency(%q<parallel>, [">= 0"])
- end
+ s.add_runtime_dependency "parallel"
end
-
2  spec/parallel_tests_spec.rb
View
@@ -90,6 +90,6 @@ def call(count)
end
it "has a version" do
- ParallelTests::VERSION.should =~ /^\d+\.\d+\.\d+$/
+ ParallelTests::VERSION.should =~ /^\d+\.\d+\.\d+/
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.