build 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build/logger.rb +1 -1
- data/lib/build/task.rb +8 -8
- data/lib/build/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a3384e47b1e9c9dc2419491b1d8bab595215c7f
|
4
|
+
data.tar.gz: f1948300302a3260040a79df577fac46a1f98155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85801d07d2795ffa201e68cf0aa247dbb5915490848b89f11abc0b658a27aef4bde12fee5a6f2a2f0a59ab192b4bd745ab7df4e3f524debcca9d7b4e35acbcd1
|
7
|
+
data.tar.gz: 6b16ab6afd93b4bc72eac04b960504395b44805f65b553b0ec11673ce03a73c97797997ed2ef0d245898f40b084451b5d11ca90f9549ebf99f104485ad5935c2
|
data/lib/build/logger.rb
CHANGED
@@ -88,7 +88,7 @@ module Build
|
|
88
88
|
prefix = " " * (prefix.size) + "| "
|
89
89
|
end
|
90
90
|
|
91
|
-
if progname ==
|
91
|
+
if progname == :shell and message.kind_of? Array
|
92
92
|
format_command(message, buffer)
|
93
93
|
elsif message.kind_of? Exception
|
94
94
|
format_exception(message, buffer)
|
data/lib/build/task.rb
CHANGED
@@ -60,7 +60,7 @@ module Build
|
|
60
60
|
|
61
61
|
def spawn(*arguments)
|
62
62
|
if wet?
|
63
|
-
@logger.info(
|
63
|
+
@logger.info(:shell) {arguments}
|
64
64
|
status = @group.spawn(*arguments)
|
65
65
|
|
66
66
|
if status != 0
|
@@ -80,21 +80,21 @@ module Build
|
|
80
80
|
def touch(path)
|
81
81
|
return unless wet?
|
82
82
|
|
83
|
-
@logger.info(
|
83
|
+
@logger.info(:shell){ ['touch', path] }
|
84
84
|
FileUtils.touch(path)
|
85
85
|
end
|
86
86
|
|
87
87
|
def cp(source_path, destination_path)
|
88
88
|
return unless wet?
|
89
89
|
|
90
|
-
@logger.info(
|
90
|
+
@logger.info(:shell){ ['cp', source_path, destination_path]}
|
91
91
|
FileUtils.copy(source_path, destination_path)
|
92
92
|
end
|
93
93
|
|
94
94
|
def rm(path)
|
95
95
|
return unless wet?
|
96
96
|
|
97
|
-
@logger.info(
|
97
|
+
@logger.info(:shell){ ['rm -rf', path] }
|
98
98
|
FileUtils.rm_rf(path)
|
99
99
|
end
|
100
100
|
|
@@ -102,7 +102,7 @@ module Build
|
|
102
102
|
return unless wet?
|
103
103
|
|
104
104
|
unless File.exist?(path)
|
105
|
-
@logger.info(
|
105
|
+
@logger.info(:shell){ ['mkpath', path] }
|
106
106
|
|
107
107
|
FileUtils.mkpath(path)
|
108
108
|
end
|
@@ -111,7 +111,7 @@ module Build
|
|
111
111
|
def install(source_path, destination_path)
|
112
112
|
return unless wet?
|
113
113
|
|
114
|
-
@logger.info(
|
114
|
+
@logger.info(:shell){ ['install', source_path, destination_path]}
|
115
115
|
FileUtils.install(source_path, destination_path)
|
116
116
|
end
|
117
117
|
|
@@ -127,12 +127,12 @@ module Build
|
|
127
127
|
def invoke_rule(rule, arguments, &block)
|
128
128
|
arguments = rule.normalize(arguments, self)
|
129
129
|
|
130
|
-
@logger.debug(
|
130
|
+
@logger.debug(:invoke) {"-> #{rule}(#{arguments.inspect})"}
|
131
131
|
|
132
132
|
node = RuleNode.new(rule, arguments, &block)
|
133
133
|
task = invoke(node)
|
134
134
|
|
135
|
-
@logger.debug(
|
135
|
+
@logger.debug(:invoke) {"<- #{rule}(...) -> #{rule.result(arguments)}"}
|
136
136
|
|
137
137
|
return rule.result(arguments)
|
138
138
|
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: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: build-graph
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.5.
|
162
|
+
rubygems_version: 2.5.2
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Build is a framework for working with task based build systems.
|