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 +4 -4
- data/config/initializers/capture.rb +12 -9
- data/lib/hexx/rspec/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc15cfe52ef2e6bdc7f9aec099d62335bcb0c4c9
|
4
|
+
data.tar.gz: 58eeb9178c1a094d02c1dee3fcd5a07d920945c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f9e8e5d2407ec19e4c14456e44a7a95ff42e89a96100c682f794485c43796c400d1b71f5525d7e1e42e62b8f01b9c4bd2e08f1f769f37176c28358d5b1ff28
|
7
|
+
data.tar.gz: f3a5241a9cc8e37effdb2e5c86e58aa7a678734989ae4b336039f3fab8f5f670b4105d488a675a8f4a383eb51165c84a5ab2baafe0bb8ceb7c1c39f15280c8d4
|
@@ -2,16 +2,19 @@
|
|
2
2
|
|
3
3
|
RSpec.configure do |config|
|
4
4
|
|
5
|
-
|
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
|
-
|
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
|
data/lib/hexx/rspec/version.rb
CHANGED
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.
|
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-
|
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/
|
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/
|
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:
|