parser 3.3.4.2 → 3.3.5.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: 9eb046630686391eb9f142fc7d246cde16fbed4e56439b393d3fe0afe9a21db1
4
+ data.tar.gz: 7fe34e65b83d77aa819638f9977316a53b9233f71363b1c62aeaa5f03aea7259
5
5
  SHA512:
6
- metadata.gz: 2955d3f05418ff24546990326dae9229af1772cb7b83642b824a2dd2b9463d61abd08d720083f012d287bad3ac524f53bcc4f1fbc4a8f634a5c38435bec3c884
7
- data.tar.gz: 13c8e6a49ecb6bfb03ed67066d8ffc5d5a86248aa68ba46cd8a0b9ad24232e6d91bec45c2bc26cee73b28d2fe8aedf7ee83302afb1925e54a36ec6e5a24e933e
6
+ metadata.gz: 78d334c12f70da2a91caab8fd8a7a633780fb49a0a36bc6d21022e840502bf02329f1ba3895548ca737bde870a383cf357b7c1eb7291c439ab8029710e4f63b1
7
+ data.tar.gz: d9b1b2c45c28aea4533c6d466e7c60cf36e301a380e127a86552eebe2e949aa993c724754bf35f8cf92f92efa218c82f528ef92575b953d981e2ef7be042dc59
@@ -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.5'
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.5.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.5.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-09-04 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.5.0/CHANGELOG.md
255
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.3.5.0
256
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.3.5.0
257
257
  post_install_message:
258
258
  rdoc_options: []
259
259
  require_paths: