autotest 4.2.9 → 4.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/autotest.gemspec +6 -6
  3. data/lib/autotest.rb +19 -2
  4. metadata +14 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.9
1
+ 4.2.10
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{autotest}
8
- s.version = "4.2.9"
8
+ s.version = "4.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Davis"]
12
- s.date = %q{2010-02-20}
13
- s.executables = ["unit_diff", "autotest"]
12
+ s.date = %q{2010-05-11}
13
+ s.executables = ["autotest", "unit_diff"]
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
16
16
  ]
@@ -41,12 +41,12 @@ Gem::Specification.new do |s|
41
41
  s.homepage = %q{http://github.com/grosser/autotest}
42
42
  s.rdoc_options = ["--charset=UTF-8"]
43
43
  s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.5}
44
+ s.rubygems_version = %q{1.3.6}
45
45
  s.summary = %q{Autotest, without ZenTest}
46
46
  s.test_files = [
47
- "test/test_autotest.rb",
48
- "test/test_autotest_integration.rb",
47
+ "test/test_autotest_integration.rb",
49
48
  "test/helper.rb",
49
+ "test/test_autotest.rb",
50
50
  "test/test_unit_diff.rb"
51
51
  ]
52
52
 
@@ -117,8 +117,11 @@ class Autotest
117
117
  rescue LoadError
118
118
  end
119
119
 
120
- Gem.find_files("autotest/discover").each do |f|
121
- load f
120
+ with_current_path_in_load_path do
121
+ # search load paths for autotest/discover.rb and load em all
122
+ Gem.find_files("autotest/discover").each do |f|
123
+ load f
124
+ end
122
125
  end
123
126
 
124
127
  #call all discover procs an determine style
@@ -672,6 +675,20 @@ class Autotest
672
675
 
673
676
  private
674
677
 
678
+ # weird ruby 1.9 'feature': current path(path where autotest was called from) is not in $LOAD_PATH
679
+ # see http://redmine.ruby-lang.org/issues/show/1733
680
+ def self.with_current_path_in_load_path
681
+ if RUBY_VERSION > "1.9"
682
+ if not $LOAD_PATH.include?(File.expand_path('.')) and not $LOAD_PATH.include?('.')
683
+ $LOAD_PATH << '.'
684
+ current_path_was_added = true
685
+ end
686
+ end
687
+ result = yield
688
+ $LOAD_PATH.delete('.') if current_path_was_added
689
+ result
690
+ end
691
+
675
692
  #list of all available rubygem load paths
676
693
  def self.rubygem_load_paths
677
694
  begin
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.9
4
+ prerelease: false
5
+ segments:
6
+ - 4
7
+ - 2
8
+ - 10
9
+ version: 4.2.10
5
10
  platform: ruby
6
11
  authors:
7
12
  - Ryan Davis
@@ -9,15 +14,15 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-20 00:00:00 +01:00
17
+ date: 2010-05-11 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
16
21
  description:
17
22
  email:
18
23
  executables:
19
- - unit_diff
20
24
  - autotest
25
+ - unit_diff
21
26
  extensions: []
22
27
 
23
28
  extra_rdoc_files:
@@ -58,23 +63,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
63
  requirements:
59
64
  - - ">="
60
65
  - !ruby/object:Gem::Version
66
+ segments:
67
+ - 0
61
68
  version: "0"
62
- version:
63
69
  required_rubygems_version: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
73
+ segments:
74
+ - 0
67
75
  version: "0"
68
- version:
69
76
  requirements: []
70
77
 
71
78
  rubyforge_project:
72
- rubygems_version: 1.3.5
79
+ rubygems_version: 1.3.6
73
80
  signing_key:
74
81
  specification_version: 3
75
82
  summary: Autotest, without ZenTest
76
83
  test_files:
77
- - test/test_autotest.rb
78
84
  - test/test_autotest_integration.rb
79
85
  - test/helper.rb
86
+ - test/test_autotest.rb
80
87
  - test/test_unit_diff.rb