testrbl 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  rvm:
2
2
  - ree
3
- - 1.9.2
4
3
  - 1.9.3
4
+ - 2.0.0
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
4
  gem 'test-unit'
5
- gem 'minitest'
5
+ gem 'minitest', '~> 5'
6
6
  gem 'activesupport', '2.3.14'
7
7
  gem 'rake'
8
8
  gem 'rspec', '~>2'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testrbl (0.3.0)
4
+ testrbl (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,7 +32,7 @@ PLATFORMS
32
32
  DEPENDENCIES
33
33
  activesupport (= 2.3.14)
34
34
  bump
35
- minitest
35
+ minitest (~> 5)
36
36
  rake
37
37
  rspec (~> 2)
38
38
  shoulda
@@ -1,3 +1,3 @@
1
1
  module Testrbl
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
data/lib/testrbl.rb CHANGED
@@ -20,7 +20,9 @@ module Testrbl
20
20
  line = $2
21
21
  run(ruby + load_options + [file, "-n", "/#{pattern_from_file(File.readlines(file), line)}/"] + options)
22
22
  else
23
- if files.all? { |f| File.file?(f) } and options.none? { |arg| arg =~ /^-n/ }
23
+ if files.size == 1 and File.file?(files.first)
24
+ run(ruby + load_options + files + options)
25
+ elsif files.all? { |f| File.file?(f) } and options.none? { |arg| arg =~ /^-n/ }
24
26
  run(ruby + load_options + files.map { |f| "-r#{f}" } + options + ["-e", ""])
25
27
  else # pass though
26
28
  # no bundle exec: projects with mini and unit-test do not run well via bundle exec testrb
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.3.0
4
+ version: 0.3.1
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: 2013-06-07 00:00:00.000000000 Z
12
+ date: 2013-06-23 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: -4240182073636530469
47
+ hash: 1847987881023274849
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: -4240182073636530469
56
+ hash: 1847987881023274849
57
57
  requirements: []
58
58
  rubyforge_project:
59
59
  rubygems_version: 1.8.25