render-as-markdown 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTA4MzNmZDYwZGY0ZTRhMTA5MWRjOTFhNmRkY2Q4NzA3M2YyZWY4OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWYyMTQ4OGJhNjZmNDk5ZTZhM2MxZTlhMDZkMTAyZGY5MWM2ZTkwNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTM5NDk3NmEzMDU4ODQ5MmZkZDIxMGE4ZmYxMDIwNTVmMTBmOGRiNThkYWIy
|
10
|
+
OTU0MzY4YzU4MWU0MmM5NWE1ODdmZWM0MGMyZDE4MTE4ZTBmNDcyY2JiZDkx
|
11
|
+
MTI0ZmQ3Y2IxZDAwODAzMWRkNGZiMTUwZTcyOTM1ZDRiNWExYjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTNlMWYxODY2NDQyODRkNjBmZWY5OGVmYTIxYTM5OWJmYTk0OGJjYTllNmI5
|
14
|
+
NjM4YmQyYWZmNGEwOWYxNzg5NGRjMjlhNmU2MTdhNWNhYzlkZTBhOGE0NGE2
|
15
|
+
ZWUzNzNiMTQ5NzY3YTQ4M2QxZmMxOWY1Nzc2ODlmYmE1MjM4N2I=
|
@@ -43,9 +43,9 @@ module RenderAsMarkdown
|
|
43
43
|
attr_accessor :title, :width, :rows
|
44
44
|
|
45
45
|
def initialize title
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
@rows = []
|
47
|
+
@title = title
|
48
|
+
@width = title.to_s.length
|
49
49
|
end
|
50
50
|
|
51
51
|
def render_title
|
@@ -61,8 +61,9 @@ module RenderAsMarkdown
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def add_row string
|
64
|
-
|
65
|
-
|
64
|
+
string ||= ''
|
65
|
+
@rows << string
|
66
|
+
update_width string.to_s.length
|
66
67
|
end
|
67
68
|
|
68
69
|
def update_width length
|
@@ -71,4 +72,4 @@ module RenderAsMarkdown
|
|
71
72
|
|
72
73
|
end
|
73
74
|
|
74
|
-
end
|
75
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render-as-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Metzler
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/render-as-markdown/markdown-table.rb
|
39
39
|
- lib/render-as-markdown/version.rb
|
40
40
|
- render-as-markdown-0.0.1.gem
|
41
|
+
- render-as-markdown-0.0.2.gem
|
41
42
|
- render-as-markdown.gemspec
|
42
43
|
homepage: https://github.com/rmetzler/render-as-markdown
|
43
44
|
licenses:
|