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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcd1820be9522baaa3d8e675c108176b05e5767a
4
- data.tar.gz: b0467a428550157dde85255b270e5538bc1544d9
3
+ metadata.gz: e9a4aa7add73559fc17c5aa6acd11d812ebbf248
4
+ data.tar.gz: f1d10339e9fdc80c5e2d9c047ae965d7615d5aff
5
5
  SHA512:
6
- metadata.gz: 535057a8307900e58d2bc18f2ab1d8922c68f0bd0147346944253cd41b46c3e702350f16cef241a25656311c34674f0ecd173e6065b4bb24ec6a803aab102a0b
7
- data.tar.gz: aafa4825db09d43eb335707cc89ecb685b5500f33b3ef159410653cdf5ce6572b8ffb295c75e1fd5701f9509efb3f3ebf7d11b18ce0d3d3fbd84bf51c5e004fb
6
+ metadata.gz: 2b9dae6c22e18e4479f424d6be694e7f6e19238fbb9edb970ff6aadf31e88ce23a1d93bd96cdf61d2c28c5400d28a488ccb739dd2b2547cacab58b3b0b492a35
7
+ data.tar.gz: 1a61f6c75719ff57b58da80746628a3f3c6386362929da739bf98cf2c339214aa591f241ffcc9a6a714fdde3a42a648bd07d1fc163d7419a02db52866996c71b
@@ -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.2'
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']['bool']['should']['simple_query_string']['query'] = search_term
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']['bool']['filter'] = {
32
+ options['query']['filter'] = {
33
33
  'bool' => {
34
34
  'must' => filters
35
35
  }
@@ -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 || "None given"}
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
@@ -1,13 +1,10 @@
1
1
  ---
2
2
  query:
3
- bool:
4
- should:
5
- simple_query_string:
6
- query: ''
7
- fields:
8
- - text
9
- - title^10
10
- minimum_should_match: 1
3
+ match:
4
+ query: ''
5
+ fields:
6
+ - text
7
+ - title^10
11
8
  from: 0
12
9
  size: 10
13
10
  _source:
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.2
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-08-31 00:00:00.000000000 Z
26
+ date: 2016-10-20 00:00:00.000000000 Z
27
27
  dependencies:
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: fog-aws