liquid_reading_time 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/liquid_reading_time.rb +1 -1
  3. metadata +10 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d2da442a3f30e53753cd9773025caf1f2676705
4
- data.tar.gz: 90d795ce61fab8f48279a9c3e6fa4cd097b6196f
3
+ metadata.gz: 36b77969cf3f45e7d590406bc381f72eae2c6f2d
4
+ data.tar.gz: c00895f3ce79d6bdfd7e1364e9bec7fac4146dbc
5
5
  SHA512:
6
- metadata.gz: 3688bc987f2851975bb2a4a08fb561fc19ab9d5c9a71d6a9b3036e683f3fa3ffd481b474a15243a38d1837d26cd35be762af66d2fdf22e947ef316cecaaf51fa
7
- data.tar.gz: 52e1b08e2b1381a98cec759d6f890227139a848c9024d753884bdd7a27bd58c22210ecec7b157727b3e5dec87ee32049cdbccf73c7f91a4a91162bdc31b8e483
6
+ metadata.gz: 4f543c78c1c2d0e260fe8a940da8b8e53eb928bb7f439e302c9ec26fc3baeec6b7163660e89c364d3cf07558c98a4222a32c71c98b04747698b6c3c5df8b007e
7
+ data.tar.gz: af7fc7bc82070298e8c6e43333356ce5b8b7e0f86eeccfbe149e3eef9a9c858e4ce039b59c4acf951c6dd82c29eb9fe5a02584b092e9e28245308c7036c61c6b
@@ -38,7 +38,7 @@ module ReadingTime
38
38
 
39
39
  def words(html)
40
40
  fragment = Nokogiri::HTML.fragment html
41
- text_nodes(fragment).map { |text| text.scan(/[[:word:]]+/) }.flatten
41
+ text_nodes(fragment).map { |text| text.scan(/[\p{L}\p{M}'‘’]+/) }.flatten
42
42
  end
43
43
 
44
44
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid_reading_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Esham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.6'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.6'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: nokogiri
29
35
  requirement: !ruby/object:Gem::Requirement