downterm 0.1.1 → 0.1.2

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: 4a91d4479606005ead735082d3a2de8aa8eb15cf
4
- data.tar.gz: f99953f7306b9a2f5e3150f29485f7246153e9c5
3
+ metadata.gz: e83360e1c87ed2df8f6f87c0ab06cca1f1d772ec
4
+ data.tar.gz: a400ff0009821986041a9318a185fe08a316abcf
5
5
  SHA512:
6
- metadata.gz: 4c8bc3c80b7d09065ea5d7489643c67f398d99ba0d451869de3b79cfe063a17b68806a128c6f2e185291245f5525b9390f697e2054724e034ed38f9fba22a529
7
- data.tar.gz: 8271fe9ef0f63c75c8e779575ac9d17375c35068a4be417abcc5d9a393bf491b61fc28e5b5d51671bcf7a7eb9a6b109af6fff30bf123984a17f9839604660053
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 "git", "tag", "-s", "-m", "downterm v#{Downterm::VERSION}", "v#{Downterm::VERSION}"
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 = 'Converts Markdown into text suitable for output to a terminal'
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) }
@@ -18,7 +18,7 @@ module Downterm
18
18
  end
19
19
 
20
20
  def header(text, header_level)
21
- "#{'#' * header_level} #{text}\n\n"
21
+ "#{Rainbow(text).bright}\n\n"
22
22
  end
23
23
 
24
24
  def entity(text)
@@ -1,3 +1,3 @@
1
1
  module Downterm
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -305,7 +305,7 @@ module Downterm
305
305
  end
306
306
 
307
307
  describe 'a header' do
308
- it 'is rendered verbatim' do
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 = md
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.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-10 00:00:00.000000000 Z
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: Converts Markdown into text suitable for output to a terminal
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