rainbow_documentation 0.0.4 → 0.1.0
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 +4 -4
- data/lib/rainbow_documentation.rb +2 -1
- data/lib/rainbow_documentation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b9f0a95967762085a565d6bad8ab182333c3e57
|
|
4
|
+
data.tar.gz: 3b15dfc6bf8486cc0785788a2890dc8806374a23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa5ca9b51e5f246126894abc350905bd0c2e7512385c30e02f315b1218d48e691d23726007fba31f35ed3820be5f2bf4987ce041f84590946109561fc15c6098
|
|
7
|
+
data.tar.gz: 4eda2dc4196184c6ada05e462ed4e8f674c89da73d1517674ea94e6f65dba59a71e8a828d345fc1de8dbc04e43b3786e3dddbde1d33b3a32b9b57e4ff52e1a6e
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'rspec'
|
|
2
2
|
require 'rspec/core/formatters/base_text_formatter'
|
|
3
3
|
|
|
4
|
+
# A reinterpretation of the documentation formatter with more character
|
|
4
5
|
class RainbowDocumentation < RSpec::Core::Formatters::BaseTextFormatter
|
|
5
6
|
RSpec::Core::Formatters.register self,
|
|
6
7
|
:example_group_started,
|
|
@@ -32,7 +33,7 @@ class RainbowDocumentation < RSpec::Core::Formatters::BaseTextFormatter
|
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
def example_group_started(notification)
|
|
35
|
-
@output.puts wrap("#{current_indentation}#{notification.group.description.strip}", COLOR[@group_level])
|
|
36
|
+
@output.puts wrap("#{current_indentation}#{notification.group.description.strip}", COLOR[@group_level % 6])
|
|
36
37
|
@group_level += 1
|
|
37
38
|
end
|
|
38
39
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rainbow_documentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrea Capri
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
71
|
version: '0'
|
|
72
72
|
requirements: []
|
|
73
73
|
rubyforge_project:
|
|
74
|
-
rubygems_version: 2.0
|
|
74
|
+
rubygems_version: 2.1.0
|
|
75
75
|
signing_key:
|
|
76
76
|
specification_version: 4
|
|
77
77
|
summary: A wrapper for RSpec that keeps things colourful
|