testrbl 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testrbl (0.1.14)
4
+ testrbl (0.1.15)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Testrbl
2
- VERSION = '0.1.14'
2
+ VERSION = '0.1.15'
3
3
  end
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 "#{bundle_exec}ruby #{i_test}#{file} -n '/#{pattern_from_file(File.readlines(file), line)}/'"
23
+ run "#{ruby} #{i_test}#{file} -n '/#{pattern_from_file(File.readlines(file), line)}/'"
24
24
  elsif file
25
- run "#{bundle_exec}ruby #{i_test}#{file}"
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.bundle_exec
72
- "bundle exec " if File.file?("Gemfile")
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.14
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-09-24 00:00:00.000000000 Z
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: -4319690681910845518
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: -4319690681910845518
56
+ hash: 3074574819033279983
57
57
  requirements: []
58
58
  rubyforge_project:
59
59
  rubygems_version: 1.8.24