producer-core 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: e8ed5fbac8a4bcce8a96df535139a7661fb6743d
4
- data.tar.gz: 68fd481da50a32dd5eb6da6132c323588ad678e0
3
+ metadata.gz: 04b7ee0907fecaabb24d2afa0bc804177f4ed590
4
+ data.tar.gz: 160b4b18e193932746bb28fe38c8ccc06d3b2e74
5
5
  SHA512:
6
- metadata.gz: ccb2d2a8bd77165bdeb7f37bb8b2f2c0fe2f4f228ac9ae6a703d4bcd9567aa5e71de7f707c545bd77571a712cf969adda2510aedf436b997a0ebdf359cf99814
7
- data.tar.gz: dcec3e65090d29eb2ba278785bac8004c8826d7bac22d85f984e4bcff4bb49d9f7b7593643973b6cb92c73757d1e89e7c4459b2063adfbd5bd51331d1ee80298
6
+ metadata.gz: 0a05eb5d9016a9b135e066a1d64b68f59b887575e68aacedbd2a89a72534c96f69f02019ae4f71851ff70dcf91429c3bde92250e473e52dbfb3324ce852c4bec
7
+ data.tar.gz: 3902892361957a8fa9fc7498cb4ee1ce5142a33a865e01fdcaf2f74d2e2b788a5fc95f58370c3ec9ca38c0ab50d3447be818bff1d3fb69060e05c676114482ce
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  cache: bundler
3
4
  rvm:
@@ -8,6 +8,6 @@ Feature: CLI debug option
8
8
  Scenario: does not exclude anything from backtrace
9
9
  Given a recipe using a remote
10
10
  When I execute the recipe on unknown remote target with option -d
11
- Then the output must contain "producer-core"
11
+ Then the output must contain "producer"
12
12
  And the output must contain "net-ssh"
13
13
  And the output must contain ruby lib directory
@@ -7,7 +7,6 @@ def run_recipe(remote: false, options: nil, check: false, rargv: nil)
7
7
  command << options if options
8
8
  command << ['--', *rargv] if rargv
9
9
 
10
- p command.join(' ')
11
10
  run_simple command.join(' '), false
12
11
 
13
12
  assert_exit_status 0 if check
@@ -2,7 +2,7 @@ module Producer
2
2
  module Core
3
3
  class ErrorFormatter
4
4
  FILTERS = [
5
- /\/producer-\w+/,
5
+ /\/producer/,
6
6
  Regexp.new(RbConfig::CONFIG['rubylibdir']),
7
7
  /\/net-ssh/,
8
8
  /\/net-sftp/
@@ -1,5 +1,5 @@
1
1
  module Producer
2
2
  module Core
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ module Producer
24
24
 
25
25
  describe '#format' do
26
26
  let(:rubylibdir) { RbConfig::CONFIG['rubylibdir'] }
27
- let(:bt) { %W[backtrace /producer-core /net-ssh #{rubylibdir}] }
27
+ let(:bt) { %W[backtrace /producer /net-ssh #{rubylibdir}] }
28
28
  let(:exception) { RuntimeError.new('some exception').tap { |o| o.set_backtrace bt } }
29
29
 
30
30
  def exception_with_cause
@@ -43,7 +43,7 @@ module Producer
43
43
  end
44
44
 
45
45
  it 'excludes producer code from the backtrace' do
46
- expect(formatter.format exception).not_to include 'producer-core'
46
+ expect(formatter.format exception).not_to include 'producer'
47
47
  end
48
48
 
49
49
  it 'excludes net-ssh from the backtrace' do
@@ -65,7 +65,7 @@ module Producer
65
65
  let(:debug) { true }
66
66
 
67
67
  it 'does not filter the backtrace' do
68
- expect(formatter.format exception).to include 'producer-core'
68
+ expect(formatter.format exception).to include 'producer'
69
69
  end
70
70
 
71
71
  context 'when exception has a cause' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: producer-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan