downterm 0.1.2 → 0.1.3
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 +4 -4
- data/Rakefile +1 -1
- data/lib/downterm/render.rb +2 -2
- data/lib/downterm/version.rb +1 -1
- data/spec/downterm/render_spec.rb +19 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 728b404feacf4777f19c6cc098f77024a07b97a4
|
4
|
+
data.tar.gz: 6673fb8b298f2dcf1e2f14ba7b7490aa38492604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3f03e4d02a06aa9f1417ba799ede3652c950b8c89c1dbf43cb275af4fce429ef9ee75cc7d1667a564cc6dca769278ba9aad46ae4b75cbb2476a62eba48d36a
|
7
|
+
data.tar.gz: 0396b283577904a6eeb168dd14d0efb98c6e33a202c4ea27bf5981129d30bd29894277b13257ef2f72c3fa6f065f9ea51f7f0664f3906f330ddbd68ec2a0a40e
|
data/Rakefile
CHANGED
data/lib/downterm/render.rb
CHANGED
@@ -94,8 +94,8 @@ module Downterm
|
|
94
94
|
|
95
95
|
def list(contents, list_type)
|
96
96
|
case list_type
|
97
|
-
when :unordered then return contents
|
98
|
-
when :ordered then return number_list(contents.split("\n")).join("\n")
|
97
|
+
when :unordered then return contents + "\n"
|
98
|
+
when :ordered then return number_list(contents.split("\n")).join("\n") + "\n"
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
data/lib/downterm/version.rb
CHANGED
@@ -113,6 +113,25 @@ module Downterm
|
|
113
113
|
actual = markdown.render(md)
|
114
114
|
expect(actual).to eq(expected)
|
115
115
|
end
|
116
|
+
|
117
|
+
it 'is spaced properly when mixed with paragraphs' do
|
118
|
+
md = [
|
119
|
+
'These are some items in a list:',
|
120
|
+
'',
|
121
|
+
'* Item 1',
|
122
|
+
'* Item 2',
|
123
|
+
'* Item 3',
|
124
|
+
'',
|
125
|
+
'These are some more items in a list:',
|
126
|
+
'',
|
127
|
+
'* Item 1',
|
128
|
+
'* Item 2',
|
129
|
+
'* Item 3',
|
130
|
+
].join("\n")
|
131
|
+
expected = md
|
132
|
+
actual = markdown.render(md)
|
133
|
+
expect(actual).to eq(expected)
|
134
|
+
end
|
116
135
|
end
|
117
136
|
|
118
137
|
describe 'code' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: downterm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dippery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -87,9 +87,9 @@ homepage: https://github.com/mdippery/downterm
|
|
87
87
|
licenses:
|
88
88
|
- MIT
|
89
89
|
metadata:
|
90
|
-
build_date: 2015-
|
91
|
-
commit: v0.1.
|
92
|
-
commit_hash:
|
90
|
+
build_date: 2015-11-03 19:50:50 PST
|
91
|
+
commit: v0.1.3
|
92
|
+
commit_hash: 61f895fd4fc5849793988bfde72fa10f92b2c945
|
93
93
|
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.4.5
|
109
|
+
rubygems_version: 2.4.5.1
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Displays blocks of Markdown text in a manner that is easy to read in the
|