bookbindery 8.3.2 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 866257f1ac572c2ed61712aa26c5d31f99694787
|
4
|
+
data.tar.gz: 77c580150aaac488956edea1beebee0fee7846a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6eecd24ba2a2204eeb517412e487447ad09e103459212c0bb18c6bdf87ab65472a286492828e1bdd410abc62be703472059d9782a0145f488467eb80fa18240
|
7
|
+
data.tar.gz: 9861881d93cd8256c7be097cf9091810bacfce6b4015c68cfa231fa224717e50773b9bad1bb5fa7e6004f992a6a4822ae4b6cfef6ad1744f0ab6750eb36a03da
|
data/bookbinder.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'base64'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'bookbindery'
|
5
|
-
s.version = '8.
|
5
|
+
s.version = '8.4.0'
|
6
6
|
s.summary = 'Markdown to Rackup application documentation generator'
|
7
7
|
s.description = 'A command line utility to be run in Book repositories to stitch together their constituent Markdown repos into a static-HTML-serving application'
|
8
8
|
s.authors = ['Mike Grafton', 'Lucas Marks', 'Gavin Morgan', 'Nikhil Gajwani', 'Dan Wendorf', 'Brenda Chan', 'Matthew Boedicker', 'Andrew Bruce', 'Frank Kotsianas', 'Elena Sharma', 'Christa Hartsock', 'Michael Trestman', 'Alpha Chen', 'Sarah McAlear', 'Gregg Van Hove']
|
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.required_ruby_version = '~> 2.3.0'
|
18
18
|
s.add_runtime_dependency 'fog-aws', ['~> 0.7.1']
|
19
19
|
s.add_runtime_dependency 'ansi', ['~> 1.4']
|
20
|
-
s.add_runtime_dependency 'unf', ['~> 0.1']
|
21
20
|
s.add_runtime_dependency 'middleman', ['~> 3.4.0']
|
22
21
|
s.add_runtime_dependency 'middleman-livereload', ['~> 3.4.3']
|
23
22
|
s.add_runtime_dependency 'middleman-syntax', ['~> 2.0']
|
@@ -27,7 +26,6 @@ Gem::Specification.new do |s|
|
|
27
26
|
s.add_runtime_dependency 'css_parser'
|
28
27
|
s.add_runtime_dependency 'puma'
|
29
28
|
s.add_runtime_dependency 'rack-rewrite'
|
30
|
-
s.add_runtime_dependency 'therubyracer'
|
31
29
|
s.add_runtime_dependency 'git', '~> 1.2.8'
|
32
30
|
s.add_runtime_dependency 'nokogiri', ['1.6.7.2']
|
33
31
|
s.add_runtime_dependency 'thor'
|
@@ -78,7 +78,7 @@ module Bookbinder
|
|
78
78
|
end
|
79
79
|
|
80
80
|
generation_result = middleman_runner.run(
|
81
|
-
|
81
|
+
'build --verbose',
|
82
82
|
streams: bind_options.streams,
|
83
83
|
output_locations: output_locations,
|
84
84
|
config: config_decorator.generate(bind_config, sections),
|
@@ -1,4 +1,7 @@
|
|
1
1
|
require_relative '../../sheller'
|
2
|
+
require_relative '../../colorizer'
|
3
|
+
require_relative '../../streams/colorized_stream'
|
4
|
+
require_relative '../../streams/filter_stream'
|
2
5
|
|
3
6
|
module Bookbinder
|
4
7
|
module Commands
|
@@ -31,7 +34,8 @@ module Bookbinder
|
|
31
34
|
|
32
35
|
def streams
|
33
36
|
base_streams.merge(
|
34
|
-
out: verbosity ? base_streams[:out] :
|
37
|
+
out: verbosity ? base_streams[:out] :
|
38
|
+
Streams::FilterStream.new(/^\s*error/i, Streams::ColorizedStream.new(Colorizer::Colors.red, base_streams[:out])),
|
35
39
|
)
|
36
40
|
end
|
37
41
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Bookbinder
|
2
|
+
module Streams
|
3
|
+
class FilterStream
|
4
|
+
def initialize(matcher_regex, stream)
|
5
|
+
@matcher_regex = matcher_regex
|
6
|
+
@stream = stream
|
7
|
+
end
|
8
|
+
|
9
|
+
def puts(line)
|
10
|
+
stream.puts(line) if line.match(matcher_regex)
|
11
|
+
end
|
12
|
+
|
13
|
+
def <<(line)
|
14
|
+
stream << line if line.match(matcher_regex)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
attr_reader :matcher_regex, :stream
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/template_app/Gemfile
CHANGED
data/template_app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookbindery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Grafton
|
@@ -22,7 +22,7 @@ authors:
|
|
22
22
|
autorequire:
|
23
23
|
bindir: install_bin
|
24
24
|
cert_chain: []
|
25
|
-
date: 2016-04-
|
25
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
26
26
|
dependencies:
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fog-aws
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.4'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: unf
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.1'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.1'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: middleman
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,20 +178,6 @@ dependencies:
|
|
192
178
|
- - ">="
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: therubyracer
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :runtime
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
181
|
- !ruby/object:Gem::Dependency
|
210
182
|
name: git
|
211
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -416,6 +388,7 @@ files:
|
|
416
388
|
- lib/bookbinder/spider.rb
|
417
389
|
- lib/bookbinder/stabilimentum.rb
|
418
390
|
- lib/bookbinder/streams/colorized_stream.rb
|
391
|
+
- lib/bookbinder/streams/filter_stream.rb
|
419
392
|
- lib/bookbinder/subnav/json_from_html_toc.rb
|
420
393
|
- lib/bookbinder/subnav/json_from_markdown_toc.rb
|
421
394
|
- lib/bookbinder/subnav/json_props_creator.rb
|