flog 4.9.0 → 4.9.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +9 -0
- data/Rakefile +2 -6
- data/lib/flog.rb +4 -6
- data/test/test_flog.rb +1 -1
- data/test/test_flog_cli.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '07738fae525db950a36908c105a3ea7f4ef2735ad8ec39621332bb12dff927b8'
|
|
4
|
+
data.tar.gz: 0506b7754237f626888a17e8e17f9b54a74683a093ae24440fe6275cdc4fa6c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6f3379c0fa7795f344bcc2d45bbbef81de04a6cc54ea77219651cb7215b4e402e3814265be85208c2ab174b220a150be1d63489ececed98c97683b15da5dfa5
|
|
7
|
+
data.tar.gz: '0493e8b1fcaa2868e2cd9f39cbe75dc51a2d196e78cf4cac8c94faadbff0c7494e18805dc0058a6a2488d6ceda7dad16015253d0b4d6e5f2bc1b8bdc915e57e8'
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/History.rdoc
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
=== 4.9.1 / 2025-12-20
|
|
2
|
+
|
|
3
|
+
* 4 bug fixes:
|
|
4
|
+
|
|
5
|
+
* Bumped dependency to prism to get some upstreamed fixes.
|
|
6
|
+
* Dropped ruby_parser dependency (now considered soft dep for --legacy flag).
|
|
7
|
+
* Minor cleanup of some of the upstreamed fixes.
|
|
8
|
+
* Re-add ruby_parser dependency until I can get a patch into prism to loosen it up.
|
|
9
|
+
|
|
1
10
|
=== 4.9.0 / 2025-12-11
|
|
2
11
|
|
|
3
12
|
* 2 minor enhancements:
|
data/Rakefile
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'hoe'
|
|
5
5
|
|
|
6
|
-
Hoe.add_include_dirs("../../
|
|
7
|
-
"../../RubyInline/dev/lib",
|
|
8
|
-
"../../sexp_processor/dev/lib",
|
|
6
|
+
Hoe.add_include_dirs("../../sexp_processor/dev/lib",
|
|
9
7
|
"../../ZenTest/dev/lib",
|
|
10
8
|
"../../path_expander/dev/lib",
|
|
11
9
|
"lib")
|
|
@@ -24,10 +22,8 @@ Hoe.spec 'flog' do
|
|
|
24
22
|
license "MIT"
|
|
25
23
|
|
|
26
24
|
dependency "sexp_processor", "~> 4.8"
|
|
27
|
-
dependency "prism", "~> 1.
|
|
25
|
+
dependency "prism", "~> 1.7"
|
|
28
26
|
dependency "path_expander", "~> 2.0"
|
|
29
|
-
|
|
30
|
-
dependency "minitest", "~> 5.0", :dev
|
|
31
27
|
end
|
|
32
28
|
|
|
33
29
|
task :debug do
|
data/lib/flog.rb
CHANGED
|
@@ -2,11 +2,9 @@ require "sexp_processor"
|
|
|
2
2
|
require "prism"
|
|
3
3
|
require "prism/translation/ruby_parser"
|
|
4
4
|
require "timeout"
|
|
5
|
+
require "racc" # for Racc::ParseError
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
def process(ruby, file, timeout=nil) =
|
|
8
|
-
Timeout.timeout(timeout) { parse ruby, file }
|
|
9
|
-
end
|
|
7
|
+
NotRubyParser = Class.new Prism::Translation::RubyParser
|
|
10
8
|
|
|
11
9
|
##
|
|
12
10
|
# Flog is a SexpProcessor that calculates a ABC (assignments,
|
|
@@ -18,7 +16,7 @@ end
|
|
|
18
16
|
# thoroughly test.
|
|
19
17
|
|
|
20
18
|
class Flog < MethodBasedSexpProcessor
|
|
21
|
-
VERSION = "4.9.
|
|
19
|
+
VERSION = "4.9.1" # :nodoc:
|
|
22
20
|
|
|
23
21
|
##
|
|
24
22
|
# Cut off point where the report should stop unless --all given.
|
|
@@ -236,7 +234,7 @@ class Flog < MethodBasedSexpProcessor
|
|
|
236
234
|
@mass = {}
|
|
237
235
|
@parser = nil
|
|
238
236
|
@threshold = option[:threshold] || DEFAULT_THRESHOLD
|
|
239
|
-
option[:parser] ||=
|
|
237
|
+
option[:parser] ||= NotRubyParser
|
|
240
238
|
self.auto_shift_type = true
|
|
241
239
|
self.reset
|
|
242
240
|
end
|
data/test/test_flog.rb
CHANGED
data/test/test_flog_cli.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.9.
|
|
4
|
+
version: 4.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Davis
|
|
@@ -50,14 +50,14 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '1.
|
|
53
|
+
version: '1.7'
|
|
54
54
|
type: :runtime
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '1.
|
|
60
|
+
version: '1.7'
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: path_expander
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -72,20 +72,6 @@ dependencies:
|
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '2.0'
|
|
75
|
-
- !ruby/object:Gem::Dependency
|
|
76
|
-
name: minitest
|
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - "~>"
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '5.0'
|
|
82
|
-
type: :development
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - "~>"
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '5.0'
|
|
89
75
|
- !ruby/object:Gem::Dependency
|
|
90
76
|
name: rdoc
|
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|