parser 3.0.3.1 → 3.0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/current.rb +3 -3
- data/lib/parser/lexer/dedenter.rb +1 -1
- data/lib/parser/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2251af231c276f8a7afbb8c5766ec286e076737a5446f3b453915243884684a
|
4
|
+
data.tar.gz: 0045f0edcd07e6a0b152af2ea75146017fb0c0217584e2edc56d5eedcafe0f71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44814126d3b6b6e960e1044a320ca2e94cec80bef3a58be0dcb10b9ed92bb2ebe4c21ab4b446e3e14c65a8c4f18bd265252462d056944ad0e15c5928bcd58ba8
|
7
|
+
data.tar.gz: da8145dd6a52dd3f4f9d4db73b4295d8df88dae974fac3df7db353a16ad95f45746066ddf98252ea3453660a2345d349cce8b2ca0e7f36bea2fade61cfd3368e
|
data/lib/parser/current.rb
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
module Parser
|
4
4
|
class << self
|
5
5
|
def warn_syntax_deviation(feature, version)
|
6
|
-
warn "warning: parser/current is loading #{feature}, which recognizes"
|
7
|
-
|
8
|
-
|
6
|
+
warn "warning: parser/current is loading #{feature}, which recognizes" \
|
7
|
+
"#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
|
8
|
+
"Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
|
9
9
|
end
|
10
10
|
private :warn_syntax_deviation
|
11
11
|
end
|
@@ -41,7 +41,7 @@ module Parser
|
|
41
41
|
if lines.length == 1
|
42
42
|
# If the line continuation sequence was found but there is no second
|
43
43
|
# line, it was not really a line continuation and must be ignored.
|
44
|
-
lines = [string]
|
44
|
+
lines = [string.force_encoding(original_encoding)]
|
45
45
|
else
|
46
46
|
lines.map! {|s| s.force_encoding(original_encoding) }
|
47
47
|
end
|
data/lib/parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.3.
|
4
|
+
version: 3.0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -245,9 +245,9 @@ licenses:
|
|
245
245
|
- MIT
|
246
246
|
metadata:
|
247
247
|
bug_tracker_uri: https://github.com/whitequark/parser/issues
|
248
|
-
changelog_uri: https://github.com/whitequark/parser/blob/v3.0.3.
|
249
|
-
documentation_uri: https://www.rubydoc.info/gems/parser/3.0.3.
|
250
|
-
source_code_uri: https://github.com/whitequark/parser/tree/v3.0.3.
|
248
|
+
changelog_uri: https://github.com/whitequark/parser/blob/v3.0.3.2/CHANGELOG.md
|
249
|
+
documentation_uri: https://www.rubydoc.info/gems/parser/3.0.3.2
|
250
|
+
source_code_uri: https://github.com/whitequark/parser/tree/v3.0.3.2
|
251
251
|
post_install_message:
|
252
252
|
rdoc_options: []
|
253
253
|
require_paths:
|