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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4df19c83ee4292ddd16cf679395b22b49e91eaa5
4
- data.tar.gz: a34e1d0fecc2f93c9ebc492461c0400827a8b2c5
3
+ metadata.gz: f6d4b25de2cf02ad35a7f69356647f1306cc6828
4
+ data.tar.gz: a5d548cd6c280347b9bcf83970787f6429be6b3d
5
5
  SHA512:
6
- metadata.gz: 947b961fcb3e1fdd0eb44f1ac74ea0f4b284bd18c665a604e7c93862e289c056399abbb488b9f6460f797b281b168a32585f917cdfb6fae1997dff282c0d72c5
7
- data.tar.gz: 7d102e4e57fc263f47f595ba4a08b925db26073f6c16b584aa8bca63ad85562c1314871cb5013506c5fc98ff933ba4d12dcaf9e104e4e88b5200ce7b02bda43e
6
+ metadata.gz: 7c5edc2c211aebc654e930480e26ba04e657826fdea4d2eb919dce4e3f9864716e4487c07c811cc3c85e428fd85c1ca12e7bb54bd5ea4252ffdd8a98683ccd2b
7
+ data.tar.gz: d37d6299183ffba65d4c377e53156a1af37494ae897f766d2bce67d4a56af969ca584b9fc3a7ab611c8c010960f64cac162595e2707e420fe8b8c89c6adbd83c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.9
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.9 ruby lib
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.9"
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.run_list[id].instance_eval(expression)}.uniq.sort
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 = [:phantom_run_description]
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 @is_phantom
53
- if @phantom_run_description == :area
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 phantom_run_description at the moment'
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 generate_phantom_runs
83
+ def generate_component_runs
84
84
  return unless @sides
85
85
  @sides.each do |area|
86
- # puts 'creating phantom: ' + @run_name
87
- phantom = create_phantom
88
- phantom.area = area
89
- phantom.phantom_run_description = :area
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
 
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.9
4
+ version: 0.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock