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
- NjQxMzFmMzFhNzM4ZGM1Yjg3MzhiZDk0MDY3ZDZkNWU3ZDkyZDJiZA==
4
+ ZTA4MzNmZDYwZGY0ZTRhMTA5MWRjOTFhNmRkY2Q4NzA3M2YyZWY4OA==
5
5
  data.tar.gz: !binary |-
6
- M2NiNzRkNmI5ZDIwOGMyMTI5NzY0ZGY0YzBkZGQ4NjFiODYzNTFjYw==
6
+ MWYyMTQ4OGJhNjZmNDk5ZTZhM2MxZTlhMDZkMTAyZGY5MWM2ZTkwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmRhYjQzODk3OTJjMjEwYWU4MDM4YzdiN2EyNjNiNWM5MjMwOTQ5NmRlYjVj
10
- NzdiNWY0YWVmYWQzNTFjOWE5YjJhNTE4OWU3ZDQ3N2UyODMyMzhmODA5ZDU5
11
- YzRjZjcyMzRhNjI2YTZjMWMwNDMxZmZlMDg5NTRhZjk4MjJmZmI=
9
+ NTM5NDk3NmEzMDU4ODQ5MmZkZDIxMGE4ZmYxMDIwNTVmMTBmOGRiNThkYWIy
10
+ OTU0MzY4YzU4MWU0MmM5NWE1ODdmZWM0MGMyZDE4MTE4ZTBmNDcyY2JiZDkx
11
+ MTI0ZmQ3Y2IxZDAwODAzMWRkNGZiMTUwZTcyOTM1ZDRiNWExYjI=
12
12
  data.tar.gz: !binary |-
13
- OTYxY2VkMzJkYzE0NTY0MDI3NGQ5N2E4YTZhOWY1NTdkNmFhMjhhYzU0OTM0
14
- MWIxYjJkMTQzZTc0OWFlZThjNjNjMzc2MzdhNTZjNmY1NzE1NDUyODcwNWQy
15
- MjdlMTNmN2IzZmM1ZmNlMzUwYTYyNzJhN2Y2MDg3ODA1ZTk1MTU=
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
- self.rows = []
47
- self.title = title
48
- self.width = title.length
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
- self.rows << string
65
- self.update_width string.length
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
@@ -1,6 +1,6 @@
1
1
  module RenderAsMarkdown
2
2
  GEM = 'render-as-markdown'
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
 
6
6
  puts "This is version #{RenderAsMarkdown::VERSION} of gem #{RenderAsMarkdown::GEM}"
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.2
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: