build-labels 0.0.62 → 0.0.64

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: 52d024582ec3ec30626af90539ca7ae4494629595185c9d5d1be362055972735
4
- data.tar.gz: 5cf8deb9d9342408f538562c53c7c44134367969a721a991400f8fd26750ae10
3
+ metadata.gz: 3be40aa5b1090a45af97cb93dc87c0a4a6f25512a405683f0379e1f692f3ba7c
4
+ data.tar.gz: daaddca8fd8af67befe2f74196ce3f3a1388daa60810c182e3d4bc19e6aa5808
5
5
  SHA512:
6
- metadata.gz: bcaa9fd23e46c6177cbea90ac579e5e323db068247dc17a440214471fa00090e56897674756856caadb8e684c96191ed831dd77e3c2bce8cb7fe8a1d1e3d2996
7
- data.tar.gz: 1fd00770d259adb218ee7440ae9fad01fb5459784a595a169b3a88abd9bd78858cd6505129853d0745d9c68358ed7ef96bbc5c9cdc490cf5a68cc2f27bcc14b1
6
+ metadata.gz: e6c64814e19c553e04d3384fb94fc0ecd42498d51754aa65d3871c1c471ea575fa98bbc8d2da23e8ed012386f2616ec5d945236390dd9aa6feb41595e126411c
7
+ data.tar.gz: 6c8144998c005a4f6805309780ed2a61910c54e2f0b6e0add7292ac959dcd7e74b97ac54f5f9c38a119509adebb1ca8ab55257d721929272d40368d1acd8072c
@@ -22,16 +22,16 @@ BuildLabels::CommandLine::COMMANDS[:changed] = Class.new do
22
22
  ad = service.dig('build','additional_contexts') || []
23
23
  ad = ad.class == Hash ? ad.values : ad.map{_1[/=(.*)/,1]}
24
24
  contexts = [service.dig('build','context')] + ad
25
- contexts = contexts.flatten.compact.map{File::absolute_path(git_root + '/' + _1) + '/' }
25
+ contexts = contexts.flatten.compact.map{File::absolute_path(dc_folder + '/' + _1) + '/' }
26
26
  contexts << File::absolute_path(service.dig('build','dockerfile'))
27
27
 
28
28
 
29
29
  should_build = contexts.any? do |path|
30
30
  $stderr.puts "Checking '#{path}' for changes..."
31
31
  Dir.chdir path do
32
- files = changed_files.map{ File::absolute_path(ch_folder + '/' + _1) }
32
+ files = changed_files.map{ File::absolute_path(git_root + '/' + _1) }
33
33
  .select {
34
- $stdout.puts "cmp #{_1} == #{path} "
34
+ $stderr.puts "cmp #{_1} == #{path} "
35
35
  _1.index(path) == 0
36
36
  }
37
37
 
@@ -47,7 +47,7 @@ BuildLabels::CommandLine::COMMANDS[:changed] = Class.new do
47
47
 
48
48
  $stderr.puts "should_build: #{should_build}"
49
49
 
50
- service.delete 'build' unless should_build
50
+ compose['services'].delete service_name unless should_build
51
51
  end
52
52
 
53
53
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module BuildLabels
2
2
  class Builder
3
- VERSION = '0.0.62'
3
+ VERSION = '0.0.64'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-labels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.62
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B