downterm 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -3
- data/downterm.gemspec +7 -1
- data/lib/downterm/render.rb +1 -1
- data/lib/downterm/version.rb +1 -1
- data/spec/downterm/render_spec.rb +8 -2
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83360e1c87ed2df8f6f87c0ab06cca1f1d772ec
|
4
|
+
data.tar.gz: a400ff0009821986041a9318a185fe08a316abcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976eb5d10521eb0e6cd2cf7f7366f5ef8cfe02d8f7733cdb36ad141b381d998baf4a5ef793b3b5843791453b7f771477d923475206a7921ae694964882d92632
|
7
|
+
data.tar.gz: 02a1295abd3db03d1e70ce6743ed1d09dcb9618503ac6a5ae43e553d901edef84100f13849fbc5d2b3f2c62dec5287a9be9127a1576d146d14d0d36c0553ce02
|
data/Rakefile
CHANGED
@@ -15,15 +15,19 @@ task :perms do
|
|
15
15
|
system "chmod", "-R", "a+rX", *`git ls-files`.chomp.split("\n")
|
16
16
|
end
|
17
17
|
|
18
|
+
desc "Tag the latest version of downterm"
|
19
|
+
task :tag do
|
20
|
+
system "git", "tag", "-s", "-m", "downterm v#{Downterm::VERSION}", "v#{Downterm::VERSION}"
|
21
|
+
end
|
22
|
+
|
18
23
|
desc "Install downterm.gem"
|
19
24
|
task :install => :build do
|
20
25
|
system "gem", "install", GEM
|
21
26
|
end
|
22
27
|
|
23
28
|
desc "Push gem to RubyGems"
|
24
|
-
task :release => :build do
|
25
|
-
system "
|
26
|
-
system "gem", "push", GEM
|
29
|
+
task :release => [:tag, :build] do
|
30
|
+
# system "gem", "push", GEM
|
27
31
|
end
|
28
32
|
|
29
33
|
desc "Clean built products"
|
data/downterm.gemspec
CHANGED
@@ -11,7 +11,13 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.email = ['michael@monkey-robot.com']
|
12
12
|
gem.homepage = 'https://github.com/mdippery/downterm'
|
13
13
|
gem.description = 'Converts Markdown into text suitable for output to a terminal'
|
14
|
-
gem.summary = '
|
14
|
+
gem.summary = 'Displays blocks of Markdown text in a manner that is easy to read in the terminal.'
|
15
|
+
|
16
|
+
gem.metadata = {
|
17
|
+
'build_date' => Time.now.strftime("%Y-%m-%d %H:%M:%S %Z"),
|
18
|
+
'commit' => `git describe`.chomp,
|
19
|
+
'commit_hash' => `git rev-parse HEAD`.chomp,
|
20
|
+
}
|
15
21
|
|
16
22
|
gem.files = `git ls-files`.split($/)
|
17
23
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/downterm/render.rb
CHANGED
data/lib/downterm/version.rb
CHANGED
@@ -305,7 +305,7 @@ module Downterm
|
|
305
305
|
end
|
306
306
|
|
307
307
|
describe 'a header' do
|
308
|
-
it 'is rendered
|
308
|
+
it 'is rendered bold' do
|
309
309
|
md = [
|
310
310
|
"Here's some text",
|
311
311
|
'',
|
@@ -313,7 +313,13 @@ module Downterm
|
|
313
313
|
'',
|
314
314
|
'And now a new section',
|
315
315
|
].join("\n")
|
316
|
-
expected =
|
316
|
+
expected = [
|
317
|
+
"Here's some text",
|
318
|
+
'',
|
319
|
+
Rainbow('Header 2').bright,
|
320
|
+
'',
|
321
|
+
'And now a new section',
|
322
|
+
].join("\n")
|
317
323
|
actual = markdown.render(md)
|
318
324
|
expect(actual).to eq(expected)
|
319
325
|
end
|
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.2
|
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-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -86,7 +86,10 @@ files:
|
|
86
86
|
homepage: https://github.com/mdippery/downterm
|
87
87
|
licenses:
|
88
88
|
- MIT
|
89
|
-
metadata:
|
89
|
+
metadata:
|
90
|
+
build_date: 2015-09-17 08:00:49 PDT
|
91
|
+
commit: v0.1.2
|
92
|
+
commit_hash: 59c8ffdff69a69ad33e3161c432d2190ab99c00d
|
90
93
|
post_install_message:
|
91
94
|
rdoc_options: []
|
92
95
|
require_paths:
|
@@ -106,7 +109,8 @@ rubyforge_project:
|
|
106
109
|
rubygems_version: 2.4.5
|
107
110
|
signing_key:
|
108
111
|
specification_version: 4
|
109
|
-
summary:
|
112
|
+
summary: Displays blocks of Markdown text in a manner that is easy to read in the
|
113
|
+
terminal.
|
110
114
|
test_files:
|
111
115
|
- spec/downterm/render_spec.rb
|
112
116
|
- spec/spec_helper.rb
|