testrbl 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/testrbl/version.rb +1 -1
- data/lib/testrbl.rb +8 -4
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/testrbl/version.rb
CHANGED
data/lib/testrbl.rb
CHANGED
@@ -20,9 +20,9 @@ module Testrbl
|
|
20
20
|
i_test, file, line = detect_usable(argv)
|
21
21
|
if file and line
|
22
22
|
file = "./#{file}" if file =~ /^[a-z]/ # fix 1.9 not being able to load local files
|
23
|
-
run "#{
|
23
|
+
run "#{ruby} #{i_test}#{file} -n '/#{pattern_from_file(File.readlines(file), line)}/'"
|
24
24
|
elsif file
|
25
|
-
run "#{
|
25
|
+
run "#{ruby} #{i_test}#{file}"
|
26
26
|
else # pass though
|
27
27
|
# no bundle exec: projects with mini and unit-test do not run well via bundle exec testrb
|
28
28
|
run "testrb #{argv.map{|a| a.include?(' ') ? "'#{a}'" : a }.join(' ')}"
|
@@ -68,8 +68,12 @@ module Testrbl
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
def self.
|
72
|
-
|
71
|
+
def self.ruby
|
72
|
+
if File.file?("Gemfile")
|
73
|
+
"ruby -rbundler/setup" # faster then bundle exec ruby
|
74
|
+
else
|
75
|
+
"ruby"
|
76
|
+
end
|
73
77
|
end
|
74
78
|
|
75
79
|
def self.run(command)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrbl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: michael@grosser.it
|
@@ -44,7 +44,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
segments:
|
46
46
|
- 0
|
47
|
-
hash:
|
47
|
+
hash: 3074574819033279983
|
48
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
segments:
|
55
55
|
- 0
|
56
|
-
hash:
|
56
|
+
hash: 3074574819033279983
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
59
|
rubygems_version: 1.8.24
|