regexp_parser 2.13.2 → 2.13.4

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: 600784883db727d900cd3145d80664751ca22c21176964af6a5ab4430d73e74b
4
- data.tar.gz: f64b68ef9a7e2051cf39d096d980474e6b9396130370871a30db020bb0d7f656
3
+ metadata.gz: b8972ff918c2bdab721c83889843a7de2467d7179c1513c0b9b0b182bce4e4f3
4
+ data.tar.gz: 53dc054a00c3f79d51130fc5873adf4a23ba265cdc4086e5fb4fd36d788edaae
5
5
  SHA512:
6
- metadata.gz: e515512c783c924c42fcff2b39ba48d8c78054b34afb6e23e38d4dac7dc57ce910d0ca4b9cd5ed2c26e97569dd80735f305cca1b3433353f61a21d31f7d0ae9a
7
- data.tar.gz: 2133bd1e9a05cd2b8419b79b16f76dad6c96d8d2e35c11857d18ba3ae6c42df37f87832c0f7bdbf3ceba7de666b067ebb0c0d2b8ad0adf4f51520e8c84461e50
6
+ metadata.gz: 48d3c44c2f564bc4c02ddec1fde525a61d4af736a42b9abc81f70d270a10230a01faca5a075ccf27d7756da9823ecd1a56b11d5535bb077680157f4840a4c23d
7
+ data.tar.gz: 6aee419c9aa8020a855a9d82213f6f6528fe93596b04b55a693307122537e5aa8dd7bc050ce519844e0769a831c866d150f7b75d890ded0a9f692cb4b035472f
@@ -70,7 +70,8 @@ class Regexp::Parser
70
70
  enabled_options[:i] = true if options & ::Regexp::IGNORECASE != 0
71
71
  enabled_options[:m] = true if options & ::Regexp::MULTILINE != 0
72
72
  enabled_options[:n] = true if options & ::Regexp::NOENCODING != 0
73
- enabled_options[:s] = true if options & ::Regexp::FIXEDENCODING != 0
73
+ # note: this would be wrong, FIXEDENCODING is any encoding, /s Windows-31J
74
+ # enabled_options[:s] = true if options & ::Regexp::FIXEDENCODING != 0
74
75
  enabled_options[:x] = true if options & ::Regexp::EXTENDED != 0
75
76
  enabled_options
76
77
  end
@@ -55,8 +55,6 @@ module Regexp::Syntax
55
55
  freeze_feature_map(removed_features)
56
56
  end
57
57
 
58
- private
59
-
60
58
  def implements(type, tokens)
61
59
  (features[type] ||= []).concat(tokens)
62
60
  added_features[type] = tokens
@@ -67,6 +65,8 @@ module Regexp::Syntax
67
65
  removed_features[type] = tokens
68
66
  end
69
67
 
68
+ private
69
+
70
70
  def normalize_group(type, token)
71
71
  case token
72
72
  when :named_ab, :named_sq
@@ -2,6 +2,6 @@
2
2
 
3
3
  class Regexp
4
4
  class Parser
5
- VERSION = '2.13.2'
5
+ VERSION = '2.13.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regexp_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ammar Ali