coderunner 0.14.9 → 0.14.10
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/class_methods.rb +1 -1
- data/lib/cubecalccrmod/cubecalc.rb +9 -9
- data/test/test_coderunner.rb +1 -0
- 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: f6d4b25de2cf02ad35a7f69356647f1306cc6828
|
4
|
+
data.tar.gz: a5d548cd6c280347b9bcf83970787f6429be6b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c5edc2c211aebc654e930480e26ba04e657826fdea4d2eb919dce4e3f9864716e4487c07c811cc3c85e428fd85c1ca12e7bb54bd5ea4252ffdd8a98683ccd2b
|
7
|
+
data.tar.gz: d37d6299183ffba65d4c377e53156a1af37494ae897f766d2bce67d4a56af969ca584b9fc3a7ab611c8c010960f64cac162595e2707e420fe8b8c89c6adbd83c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.14.
|
1
|
+
0.14.10
|
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.14.
|
5
|
+
# stub: coderunner 0.14.10 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.14.
|
10
|
+
s.version = "0.14.10"
|
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"]
|
@@ -609,7 +609,7 @@ EOF
|
|
609
609
|
end
|
610
610
|
def self.show_values_of(expression, copts={})
|
611
611
|
runner = fetch_runner(copts)
|
612
|
-
p runner.filtered_ids.map{|id| runner.
|
612
|
+
p runner.filtered_ids.map{|id| runner.combined_run_list[id].instance_eval(expression)}.uniq.sort
|
613
613
|
end
|
614
614
|
def self.status_with_comments(copts={})
|
615
615
|
copts[:with_comments] = true
|
@@ -11,7 +11,7 @@ class CodeRunner
|
|
11
11
|
|
12
12
|
# e.g. number of iterations
|
13
13
|
|
14
|
-
@run_info = [:
|
14
|
+
@run_info = [:component_run_description]
|
15
15
|
|
16
16
|
# @@executable_name = 'cubecalc'
|
17
17
|
|
@@ -49,11 +49,11 @@ def process_directory_code_specific
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def print_out_line
|
52
|
-
if @
|
53
|
-
if @
|
52
|
+
if @is_component
|
53
|
+
if @component_run_description == :area
|
54
54
|
return sprintf("%d:%d %30s %10s %f %s", @id, @job_no, @run_name, @status, (@volume or 0.0), @area.to_s)
|
55
55
|
else
|
56
|
-
raise 'there is only one
|
56
|
+
raise 'there is only one component_run_description at the moment'
|
57
57
|
end
|
58
58
|
else
|
59
59
|
return sprintf("%d:%d %30s %10s %f %s", @id, @job_no, @run_name, @status, (@volume or 0.0), @sides.to_s)
|
@@ -80,13 +80,13 @@ end
|
|
80
80
|
#end
|
81
81
|
|
82
82
|
|
83
|
-
def
|
83
|
+
def generate_component_runs
|
84
84
|
return unless @sides
|
85
85
|
@sides.each do |area|
|
86
|
-
# puts 'creating
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
# puts 'creating component: ' + @run_name
|
87
|
+
component = create_component
|
88
|
+
component.area = area
|
89
|
+
component.component_run_description = :area
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
data/test/test_coderunner.rb
CHANGED
@@ -205,6 +205,7 @@ class TestCodeRunner < Test::Unit::TestCase
|
|
205
205
|
|
206
206
|
def test_status_with_component
|
207
207
|
CodeRunner.status(Y: tfolder, h: :c)
|
208
|
+
CodeRunner.show_values_of('area', Y: tfolder, h: :c)
|
208
209
|
end
|
209
210
|
def test_alter_ids
|
210
211
|
FileUtils.rm_r tfolder2 if FileTest.exist?(tfolder2)
|