fast_spork_runner 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/bin/spork_runner +31 -0
- data/fast_spork_runner.gemspec +20 -0
- data/lib/fast_spork_runner/version.rb +3 -0
- data/lib/fast_spork_runner.rb +5 -0
- metadata +55 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/bin/spork_runner
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
##
|
4
|
+
# script/spec_server_irb
|
5
|
+
|
6
|
+
require 'drb'
|
7
|
+
require 'irb'
|
8
|
+
|
9
|
+
begin
|
10
|
+
begin
|
11
|
+
DRb.start_service("druby://localhost:0")
|
12
|
+
rescue SocketError, Errno::EADDRNOTAVAIL
|
13
|
+
DRb.start_service("druby://:0")
|
14
|
+
end
|
15
|
+
$spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989")
|
16
|
+
rescue DRb::DRbConnError
|
17
|
+
err.puts "No DRb server is running. Running in local process instead ..."
|
18
|
+
end
|
19
|
+
|
20
|
+
def rspec(file)
|
21
|
+
$spec_server.run(["--color", "--format", "s", file], STDERR, STDOUT)
|
22
|
+
end
|
23
|
+
|
24
|
+
puts <<DESC
|
25
|
+
|
26
|
+
Example:
|
27
|
+
> rspec 'spec/models/user_spec.rb'
|
28
|
+
|
29
|
+
DESC
|
30
|
+
|
31
|
+
IRB.start
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "fast_spork_runner/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "fast_spork_runner"
|
7
|
+
s.version = FastSporkRunner::VERSION
|
8
|
+
s.authors = ["Akihiro Matsumura"]
|
9
|
+
s.email = ["matsumura.aki@gmail.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Fast spork spec runner}
|
12
|
+
s.description = %q{Exec rspec more faster}
|
13
|
+
|
14
|
+
s.rubyforge_project = "fast_spork_runner"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fast_spork_runner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Akihiro Matsumura
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-01 00:00:00.000000000 +09:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
description: Exec rspec more faster
|
16
|
+
email:
|
17
|
+
- matsumura.aki@gmail.com
|
18
|
+
executables:
|
19
|
+
- spork_runner
|
20
|
+
extensions: []
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
23
|
+
- .gitignore
|
24
|
+
- Gemfile
|
25
|
+
- Rakefile
|
26
|
+
- bin/spork_runner
|
27
|
+
- fast_spork_runner.gemspec
|
28
|
+
- lib/fast_spork_runner.rb
|
29
|
+
- lib/fast_spork_runner/version.rb
|
30
|
+
has_rdoc: true
|
31
|
+
homepage: ''
|
32
|
+
licenses: []
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
requirements: []
|
50
|
+
rubyforge_project: fast_spork_runner
|
51
|
+
rubygems_version: 1.6.2
|
52
|
+
signing_key:
|
53
|
+
specification_version: 3
|
54
|
+
summary: Fast spork spec runner
|
55
|
+
test_files: []
|