kdbook 0.1.0 → 0.1.1
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/bin/kdbook +7 -5
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 415e9c1b06c136090ab0a0ea8fae547051c33e23
|
|
4
|
+
data.tar.gz: c9be9bde649467ead623621925147b7e96ce2e03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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:
|
|
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
|
|
153
|
+
rubygems_version: 2.5.2
|
|
154
154
|
signing_key:
|
|
155
155
|
specification_version: 4
|
|
156
156
|
summary: book writing in markdown made easy
|