coderunner 0.16.6 → 0.16.7

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: 30231a815979c2951d3d6ea5464d2fad06566cf7
4
- data.tar.gz: b3f4f1a2fcce3c04c16e77dfb223efbd73a7a672
3
+ metadata.gz: 257c0bd7135530bdb310ce0aa17542bc0f04d6dd
4
+ data.tar.gz: cc6da83fb0b46129964834cfc86fb46e3778b17e
5
5
  SHA512:
6
- metadata.gz: 9cba058a0bd2652dfef034e2b5065100a7b60574894d87d97bf820b1c1208c7261d72e62045754dce637413e940d0a54bd31d0e1802f5b02b1574c2c49e37220
7
- data.tar.gz: b8f518af4f47e83923938ea704c28dc13d90d8d1b9d7ee880b2354eb0f8774304a5dd519ade53d471ad3befc7ec667064bae3aa562d0a2064104ddbe4c6f9bd5
6
+ metadata.gz: a6940d5f8bc6d8482f730644958507e5f5beb17110582f6f52d5f6ebc08fe2ee0e60dc2937ab2afdf25b993ba58ee3c174a0d4ef96a9eb934232765a2418ea1b
7
+ data.tar.gz: 5856dde2c9b89e4dd8532b1609a97e317c09b86fdd3af15c7274febb35c338bfa4faba074a280d4e0d6923ddcf23c9f6bfd9d99d27b2042715f9725352cbbf2f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.16.6
1
+ 0.16.7
data/coderunner.gemspec CHANGED
@@ -2,17 +2,17 @@
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.16.6 ruby lib
5
+ # stub: coderunner 0.16.7 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.16.6"
10
+ s.version = "0.16.7"
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"]
14
14
  s.authors = ["Edmund Highcock"]
15
- s.date = "2015-05-19"
15
+ s.date = "2015-05-21"
16
16
  s.description = "CodeRunner is a framework for the automated running and analysis of simulations. It automatically generates any necessary input files, organises the output data and analyses it. Because it is a modular system, it can easily be customised to work with any system and any simulation code. One of its greatest strengths is that it is independent of any one simulation code; thus it can easily plot and compare the data from different codes."
17
17
  s.email = "edmundhighcock@sourceforge.net"
18
18
  s.executables = ["coderunner", "coderunnerrepo"]
@@ -1569,6 +1569,7 @@ EOF
1569
1569
  gets
1570
1570
  end
1571
1571
  ids.each{|id|
1572
+ @run_list[id].clear_cache
1572
1573
  FileUtils.rm_r @run_list[id].directory if @run_list[id].directory and not ["", ".", ".."].include? @run_list[id].directory
1573
1574
  @run_list.delete(id); @ids.delete(id); generate_combined_ids}
1574
1575
  if is_in_repo?
@@ -85,6 +85,12 @@ def cache
85
85
  @runner.cache[:runs][@id]
86
86
  end
87
87
 
88
+ # Empty the cache for this run
89
+ def clear_cache
90
+ @runner.cache[:runs] ||= {}
91
+ @runner.cache[:runs][@id] = {}
92
+ end
93
+
88
94
  # The hard cache persists after the current program ceases because
89
95
  # it is written in the .code_runner_run_data file.
90
96
  # It will disappear if the -a or -A flags are specified at any point
@@ -220,8 +226,10 @@ end
220
226
  def process_directory
221
227
 
222
228
  # Clear the cache
223
- @runner.cache[:runs]||={}
224
- @runner.cache[:runs][@id] = {}
229
+ # EGH removed the two lines below because code module need the cache
230
+ # to last, e.g. if it contains references to other files
231
+ #@runner.cache[:runs]||={}
232
+ #@runner.cache[:runs][@id] = {}
225
233
  logf(:process_directory)
226
234
  raise CRFatal.new("Something has gone horribly wrong: runner.class is #{@runner.class} instead of CodeRunner") unless @runner.class.to_s == "CodeRunner"
227
235
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.6
4
+ version: 0.16.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-19 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit