coderunner 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +2 -2
- data/lib/coderunner/merged_code_runner.rb +8 -0
- data/lib/coderunner/run.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58161aafa099bd42c6f44f142a2e7f0dbd9be371
|
4
|
+
data.tar.gz: 3061cc19206df1c9dcab4e3df936585db85bf7d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45044db1e9e4797b457b029cb603bf9d38d0912cc9d5b2adb950430a470efa797e238f73c4b0cd889a5a19d74316b424a69026931437978b1c414895e476e556
|
7
|
+
data.tar.gz: cc9fc3715bfa4eb67c57b27bea4b154b01af31720f8ee43dc0bab472521f4cd91ee3b1a833a1a26f105954cb8773a86bcba6c973b536ab5ef76d5be30ee03dbd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.2
|
data/coderunner.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: coderunner 0.15.
|
5
|
+
# stub: coderunner 0.15.2 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.15.
|
10
|
+
s.version = "0.15.2"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
@@ -51,6 +51,9 @@ class CodeRunner
|
|
51
51
|
run.id[0].to_s + ","
|
52
52
|
#""
|
53
53
|
end
|
54
|
+
# Do nothing
|
55
|
+
def save_large_cache
|
56
|
+
end
|
54
57
|
# Merge an additional runner.
|
55
58
|
def add_runner(runner)
|
56
59
|
index = @runners.size
|
@@ -85,6 +88,8 @@ class CodeRunner
|
|
85
88
|
# run has a unique id, and the merged runner can treat the Run::Merged objects
|
86
89
|
# exactly as if they were simply Run objects.
|
87
90
|
class Run::Merged
|
91
|
+
#(Object.instance_methods - [:send,:set,:object_id, :__send__, :__id__]).each{|meth| undef_method meth}
|
92
|
+
undef_method :test
|
88
93
|
attr_reader :run
|
89
94
|
attr_accessor :id
|
90
95
|
def initialize(runner_index, run)
|
@@ -92,6 +97,9 @@ class CodeRunner
|
|
92
97
|
@run = run
|
93
98
|
@id = [@runner_index, @run.id]
|
94
99
|
end
|
100
|
+
#def send(meth, *args)
|
101
|
+
#@run.send(meth, *args)
|
102
|
+
#end
|
95
103
|
def method_missing(meth, *args)
|
96
104
|
@run.send(meth, *args)
|
97
105
|
end
|
data/lib/coderunner/run.rb
CHANGED
@@ -363,7 +363,7 @@ end
|
|
363
363
|
def save
|
364
364
|
|
365
365
|
logf(:save)
|
366
|
-
raise CRFatal.new("Something has gone horribly wrong: runner.class is #{@runner.class} instead of CodeRunner") unless @runner.class.to_s
|
366
|
+
raise CRFatal.new("Something has gone horribly wrong: runner.class is #{@runner.class} instead of CodeRunner") unless @runner.class.to_s =~ /^CodeRunner(::Merged)?/
|
367
367
|
runner, @runner = @runner, nil
|
368
368
|
@system_triers, old_triers = nil, @system_triers
|
369
369
|
@component_runs.each{|run| run.runner = nil} if @component_runs
|