bookbindery 10.0.2 → 10.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bookbinder.gemspec +1 -1
- data/template_app/lib/search/query.rb +2 -2
- data/template_app/mail_sender.rb +3 -11
- data/template_app/search.yml +5 -8
- 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: e9a4aa7add73559fc17c5aa6acd11d812ebbf248
|
4
|
+
data.tar.gz: f1d10339e9fdc80c5e2d9c047ae965d7615d5aff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9dae6c22e18e4479f424d6be694e7f6e19238fbb9edb970ff6aadf31e88ce23a1d93bd96cdf61d2c28c5400d28a488ccb739dd2b2547cacab58b3b0b492a35
|
7
|
+
data.tar.gz: 1a61f6c75719ff57b58da80746628a3f3c6386362929da739bf98cf2c339214aa591f241ffcc9a6a714fdde3a42a648bd07d1fc163d7419a02db52866996c71b
|
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 = '10.0.
|
5
|
+
s.version = '10.0.3'
|
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', 'Jess B Heron']
|
@@ -18,7 +18,7 @@ module Bookbinder
|
|
18
18
|
options = YAML.load_file(File.expand_path('../../../search.yml', __FILE__))
|
19
19
|
|
20
20
|
options['from'] = (page_number - 1) * 10
|
21
|
-
options['query']['
|
21
|
+
options['query']['match']['query'] = search_term
|
22
22
|
|
23
23
|
unless product_name.nil?
|
24
24
|
filters = [{
|
@@ -29,7 +29,7 @@ module Bookbinder
|
|
29
29
|
filters << {'term' => { 'product_version' => product_version }}
|
30
30
|
end
|
31
31
|
|
32
|
-
options['query']['
|
32
|
+
options['query']['filter'] = {
|
33
33
|
'bool' => {
|
34
34
|
'must' => filters
|
35
35
|
}
|
data/template_app/mail_sender.rb
CHANGED
@@ -25,20 +25,15 @@ module Bookbinder
|
|
25
25
|
|
26
26
|
def assemble_body(helpful: nil, comments: nil, date: nil, page_url: nil)
|
27
27
|
<<-EOT
|
28
|
-
Dear docs writer,
|
29
|
-
|
30
|
-
You just received new feedback.
|
31
|
-
|
32
|
-
The sender thought the document was #{helpfulness(helpful)}.
|
33
|
-
|
34
28
|
Date: #{date}
|
35
29
|
|
36
30
|
Page URL: #{page_url}
|
37
31
|
|
32
|
+
Helpful: #{helpful}
|
33
|
+
|
38
34
|
Comments:
|
39
|
-
#{comments
|
35
|
+
#{comments}
|
40
36
|
|
41
|
-
Happy editing!
|
42
37
|
EOT
|
43
38
|
end
|
44
39
|
|
@@ -62,8 +57,5 @@ Happy editing!
|
|
62
57
|
config.merge({text: @body, subject: @subject})
|
63
58
|
end
|
64
59
|
|
65
|
-
def helpfulness(was_helpful)
|
66
|
-
was_helpful ? 'helpful' : 'not helpful'
|
67
|
-
end
|
68
60
|
end
|
69
61
|
end
|
data/template_app/search.yml
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: 10.0.
|
4
|
+
version: 10.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Grafton
|
@@ -23,7 +23,7 @@ authors:
|
|
23
23
|
autorequire:
|
24
24
|
bindir: install_bin
|
25
25
|
cert_chain: []
|
26
|
-
date: 2016-
|
26
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
27
27
|
dependencies:
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: fog-aws
|