autotest 4.2.10 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,34 @@
1
+ === 4.3.2 / 2010-06-02
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Removed support for rbx builds.
6
+
7
+ * 2 bug fixes:
8
+
9
+ * Removed 'preview' from version filter so I can test with 1.9.2
10
+ * Put PATH tweaks at front of PATH
11
+
12
+ === 4.3.1 / 2010-03-30
13
+
14
+ * 1 bug fix:
15
+
16
+ * Fixed autotest output on 1.8. That's what I get for not having
17
+ tests for dots.
18
+
19
+ === 4.3.0 / 2010-03-27
20
+
21
+ * 1 minor enhancement:
22
+
23
+ * Added gemcutter rubyforge and hoe to the_usual setup
24
+
25
+ * 4 bug fixes:
26
+
27
+ * 1.9 compat: don't use putc anymore. (fistfvck (hah!))
28
+ * Added note that included articles are out of date
29
+ * Fixed rcov plugin so multiple all_good hooks can coexist
30
+ * Fixed typo in doco
31
+
1
32
  === 4.2.1 / 2009-12-09
2
33
 
3
34
  * 1 minor enhancement:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.10
1
+ 4.3.2
@@ -9,6 +9,7 @@ Testing</title>
9
9
  </head>
10
10
  <body>
11
11
  <div class="content">
12
+ <h1>NOTE: This article was written in 2007. It is out of date.</h1>
12
13
  <h1 style="text-align: center;">Getting started with Autotest -
13
14
  Continuous Testing</h1>
14
15
  <div id="abstract" class="Abstract">
data/autotest.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{autotest}
8
- s.version = "4.2.10"
8
+ s.version = "4.3.2"
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-05-11}
12
+ s.date = %q{2010-06-06}
13
13
  s.executables = ["autotest", "unit_diff"]
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
data/lib/autotest.rb CHANGED
@@ -59,7 +59,9 @@ $TESTING = false unless defined? $TESTING
59
59
  class Autotest
60
60
 
61
61
  VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
62
-
62
+
63
+ RUBY19 = defined? Encoding
64
+
63
65
  T0 = Time.at 0
64
66
 
65
67
  ALL_HOOKS = [ :all_good, :died, :green, :initialize, :interrupt, :quit,
@@ -273,7 +275,7 @@ class Autotest
273
275
  print (c.is_a?(Fixnum) ? c.chr : c)
274
276
  line << c
275
277
  if c == ?\n then
276
- self.results << if RUBY_VERSION >= "1.9" then
278
+ self.results << if RUBY19 then
277
279
  line.join
278
280
  else
279
281
  line.pack "c*"
@@ -329,6 +331,7 @@ class Autotest
329
331
  f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
330
332
  f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
331
333
  f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}" }
334
+
332
335
  f.join('::')
333
336
  end
334
337
 
@@ -602,6 +605,7 @@ class Autotest
602
605
 
603
606
  def add_exception regexp
604
607
  raise "exceptions already compiled" if defined? @exceptions
608
+
605
609
  @exception_list << regexp
606
610
  nil
607
611
  end
data/lib/autotest/rcov.rb CHANGED
@@ -11,6 +11,7 @@ module Autotest::RCov
11
11
 
12
12
  Autotest.add_hook :all_good do |at|
13
13
  system "rake #{@@command} PATTERN=#{@@pattern}"
14
+ false
14
15
  end
15
16
 
16
17
  Autotest.add_hook :initialize do |at|
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 4
7
+ - 3
7
8
  - 2
8
- - 10
9
- version: 4.2.10
9
+ version: 4.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Davis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-11 00:00:00 +02:00
17
+ date: 2010-06-06 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20