tdoc 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/tdoc.rb +6 -1
- metadata +2 -2
data/bin/tdoc.rb
CHANGED
@@ -14,7 +14,11 @@ START_IRB="IRB.setup nil; IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context; requir
|
|
14
14
|
|
15
15
|
def process(files) #called at end of script
|
16
16
|
if files.class==Array
|
17
|
-
files.each {|f|
|
17
|
+
files.each {|f|
|
18
|
+
puts "\n\n--------------------\n#{f}:\n\n"
|
19
|
+
result=system("#{$PROGRAM_NAME} #{f} #{ARGV}")
|
20
|
+
puts "\n\nERRORS IN TEST #{f}!!!\n\n" unless result
|
21
|
+
}
|
18
22
|
else
|
19
23
|
test_name=File.basename(files).sub(/\..*?$/,'')
|
20
24
|
test_case=Class.new(Test::Unit::TestCase)
|
@@ -59,6 +63,7 @@ def mk_test_context(file, test_case=nil)
|
|
59
63
|
}.compact.join ";\n"
|
60
64
|
[lines[0], test_text]
|
61
65
|
end
|
66
|
+
tests=[['work',"assert(true);"]] if tests.empty? #avoids "no tests specified" error
|
62
67
|
context_proc=lambda {
|
63
68
|
context test_name do
|
64
69
|
setup do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Herb Daily
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-11 00:00:00 -03:00
|
13
13
|
default_executable: tdoc.rb
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|