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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ff45ea87e1981c7bca236c6e1be7b945eac13d2334966d817b15141cf805dce
4
- data.tar.gz: ccc2fbfede04a3da49894eeeb590830cddc3db7d792b3ea5e90e14eac7827cfb
3
+ metadata.gz: 7acc08bc0c0faa92ef694c258ef063d6147e4cdbeed301340a96c4270415ead2
4
+ data.tar.gz: 26c8373ad66597ea6c7094d64c5e434835bb44ed9a6023b99418d2dcc905d669
5
5
  SHA512:
6
- metadata.gz: 2b636b894115ad36203394a084a3d915c753ecf61fb0c1498ca1e398b2b9fd8128c678c050e61c426eb5cca8d005c6819ee27908eca3bc7a81c751367af3cb34
7
- data.tar.gz: 0437a28306e544b779b030688fb6957e7dda8bed1d449eaf39fd48878e967b8186bb3be0169aec2739568d9d149b0e160b476d004687c147284654473b699a33
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 "event", "~> 1.0"
26
+ spec.add_dependency "console", "~> 1.0"
27
27
 
28
28
  spec.add_development_dependency "covered"
29
29
  spec.add_development_dependency "bundler"
@@ -34,7 +34,7 @@ require 'event/console'
34
34
 
35
35
  module Build
36
36
  class Controller
37
- def initialize(logger: Event::Console.logger, limit: nil)
37
+ def initialize(logger: Console.logger, limit: nil)
38
38
  @module = Module.new
39
39
 
40
40
  @logger = logger
data/lib/build/task.rb CHANGED
@@ -21,7 +21,7 @@
21
21
  require 'fileutils'
22
22
  require 'build/graph'
23
23
 
24
- require 'event/shell'
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) {Event::Shell.for(*arguments)}
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) {Event::Shell.for('touch', path)}
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) {Event::Shell.for('cp', source_path, destination_path)}
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) {Event::Shell.for('rm -rf', path)}
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) {Event::Shell.for('mkpath', path)}
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) {Event::Shell.for('install', source_path, destination_path)}
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) {Event::Shell.for("write", path, "#{data.size}bytes")}
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Build
22
- VERSION = "2.4.0"
22
+ VERSION = "2.4.1"
23
23
  end
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.0
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-25 00:00:00.000000000 Z
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: event
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.3
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.