etest 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gem.yml +1 -1
  2. data/lib/module_ext.rb +4 -3
  3. metadata +3 -3
data/gem.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: "0.6.2"
1
+ version: "0.6.3"
2
2
  description: Embedded testing
3
3
  summary: Embedded testing
4
4
  # url: http://github.com/pboy/etest
@@ -16,11 +16,12 @@ class Module
16
16
  reload if respond_to?(:reload)
17
17
 
18
18
  begin
19
- old_argv = ARGV
20
- ARGV = [ "-n", test.to_s ] if test # hack!
19
+ old_argv = Object.const_get "ARGV"
20
+
21
+ Object.const_set "ARGV", [ "-n", test.to_s ] if test # hack!
21
22
  ::Etest.run self.const_get("Etest")
22
23
  ensure
23
- ARGV = old_argv
24
+ Object.const_set "ARGV", old_argv
24
25
  end
25
26
  end
26
27
 
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - pboy