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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b770af7a64646ac3f8d77473551ec5d4f2140024281928cfcf0cd59c047b98c8
4
- data.tar.gz: 641e00f1b1fb967cdc7338aa7496317ffca6d84d4934fac907e7e3ce3063dc4f
3
+ metadata.gz: d599bb188fc8dfa71de5f8f9f867f4a286cc9bf45be55b923f2127291773c57a
4
+ data.tar.gz: 35daeaf05a67f5081cb5de226cd37dcd360045a1cf740ae1cb584ac88cbcc1ac
5
5
  SHA512:
6
- metadata.gz: 140ad6a659f6f3c18824a99dfbaebba9115b18053114f88f08e47cb9d95d53e5b53c1984a1f6a2ca72694611c4e5064bb9975723d6ed3b0488b41ea1860b2589
7
- data.tar.gz: 58042822848a891da447fd1d707dcc95e1f27119a65a50e4d0411e907e2c7978b4d3eb25275578dfe4547194a6db2f58a9bc22473dc8675a2c350862807d96b5
6
+ metadata.gz: c60cc804cd564c4bf098dccb7c3e6b1361be51010fb33363c276617be3e8e741c3de40f2ee0a0ba8d04734064329a76b78632d1292ac6dbb62ca0449829d3359
7
+ data.tar.gz: e825dcb91564c978cc9c4f8a6f965cb3a909ca7b75a4d998f6feb210026ef65470913b376e32d4b3107da4cb20d35f3813084c70954321e515571e26e77a4d95
@@ -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>".freeze
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(/^http/i)
217
+ @url.match(/\Ahttp/i)
216
218
  end
217
219
 
218
220
  def fix_boolean_options!(options)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Grover
2
4
  #
3
5
  # Configuration of the options for Grover HTML to PDF conversion
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Grover
2
4
  #
3
5
  # Helper module for preparing HTML for conversion
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'combine_pdf'
2
4
 
3
5
  class Grover
@@ -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}/, ''.freeze)
32
+ string = string.gsub(/^#{string.scan(/^[ \t]*(?=\S)/).min}/, '')
31
33
  inline ? string.delete("\n") : string
32
34
  end
33
35
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Grover
2
- VERSION = '0.7.2'.freeze
4
+ VERSION = '0.7.3'
3
5
  end
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.2
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-03-21 00:00:00.000000000 Z
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