build 2.4.0 → 2.4.1
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 +4 -4
- data/build.gemspec +1 -1
- data/lib/build/controller.rb +1 -1
- data/lib/build/task.rb +8 -8
- data/lib/build/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7acc08bc0c0faa92ef694c258ef063d6147e4cdbeed301340a96c4270415ead2
|
4
|
+
data.tar.gz: 26c8373ad66597ea6c7094d64c5e434835bb44ed9a6023b99418d2dcc905d669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0848fdf72d4753684043fdb718940000943b9d69dbf94a28de069f92f424ea730ac380f5606302d9d3c1c2dac2375480cb1c9a4df7b4c04c2063d273600e3d53'
|
7
|
+
data.tar.gz: 7c3a23f8bb279e2e5e93f2b03d782afdb9717fb560eef14bc96be1cbc38bd75270f15e64dd4a0d973623d3ed3453b561d89995ed62f6ab3ca92239d494f6858b
|
data/build.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "build-makefile", "~> 1.0"
|
24
24
|
|
25
25
|
spec.add_dependency "graphviz", "~> 1.0"
|
26
|
-
spec.add_dependency "
|
26
|
+
spec.add_dependency "console", "~> 1.0"
|
27
27
|
|
28
28
|
spec.add_development_dependency "covered"
|
29
29
|
spec.add_development_dependency "bundler"
|
data/lib/build/controller.rb
CHANGED
data/lib/build/task.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
require 'fileutils'
|
22
22
|
require 'build/graph'
|
23
23
|
|
24
|
-
require '
|
24
|
+
require 'console/shell'
|
25
25
|
|
26
26
|
module Build
|
27
27
|
# This task class serves as the base class for the environment specific task classes genearted when adding targets.
|
@@ -64,7 +64,7 @@ module Build
|
|
64
64
|
|
65
65
|
def spawn(*arguments)
|
66
66
|
if wet?
|
67
|
-
@logger&.info(self) {
|
67
|
+
@logger&.info(self) {Console::Shell.for(*arguments)}
|
68
68
|
status = @group.spawn(*arguments)
|
69
69
|
|
70
70
|
if status != 0
|
@@ -84,21 +84,21 @@ module Build
|
|
84
84
|
def touch(path)
|
85
85
|
return unless wet?
|
86
86
|
|
87
|
-
@logger&.info(self) {
|
87
|
+
@logger&.info(self) {Console::Shell.for('touch', path)}
|
88
88
|
FileUtils.touch(path)
|
89
89
|
end
|
90
90
|
|
91
91
|
def cp(source_path, destination_path)
|
92
92
|
return unless wet?
|
93
93
|
|
94
|
-
@logger&.info(self) {
|
94
|
+
@logger&.info(self) {Console::Shell.for('cp', source_path, destination_path)}
|
95
95
|
FileUtils.copy(source_path, destination_path)
|
96
96
|
end
|
97
97
|
|
98
98
|
def rm(path)
|
99
99
|
return unless wet?
|
100
100
|
|
101
|
-
@logger&.info(self) {
|
101
|
+
@logger&.info(self) {Console::Shell.for('rm -rf', path)}
|
102
102
|
FileUtils.rm_rf(path)
|
103
103
|
end
|
104
104
|
|
@@ -106,7 +106,7 @@ module Build
|
|
106
106
|
return unless wet?
|
107
107
|
|
108
108
|
unless File.exist?(path)
|
109
|
-
@logger&.info(self) {
|
109
|
+
@logger&.info(self) {Console::Shell.for('mkpath', path)}
|
110
110
|
FileUtils.mkpath(path)
|
111
111
|
end
|
112
112
|
end
|
@@ -114,14 +114,14 @@ module Build
|
|
114
114
|
def install(source_path, destination_path)
|
115
115
|
return unless wet?
|
116
116
|
|
117
|
-
@logger&.info(self) {
|
117
|
+
@logger&.info(self) {Console::Shell.for('install', source_path, destination_path)}
|
118
118
|
FileUtils.install(source_path, destination_path)
|
119
119
|
end
|
120
120
|
|
121
121
|
def write(path, data, mode = "w")
|
122
122
|
return unless wet?
|
123
123
|
|
124
|
-
@logger&.info(self) {
|
124
|
+
@logger&.info(self) {Console::Shell.for("write", path, "#{data.size}bytes")}
|
125
125
|
File.open(path, mode) do |file|
|
126
126
|
file.write(data)
|
127
127
|
end
|
data/lib/build/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: build-graph
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: console
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.0.
|
203
|
+
rubygems_version: 3.0.2
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Build is a framework for working with task based build systems.
|