parser 3.3.4.2 → 3.3.6.0

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: d0721a00def81d4aa65baaed217fe46fe6acb96f2273c0b39056840078c05ab2
4
- data.tar.gz: b62705e1adc08bc4bb7b574d59be327a70730ad39d37a3cc4b79bb353bf29290
3
+ metadata.gz: 7d7e7ade0d09748d25d79786b349a37bfc5e6165c6bcb0120f4462c9bb2ce410
4
+ data.tar.gz: 27612c02dc6f9dc6f2f1050d4da0c3c8b2f1c651b0d7fb37e4dd91537dfa75e1
5
5
  SHA512:
6
- metadata.gz: 2955d3f05418ff24546990326dae9229af1772cb7b83642b824a2dd2b9463d61abd08d720083f012d287bad3ac524f53bcc4f1fbc4a8f634a5c38435bec3c884
7
- data.tar.gz: 13c8e6a49ecb6bfb03ed67066d8ffc5d5a86248aa68ba46cd8a0b9ad24232e6d91bec45c2bc26cee73b28d2fe8aedf7ee83302afb1925e54a36ec6e5a24e933e
6
+ metadata.gz: bea6027601398c6336b05fa44b6d3b3c3beb600d2b72b50941e3736329d9e7a11ec2aa03731ac5566bbcde4d4955cd20c2d457d9575b3d86efd0ef24172c0de3
7
+ data.tar.gz: 1b9f74f4cb642be7c96aca22b575d5d327e5a1e035a30c0e5ebc5fadfee2168b7c02445a86420644736bf54ce1580b3cddef746f31f3a152570710e3c41d6733
data/LICENSE.txt CHANGED
@@ -1,4 +1,5 @@
1
- Copyright (c) 2013-2016 whitequark <whitequark@whitequark.org>
1
+ Copyright (c) 2013-2024 parser project contributors
2
+ Copyright (c) 2013-2016 Catherine <whitequark@whitequark.org>
2
3
 
3
4
  Parts of the source are derived from ruby_parser:
4
5
  Copyright (c) Ryan Davis, seattle.rb
@@ -102,7 +102,7 @@ module Parser
102
102
  CurrentRuby = Ruby31
103
103
 
104
104
  when /^3\.2\./
105
- current_version = '3.2.5'
105
+ current_version = '3.2.6'
106
106
  if RUBY_VERSION != current_version
107
107
  warn_syntax_deviation 'parser/ruby32', current_version
108
108
  end
@@ -111,7 +111,7 @@ module Parser
111
111
  CurrentRuby = Ruby32
112
112
 
113
113
  when /^3\.3\./
114
- current_version = '3.3.4'
114
+ current_version = '3.3.6'
115
115
  if RUBY_VERSION != current_version
116
116
  warn_syntax_deviation 'parser/ruby33', current_version
117
117
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "macruby.y".
6
6
  #
7
7
 
data/lib/parser/ruby18.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby18.y".
6
6
  #
7
7
 
data/lib/parser/ruby19.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby19.y".
6
6
  #
7
7
 
data/lib/parser/ruby20.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby20.y".
6
6
  #
7
7
 
data/lib/parser/ruby21.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby21.y".
6
6
  #
7
7
 
data/lib/parser/ruby22.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby22.y".
6
6
  #
7
7
 
data/lib/parser/ruby23.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby23.y".
6
6
  #
7
7
 
data/lib/parser/ruby24.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby24.y".
6
6
  #
7
7
 
data/lib/parser/ruby25.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby25.y".
6
6
  #
7
7
 
data/lib/parser/ruby26.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby26.y".
6
6
  #
7
7
 
data/lib/parser/ruby27.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby27.y".
6
6
  #
7
7
 
data/lib/parser/ruby30.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby30.y".
6
6
  #
7
7
 
data/lib/parser/ruby31.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby31.y".
6
6
  #
7
7
 
data/lib/parser/ruby32.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby32.y".
6
6
  #
7
7
 
data/lib/parser/ruby33.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby33.y".
6
6
  #
7
7
 
data/lib/parser/ruby34.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "ruby34.y".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.7.3
4
+ # This file is automatically generated by Racc 1.8.1
5
5
  # from Racc grammar file "rubymotion.y".
6
6
  #
7
7
 
data/lib/parser/runner.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'benchmark'
4
3
  require 'find'
5
4
  require 'optparse'
6
5
 
@@ -220,14 +219,13 @@ module Parser
220
219
  end
221
220
 
222
221
  def process_all_input
223
- parsing_time =
224
- Benchmark.measure do
225
- process_fragments
226
- process_files
227
- end
222
+ time_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
223
+ process_fragments
224
+ process_files
225
+ time_elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - time_start
228
226
 
229
227
  if @benchmark
230
- report_with_time(parsing_time)
228
+ report_with_time(time_elapsed)
231
229
  end
232
230
  end
233
231
 
@@ -278,12 +276,10 @@ module Parser
278
276
  raise NotImplementedError, "implement #{self.class}##{__callee__}"
279
277
  end
280
278
 
281
- def report_with_time(parsing_time)
282
- cpu_time = parsing_time.utime
283
-
284
- speed = '%.3f' % (@source_size / cpu_time / 1000)
279
+ def report_with_time(time_elapsed)
280
+ speed = '%.3f' % (@source_size / time_elapsed / 1000)
285
281
  puts "Parsed #{@source_count} files (#{@source_size} characters)" \
286
- " in #{'%.2f' % cpu_time} seconds (#{speed} kchars/s)."
282
+ " in #{'%.2f' % time_elapsed} seconds (#{speed} kchars/s)."
287
283
 
288
284
  if defined?(RUBY_ENGINE)
289
285
  engine = RUBY_ENGINE
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.3.4.2'
4
+ VERSION = '3.3.6.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.3.4.2
4
+ version: 3.3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -251,9 +251,9 @@ licenses:
251
251
  - MIT
252
252
  metadata:
253
253
  bug_tracker_uri: https://github.com/whitequark/parser/issues
254
- changelog_uri: https://github.com/whitequark/parser/blob/v3.3.4.2/CHANGELOG.md
255
- documentation_uri: https://www.rubydoc.info/gems/parser/3.3.4.2
256
- source_code_uri: https://github.com/whitequark/parser/tree/v3.3.4.2
254
+ changelog_uri: https://github.com/whitequark/parser/blob/v3.3.6.0/CHANGELOG.md
255
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.3.6.0
256
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.3.6.0
257
257
  post_install_message:
258
258
  rdoc_options: []
259
259
  require_paths: