rainbow_formatter 0.1.5 → 0.1.7
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 +5 -5
- data/README.md +3 -2
- data/lib/formatter/version.rb +1 -1
- data/lib/rainbow_formatter.rb +2 -1
- data/rainbow_formatter.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5ce1ca765a3788550fe68ca1419d619cb8e37ccc
|
4
|
+
data.tar.gz: bb26de69871808ad21a0607ae2fb0b9e7a1e7fcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37cb92a482526efdb6eca12be8df2abadd74904cfadb9df7e095c84d25704b0298d94a0e74bb6a64f9dd7dad7e98edd09d567a64e361dfa2d4d99038581ad1f3
|
7
|
+
data.tar.gz: 4b27afd2b7cc509a8cc4a7514babdb20d85932a3fee2c4e35cfd4c93dcb2883f6c4a7f923acbf30d66b44ecafa5dd113f08726b27e0913838b4faf52453dfa6e
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ You can create your own version, with your own song and draw, this way:
|
|
76
76
|
```ruby
|
77
77
|
module YourCustomMode
|
78
78
|
def ascii_array
|
79
|
-
'
|
79
|
+
['ascci_0','ascii_1']
|
80
80
|
end
|
81
81
|
def rainbow_mp3
|
82
82
|
'your_song_path'
|
@@ -84,8 +84,9 @@ module YourCustomMode
|
|
84
84
|
end
|
85
85
|
|
86
86
|
RainbowFormatter.configure do |config|
|
87
|
+
# Could be a module like above one or a already bundled mode
|
87
88
|
config.formatter = YourCustomMode
|
88
|
-
#
|
89
|
+
# config.formatter = :tina_dream (or any already bundle modes below)
|
89
90
|
end
|
90
91
|
```
|
91
92
|
|
data/lib/formatter/version.rb
CHANGED
data/lib/rainbow_formatter.rb
CHANGED
@@ -4,6 +4,7 @@ require 'formatter/configuration'
|
|
4
4
|
require 'formatter/common'
|
5
5
|
require 'ostruct'
|
6
6
|
require 'pry'
|
7
|
+
require 'rspec'
|
7
8
|
|
8
9
|
class RainbowFormatter
|
9
10
|
include Formatter::Common
|
@@ -11,7 +12,7 @@ class RainbowFormatter
|
|
11
12
|
attr_reader :example_name, :ascii_array, :output
|
12
13
|
|
13
14
|
RSpec::Core::Formatters.register self, :start, :example_started, :example_passed, :example_pending, :example_failed,
|
14
|
-
|
15
|
+
:start_dump, :dump_summary
|
15
16
|
|
16
17
|
BUNDLED_MODES = {
|
17
18
|
tina_bike: Formatter::Custom::TinaBike,
|
data/rainbow_formatter.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ['Federico Farina']
|
10
10
|
s.email = ['federicojosefarina@gmail.com']
|
11
11
|
s.platform = Gem::Platform::RUBY
|
12
|
-
s.homepage = 'https://github.com/fedefa/
|
12
|
+
s.homepage = 'https://github.com/fedefa/rainbow_formatter'
|
13
13
|
s.summary = 'Customizable RSpec formatter'
|
14
14
|
s.description = 'Customizable ascii-music RSpec formattter'
|
15
15
|
s.license = 'MIT'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rainbow_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Federico Farina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -103,7 +103,7 @@ files:
|
|
103
103
|
- spec/rainbow_music_formatter_spec.rb
|
104
104
|
- spec/rainbow_verbose_formatter_spec.rb
|
105
105
|
- spec/spec_helper.rb
|
106
|
-
homepage: https://github.com/fedefa/
|
106
|
+
homepage: https://github.com/fedefa/rainbow_formatter
|
107
107
|
licenses:
|
108
108
|
- MIT
|
109
109
|
metadata: {}
|
@@ -122,7 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.6.14.3
|
126
127
|
signing_key:
|
127
128
|
specification_version: 4
|
128
129
|
summary: Customizable RSpec formatter
|