tdoc 0.13.4 → 0.14
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 -3
- metadata +47 -30
data/bin/tdoc.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
|
4
|
+
#INTEGRATE INTO CODE AS COMMENTS WITH POINTERS IN CODE TO TESTS
|
5
|
+
|
3
6
|
require 'rubygems'
|
4
7
|
require 'test/unit'
|
5
8
|
require 'contest'
|
6
|
-
require '
|
9
|
+
require 'pry'
|
7
10
|
|
8
11
|
$: << 'lib'
|
9
12
|
|
@@ -11,7 +14,7 @@ LINST='^[#|\s]*'
|
|
11
14
|
EXTENSIONS={:tests => '.rdoc',:requires => '.rb'}
|
12
15
|
DEFAULT_FILE=["README#{EXTENSIONS[:tests]}"]
|
13
16
|
|
14
|
-
START_IRB="IRB.setup nil; IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context; require 'irb/ext/multi-irb'; IRB.irb nil, self"
|
17
|
+
#START_IRB="IRB.setup nil; IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context; require 'irb/ext/multi-irb'; IRB.irb nil, self"
|
15
18
|
|
16
19
|
def process(files) #called at end of script
|
17
20
|
if files.class==Array
|
@@ -57,7 +60,7 @@ def mk_test_context(file, test_case=nil)
|
|
57
60
|
lines=test.split(/\n/)
|
58
61
|
test_text=lines.map {|l|
|
59
62
|
if l.match(/#{LINST}!!!/)
|
60
|
-
|
63
|
+
binding.pry
|
61
64
|
else
|
62
65
|
l.match(/#{LINST}(assert.+)/) && $1
|
63
66
|
end
|
metadata
CHANGED
@@ -1,34 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdoc
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: "0.14"
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Herb Daily
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
|
12
|
+
date: 2012-02-01 00:00:00 -03:00
|
13
|
+
default_executable: tdoc.rb
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: contest
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
19
21
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
22
|
+
- !ruby/object:Gem::Version
|
21
23
|
version: 0.1.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: pry
|
22
27
|
type: :runtime
|
23
|
-
|
24
|
-
version_requirements:
|
25
|
-
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0.9"
|
34
|
+
version:
|
35
|
+
description: "Combines Test::Unit, Shoulda, and Rdoc to embed tests inside documentation "
|
26
36
|
email: herb.daily@safe-mail.net
|
27
|
-
executables:
|
37
|
+
executables:
|
28
38
|
- tdoc.rb
|
29
39
|
extensions: []
|
40
|
+
|
30
41
|
extra_rdoc_files: []
|
31
|
-
|
42
|
+
|
43
|
+
files:
|
32
44
|
- README.rdoc
|
33
45
|
- bin/tdoc.rb
|
34
46
|
- bin/tdoc_idea.rb
|
@@ -36,28 +48,33 @@ files:
|
|
36
48
|
- rdoc/example.rdoc
|
37
49
|
- lib/rdoc/parsers/tdoc.rb
|
38
50
|
- lib/rdoc/discover
|
51
|
+
has_rdoc: true
|
39
52
|
homepage: http://github.com/herbdaily/tdoc
|
40
53
|
licenses: []
|
54
|
+
|
41
55
|
post_install_message:
|
42
56
|
rdoc_options: []
|
43
|
-
|
57
|
+
|
58
|
+
require_paths:
|
44
59
|
- lib
|
45
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
- !ruby/object:Gem::Version
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
56
70
|
version: 1.0.0
|
71
|
+
version:
|
57
72
|
requirements: []
|
73
|
+
|
58
74
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.3.5
|
60
76
|
signing_key:
|
61
77
|
specification_version: 3
|
62
78
|
summary: Test oriented documentation
|
63
79
|
test_files: []
|
80
|
+
|