kdbook 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/kdbook +7 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c9644b1eb4c418df651874791afb745ffde8a46
4
- data.tar.gz: 1131d6ce4958dca0971b0a5461fd4dff2f91f0d6
3
+ metadata.gz: 415e9c1b06c136090ab0a0ea8fae547051c33e23
4
+ data.tar.gz: c9be9bde649467ead623621925147b7e96ce2e03
5
5
  SHA512:
6
- metadata.gz: 453847b962119183241aa93880dd8f93a32b61f11c005b56295bde96507e0f09cc4ab0913891020db87e6adbcfb881fb6619a489c8096a3749348095a89c476c
7
- data.tar.gz: bb8857981eac461a53890cf00149fe0451436d511f9560209e4f070d04b05b4e4b609e6897fe5a0d67669b522e30ed19b9043e4678a647cd6f2a5784c4592b9f
6
+ metadata.gz: d075b471bf47eeb8df42fed9e42fd08194ac70f202b0a76ba5f99c95126549e425cb0a662e002baca91bae0718b659cfd3cda75f1d284100f3765124aee2883a
7
+ data.tar.gz: 3c471a7f0fde2afd360f610aff0443f5629b3a4e870ffc0eb5c273defbfaec8a4e4c26607c3327bf127f1ad9be97bbc5152ad3fc25d654e37f8fb18b12f116a1
data/bin/kdbook CHANGED
@@ -6,7 +6,9 @@ require 'colorize'
6
6
  require 'kramdown'
7
7
  require 'recursive-open-struct'
8
8
 
9
- VERSION = '0.0.5'
9
+ VERSION = '0.1.1'
10
+
11
+ DEBUG = false
10
12
 
11
13
  class KdbookBin < Thor
12
14
  class_option :'config-file', type: :string, aliases: 'f', default: 'kdbook.yml'
@@ -44,12 +46,12 @@ class KdbookBin < Thor
44
46
  You can optionally pass in filenames as args to build specific files
45
47
  LONGDESC
46
48
  def build(*files)
47
- puts "BUILD REQUEST IN FOR FILES: #{files}".yellow
49
+ puts "BUILD REQUEST IN FOR FILES: #{files}".yellow if DEBUG
48
50
  file_list(options).each do |file|
49
51
  file.output.each do |out|
50
- puts "files: #{files}"
51
- puts "file: #{file}"
52
- if build?(files, file)
52
+ puts "files: #{files}" if DEBUG
53
+ puts "file: #{file}" if DEBUG
54
+ if DEBUG && build?(files, file)
53
55
  puts 'It _IS_ a build '.blue
54
56
  else
55
57
  puts 'It is not a build '.blue
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kdbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-15 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.2.5
153
+ rubygems_version: 2.5.2
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: book writing in markdown made easy