ruby_fly 0.29.0 → 0.30.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afc2d262e88e2435febc5051197999892adad993a925e10d71d9ea176cc7dfb0
4
- data.tar.gz: 5f399183a8851cf4dbf28465e7a24cd53986678e381298b3e9825ed40a49c395
3
+ metadata.gz: bca710e9c88c2053750dca94bb051410bea9babe26527dd3f7df44c82d792386
4
+ data.tar.gz: cfe6338863de8e277dd352a3e11b37d2588e97a2ea80c2b1948c1d25effedebe
5
5
  SHA512:
6
- metadata.gz: 1d4dbf086bcc9422dc3b6f144a8c083981ad72b22c5e877103d355e7e6359021d6bee9e6ce9e2ffbfc18f0ade8cf8d5e1e44d15a3c714619fe7f8ca171cd696d
7
- data.tar.gz: aaa7a6d393c711d2d49c1db56d1bc1e258470f7d32bbc0038fba9406e46f14d5cd4f393784af4d5e479ceac09d81d2f9a44f9c5efc04d004076d905c25d73fe0
6
+ metadata.gz: ade5f96c8f50bbbfa924305b368cec5505cef8dc17c771265ed5fa6947ac5ff93884f399bb4366961f30acae4f49b9479769b9c3eda019746b9843331fd219fe
7
+ data.tar.gz: b20e59f0caeb4bc98a4430ca289349d27fa5b5a037f9c44bf796bb62ad1af16fb7d94e112d8b70c9b6bdf5b1e410e22bbf5d511a5f6abb748a9d2e357b0cf638
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_fly (0.29.0)
4
+ ruby_fly (0.30.0.pre.1)
5
5
  lino (>= 1.5)
6
6
 
7
7
  GEM
@@ -16,12 +16,14 @@ module RubyFly
16
16
  builder = instantiate_builder
17
17
 
18
18
  do_before(opts)
19
- configure_command(builder, opts)
20
- .build
21
- .execute(
22
- stdin: stdin,
23
- stdout: stdout,
24
- stderr: stderr)
19
+ do_around(opts) do |new_opts|
20
+ configure_command(builder, new_opts)
21
+ .build
22
+ .execute(
23
+ stdin: stdin,
24
+ stdout: stdout,
25
+ stderr: stderr)
26
+ end
25
27
  do_after(opts)
26
28
  end
27
29
 
@@ -34,6 +36,10 @@ module RubyFly
34
36
  def do_before(opts)
35
37
  end
36
38
 
39
+ def do_around(opts, &block)
40
+ block.call(opts)
41
+ end
42
+
37
43
  def configure_command(builder, opts)
38
44
  builder
39
45
  end
@@ -38,6 +38,14 @@ module RubyFly
38
38
  end
39
39
  end
40
40
 
41
+ def do_around(opts, &block)
42
+ begin
43
+ block.call(opts)
44
+ rescue Open4::SpawnError => e
45
+ raise e unless e.status.exitstatus == 1
46
+ end
47
+ end
48
+
41
49
  def do_after(opts)
42
50
  output = stdout.string
43
51
  error = stderr.string
@@ -1,3 +1,3 @@
1
1
  module RubyFly
2
- VERSION = '0.29.0'
2
+ VERSION = '0.30.0.pre.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -207,9 +207,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  version: '2.6'
208
208
  required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  requirements:
210
- - - ">="
210
+ - - ">"
211
211
  - !ruby/object:Gem::Version
212
- version: '0'
212
+ version: 1.3.1
213
213
  requirements: []
214
214
  rubygems_version: 3.0.1
215
215
  signing_key: