gramrb 1.0.7 → 1.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
  SHA256:
3
- metadata.gz: b9e8638c359baf472d9d3800198d3654fc60b67677066a7c31e5209aa56e7704
4
- data.tar.gz: 904d64bbe0cd3f52ef37b4b8526b3c1b94133f5985636d2070dd26627f27aa91
3
+ metadata.gz: ab57b9e180b10b719026d2d425f2a0ddd968a53bee6280dc03c4d4588f6410ef
4
+ data.tar.gz: 8773800ddbd38b8fcfa4f53e4ca168c7323d863a2eecfaac33dd6c04ee1a8ecf
5
5
  SHA512:
6
- metadata.gz: 668bb6fa2ab7c58296b7ad1d574ad1563f66b5138d497f4d3eee5f8125f84831a553754913614447f2c7495616efc203b8ac89a8681517d7b5bfbab079ec0834
7
- data.tar.gz: 9210094c21071867ce799eb72edbed9cd277dd91e0083a45574ce572fc3d2cd23913cabd683f8b78ea0aef0eddaa7d78f3aa2b5e1819b235b2b46a9380b44786
6
+ metadata.gz: 83730b53d58b85da07ce558132a7be0f6920c3c0c4eb10ef2e8ce9b2fbedb56557256ab1d8b8bef9f6b9951df27d8dcde66e3236d5839ba58a21d23314b2150c
7
+ data.tar.gz: 2c27a537cdbefc649d7656fd130b1f81fa3a752cabb9dea011d0f31671b23a99db652c6aaec5d7e5b2920c3ceb63bd5f82e550a39bb250facb7d687a9989cc41
@@ -18,6 +18,7 @@ module Gramrb
18
18
  return { item:, words: [] } if invalid?(item)
19
19
 
20
20
  words = item.gsub(/\\[ntrfvab\\]/, ' ')
21
+ .gsub(/\S*[^\x00-\x7F]\S*/, ' ')
21
22
  .gsub(%r{https?://\S+}, ' ')
22
23
  .gsub(/([a-zA-Z])(\d)/, '\1 \2')
23
24
  .gsub(/(\d)([a-zA-Z])/, '\1 \2')
@@ -30,6 +31,6 @@ module Gramrb
30
31
 
31
32
  def invalid?(item) = item.nil? || item.empty?
32
33
 
33
- def word?(word) = word.length > 1 && word.ascii_only?
34
+ def word?(word) = word.length > 1
34
35
  end
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module Gramrb
2
2
  module Version
3
- VERSION = '1.0.7'.freeze
3
+ VERSION = '1.0.8'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gramrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pandaman74
@@ -49,7 +49,6 @@ licenses:
49
49
  metadata:
50
50
  rubygems_mfa_required: 'true'
51
51
  homepage_uri: https://github.com/Pandaman74/Gramrb
52
- source_code_uri: https://github.com/Pandaman74/Gramrb
53
52
  rdoc_options: []
54
53
  require_paths:
55
54
  - lib