nera 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ == 0.0.4
2
+ * 1 major enhancement:
3
+ * multi-lined simulation command becomes available
4
+ * 2 bug fixes
5
+ * bug fix for job-script creation
6
+
7
+ == 0.0.3
8
+
9
+ * 1 major enhancement:
10
+ * 2 bug fixes
11
+ * minor update
12
+
1
13
  == 0.0.2 2009-03-26
2
14
 
3
15
  * 1 major enhancement:
data/Manifest.txt CHANGED
@@ -20,6 +20,9 @@ lib/nera/nera_simulator.rb
20
20
  lib/nera/nera_simulator_layer_controller.rb
21
21
  lib/nera/nera_simulator_records.rb
22
22
  lib/nera_addsim/make_simulator.rb
23
+ scripts/console
24
+ scripts/destroy
25
+ scripts/generate
23
26
  scripts/make_manifest.rb
24
27
  test/runner.rb
25
28
  test/test_helper.rb
@@ -44,7 +44,7 @@ echo \" :parameters => {\" >> nera_status.rb
44
44
  BODY
45
45
 
46
46
  job_info[:params].each_pair do |key, value|
47
- job_script += "echo \" :#{key} => #{value},\" >> nera_status.rb\n"
47
+ job_script += "echo \" #{key.to_sym.inspect} => #{value.inspect},\" >> nera_status.rb\n"
48
48
  end
49
49
 
50
50
  job_script +=<<"BODY"
@@ -66,7 +66,7 @@ echo \"NERA_START_AT\" >> nera_status.rb
66
66
  echo \"#{job_info[:execs][i]}\"
67
67
  mkdir -p #{run_id}
68
68
  cd #{run_id}
69
- { time -p #{job_info[:execs][i]}; } >> ../nera_status.rb 2>&1
69
+ { time -p #{job_info[:execs][i]}; } 2>> ../nera_status.rb
70
70
  if test $? -ne 0; then { echo \"Exit abnormally!\" >> ../nera_status.rb; exit; } fi
71
71
  cd ..
72
72
  echo \"NERA_OUTPUT\" >> nera_status.rb
@@ -145,7 +145,9 @@ BODY
145
145
  # {:L => 256, :K => 0.22325, :tmax => 512},
146
146
  :run_ids => run_ids,
147
147
  :seeds => seeds,
148
- :execs => seeds.map do |sed| sim_inst.simulate_command( sed) end
148
+ :execs => seeds.map do |sed|
149
+ sim_inst.simulate_command( sed).split("\n").join('; ').sub(/;$/,'')
150
+ end
149
151
  }
150
152
 
151
153
  path_job_script = @db_folder.path_to_job_script( job_id)
data/lib/nera.rb CHANGED
@@ -21,5 +21,5 @@ require 'nera_simulator_layer_controller'
21
21
  require 'nera_simulator_records'
22
22
 
23
23
  module NERA
24
- VERSION = '0.0.3'
24
+ VERSION = '0.0.4'
25
25
  end
data/scripts/console ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # File: script/console
3
+ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
+
5
+ libs = " -r irb/completion"
6
+ # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
+ # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
+ libs << " -r #{File.dirname(__FILE__) + '/../lib/mygem.rb'}"
9
+ puts "Loading mygem gem"
10
+ exec "#{irb} #{libs} --simple-prompt"
data/scripts/destroy ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/destroy'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Destroy.new.run(ARGV)
data/scripts/generate ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/generate'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Generate.new.run(ARGV)
@@ -3,7 +3,7 @@
3
3
  base_dir = File.join(File.dirname(__FILE__), "..")
4
4
  glob_pattern = File.join("**", "*")
5
5
  exclude_patterns = [
6
- /^pkg/,/^doc/,
6
+ /^pkg/,/^doc/,/^mydb/,/.bak$/
7
7
  ]
8
8
 
9
9
  Dir.chdir(base_dir)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yohsuke Murase
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-30 00:00:00 +09:00
12
+ date: 2009-04-16 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -67,6 +67,9 @@ files:
67
67
  - lib/nera/nera_simulator_layer_controller.rb
68
68
  - lib/nera/nera_simulator_records.rb
69
69
  - lib/nera_addsim/make_simulator.rb
70
+ - scripts/console
71
+ - scripts/destroy
72
+ - scripts/generate
70
73
  - scripts/make_manifest.rb
71
74
  - test/runner.rb
72
75
  - test/test_helper.rb