parser 3.1.0.0 → 3.1.1.0

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.
data/lib/parser/runner.rb CHANGED
@@ -123,6 +123,11 @@ module Parser
123
123
  @parser_class = Parser::Ruby31
124
124
  end
125
125
 
126
+ opts.on '--32', 'Parse as Ruby 3.2 would' do
127
+ require 'parser/ruby32'
128
+ @parser_class = Parser::Ruby32
129
+ end
130
+
126
131
  opts.on '--mac', 'Parse as MacRuby 0.12 would' do
127
132
  require 'parser/macruby'
128
133
  @parser_class = Parser::MacRuby
@@ -161,6 +166,7 @@ module Parser
161
166
  @option_parser.parse!(options)
162
167
 
163
168
  # Slop has just removed recognized options from `options`.
169
+ @fragments << $stdin.read if options.delete('-')
164
170
  options.each do |file_or_dir|
165
171
  if File.directory?(file_or_dir)
166
172
  Find.find(file_or_dir) do |path|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.1.0.0'
4
+ VERSION = '3.1.1.0'
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.1.0.0
4
+ version: 3.1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -206,6 +206,7 @@ files:
206
206
  - lib/parser/ruby28.rb
207
207
  - lib/parser/ruby30.rb
208
208
  - lib/parser/ruby31.rb
209
+ - lib/parser/ruby32.rb
209
210
  - lib/parser/rubymotion.rb
210
211
  - lib/parser/runner.rb
211
212
  - lib/parser/runner/ruby_parse.rb
@@ -245,9 +246,9 @@ licenses:
245
246
  - MIT
246
247
  metadata:
247
248
  bug_tracker_uri: https://github.com/whitequark/parser/issues
248
- changelog_uri: https://github.com/whitequark/parser/blob/v3.1.0.0/CHANGELOG.md
249
- documentation_uri: https://www.rubydoc.info/gems/parser/3.1.0.0
250
- source_code_uri: https://github.com/whitequark/parser/tree/v3.1.0.0
249
+ changelog_uri: https://github.com/whitequark/parser/blob/v3.1.1.0/CHANGELOG.md
250
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.1.1.0
251
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.1.1.0
251
252
  post_install_message:
252
253
  rdoc_options: []
253
254
  require_paths: