pwrake 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +83 -4
- data/lib/pwrake/application.rb +34 -0
- data/lib/pwrake/file_utils.rb +43 -16
- data/lib/pwrake/gfarm_feature.rb +79 -40
- data/lib/pwrake/locality_aware_queue.rb +141 -111
- data/lib/pwrake/logger.rb +7 -1
- data/lib/pwrake/master.rb +21 -2
- data/lib/pwrake/option.rb +106 -56
- data/lib/pwrake/profiler.rb +44 -12
- data/lib/pwrake/report/parallelism.rb +262 -0
- data/lib/pwrake/report/report.rb +355 -0
- data/lib/pwrake/report/report_multi.rb +196 -0
- data/lib/pwrake/report/stat.rb +115 -0
- data/lib/pwrake/report.rb +6 -0
- data/lib/pwrake/shell.rb +30 -10
- data/lib/pwrake/task_algorithm.rb +174 -50
- data/lib/pwrake/task_queue.rb +130 -50
- data/lib/pwrake/version.rb +1 -1
- data/spec/004/Rakefile +1 -1
- data/spec/009/pwrake_conf.yaml +1 -0
- data/spec/011/Rakefile +15 -0
- data/spec/helper.rb +7 -3
- data/spec/pwrake_spec.rb +12 -0
- metadata +15 -9
data/spec/pwrake_spec.rb
CHANGED
@@ -85,4 +85,16 @@ describe Helper do
|
|
85
85
|
it { should be_success }
|
86
86
|
end
|
87
87
|
|
88
|
+
context "dir=011 FAILD_TARGET=delete" do
|
89
|
+
subject { Helper.new("011","FAILED_TARGET=delete").run }
|
90
|
+
it { should_not be_success }
|
91
|
+
its(:n_files) { should eq 2 }
|
92
|
+
end
|
93
|
+
|
94
|
+
context "dir=011 FAILD_TARGET=rename" do
|
95
|
+
subject { Helper.new("011","FAILED_TARGET=rename").run }
|
96
|
+
it { should_not be_success }
|
97
|
+
its(:n_files) { should eq 3 }
|
98
|
+
end
|
99
|
+
|
88
100
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Masahiro TANAKA
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Parallel workflow extension for Rake
|
15
14
|
email:
|
@@ -37,6 +36,11 @@ files:
|
|
37
36
|
- lib/pwrake/option.rb
|
38
37
|
- lib/pwrake/profiler.rb
|
39
38
|
- lib/pwrake/rake_modify.rb
|
39
|
+
- lib/pwrake/report.rb
|
40
|
+
- lib/pwrake/report/parallelism.rb
|
41
|
+
- lib/pwrake/report/report.rb
|
42
|
+
- lib/pwrake/report/report_multi.rb
|
43
|
+
- lib/pwrake/report/stat.rb
|
40
44
|
- lib/pwrake/shell.rb
|
41
45
|
- lib/pwrake/task_algorithm.rb
|
42
46
|
- lib/pwrake/task_queue.rb
|
@@ -57,32 +61,32 @@ files:
|
|
57
61
|
- spec/009/Rakefile
|
58
62
|
- spec/009/pwrake_conf.yaml
|
59
63
|
- spec/010/Rakefile
|
64
|
+
- spec/011/Rakefile
|
60
65
|
- spec/helper.rb
|
61
66
|
- spec/hosts
|
62
67
|
- spec/pwrake_spec.rb
|
63
68
|
homepage: http://masa16.github.com/pwrake
|
64
69
|
licenses: []
|
70
|
+
metadata: {}
|
65
71
|
post_install_message:
|
66
72
|
rdoc_options: []
|
67
73
|
require_paths:
|
68
74
|
- lib
|
69
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
76
|
requirements:
|
72
|
-
- -
|
77
|
+
- - '>='
|
73
78
|
- !ruby/object:Gem::Version
|
74
79
|
version: '0'
|
75
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
81
|
requirements:
|
78
|
-
- -
|
82
|
+
- - '>='
|
79
83
|
- !ruby/object:Gem::Version
|
80
84
|
version: '0'
|
81
85
|
requirements: []
|
82
86
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
87
|
+
rubygems_version: 2.0.3
|
84
88
|
signing_key:
|
85
|
-
specification_version:
|
89
|
+
specification_version: 4
|
86
90
|
summary: Adding Parallel and Distributed feature to Rake
|
87
91
|
test_files:
|
88
92
|
- spec/001/Rakefile
|
@@ -98,6 +102,8 @@ test_files:
|
|
98
102
|
- spec/009/Rakefile
|
99
103
|
- spec/009/pwrake_conf.yaml
|
100
104
|
- spec/010/Rakefile
|
105
|
+
- spec/011/Rakefile
|
101
106
|
- spec/helper.rb
|
102
107
|
- spec/hosts
|
103
108
|
- spec/pwrake_spec.rb
|
109
|
+
has_rdoc:
|