coderunner 0.18.0 → 0.18.1

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: f43d5315b9baf7aa8ce1151c670f76f9b1e600dc
4
- data.tar.gz: 8cb20e034938fe3c2d871ac1c4393ff2fdfe75ba
3
+ metadata.gz: be8cb3569f72075a3e4edc3c5f3860723682d882
4
+ data.tar.gz: 221dbaea16f6d278187f558a703d33d941b09c46
5
5
  SHA512:
6
- metadata.gz: afb742efc08e538dcbe3edc91796d39034ed53ae749ef079c241d876cf2de19ea06b3c3759cc28f2cb5c20ab54697227b592ab261eb416dafdf6d0cfae1fe540
7
- data.tar.gz: 13efb514d160fa482fbae40a92a83be17ea65dcc9afb651c4fd0b7ed6f8990d0aeb597f9d102fe9f49f4e55ac512408c632e7e9714c2ead0f2246037599761e9
6
+ metadata.gz: f107ee359964005b8122ce90c89988b1c0a1604e53d399a65eab6c6bf339472f300454101d2a06ebf1f8b6f1d8bfc5280c1c2d65d93d505bbc44a8186333787e
7
+ data.tar.gz: 48f060d7c54ae4c2d4558db5b4496bdd8a52c1d0f867e62a0e03a246d6692cd197641c356a46417e25fbc4a6f08a7af1a12f2a3c5438dab8d6700fb31e0af778
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.0
1
+ 0.18.1
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.18.0 ruby lib
5
+ # stub: coderunner 0.18.1 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.18.0"
10
+ s.version = "0.18.1"
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 = "2016-04-02"
15
+ s.date = "2016-04-03"
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"]
@@ -299,6 +299,7 @@ class CodeRunner
299
299
  runner.make_film_from_lists(copts[:G], copts[:g], copts[:F])
300
300
  end
301
301
 
302
+ # Deprecated
302
303
  def self.generate_documentation(username = nil, copts = {})
303
304
  ep 'username', username||=ENV['USER']
304
305
 
@@ -410,7 +411,7 @@ EOF
410
411
  end
411
412
 
412
413
  def self.launcher_directory
413
- ENV['HOME'] + "/.coderunner/to_launch/#{ENV['CODE_RUNNER_LAUNCHER']}"
414
+ ENV['HOME'] + "/.coderunner/to_launch/#{global_options(:launcher)}"
414
415
  end
415
416
 
416
417
  def self.start_launcher(refresh, max_queue, copts={})
@@ -427,7 +428,7 @@ EOF
427
428
  at_exit{FileUtils.rm_r tl}
428
429
  FileUtils.makedirs tl
429
430
 
430
- unless ENV['CODE_RUNNER_LAUNCHER'] =~ /serial/
431
+ unless global_options(:launcher) =~ /serial/
431
432
  mutex = Mutex.new
432
433
  processes= []
433
434
  command_list = {}
@@ -13,6 +13,7 @@ class CodeRunner
13
13
  no_repo: true, # Disable CodeRunner repo, true for now as in development
14
14
  simple_prompt: false, # If true have a less fancy prompt in interactive mode
15
15
  non_interactive: false, # If true, don't prompt for feedback when executing commands. Use with caution.
16
+ launcher: nil, # To activate the launcher, set this to be a string. The launcher will use the folder ~/.coderunner/to_launch/GLOBAL_OPTIONS[:launcher]
16
17
  }
17
18
 
18
19
  class CodeRunner::ConfigError < StandardError
@@ -5,10 +5,10 @@ class CodeRunner
5
5
  # an interactive session on a supercomputer.
6
6
  module Launcher
7
7
  def launcher_prefix
8
- ENV['CODE_RUNNER_LAUNCHER']
8
+ CodeRunner.global_options(:launcher)
9
9
  end
10
10
  def use_launcher
11
- launcher_prefix and launcher_prefix.size > 0
11
+ launcher_prefix
12
12
  end
13
13
  def queue_status_launcher
14
14
  #%x[cat #{CodeRunner.launcher_directory}/queue_status.txt | grep sh] +
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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit