kdbook 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/kdbook +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 720ef2302f1b77c52ce24ef310303c075988bc0c
|
4
|
+
data.tar.gz: f1d597f983ecc05df61d6dc29a468c8f20650081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 625d6f251193d3507ab6855fd9ebf142c9882e98c5df1fb4117696d03fc0c4e2453f2f5fcd5509677f9bde93320d994cf632f384a6b225f304e9f59d566feee2
|
7
|
+
data.tar.gz: 1449363a52e9426b50d728e75862648ab53a7163d79282d65a916da0fe6866138864be005f6e6b5471bb1dbc8217ba14a8bc6283f880967db37f435939467aee
|
data/bin/kdbook
CHANGED
@@ -6,7 +6,7 @@ require 'colorize'
|
|
6
6
|
require 'kramdown'
|
7
7
|
require 'recursive-open-struct'
|
8
8
|
|
9
|
-
VERSION = '0.0.
|
9
|
+
VERSION = '0.0.3'
|
10
10
|
|
11
11
|
class KdbookBin < Thor
|
12
12
|
class_option :'config-file', type: :string, aliases: 'f', default: 'kdbook.yml'
|
@@ -21,7 +21,7 @@ class KdbookBin < Thor
|
|
21
21
|
if inp.wordcount
|
22
22
|
wc, file = %x(wc -w #{inp.input}).chomp.split
|
23
23
|
output = "Wordcount of #{file} is #{add_commas(wc)}"
|
24
|
-
if
|
24
|
+
if inp.wordcount.is_a?(RecursiveOpenStruct) && inp.wordcount.min
|
25
25
|
output = "#{output}. #{percentify(wc, inp.wordcount.min)}% " \
|
26
26
|
"of goal #{inp.wordcount.min}"
|
27
27
|
output = "#{output} to #{inp.wordcount.max}" if inp.wordcount.max
|
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.0.
|
4
|
+
version: 0.0.3
|
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
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|