kameleon-builder 2.6.2 → 2.6.3

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
  SHA1:
3
- metadata.gz: 641d4aa0ae1153b3203739f7cea51334c764aca6
4
- data.tar.gz: a97530956b36a105c8b20802e9fa2faab6f2b0bb
3
+ metadata.gz: d28b83e3c333c8da43019ff46a15afbc4e8936e3
4
+ data.tar.gz: b8fc0d08a15042f08826d67efaf4c03f5f2ccc63
5
5
  SHA512:
6
- metadata.gz: a5f1c1175bcd1e1bf262da3341bca3287ab2ad05056217072a6ac4488bbc260951d3c748674727a88003131784aa3180207deba1ed3a81f6dbab582819405419
7
- data.tar.gz: 68bc3a162b4ea851a3446153f3709d53ead045eff5a6cc53aa3b46dfcaec5cba7c4e16ebab4322ada53bad946e69aa5f45dda17078e090cf953f9a0247d50068
6
+ metadata.gz: f89095a4cb9803cb48e43b93d8f569210a8c2bb7d5bb5ebba8cefb434c6e0396588d5dd0d9b8967d6e27fe7608a493849f0de1c799f01aa7484481dfdf90ffc0
7
+ data.tar.gz: 6e22a24a0839f7f8e492255d2e60f9a37a04c1cd830778be00acb09e2d16a6c1014602e448dea41d5f3da62032f367eef390c10040339274e81542293ef70bfe
data/.bumpversion.cfg CHANGED
@@ -1,7 +1,7 @@
1
1
  [bumpversion]
2
2
  commit = True
3
3
  tag = True
4
- current_version = 2.6.2
4
+ current_version = 2.6.3
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
6
6
  serialize =
7
7
  {major}.{minor}.{patch}.{release}
data/CHANGES CHANGED
@@ -1,6 +1,13 @@
1
1
  Kameleon CHANGELOG
2
2
  ==================
3
3
 
4
+ Version 2.6.3
5
+ -------------
6
+
7
+ Released on August 25th 2015
8
+
9
+ - Don't fail now if a context was closed
10
+
4
11
  Version 2.6.2
5
12
  -------------
6
13
 
@@ -82,6 +82,8 @@ module Kameleon
82
82
  rescue ShellError, Errno::EPIPE => e
83
83
  Kameleon.ui.verbose("Shell cmd failed to launch: #{@shell.shell_cmd}")
84
84
  raise ExecError, e.message + ". The '#{@name}_context' is inaccessible."
85
+ rescue ShellExited
86
+ raise ContextClosed, "The ctx '#{name}' was closed"
85
87
  end
86
88
 
87
89
  def pipe(cmd, other_cmd, other_ctx)
@@ -1,7 +1,8 @@
1
1
  require 'kameleon/recipe'
2
2
  require 'kameleon/context'
3
3
  require 'kameleon/persistent_cache'
4
- # require 'pry'
4
+
5
+
5
6
  module Kameleon
6
7
 
7
8
  class Engine
@@ -217,6 +218,9 @@ module Kameleon
217
218
  begin
218
219
  exec_cmd(cmd, kwargs)
219
220
  finished = true
221
+ rescue ContextClosed => e
222
+ Kameleon.ui.warn("#{e.message}")
223
+ finished = true
220
224
  rescue SystemExit, Interrupt, ExecError
221
225
  reload_contexts
222
226
  finished = rescue_exec_error(cmd)
@@ -18,7 +18,9 @@ module Kameleon
18
18
  class ExecError < Error; status_code(2) ; end
19
19
  class InternalError < Error; status_code(3) ; end
20
20
  class ContextError < Error; status_code(4) ; end
21
+ class ContextClosed < Error; status_code(4) ; end
21
22
  class ShellError < Error; status_code(5) ; end
23
+ class ShellExited < Error; status_code(5) ; end
22
24
  class RecipeError < Error; status_code(6) ; end
23
25
  class BuildError < Error; status_code(7) ; end
24
26
  class AbortError < Error; status_code(8) ; end
@@ -191,10 +191,13 @@ SCRIPT
191
191
  }
192
192
  while true
193
193
  if @process.exited?
194
- raise ShellError, "Process '#{@cmd}' exited..."
194
+ raise ShellExited, "Process '#{@cmd}' exited..."
195
195
  end
196
196
  iodata.each do |_, iodat|
197
197
  if iodat[:end] and not iodat[:begin]
198
+ if @process.exited?
199
+ raise ShellExited, "Process '#{@cmd}' exited..."
200
+ end
198
201
  raise ShellError, "Cannot read #{iodat[:begin]} from shell"
199
202
  end
200
203
  end
@@ -231,6 +234,9 @@ SCRIPT
231
234
  end
232
235
  end
233
236
  end
237
+ if @process.exited?
238
+ raise ShellExited, "Process '#{@cmd}' exited..."
239
+ end
234
240
  iodata = nil
235
241
  return get_status
236
242
  end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 2.6.2
1
+ 2.6.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kameleon-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salem Harrache