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 +4 -4
- data/lib/parser/current.rb +1 -1
- 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: 9eb046630686391eb9f142fc7d246cde16fbed4e56439b393d3fe0afe9a21db1
|
4
|
+
data.tar.gz: 7fe34e65b83d77aa819638f9977316a53b9233f71363b1c62aeaa5f03aea7259
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d334c12f70da2a91caab8fd8a7a633780fb49a0a36bc6d21022e840502bf02329f1ba3895548ca737bde870a383cf357b7c1eb7291c439ab8029710e4f63b1
|
7
|
+
data.tar.gz: d9b1b2c45c28aea4533c6d466e7c60cf36e301a380e127a86552eebe2e949aa993c724754bf35f8cf92f92efa218c82f528ef92575b953d981e2ef7be042dc59
|
data/lib/parser/current.rb
CHANGED
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.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-
|
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.
|
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.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:
|