paraduct 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/paraduct/compare/v0.0.1...master)
2
+ [full changelog](http://github.com/sue445/paraduct/compare/v0.0.2...master)
3
+
4
+ ## v0.0.2
5
+ [full changelog](http://github.com/sue445/paraduct/compare/v0.0.1...v0.0.2)
6
+
7
+ * change variable name
8
+ * `$JOB_ID` -> `$PARADUCT_JOB_ID`
9
+ * `$JOB_NAME` -> `$PARADUCT_JOB_NAME`
10
+ * https://github.com/sue445/paraduct/pull/70
3
11
 
4
12
  ## v0.0.1
5
13
  * first release
data/README.md CHANGED
@@ -85,20 +85,20 @@ script to run
85
85
  ### work_dir
86
86
  diretory to run
87
87
 
88
- * own job is run under `work_dir/JOB_NAME`
88
+ * own job is run under `work_dir/$PARADUCT_JOB_NAME`
89
89
 
90
90
  ### variables
91
91
  Parameters to be combined
92
92
 
93
93
  * key is capitalized (example. `name1` -> `NAME1`)
94
- * JOB_NAME is generated with variables
95
-
96
- name1 | name2 | JOB_NAME | current directory where the test is performed
97
- ------- | ------- | ----------------------------- | ---------------------------------------
98
- value1a | value2a | NAME1_value1a_NAME2_value2a | tmp/paraduct_workspace/NAME1_value1a_NAME2_value2a
99
- value1a | value2b | NAME1_value1a_NAME2_value2b | tmp/paraduct_workspace/NAME1_value1a_NAME2_value2b
100
- value1b | value2a | NAME1_value1b_NAME2_value2a | tmp/paraduct_workspace/NAME1_value1b_NAME2_value2a
101
- value1b | value2b | NAME1_value1b_NAME2_value2b | tmp/paraduct_workspace/NAME1_value1b_NAME2_value2b
94
+ * `$PARADUCT_JOB_NAME` is generated with variables
95
+
96
+ $PARADUCT_JOB_ID | name1 | name2 | $PARADUCT_JOB_NAME | current directory where the test is performed
97
+ ------------------ | ------- | ------- | ----------------------------- | --------------------------------------------------
98
+ 1 | value1a | value2a | NAME1_value1a_NAME2_value2a | tmp/paraduct_workspace/NAME1_value1a_NAME2_value2a
99
+ 2 | value1a | value2b | NAME1_value1a_NAME2_value2b | tmp/paraduct_workspace/NAME1_value1a_NAME2_value2b
100
+ 3 | value1b | value2a | NAME1_value1b_NAME2_value2a | tmp/paraduct_workspace/NAME1_value1b_NAME2_value2a
101
+ 4 | value1b | value2b | NAME1_value1b_NAME2_value2b | tmp/paraduct_workspace/NAME1_value1b_NAME2_value2b
102
102
 
103
103
  ### max_threads
104
104
  maximum concurrent execution number of jobs
@@ -25,7 +25,7 @@ module Paraduct
25
25
  # @return [String] stdout
26
26
  # @raise [Paraduct::Errors::ProcessError] command exited error status
27
27
  def perform
28
- export_variables = key_capitalized_params.merge("JOB_ID" => @job_id, "JOB_NAME" => job_name)
28
+ export_variables = key_capitalized_params.merge("PARADUCT_JOB_ID" => @job_id, "PARADUCT_JOB_NAME" => job_name)
29
29
  variable_string = export_variables.map{ |key, value| %(export #{key}="#{value}";) }.join(" ")
30
30
 
31
31
  Array.wrap(@script).inject("") do |stdout, command|
@@ -1,3 +1,3 @@
1
1
  module Paraduct
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -20,7 +20,7 @@ describe Paraduct::Runner do
20
20
 
21
21
  let(:script) { "./script/build_success.sh" }
22
22
  let(:params) { { "ruby" => "1.9", "database" => "mysql" } }
23
- let(:command){ 'export RUBY="1.9"; export DATABASE="mysql"; export JOB_ID="1"; export JOB_NAME="RUBY_1.9_DATABASE_mysql"; ./script/build_success.sh' }
23
+ let(:command){ 'export RUBY="1.9"; export DATABASE="mysql"; export PARADUCT_JOB_ID="1"; export PARADUCT_JOB_NAME="RUBY_1.9_DATABASE_mysql"; ./script/build_success.sh' }
24
24
 
25
25
  context "with mock system" do
26
26
  it "script is call with capitalized variable" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paraduct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-01 00:00:00.000000000 Z
12
+ date: 2014-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -386,7 +386,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
386
386
  version: '0'
387
387
  segments:
388
388
  - 0
389
- hash: -3460742301643680059
389
+ hash: -858746175039195430
390
390
  required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  none: false
392
392
  requirements:
@@ -395,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
395
395
  version: '0'
396
396
  segments:
397
397
  - 0
398
- hash: -3460742301643680059
398
+ hash: -858746175039195430
399
399
  requirements: []
400
400
  rubyforge_project:
401
401
  rubygems_version: 1.8.23.2