evilution 0.12.0 → 0.14.0
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
- data/.beads/.migration-hint-ts +1 -1
- data/.beads/issues.jsonl +127 -0
- data/CHANGELOG.md +29 -0
- data/lib/evilution/ast/parser.rb +69 -68
- data/lib/evilution/ast/source_surgeon.rb +7 -9
- data/lib/evilution/ast.rb +4 -0
- data/lib/evilution/baseline.rb +73 -75
- data/lib/evilution/cache.rb +75 -77
- data/lib/evilution/cli.rb +408 -173
- data/lib/evilution/config.rb +141 -136
- data/lib/evilution/equivalent/detector.rb +25 -27
- data/lib/evilution/equivalent/heuristic/alias_swap.rb +29 -33
- data/lib/evilution/equivalent/heuristic/dead_code.rb +41 -45
- data/lib/evilution/equivalent/heuristic/method_body_nil.rb +11 -15
- data/lib/evilution/equivalent/heuristic/noop_source.rb +5 -9
- data/lib/evilution/equivalent/heuristic.rb +6 -0
- data/lib/evilution/equivalent.rb +4 -0
- data/lib/evilution/git/changed_files.rb +35 -37
- data/lib/evilution/git.rb +4 -0
- data/lib/evilution/integration/base.rb +5 -7
- data/lib/evilution/integration/rspec.rb +114 -116
- data/lib/evilution/integration.rb +4 -0
- data/lib/evilution/isolation/fork.rb +98 -100
- data/lib/evilution/isolation/in_process.rb +59 -61
- data/lib/evilution/isolation.rb +4 -0
- data/lib/evilution/mcp/mutate_tool.rb +172 -143
- data/lib/evilution/mcp/server.rb +12 -11
- data/lib/evilution/mcp/session_diff_tool.rb +89 -0
- data/lib/evilution/mcp/session_list_tool.rb +46 -0
- data/lib/evilution/mcp/session_show_tool.rb +53 -0
- data/lib/evilution/mcp.rb +4 -0
- data/lib/evilution/memory/leak_check.rb +80 -84
- data/lib/evilution/memory.rb +34 -36
- data/lib/evilution/mutation.rb +40 -42
- data/lib/evilution/mutator/base.rb +46 -48
- data/lib/evilution/mutator/operator/argument_nil_substitution.rb +32 -36
- data/lib/evilution/mutator/operator/argument_removal.rb +32 -36
- data/lib/evilution/mutator/operator/arithmetic_replacement.rb +26 -30
- data/lib/evilution/mutator/operator/array_literal.rb +18 -22
- data/lib/evilution/mutator/operator/block_removal.rb +16 -20
- data/lib/evilution/mutator/operator/boolean_literal_replacement.rb +38 -42
- data/lib/evilution/mutator/operator/boolean_operator_replacement.rb +41 -45
- data/lib/evilution/mutator/operator/collection_replacement.rb +32 -36
- data/lib/evilution/mutator/operator/comparison_replacement.rb +24 -28
- data/lib/evilution/mutator/operator/compound_assignment.rb +119 -0
- data/lib/evilution/mutator/operator/conditional_branch.rb +25 -29
- data/lib/evilution/mutator/operator/conditional_flip.rb +26 -30
- data/lib/evilution/mutator/operator/conditional_negation.rb +25 -29
- data/lib/evilution/mutator/operator/float_literal.rb +22 -26
- data/lib/evilution/mutator/operator/hash_literal.rb +18 -22
- data/lib/evilution/mutator/operator/integer_literal.rb +18 -44
- data/lib/evilution/mutator/operator/method_body_replacement.rb +12 -16
- data/lib/evilution/mutator/operator/method_call_removal.rb +12 -16
- data/lib/evilution/mutator/operator/negation_insertion.rb +12 -16
- data/lib/evilution/mutator/operator/nil_replacement.rb +13 -17
- data/lib/evilution/mutator/operator/range_replacement.rb +12 -16
- data/lib/evilution/mutator/operator/receiver_replacement.rb +16 -20
- data/lib/evilution/mutator/operator/regexp_mutation.rb +15 -19
- data/lib/evilution/mutator/operator/return_value_removal.rb +12 -16
- data/lib/evilution/mutator/operator/send_mutation.rb +36 -40
- data/lib/evilution/mutator/operator/statement_deletion.rb +13 -17
- data/lib/evilution/mutator/operator/string_literal.rb +18 -22
- data/lib/evilution/mutator/operator/symbol_literal.rb +17 -21
- data/lib/evilution/mutator/operator.rb +6 -0
- data/lib/evilution/mutator/registry.rb +54 -55
- data/lib/evilution/mutator.rb +4 -0
- data/lib/evilution/parallel/pool.rb +56 -58
- data/lib/evilution/parallel.rb +4 -0
- data/lib/evilution/reporter/cli.rb +99 -101
- data/lib/evilution/reporter/html.rb +242 -244
- data/lib/evilution/reporter/json.rb +57 -59
- data/lib/evilution/reporter/suggestion.rb +326 -313
- data/lib/evilution/reporter.rb +4 -0
- data/lib/evilution/result/mutation_result.rb +43 -46
- data/lib/evilution/result/summary.rb +80 -81
- data/lib/evilution/result.rb +4 -0
- data/lib/evilution/runner.rb +334 -323
- data/lib/evilution/session/store.rb +147 -0
- data/lib/evilution/session.rb +4 -0
- data/lib/evilution/spec_resolver.rb +49 -47
- data/lib/evilution/subject.rb +14 -16
- data/lib/evilution/version.rb +1 -1
- data/lib/evilution.rb +14 -0
- metadata +20 -2
data/lib/evilution/ast/parser.rb
CHANGED
|
@@ -2,85 +2,86 @@
|
|
|
2
2
|
|
|
3
3
|
require "prism"
|
|
4
4
|
|
|
5
|
-
module Evilution
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
raise ParseError.new("cannot read #{file_path}: #{e.message}", file: file_path)
|
|
15
|
-
end
|
|
16
|
-
result = Prism.parse(source)
|
|
17
|
-
|
|
18
|
-
raise ParseError.new("failed to parse #{file_path}: #{result.errors.map(&:message).join(", ")}", file: file_path) if result.failure?
|
|
19
|
-
|
|
20
|
-
extract_subjects(result.value, source, file_path)
|
|
5
|
+
module Evilution::AST
|
|
6
|
+
class Parser
|
|
7
|
+
def call(file_path)
|
|
8
|
+
raise Evilution::ParseError.new("file not found: #{file_path}", file: file_path) unless File.exist?(file_path)
|
|
9
|
+
|
|
10
|
+
begin
|
|
11
|
+
source = File.read(file_path)
|
|
12
|
+
rescue SystemCallError => e
|
|
13
|
+
raise Evilution::ParseError.new("cannot read #{file_path}: #{e.message}", file: file_path)
|
|
21
14
|
end
|
|
15
|
+
result = Prism.parse(source)
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
finder = SubjectFinder.new(source, file_path)
|
|
27
|
-
finder.visit(tree)
|
|
28
|
-
finder.subjects
|
|
17
|
+
if result.failure?
|
|
18
|
+
raise Evilution::ParseError.new("failed to parse #{file_path}: #{result.errors.map(&:message).join(", ")}",
|
|
19
|
+
file: file_path)
|
|
29
20
|
end
|
|
21
|
+
|
|
22
|
+
extract_subjects(result.value, source, file_path)
|
|
30
23
|
end
|
|
31
24
|
|
|
32
|
-
|
|
33
|
-
attr_reader :subjects
|
|
25
|
+
private
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
def extract_subjects(tree, source, file_path)
|
|
28
|
+
finder = SubjectFinder.new(source, file_path)
|
|
29
|
+
finder.visit(tree)
|
|
30
|
+
finder.subjects
|
|
31
|
+
end
|
|
32
|
+
end
|
|
41
33
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
super
|
|
45
|
-
@context.pop
|
|
46
|
-
end
|
|
34
|
+
class SubjectFinder < Prism::Visitor
|
|
35
|
+
attr_reader :subjects
|
|
47
36
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
def initialize(source, file_path)
|
|
38
|
+
@source = source
|
|
39
|
+
@file_path = file_path
|
|
40
|
+
@subjects = []
|
|
41
|
+
@context = []
|
|
42
|
+
end
|
|
53
43
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
44
|
+
def visit_module_node(node)
|
|
45
|
+
@context.push(constant_name(node.constant_path))
|
|
46
|
+
super
|
|
47
|
+
@context.pop
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def visit_class_node(node)
|
|
51
|
+
@context.push(constant_name(node.constant_path))
|
|
52
|
+
super
|
|
53
|
+
@context.pop
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def visit_def_node(node)
|
|
57
|
+
scope = @context.join("::")
|
|
58
|
+
name = if scope.empty?
|
|
59
|
+
"##{node.name}"
|
|
60
|
+
else
|
|
61
|
+
"#{scope}##{node.name}"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
loc = node.location
|
|
65
|
+
method_source = @source[loc.start_offset...loc.end_offset]
|
|
66
|
+
|
|
67
|
+
@subjects << Evilution::Subject.new(
|
|
68
|
+
name: name,
|
|
69
|
+
file_path: @file_path,
|
|
70
|
+
line_number: loc.start_line,
|
|
71
|
+
source: method_source,
|
|
72
|
+
node: node
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
super
|
|
76
|
+
end
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
private
|
|
77
79
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
end
|
|
80
|
+
def constant_name(node)
|
|
81
|
+
if node.respond_to?(:full_name)
|
|
82
|
+
node.full_name
|
|
83
|
+
else
|
|
84
|
+
node.name.to_s
|
|
84
85
|
end
|
|
85
86
|
end
|
|
86
87
|
end
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
end
|
|
11
|
-
end
|
|
3
|
+
require_relative "../ast"
|
|
4
|
+
|
|
5
|
+
module Evilution::AST::SourceSurgeon
|
|
6
|
+
def self.apply(source, offset:, length:, replacement:)
|
|
7
|
+
result = source.dup
|
|
8
|
+
result[offset, length] = replacement
|
|
9
|
+
result
|
|
12
10
|
end
|
|
13
11
|
end
|
data/lib/evilution/baseline.rb
CHANGED
|
@@ -2,99 +2,97 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "spec_resolver"
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
freeze
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def failed?
|
|
14
|
-
!failed_spec_files.empty?
|
|
15
|
-
end
|
|
5
|
+
class Evilution::Baseline
|
|
6
|
+
Result = Struct.new(:failed_spec_files, :duration) do
|
|
7
|
+
def initialize(**)
|
|
8
|
+
super
|
|
9
|
+
freeze
|
|
16
10
|
end
|
|
17
11
|
|
|
18
|
-
def
|
|
19
|
-
|
|
20
|
-
@timeout = timeout
|
|
12
|
+
def failed?
|
|
13
|
+
!failed_spec_files.empty?
|
|
21
14
|
end
|
|
15
|
+
end
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
def initialize(spec_resolver: Evilution::SpecResolver.new, timeout: 30)
|
|
18
|
+
@spec_resolver = spec_resolver
|
|
19
|
+
@timeout = timeout
|
|
20
|
+
end
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
def call(subjects)
|
|
23
|
+
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
24
|
+
spec_files = resolve_unique_spec_files(subjects)
|
|
25
|
+
failed = Set.new
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
spec_files.each do |spec_file|
|
|
28
|
+
failed.add(spec_file) unless run_spec_file(spec_file)
|
|
34
29
|
end
|
|
35
30
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
duration = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time
|
|
32
|
+
Result.new(failed_spec_files: failed, duration: duration)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def run_spec_file(spec_file)
|
|
36
|
+
read_io, write_io = IO.pipe
|
|
37
|
+
pid = fork_spec_runner(spec_file, read_io, write_io)
|
|
38
|
+
write_io.close
|
|
39
|
+
read_result(read_io, pid)
|
|
40
|
+
rescue StandardError
|
|
41
|
+
false
|
|
42
|
+
ensure
|
|
43
|
+
read_io&.close
|
|
44
|
+
write_io&.close
|
|
45
|
+
end
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
end
|
|
47
|
+
def fork_spec_runner(spec_file, read_io, write_io)
|
|
48
|
+
Process.fork do
|
|
49
|
+
read_io.close
|
|
50
|
+
$stdout.reopen(File::NULL, "w")
|
|
51
|
+
$stderr.reopen(File::NULL, "w")
|
|
52
|
+
|
|
53
|
+
require "rspec/core"
|
|
54
|
+
RSpec.reset
|
|
55
|
+
status = RSpec::Core::Runner.run(
|
|
56
|
+
["--format", "progress", "--no-color", "--order", "defined", spec_file]
|
|
57
|
+
)
|
|
58
|
+
Marshal.dump({ passed: status.zero? }, write_io)
|
|
59
|
+
write_io.close
|
|
60
|
+
exit!(status.zero? ? 0 : 1)
|
|
63
61
|
end
|
|
62
|
+
end
|
|
64
63
|
|
|
65
|
-
|
|
64
|
+
GRACE_PERIOD = 0.5
|
|
66
65
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
def read_result(read_io, pid)
|
|
67
|
+
if read_io.wait_readable(@timeout)
|
|
68
|
+
data = read_io.read
|
|
69
|
+
Process.wait(pid)
|
|
70
|
+
return false if data.empty?
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
end
|
|
72
|
+
result = Marshal.load(data) # rubocop:disable Security/MarshalLoad
|
|
73
|
+
result[:passed]
|
|
74
|
+
else
|
|
75
|
+
terminate_child(pid)
|
|
76
|
+
false
|
|
79
77
|
end
|
|
78
|
+
end
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
def terminate_child(pid)
|
|
81
|
+
Process.kill("TERM", pid) rescue nil # rubocop:disable Style/RescueModifier
|
|
82
|
+
_, status = Process.waitpid2(pid, Process::WNOHANG)
|
|
83
|
+
return if status
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
sleep(GRACE_PERIOD)
|
|
86
|
+
_, status = Process.waitpid2(pid, Process::WNOHANG)
|
|
87
|
+
return if status
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
Process.kill("KILL", pid) rescue nil # rubocop:disable Style/RescueModifier
|
|
90
|
+
Process.wait(pid) rescue nil # rubocop:disable Style/RescueModifier
|
|
91
|
+
end
|
|
93
92
|
|
|
94
|
-
|
|
93
|
+
private
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
end
|
|
95
|
+
def resolve_unique_spec_files(subjects)
|
|
96
|
+
subjects.map { |s| @spec_resolver.call(s.file_path) || "spec" }.uniq
|
|
99
97
|
end
|
|
100
98
|
end
|
data/lib/evilution/cache.rb
CHANGED
|
@@ -4,82 +4,80 @@ require "digest"
|
|
|
4
4
|
require "json"
|
|
5
5
|
require "fileutils"
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
File.join(@cache_dir, "#{file_key}.json")
|
|
83
|
-
end
|
|
7
|
+
class Evilution::Cache
|
|
8
|
+
DEFAULT_DIR = "tmp/evilution_cache"
|
|
9
|
+
|
|
10
|
+
def initialize(cache_dir: DEFAULT_DIR)
|
|
11
|
+
@cache_dir = cache_dir
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def fetch(mutation)
|
|
15
|
+
return nil if mutation.original_source.nil?
|
|
16
|
+
|
|
17
|
+
file_key = file_key(mutation)
|
|
18
|
+
entry_key = entry_key(mutation)
|
|
19
|
+
data = read_file(file_key)
|
|
20
|
+
return nil unless data
|
|
21
|
+
|
|
22
|
+
entry = data[entry_key]
|
|
23
|
+
return nil unless entry.is_a?(Hash) && entry["status"].is_a?(String)
|
|
24
|
+
|
|
25
|
+
{ status: entry["status"].to_sym, duration: entry["duration"],
|
|
26
|
+
killing_test: entry["killing_test"], test_command: entry["test_command"] }
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def store(mutation, result_data)
|
|
30
|
+
file_key = file_key(mutation)
|
|
31
|
+
entry_key = entry_key(mutation)
|
|
32
|
+
data = read_file(file_key) || {}
|
|
33
|
+
|
|
34
|
+
data[entry_key] = {
|
|
35
|
+
"status" => result_data[:status].to_s,
|
|
36
|
+
"duration" => result_data[:duration],
|
|
37
|
+
"killing_test" => result_data[:killing_test],
|
|
38
|
+
"test_command" => result_data[:test_command]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
write_file(file_key, data)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def clear
|
|
45
|
+
FileUtils.rm_rf(@cache_dir)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
def file_key(mutation)
|
|
51
|
+
content_hash = Digest::SHA256.hexdigest(mutation.original_source)
|
|
52
|
+
"#{safe_filename(mutation.file_path)}_#{content_hash[0, 16]}"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def entry_key(mutation)
|
|
56
|
+
"#{mutation.operator_name}:#{mutation.line}:#{mutation.column}"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def safe_filename(path)
|
|
60
|
+
path.gsub(%r{[/\\]}, "_").gsub(/[^a-zA-Z0-9._-]/, "")
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def read_file(file_key)
|
|
64
|
+
path = cache_path(file_key)
|
|
65
|
+
return nil unless File.exist?(path)
|
|
66
|
+
|
|
67
|
+
JSON.parse(File.read(path))
|
|
68
|
+
rescue JSON::ParserError
|
|
69
|
+
nil
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def write_file(file_key, data)
|
|
73
|
+
FileUtils.mkdir_p(@cache_dir)
|
|
74
|
+
path = cache_path(file_key)
|
|
75
|
+
tmp = "#{path}.#{Process.pid}.tmp"
|
|
76
|
+
File.write(tmp, JSON.generate(data))
|
|
77
|
+
File.rename(tmp, path)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def cache_path(file_key)
|
|
81
|
+
File.join(@cache_dir, "#{file_key}.json")
|
|
84
82
|
end
|
|
85
83
|
end
|