kdbook 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/kdbook +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ed34fbceb2f3785b305bac44002cea2b9073041
4
- data.tar.gz: 06a563bfaaaea77704693e0e923812c24351910f
3
+ metadata.gz: 720ef2302f1b77c52ce24ef310303c075988bc0c
4
+ data.tar.gz: f1d597f983ecc05df61d6dc29a468c8f20650081
5
5
  SHA512:
6
- metadata.gz: bd402e3e7957ce14ef245020e0629c7d16a15a24e639888b871c734d4963f38c596f484c684689c9281caeee728b52ef38d0622964d61bed75c2b55ca062c997
7
- data.tar.gz: 41cfdcddd5cb10961c4542dbb1ea4bccc174cd15a3633138801e7f2db090e43a430fd201b0e2b0af61fa000d068b6f692759694fe25c1c1cfc9b2c66eafd8645
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.2'
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 !inp.wordcount.is_a?(String) && inp.wordcount.min
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.2
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-06-08 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor