polyamory 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/polyamory +1 -1
  2. data/lib/polyamory.rb +2 -2
  3. metadata +4 -5
@@ -3,7 +3,7 @@ if ARGV.delete '-t'
3
3
  test_files = ARGV.map { |arg|
4
4
  unless arg.index('-') == 0
5
5
  if File.directory? arg
6
- Dir["#{arg}/**/*_test.rb"]
6
+ Dir["#{arg}/**/*_test.rb", "#{arg}/**/test_*.rb"]
7
7
  else
8
8
  arg
9
9
  end
@@ -28,7 +28,7 @@ class Polyamory
28
28
  end
29
29
 
30
30
  def test_glob(dir = test_dir)
31
- "#{dir}/**/*_test.rb"
31
+ ["#{dir}/**/*_test.rb", "#{dir}/**/test_*.rb"]
32
32
  end
33
33
 
34
34
  def spec_dir
@@ -83,7 +83,7 @@ class Polyamory
83
83
  end
84
84
 
85
85
  def find_files
86
- all_paths = Pathname.glob([test_glob, spec_glob, features_glob], @root)
86
+ all_paths = Pathname.glob([test_glob, spec_glob, features_glob].flatten, @root)
87
87
 
88
88
  if @names.any?
89
89
  @names.map { |name|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyamory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2011-04-25 00:00:00.000000000Z
12
+ date: 2011-10-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A tool that knows how to run your tests regardless of framework
15
15
  email: mislav.marohnic@gmail.com
@@ -21,7 +21,7 @@ files:
21
21
  - bin/polyamory
22
22
  - lib/polyamory.rb
23
23
  - README.md
24
- homepage: http://github.com/mislav/polyamory
24
+ homepage: https://github.com/mislav/polyamory
25
25
  licenses: []
26
26
  post_install_message:
27
27
  rdoc_options: []
@@ -41,9 +41,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 1.7.2
44
+ rubygems_version: 1.8.10
45
45
  signing_key:
46
46
  specification_version: 3
47
47
  summary: Runs your tests
48
48
  test_files: []
49
- has_rdoc: false