etest 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/gem.yml +1 -1
  2. data/lib/module_ext.rb +9 -2
  3. data/vex/gem.rb +0 -1
  4. metadata +4 -4
data/gem.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: "0.6.1"
1
+ version: "0.6.2"
2
2
  description: Embedded testing
3
3
  summary: Embedded testing
4
4
  # url: http://github.com/pboy/etest
data/lib/module_ext.rb CHANGED
@@ -12,9 +12,16 @@ end
12
12
  class Module
13
13
  #
14
14
  # reloads the module, and runs the module's etests.
15
- def etest
15
+ def etest(test = nil)
16
16
  reload if respond_to?(:reload)
17
- ::Etest.run self.const_get("Etest")
17
+
18
+ begin
19
+ old_argv = ARGV
20
+ ARGV = [ "-n", test.to_s ] if test # hack!
21
+ ::Etest.run self.const_get("Etest")
22
+ ensure
23
+ ARGV = old_argv
24
+ end
18
25
  end
19
26
 
20
27
  #
data/vex/gem.rb CHANGED
@@ -36,7 +36,6 @@ module Gem
36
36
 
37
37
  if attr == "dependencies"
38
38
  v.each do |dependency|
39
- STDERR.puts "add_dependency #{dependency.inspect}"
40
39
  s.add_dependency dependency
41
40
  end
42
41
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - pboy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-19 00:00:00 Z
18
+ date: 2011-11-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: dlog