peck 0.5.1 → 0.5.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8afb31049d263dba0b2e5a7a5bb5dbeb05c6a1f6
4
+ data.tar.gz: 89dc4d2874caa710e1117085fbaf605715c7c3bd
5
+ SHA512:
6
+ metadata.gz: 1a27eff417e8f21db1e216c36a804eba5f7ea407543c0bfcf5adf5195c0f8353b94a4355bf4d29e130cf5c307cfa63efdb61c07c59fcbc9b5d2c4cf627d6749d
7
+ data.tar.gz: 59d2f2b1255360b94b2d5fe8574389bfecdc7bb49dfc47e26ea17cdc5924ff43e2e7d22686900a97a389fe601633cdc8950fb8ac5aa31248bda5dbd405f7ef27
data/bin/peck CHANGED
@@ -14,6 +14,7 @@ Usage: peck [options] [files]
14
14
  -e, --match-regexp run tests that match a given regular expression
15
15
  -t, --match-text run tests that match a given string
16
16
  -a, --recently-accessed run tests that have been updated in the last 15 minutes
17
+ -S, --no-strip-backtrace doesn't strip anything from the backtrace
17
18
  -d, --debug log debug messages to stdout
18
19
  -h, --help show this message
19
20
  EOF
@@ -37,6 +38,10 @@ if match_text = options.first['t'] || options.first['match-text']
37
38
  Peck.spec_selector = /#{match_text}/
38
39
  end
39
40
 
41
+ if options.first['S'] || options.first['no-strip-backtrace']
42
+ Peck.clean_backtrace = false
43
+ end
44
+
40
45
  unless (%w(d debug) & options.first.keys).empty?
41
46
  require File.expand_path('../../lib/peck/debug', __FILE__)
42
47
  end
@@ -25,9 +25,18 @@ class Peck
25
25
  end
26
26
  end
27
27
 
28
+ def backtrace(event)
29
+ if Peck.clean_backtrace == false
30
+ backtrace = event.exception.backtrace
31
+ else
32
+ backtrace = clean_backtrace(event.exception.backtrace)
33
+ end
34
+ end
35
+
28
36
  def write_exception(number, event)
29
37
  puts " #{number}) #{event.spec.label}\n\n"
30
- backtrace = clean_backtrace(event.exception.backtrace)
38
+
39
+ backtrace = backtrace(event)
31
40
 
32
41
  parts = []
33
42
  unless event.exception.message.nil? || event.exception.message == ''
data/lib/peck.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'thread'
4
4
 
5
5
  class Peck
6
- VERSION = "0.5.1"
6
+ VERSION = "0.5.2"
7
7
 
8
8
  class << self
9
9
  # Returns all the defined contexts.
@@ -27,6 +27,9 @@ class Peck
27
27
 
28
28
  # Sets the level of concurrency.
29
29
  attr_accessor :concurrency
30
+
31
+ # Sets whether the backtrace should be cleaned in case of a failure
32
+ attr_accessor :clean_backtrace
30
33
  end
31
34
 
32
35
  # A no-op unless you require 'peck/debug'
metadata CHANGED
@@ -1,32 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: peck
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 1
9
- version: 0.5.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.2
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Manfred Stienstra
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2013-11-21 00:00:00 +01:00
18
- default_executable:
11
+ date: 2013-12-22 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: " Concurrent spec framework.\n"
13
+ description: |2
14
+ Concurrent spec framework.
22
15
  email: manfred@fngtps.com
23
- executables:
16
+ executables:
24
17
  - peck
25
18
  extensions: []
26
-
27
- extra_rdoc_files:
19
+ extra_rdoc_files:
28
20
  - COPYING
29
- files:
21
+ files:
30
22
  - lib/peck/context.rb
31
23
  - lib/peck/counter.rb
32
24
  - lib/peck/debug.rb
@@ -44,35 +36,31 @@ files:
44
36
  - lib/peck.rb
45
37
  - COPYING
46
38
  - README.md
47
- has_rdoc: true
39
+ - bin/peck
48
40
  homepage:
49
41
  licenses: []
50
-
42
+ metadata: {}
51
43
  post_install_message:
52
- rdoc_options:
44
+ rdoc_options:
53
45
  - --charset=utf-8
54
- require_paths:
46
+ require_paths:
55
47
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- segments:
61
- - 0
62
- version: "0"
63
- required_rubygems_version: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
70
58
  requirements: []
71
-
72
59
  rubyforge_project:
73
- rubygems_version: 1.3.6
60
+ rubygems_version: 2.0.3
74
61
  signing_key:
75
- specification_version: 3
76
- summary: Peck is a concurrent spec framework which inherits a lot from the fabulous Bacon and MacBacon. We call it a framework because it was designed to be used in parts and is easily extended.
62
+ specification_version: 4
63
+ summary: Peck is a concurrent spec framework which inherits a lot from the fabulous
64
+ Bacon and MacBacon. We call it a framework because it was designed to be used in
65
+ parts and is easily extended.
77
66
  test_files: []
78
-