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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e83360e1c87ed2df8f6f87c0ab06cca1f1d772ec
4
- data.tar.gz: a400ff0009821986041a9318a185fe08a316abcf
3
+ metadata.gz: 728b404feacf4777f19c6cc098f77024a07b97a4
4
+ data.tar.gz: 6673fb8b298f2dcf1e2f14ba7b7490aa38492604
5
5
  SHA512:
6
- metadata.gz: 976eb5d10521eb0e6cd2cf7f7366f5ef8cfe02d8f7733cdb36ad141b381d998baf4a5ef793b3b5843791453b7f771477d923475206a7921ae694964882d92632
7
- data.tar.gz: 02a1295abd3db03d1e70ce6743ed1d09dcb9618503ac6a5ae43e553d901edef84100f13849fbc5d2b3f2c62dec5287a9be9127a1576d146d14d0d36c0553ce02
6
+ metadata.gz: 6a3f03e4d02a06aa9f1417ba799ede3652c950b8c89c1dbf43cb275af4fce429ef9ee75cc7d1667a564cc6dca769278ba9aad46ae4b75cbb2476a62eba48d36a
7
+ data.tar.gz: 0396b283577904a6eeb168dd14d0efb98c6e33a202c4ea27bf5981129d30bd29894277b13257ef2f72c3fa6f065f9ea51f7f0664f3906f330ddbd68ec2a0a40e
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  desc "Push gem to RubyGems"
29
29
  task :release => [:tag, :build] do
30
- # system "gem", "push", GEM
30
+ system "gem", "push", GEM
31
31
  end
32
32
 
33
33
  desc "Clean built products"
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Downterm
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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.2
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-09-17 00:00:00.000000000 Z
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-09-17 08:00:49 PDT
91
- commit: v0.1.2
92
- commit_hash: 59c8ffdff69a69ad33e3161c432d2190ab99c00d
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