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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f444a2dd0b3b1a97f966b035e42e2ead3e020dfb
4
- data.tar.gz: 71c106773ece5d68fe0aff957b2ed297c32ad7fb
3
+ metadata.gz: fd4e15f26bb069d9511493b6aaa65d75df14ceb8
4
+ data.tar.gz: f11c299209c97f4d9d22671290fc61b7c1f7ca29
5
5
  SHA512:
6
- metadata.gz: f3c09adcbbb268dff3c9f06e5eaf7ac66e9c58ca1b7742de93c659843f1c765c286d68ea7d349c552f52411d57439d0c5baf3f5ff49793a4da652829d1c40ef8
7
- data.tar.gz: a8ba725a9fe4066c4c7f15bcff00710d81d87ad0706ab19f0f97c9be7d126f462dfbce90fb3b23a543f0a2ac2aa1a93d671353efee3dcb1b8d1d11c179c370aa
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
@@ -28,7 +28,7 @@ module Himekaminize
28
28
 
29
29
  private
30
30
  def split_name_and_status(line)
31
- /\A(\s)*(#{INCOMPLETE_PATTERN}|#{COMPLETE_PATTERN})(.*)/.match(line) do |m|
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
@@ -1,3 +1,3 @@
1
1
  module Himekaminize
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: himekaminize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - otukutun