hexx-rspec 0.2.2 → 0.3.0

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
  SHA1:
3
- metadata.gz: 6a902685cad575b13de886f1b4d7fa7fb2afb831
4
- data.tar.gz: 60d6cd196cb90646e711245120ec81cf3b4d11f7
3
+ metadata.gz: bc15cfe52ef2e6bdc7f9aec099d62335bcb0c4c9
4
+ data.tar.gz: 58eeb9178c1a094d02c1dee3fcd5a07d920945c1
5
5
  SHA512:
6
- metadata.gz: 6c5a22302e979d0e013d2e0822222f1aaa215109e32aa079117cb21736fef79f30b6bbac7d00ae5d6bad05c5062705c154406085cf572d5ca37a553589780bbf
7
- data.tar.gz: deba62a99cd94a896c28c59bad54ebd2a883dc1e65de3440d64eeb421e48797eb9851b7c40e01edd0cf7f7140383f78269b88b68333af7a53ca411f8817fd10a
6
+ metadata.gz: b3f9e8e5d2407ec19e4c14456e44a7a95ff42e89a96100c682f794485c43796c400d1b71f5525d7e1e42e62b8f01b9c4bd2e08f1f769f37176c28358d5b1ff28
7
+ data.tar.gz: f3a5241a9cc8e37effdb2e5c86e58aa7a678734989ae4b336039f3fab8f5f670b4105d488a675a8f4a383eb51165c84a5ab2baafe0bb8ceb7c1c39f15280c8d4
@@ -2,16 +2,19 @@
2
2
 
3
3
  RSpec.configure do |config|
4
4
 
5
- # Captures stdout
5
+ def capture_stdout
6
+ $stdout = StringIO.new
7
+ yield if block_given?
8
+
9
+ $stdout.string
10
+ rescue
11
+ ""
12
+ ensure
13
+ $stdout = STDOUT
14
+ end
15
+
6
16
  config.around :each, :capture do |example|
7
- begin
8
- $stdout = StringIO.new
9
- example.run
10
- result = $stdout.string
11
- ensure
12
- $stdout = STDOUT
13
- end
14
- result.to_s
17
+ capture_stdout { example.run }
15
18
  end
16
19
 
17
20
  end # RSpec.configure
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "0.2.2".freeze
9
+ VERSION = "0.3.0".freeze
10
10
 
11
11
  end # module RSpec
12
12
 
metadata CHANGED
@@ -1,94 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-14 00:00:00.000000000 Z
11
+ date: 2015-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- type: :runtime
15
14
  name: coveralls
16
- prerelease: false
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0.7'
20
+ type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
- type: :runtime
29
28
  name: i18n
30
- prerelease: false
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
31
  - - "~>"
34
32
  - !ruby/object:Gem::Version
35
33
  version: '0.7'
34
+ type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.7'
41
41
  - !ruby/object:Gem::Dependency
42
- type: :runtime
43
42
  name: rake
44
- prerelease: false
45
43
  requirement: !ruby/object:Gem::Requirement
46
44
  requirements:
47
45
  - - "~>"
48
46
  - !ruby/object:Gem::Version
49
47
  version: '10.3'
48
+ type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.3'
55
55
  - !ruby/object:Gem::Dependency
56
- type: :runtime
57
56
  name: rspec
58
- prerelease: false
59
57
  requirement: !ruby/object:Gem::Requirement
60
58
  requirements:
61
59
  - - "~>"
62
60
  - !ruby/object:Gem::Version
63
61
  version: '3.0'
62
+ type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
- type: :runtime
71
70
  name: simplecov
72
- prerelease: false
73
71
  requirement: !ruby/object:Gem::Requirement
74
72
  requirements:
75
73
  - - "~>"
76
74
  - !ruby/object:Gem::Version
77
75
  version: '0.9'
76
+ type: :runtime
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.9'
83
83
  - !ruby/object:Gem::Dependency
84
- type: :runtime
85
84
  name: thor
86
- prerelease: false
87
85
  requirement: !ruby/object:Gem::Requirement
88
86
  requirements:
89
87
  - - "~>"
90
88
  - !ruby/object:Gem::Version
91
89
  version: '0.19'
90
+ type: :runtime
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
@@ -176,15 +176,15 @@ specification_version: 4
176
176
  summary: RSpec settings.
177
177
  test_files:
178
178
  - spec/spec_helper.rb
179
- - spec/tests/rspec_spec.rb
180
- - spec/support/prepare_settings.rb
181
- - spec/support/tasks.rb
179
+ - spec/tests/lib/metrics/simplecov_spec.rb
182
180
  - spec/tests/lib/system_spec.rb
183
181
  - spec/tests/lib/install_spec.rb
184
182
  - spec/tests/tasks/test_spec.rb
185
- - spec/tests/bin/install_spec.rb
186
183
  - spec/tests/tasks/test/coverage_spec.rb
187
- - spec/tests/lib/metrics/simplecov_spec.rb
184
+ - spec/tests/bin/install_spec.rb
185
+ - spec/tests/rspec_spec.rb
186
+ - spec/support/prepare_settings.rb
187
+ - spec/support/tasks.rb
188
188
  - Rakefile
189
189
  - Guardfile
190
190
  has_rdoc: