ragadjust 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2760bccef60b39e08de1698a908a6aa7665d999f
4
- data.tar.gz: 1e0427b1838366f4ee7dfed5d5935b6c46be6548
3
+ metadata.gz: 54987538d33e0d74b013037b0167a756b638e4e5
4
+ data.tar.gz: e5b0ec9d84a8fb00857b786e55a62af3a69c8037
5
5
  SHA512:
6
- metadata.gz: 0bb4be2686483493025f109ca8b4b384dfc13c484f9caf7fcb005e26dd8dc7b7f4b48eaddd6047006420b7e9f8cc3ac6d38c87734ef17b8ba8192f16d4b7a656
7
- data.tar.gz: ac7640168b0e665428c11ea7801c98a8e810b957d0b6bbf6ebb38c1c8909363c3ebede2d0e2159929715ee4870245502b889527a777fad54a4529a79ad3977df
6
+ metadata.gz: fd808a2eae7cdde0b743b7eda38219da83d80c6b0961e6a5f42df0de0f12988e09b42353e433f5674107f0be039adbf137dcc6f1a06e94a285b07f0cdb6c6a15
7
+ data.tar.gz: 40543b0938f4baa9883516cccc5fcac8613bd2a18e684eefbd26a72610ed730a5880f49d4915733feb4cf4a9bf1e34af1e5b1b89205d769a79c99918ff8b5995
@@ -61,7 +61,7 @@ module Ragadjust
61
61
 
62
62
  # avoid orphaned words at end of headings
63
63
  if orphans
64
- elements.css('h1,h2,h3,h4,h5.h6').each do |el|
64
+ html.css('h1,h2,h3,h4,h5.h6').each do |el|
65
65
  last_text = el.search('.//text()').last
66
66
 
67
67
  last_text.content = last_text.content.gsub(/\s+([[:word:]]+)$/, ' \1')
@@ -1,3 +1,3 @@
1
1
  module Ragadjust
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragadjust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Perfect