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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5d182596a6a2ab12ed48b5711a7f2a8213810e6
4
- data.tar.gz: 042fa9a0fbac0997357d62a1f54df907110a2c47
3
+ metadata.gz: 4b9f0a95967762085a565d6bad8ab182333c3e57
4
+ data.tar.gz: 3b15dfc6bf8486cc0785788a2890dc8806374a23
5
5
  SHA512:
6
- metadata.gz: 8a656fd4737a5ae3b547ac8e2d50487c8b26716a7af81238b73d8304693f00cd43e7ae71e6acab9ccb5a5f04ce3c0d68bf1806a9455c1f9fdb757df2bcc50651
7
- data.tar.gz: e06b56cd661b15d9854edcf183a0312a99f187e9dbaf5c75f646b01c51addd48e685b4293bd91cb86926dbd8e4b584904cb2c65db3d127747e33d2156f027785
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
 
@@ -1,4 +1,4 @@
1
1
  class RainbowDocumentation
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = `git describe --tags`.freeze
3
3
  RELEASE_DATE = '2016-06-14'.freeze
4
4
  end
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
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.14.1
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