dnote 1.7.1 → 1.8.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.
- checksums.yaml +7 -0
- data/HISTORY.rdoc +29 -0
- data/README.rdoc +81 -25
- data/lib/dnote/core_ext.rb +54 -75
- data/lib/dnote/format.rb +15 -7
- data/lib/dnote/notes.rb +60 -14
- data/lib/dnote/rake/dnotetask.rb +69 -50
- data/lib/dnote/session.rb +11 -2
- data/lib/dnote/templates/html/file.erb +1 -1
- data/lib/dnote/templates/html/label.erb +1 -1
- data/lib/dnote/templates/html/list.erb +2 -2
- data/lib/dnote/templates/html.erb +1 -1
- data/lib/dnote/templates/xml/file.erb +1 -1
- data/lib/dnote/templates/xoxo/file.erb +3 -1
- data/lib/dnote/templates/xoxo/label.erb +3 -1
- data/lib/dnote/templates/xoxo.erb +3 -1
- data/lib/dnote/version.rb +2 -14
- metadata +68 -68
- data/.ruby +0 -55
- data/.yardopts +0 -5
- data/lib/dnote.yml +0 -55
- data/test/notes_case.rb +0 -64
- data/try/sample.bas +0 -7
- data/try/sample.js +0 -11
- data/try/sample.rb +0 -11
data/test/notes_case.rb
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
require 'lemon'
|
|
2
|
-
require 'ae'
|
|
3
|
-
require 'dnote/notes'
|
|
4
|
-
|
|
5
|
-
testcase DNote::Notes do
|
|
6
|
-
|
|
7
|
-
concern "Coverage of DNote::Notes class."
|
|
8
|
-
|
|
9
|
-
method :labels do
|
|
10
|
-
test 'returns the list of labels' do
|
|
11
|
-
notes = DNote::Notes.new([], :labels=>['TODO'])
|
|
12
|
-
notes.labels.assert == ['TODO'] #DNote::Notes::DEFAULT_LABELS
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
method :files do
|
|
17
|
-
test 'returns the files attribute' do
|
|
18
|
-
notes = DNote::Notes.new(["example1.rb"])
|
|
19
|
-
notes.assert.files == ["example1.rb"]
|
|
20
|
-
notes = DNote::Notes.new([], :paths => ["example2.rb"])
|
|
21
|
-
notes.assert.files == ["example2.rb"]
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
method :files do
|
|
26
|
-
test 'changes the paths attribute' do
|
|
27
|
-
notes = DNote::Notes.new([])
|
|
28
|
-
notes.files = ["example1.rb"]
|
|
29
|
-
notes.assert.files == ["example1.rb"]
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
method :match_general do
|
|
34
|
-
test 'works' do
|
|
35
|
-
notes = DNote::Notes.new([])
|
|
36
|
-
line, lineno, file = "# TODO: Do something or another!", 1, "foo.rb"
|
|
37
|
-
rec = notes.match_general(line, lineno, file)
|
|
38
|
-
rec.to_h.assert == {'label'=>"TODO",'file'=>file,'line'=>lineno,'text'=>"Do something or another!"}
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
method :match_special do
|
|
43
|
-
test 'works' do
|
|
44
|
-
notes = DNote::Notes.new([], :labels=>['TODO'])
|
|
45
|
-
line, lineno, file = "# TODO: Do something or another!", 1, "foo.rb"
|
|
46
|
-
rec = notes.match_special(line, lineno, file)
|
|
47
|
-
rec.to_h.assert == {'label'=>"TODO",'file'=>file,'line'=>lineno,'text'=>"Do something or another!"}
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
method :counts do
|
|
52
|
-
test{ raise NotImplementedError }
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
method :notes do
|
|
56
|
-
test{ raise NotImplementedError }
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
method :parse do
|
|
60
|
-
test{ raise NotImplementedError }
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
end
|
|
64
|
-
|
data/try/sample.bas
DELETED
data/try/sample.js
DELETED