grover 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grover.rb +4 -2
- data/lib/grover/configuration.rb +2 -0
- data/lib/grover/html_preprocessor.rb +2 -0
- data/lib/grover/middleware.rb +2 -0
- data/lib/grover/utils.rb +3 -1
- data/lib/grover/version.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d599bb188fc8dfa71de5f8f9f867f4a286cc9bf45be55b923f2127291773c57a
|
4
|
+
data.tar.gz: 35daeaf05a67f5081cb5de226cd37dcd360045a1cf740ae1cb584ac88cbcc1ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60cc804cd564c4bf098dccb7c3e6b1361be51010fb33363c276617be3e8e741c3de40f2ee0a0ba8d04734064329a76b78632d1292ac6dbb62ca0449829d3359
|
7
|
+
data.tar.gz: e825dcb91564c978cc9c4f8a6f965cb3a909ca7b75a4d998f6feb210026ef65470913b376e32d4b3107da4cb20d35f3813084c70954321e515571e26e77a4d95
|
data/lib/grover.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'grover/version'
|
2
4
|
|
3
5
|
require 'grover/utils'
|
@@ -92,7 +94,7 @@ class Grover
|
|
92
94
|
end
|
93
95
|
private_constant :Processor
|
94
96
|
|
95
|
-
DEFAULT_HEADER_TEMPLATE = "<div class='date text left'></div><div class='title text center'></div>"
|
97
|
+
DEFAULT_HEADER_TEMPLATE = "<div class='date text left'></div><div class='title text center'></div>"
|
96
98
|
DEFAULT_FOOTER_TEMPLATE = Utils.strip_heredoc(<<-HTML).freeze
|
97
99
|
<div class='url text left grow'></div>
|
98
100
|
<div class='text right'><span class='pageNumber'></span>/<span class='totalPages'></span></div>
|
@@ -212,7 +214,7 @@ class Grover
|
|
212
214
|
end
|
213
215
|
|
214
216
|
def url_source?
|
215
|
-
@url.match(
|
217
|
+
@url.match(/\Ahttp/i)
|
216
218
|
end
|
217
219
|
|
218
220
|
def fix_boolean_options!(options)
|
data/lib/grover/configuration.rb
CHANGED
data/lib/grover/middleware.rb
CHANGED
data/lib/grover/utils.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class Grover
|
2
4
|
#
|
3
5
|
# Utility class for Grover helper methods
|
@@ -27,7 +29,7 @@ class Grover
|
|
27
29
|
# @see active_support/core_ext/string/strip.rb
|
28
30
|
#
|
29
31
|
def self.strip_heredoc(string, inline: false)
|
30
|
-
string = string.gsub(/^#{string.scan(/^[ \t]*(?=\S)/).min}/, ''
|
32
|
+
string = string.gsub(/^#{string.scan(/^[ \t]*(?=\S)/).min}/, '')
|
31
33
|
inline ? string.delete("\n") : string
|
32
34
|
end
|
33
35
|
|
data/lib/grover/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Bromwich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combine_pdf
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.7.6
|
188
|
+
rubygems_version: 2.7.6.2
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: A Ruby gem to transform HTML into PDFs wrapper the NodeJS Google Puppeteer
|