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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77c9eebb09451e4a14705adad346538d2abe88fee102045ea98d041cf39f07d8
4
- data.tar.gz: 67e81c519a542b6f8927a3e076280cf1c6fb35c0c5c738fa9f44efefb8a436b5
3
+ metadata.gz: e2251af231c276f8a7afbb8c5766ec286e076737a5446f3b453915243884684a
4
+ data.tar.gz: 0045f0edcd07e6a0b152af2ea75146017fb0c0217584e2edc56d5eedcafe0f71
5
5
  SHA512:
6
- metadata.gz: ad73beaf5b3110282c673bbbb2566fad13ddbbe92ffa24f52eca02efc8a83f56c504d84dbc4e571ff42a3af6f7762a517c19654c6942775b26330a25ff67fc9b
7
- data.tar.gz: d17eaef98d39bfe83f09ed5a7fbcd6bf94eff3d9b85b23f1fd12732f40c965796910184eca6fe9686a62a6f152566c2a72d473a338a7f9903794676d56ca831b
6
+ metadata.gz: 44814126d3b6b6e960e1044a320ca2e94cec80bef3a58be0dcb10b9ed92bb2ebe4c21ab4b446e3e14c65a8c4f18bd265252462d056944ad0e15c5928bcd58ba8
7
+ data.tar.gz: da8145dd6a52dd3f4f9d4db73b4295d8df88dae974fac3df7db353a16ad95f45746066ddf98252ea3453660a2345d349cce8b2ca0e7f36bea2fade61cfd3368e
@@ -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
- warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}."
8
- warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.0.3.1'
4
+ VERSION = '3.0.3.2'
5
5
  end
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.1
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-29 00:00:00.000000000 Z
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.1/CHANGELOG.md
249
- documentation_uri: https://www.rubydoc.info/gems/parser/3.0.3.1
250
- source_code_uri: https://github.com/whitequark/parser/tree/v3.0.3.1
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: