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 +4 -4
- data/LICENSE.txt +2 -1
- data/lib/parser/current.rb +2 -2
- data/lib/parser/macruby.rb +1 -1
- data/lib/parser/ruby18.rb +1 -1
- data/lib/parser/ruby19.rb +1 -1
- data/lib/parser/ruby20.rb +1 -1
- data/lib/parser/ruby21.rb +1 -1
- data/lib/parser/ruby22.rb +1 -1
- data/lib/parser/ruby23.rb +1 -1
- data/lib/parser/ruby24.rb +1 -1
- data/lib/parser/ruby25.rb +1 -1
- data/lib/parser/ruby26.rb +1 -1
- data/lib/parser/ruby27.rb +1 -1
- data/lib/parser/ruby30.rb +1 -1
- data/lib/parser/ruby31.rb +1 -1
- data/lib/parser/ruby32.rb +1 -1
- data/lib/parser/ruby33.rb +1 -1
- data/lib/parser/ruby34.rb +1 -1
- data/lib/parser/rubymotion.rb +1 -1
- data/lib/parser/runner.rb +8 -12
- 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: 7d7e7ade0d09748d25d79786b349a37bfc5e6165c6bcb0120f4462c9bb2ce410
|
4
|
+
data.tar.gz: 27612c02dc6f9dc6f2f1050d4da0c3c8b2f1c651b0d7fb37e4dd91537dfa75e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bea6027601398c6336b05fa44b6d3b3c3beb600d2b72b50941e3736329d9e7a11ec2aa03731ac5566bbcde4d4955cd20c2d457d9575b3d86efd0ef24172c0de3
|
7
|
+
data.tar.gz: 1b9f74f4cb642be7c96aca22b575d5d327e5a1e035a30c0e5ebc5fadfee2168b7c02445a86420644736bf54ce1580b3cddef746f31f3a152570710e3c41d6733
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
Copyright (c) 2013-
|
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
|
data/lib/parser/current.rb
CHANGED
@@ -102,7 +102,7 @@ module Parser
|
|
102
102
|
CurrentRuby = Ruby31
|
103
103
|
|
104
104
|
when /^3\.2\./
|
105
|
-
current_version = '3.2.
|
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.
|
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
|
data/lib/parser/macruby.rb
CHANGED
data/lib/parser/ruby18.rb
CHANGED
data/lib/parser/ruby19.rb
CHANGED
data/lib/parser/ruby20.rb
CHANGED
data/lib/parser/ruby21.rb
CHANGED
data/lib/parser/ruby22.rb
CHANGED
data/lib/parser/ruby23.rb
CHANGED
data/lib/parser/ruby24.rb
CHANGED
data/lib/parser/ruby25.rb
CHANGED
data/lib/parser/ruby26.rb
CHANGED
data/lib/parser/ruby27.rb
CHANGED
data/lib/parser/ruby30.rb
CHANGED
data/lib/parser/ruby31.rb
CHANGED
data/lib/parser/ruby32.rb
CHANGED
data/lib/parser/ruby33.rb
CHANGED
data/lib/parser/ruby34.rb
CHANGED
data/lib/parser/rubymotion.rb
CHANGED
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
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
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(
|
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(
|
282
|
-
|
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' %
|
282
|
+
" in #{'%.2f' % time_elapsed} seconds (#{speed} kchars/s)."
|
287
283
|
|
288
284
|
if defined?(RUBY_ENGINE)
|
289
285
|
engine = RUBY_ENGINE
|
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.3.
|
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-
|
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.
|
255
|
-
documentation_uri: https://www.rubydoc.info/gems/parser/3.3.
|
256
|
-
source_code_uri: https://github.com/whitequark/parser/tree/v3.3.
|
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:
|