himekaminize 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/himekaminize/filterable.rb +12 -0
- data/lib/himekaminize/task.rb +1 -1
- data/lib/himekaminize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd4e15f26bb069d9511493b6aaa65d75df14ceb8
|
4
|
+
data.tar.gz: f11c299209c97f4d9d22671290fc61b7c1f7ca29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 270d84d7278efdb352270b075f9dc730ce616af5058d7d8517181804b7587ee73b8062e47c283f792cd868db9d9683e72ce5b837eaa62d3cc7ee7459ef92fc3f
|
7
|
+
data.tar.gz: e3857780ff86671c8a97a77cbf600a4ffe57e5d4866ed2b19d3911a6600af270f80ea82829632932e2485a29972a76cdf2b589fcd964d02b48dad3293d334f16
|
@@ -17,6 +17,7 @@ module Himekaminize
|
|
17
17
|
filter.call(output)
|
18
18
|
end
|
19
19
|
|
20
|
+
to_s
|
20
21
|
@result
|
21
22
|
end
|
22
23
|
|
@@ -50,6 +51,17 @@ module Himekaminize
|
|
50
51
|
@lines = markdown.lines
|
51
52
|
end
|
52
53
|
|
54
|
+
def to_s
|
55
|
+
seq = 0
|
56
|
+
@result[:markdown] = @result[:output].map { |line|
|
57
|
+
if line.is_a?(String)
|
58
|
+
line
|
59
|
+
else
|
60
|
+
line.to_s + "\n\r"
|
61
|
+
end
|
62
|
+
}.join('')
|
63
|
+
end
|
64
|
+
|
53
65
|
module ClassMethods
|
54
66
|
def filter_classes
|
55
67
|
raise ::NotImplementedError
|
data/lib/himekaminize/task.rb
CHANGED
@@ -28,7 +28,7 @@ module Himekaminize
|
|
28
28
|
|
29
29
|
private
|
30
30
|
def split_name_and_status(line)
|
31
|
-
/\A(\s)
|
31
|
+
/\A(\s*)(#{INCOMPLETE_PATTERN}|#{COMPLETE_PATTERN})(.*)/.match(line) do |m|
|
32
32
|
if m[2] =~ /#{INCOMPLETE_PATTERN}/
|
33
33
|
return [INCOMPLETE_STATUSE, m[3], m[1]]
|
34
34
|
else
|
data/lib/himekaminize/version.rb
CHANGED