matrix_formatter 0.0.1
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 +15 -0
- data/.gitignore +17 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +74 -0
- data/Rakefile +7 -0
- data/lib/matrix_formatter.rb +15 -0
- data/lib/matrix_formatter/feature_matrix.rb +27 -0
- data/lib/matrix_formatter/formatters/base_formatter.rb +47 -0
- data/lib/matrix_formatter/formatters/html_formatter.rb +61 -0
- data/lib/matrix_formatter/formatters/markdown_formatter.rb +27 -0
- data/lib/matrix_formatter/formatters/text_formatter.rb +7 -0
- data/lib/matrix_formatter/version.rb +3 -0
- data/matrix_formatter.gemspec +28 -0
- data/sample_html.png +0 -0
- data/sample_spec.rb +34 -0
- data/spec/base_formatter_spec.rb +58 -0
- data/spec/feature_matrix_spec.rb +41 -0
- data/spec/spec_helper.rb +19 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NGZjMWQ3ZWY2ZWVlZGQ5M2QzYzU1ZGI4NGNhZjE3YWNjMDM2Mzk3Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzA3NDQxZjU1ODQ2NmE4MGEwZTM1ZTMwNDMyNTU1YzE0ODZlNWMwNg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjBhMDM3ZGMxZWQyNmMxYTE3ZTI3MTI5NzQ2ODliMzVmZGZmYWJjN2Q5NjNj
|
10
|
+
YzU3MGM5ZDk4ZjJkZDU1YmFiM2ZmZjc3MTJhYjExM2M3NjlmNTJhZjlkYmI4
|
11
|
+
OWIzODc0MjIxMWFiYWMwNTMxMTExZmQyMmE3NDBkY2FiYjUxODU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OGFlZjkzZGNiMDc3ZDNkYTFmYjE2YTQyY2FmOTQ1ODEzNGNlZmZjMjQxZjBi
|
14
|
+
MTVhMzEzOTljNWFlODBiZjFmMDViY2YyYjM2YTdjMWM2MmYxNDI4NTBlZDUz
|
15
|
+
MGYyOGY2YWQzZGMxZGI1NTQ3MTY3ZWZhOTQ2MjU4ODJhODk1YjI=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Max Lincoln
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# MatrixFormatter
|
2
|
+
|
3
|
+
Generates a Feature Matrix from specs following a certain pattern.
|
4
|
+
|
5
|
+
Given tests like these:
|
6
|
+
```ruby
|
7
|
+
require 'matrix_formatter'
|
8
|
+
|
9
|
+
implementors = ['LegacyWidget', 'HTML5Widget']
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.matrix_implementors = ['LegacyWidget', 'HTML5Widget']
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'MVP Features' do
|
15
|
+
implementors.each do |implementor|
|
16
|
+
context implementor do
|
17
|
+
it 'creates a thing' do
|
18
|
+
fail if implementor.eql? implementors.first
|
19
|
+
end
|
20
|
+
it 'saves a thing' do
|
21
|
+
fail unless implementor.eql? implementors.first
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'Cool Features' do
|
28
|
+
implementors.each do |implementor|
|
29
|
+
context implementor do
|
30
|
+
it 'renders a nyan cat video' do
|
31
|
+
fail if implementor.eql? implementors.first
|
32
|
+
end
|
33
|
+
it 'does a headstand' do
|
34
|
+
fail unless implementor.eql? implementors.first
|
35
|
+
end
|
36
|
+
pending 'reads your mind'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
It will produce output like this:
|
43
|
+

|
44
|
+
|
45
|
+
## Installation
|
46
|
+
|
47
|
+
Add this line to your application's Gemfile:
|
48
|
+
|
49
|
+
gem 'matrix_formatter'
|
50
|
+
|
51
|
+
And then execute:
|
52
|
+
|
53
|
+
$ bundle
|
54
|
+
|
55
|
+
## Usage
|
56
|
+
|
57
|
+
Together with the documentation formatter:
|
58
|
+
|
59
|
+
`rspec sample_spec.rb --format documentation --format MatrixFormatter::Formatters::HTMLFormatter --out matrix.html`
|
60
|
+
|
61
|
+
or via .rspec:
|
62
|
+
```rb
|
63
|
+
--format documentation
|
64
|
+
--format MatrixFormatter::Formatters::HTMLFormatter
|
65
|
+
--out matrix.html
|
66
|
+
```
|
67
|
+
|
68
|
+
## Contributing
|
69
|
+
|
70
|
+
1. Fork it
|
71
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
72
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
73
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
74
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "matrix_formatter/version"
|
2
|
+
require "matrix_formatter/feature_matrix"
|
3
|
+
|
4
|
+
# Formatters
|
5
|
+
require 'matrix_formatter/formatters/base_formatter'
|
6
|
+
require 'matrix_formatter/formatters/text_formatter'
|
7
|
+
require 'matrix_formatter/formatters/markdown_formatter'
|
8
|
+
# require 'matrix_formatter/formatters/html_formatter'
|
9
|
+
|
10
|
+
require 'multi_json'
|
11
|
+
require 'redcarpet'
|
12
|
+
|
13
|
+
RSpec.configure do |c|
|
14
|
+
c.add_setting :matrix_implementors, :default => []
|
15
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module MatrixFormatter
|
2
|
+
class FeatureMatrix
|
3
|
+
attr_accessor :current_feature, :current_implementor, :current_product
|
4
|
+
attr_reader :implementors
|
5
|
+
attr_reader :results
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@implementors = RSpec.configuration.matrix_implementors
|
9
|
+
# results[product][feature][implementor]
|
10
|
+
@results = Hash.new { |product_hash, product_key|
|
11
|
+
product_hash[product_key] = Hash.new { |feature_hash, feature_key|
|
12
|
+
feature_hash[feature_key] = Hash.new { |implementor_hash, implementor_key|
|
13
|
+
implementor_hash[implementor_key] = Hash.new
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
def add_result state
|
20
|
+
@results[current_product][current_feature][current_implementor] = state
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_json
|
24
|
+
MultiJson.encode @results
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'rspec/core/formatters/base_text_formatter'
|
2
|
+
|
3
|
+
module MatrixFormatter
|
4
|
+
module Formatters
|
5
|
+
class BaseFormatter < RSpec::Core::Formatters::BaseFormatter
|
6
|
+
attr_accessor :matrix
|
7
|
+
|
8
|
+
def initialize(output)
|
9
|
+
super(output)
|
10
|
+
@matrix = matrix
|
11
|
+
end
|
12
|
+
|
13
|
+
def start(expected_example_count)
|
14
|
+
@matrix ||= MatrixFormatter::FeatureMatrix.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def example_group_started(example_group)
|
18
|
+
description = example_group.description
|
19
|
+
if @matrix.implementors.include? description
|
20
|
+
@matrix.current_implementor = description
|
21
|
+
else
|
22
|
+
@matrix.current_product = description
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def example_started(example)
|
27
|
+
@matrix.current_feature = example.description
|
28
|
+
end
|
29
|
+
|
30
|
+
def example_passed(example)
|
31
|
+
@matrix.add_result :passed
|
32
|
+
end
|
33
|
+
|
34
|
+
def example_failed(example)
|
35
|
+
@matrix.add_result :failed
|
36
|
+
end
|
37
|
+
|
38
|
+
def example_pending(example)
|
39
|
+
@matrix.add_result :pending
|
40
|
+
end
|
41
|
+
|
42
|
+
def dump_summary(duration, example_count, failure_count, pending_count)
|
43
|
+
# don't
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'matrix_formatter'
|
2
|
+
|
3
|
+
class MatrixFormatter::Formatters::HTMLFormatter < MatrixFormatter::Formatters::MarkdownFormatter
|
4
|
+
def start_dump
|
5
|
+
renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :tables => true)
|
6
|
+
|
7
|
+
@output.puts header
|
8
|
+
@output.puts renderer.render(markdown)
|
9
|
+
@output.puts footer
|
10
|
+
end
|
11
|
+
|
12
|
+
def header
|
13
|
+
"""
|
14
|
+
<html>
|
15
|
+
<head>
|
16
|
+
<style type=\"text/css\">
|
17
|
+
td {
|
18
|
+
padding: 7px 10px;
|
19
|
+
vertical-align: top;
|
20
|
+
text-align: left;
|
21
|
+
border: 1px solid #ddd;
|
22
|
+
}
|
23
|
+
.passed {
|
24
|
+
color: green;
|
25
|
+
}
|
26
|
+
.failed {
|
27
|
+
color: red;
|
28
|
+
}
|
29
|
+
.pending {
|
30
|
+
color: blue;
|
31
|
+
}
|
32
|
+
</style>
|
33
|
+
</head>
|
34
|
+
<body>
|
35
|
+
"""
|
36
|
+
end
|
37
|
+
|
38
|
+
def footer
|
39
|
+
"""
|
40
|
+
</body>
|
41
|
+
<script type=\"text/javascript\">
|
42
|
+
var table = document.getElementsByTagName('table')[0];
|
43
|
+
var tbody = table.getElementsByTagName('tbody')[0];
|
44
|
+
var cells = tbody.getElementsByTagName('td');
|
45
|
+
|
46
|
+
for (var i=0, len=cells.length; i<len; i++){
|
47
|
+
if (cells[i].innerText === 'failed'){
|
48
|
+
cells[i].className = 'failed';
|
49
|
+
}
|
50
|
+
else if (cells[i].innerText === 'passed'){
|
51
|
+
cells[i].className = 'passed';
|
52
|
+
}
|
53
|
+
else if (cells[i].innerText === 'pending'){
|
54
|
+
cells[i].className = 'pending';
|
55
|
+
}
|
56
|
+
}
|
57
|
+
</script>
|
58
|
+
</html>
|
59
|
+
"""
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'matrix_formatter'
|
2
|
+
|
3
|
+
class MatrixFormatter::Formatters::MarkdownFormatter < MatrixFormatter::Formatters::BaseFormatter
|
4
|
+
def markdown
|
5
|
+
buffer = StringIO.new
|
6
|
+
header_line = ['Feature Group', 'Feature', RSpec.configuration.matrix_implementors].join ' | '
|
7
|
+
buffer.puts header_line
|
8
|
+
buffer.puts header_line.gsub(/[^|]/, '-')
|
9
|
+
|
10
|
+
@matrix.results.each do |product, features|
|
11
|
+
# Only show the product on the first line
|
12
|
+
product_text = "**#{product}**"
|
13
|
+
features.each do |feature_key, feature_results|
|
14
|
+
states = RSpec.configuration.matrix_implementors.map { |implementor|
|
15
|
+
feature_results[implementor]
|
16
|
+
}
|
17
|
+
buffer.puts [product_text, "**#{feature_key}**", states].join ' | '
|
18
|
+
product_text = ''
|
19
|
+
end
|
20
|
+
end
|
21
|
+
buffer.string
|
22
|
+
end
|
23
|
+
|
24
|
+
def start_dump
|
25
|
+
@output.puts markdown
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'matrix_formatter/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "matrix_formatter"
|
8
|
+
spec.version = MatrixFormatter::VERSION
|
9
|
+
spec.authors = ["Max Lincoln"]
|
10
|
+
spec.email = ["max@devopsy.com"]
|
11
|
+
spec.description = "RSpec formatter that produces a feature matrix."
|
12
|
+
spec.summary = "RSpec formatter that produces a feature matrix."
|
13
|
+
spec.homepage = "http://github.com/maxlinc/matrix_formatter"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency 'multi_json'
|
22
|
+
spec.add_dependency 'redcarpet'
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "rspec"
|
26
|
+
spec.add_development_dependency "rspec-fire"
|
27
|
+
spec.add_development_dependency "json_spec"
|
28
|
+
end
|
data/sample_html.png
ADDED
Binary file
|
data/sample_spec.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'matrix_formatter'
|
2
|
+
|
3
|
+
implementors = ['LegacyWidget', 'HTML5Widget']
|
4
|
+
RSpec.configure do |config|
|
5
|
+
config.matrix_implementors = ['LegacyWidget', 'HTML5Widget']
|
6
|
+
end
|
7
|
+
|
8
|
+
describe 'MVP Features' do
|
9
|
+
implementors.each do |implementor|
|
10
|
+
context implementor do
|
11
|
+
it 'creates a thing' do
|
12
|
+
fail if implementor.eql? implementors.first
|
13
|
+
end
|
14
|
+
it 'saves a thing' do
|
15
|
+
fail unless implementor.eql? implementors.first
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'Cool Features' do
|
22
|
+
implementors.each do |implementor|
|
23
|
+
context implementor do
|
24
|
+
it 'renders a nyan cat video' do
|
25
|
+
fail if implementor.eql? implementors.first
|
26
|
+
end
|
27
|
+
it 'does a headstand' do
|
28
|
+
fail unless implementor.eql? implementors.first
|
29
|
+
end
|
30
|
+
pending 'reads your mind'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'stringio'
|
3
|
+
|
4
|
+
describe MatrixFormatter::Formatters::BaseFormatter do
|
5
|
+
let(:output) { StringIO.new }
|
6
|
+
|
7
|
+
let(:matrix) { instance_double("MatrixFormatter::FeatureMatrix") }
|
8
|
+
|
9
|
+
let(:implementors) { ['legacy', 'nextgen', 'mobile'] }
|
10
|
+
let(:formatter) do
|
11
|
+
formatter = MatrixFormatter::Formatters::BaseFormatter.new(output)
|
12
|
+
formatter.matrix = matrix
|
13
|
+
formatter.start(2)
|
14
|
+
formatter
|
15
|
+
end
|
16
|
+
|
17
|
+
let(:example_group) { class_double('RSpec::Core::ExampleGroup') }
|
18
|
+
let(:example) { instance_double('RSpec::Core::Example') }
|
19
|
+
|
20
|
+
describe '#example_group_started' do
|
21
|
+
context 'starting an implementor' do
|
22
|
+
it 'sets the current feature to the example description' do
|
23
|
+
matrix.should_receive(:implementors).and_return implementors
|
24
|
+
implementor = implementors.sample
|
25
|
+
example_group.should_receive(:description).and_return implementor
|
26
|
+
matrix.should_receive(:current_implementor=).with(implementor)
|
27
|
+
formatter.example_group_started example_group
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'sets the current product to the example description' do
|
32
|
+
description = 'some cool product'
|
33
|
+
matrix.should_receive(:implementors).and_return implementors
|
34
|
+
example_group.should_receive(:description).and_return description
|
35
|
+
matrix.should_receive(:current_product=).with(description)
|
36
|
+
formatter.example_group_started example_group
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe '#example_started' do
|
41
|
+
it 'sets the current feature to the example description' do
|
42
|
+
description = 'some cool feature'
|
43
|
+
example.should_receive(:description).and_return description
|
44
|
+
matrix.should_receive(:current_feature=).with(description)
|
45
|
+
formatter.example_started example
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
[:passed, :failed, :pending].each do |status|
|
50
|
+
method = "example_#{status.to_s}"
|
51
|
+
describe "##{method}" do
|
52
|
+
it 'tells the FeatureMatrix that about the result' do
|
53
|
+
matrix.should_receive(:add_result).with(status)
|
54
|
+
formatter.send(method.to_sym, example)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
describe MatrixFormatter::FeatureMatrix do
|
2
|
+
include JsonSpec::Helpers
|
3
|
+
subject(:matrix) { MatrixFormatter::FeatureMatrix.new }
|
4
|
+
|
5
|
+
before do
|
6
|
+
matrix.current_product = 'ProductA'
|
7
|
+
matrix.current_implementor = 'Implementor1'
|
8
|
+
end
|
9
|
+
|
10
|
+
describe '#add_result' do
|
11
|
+
it 'associates the result with the current product/feature/implementor' do
|
12
|
+
matrix.current_feature = 'Feature X'
|
13
|
+
matrix.add_result :passed
|
14
|
+
matrix.current_feature = 'Feature Y'
|
15
|
+
matrix.add_result :failed
|
16
|
+
results = matrix.instance_variable_get('@results')
|
17
|
+
results['ProductA']['Feature X']['Implementor1'].should eq(:passed)
|
18
|
+
results['ProductA']['Feature Y']['Implementor1'].should eq(:failed)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#to_json' do
|
23
|
+
it 'displays the matrix as json' do
|
24
|
+
matrix.current_feature = 'Feature X'
|
25
|
+
matrix.add_result :passed
|
26
|
+
matrix.current_feature = 'Feature Y'
|
27
|
+
matrix.add_result :failed
|
28
|
+
expected = generate_normalized_json({
|
29
|
+
'ProductA' => {
|
30
|
+
'Feature X' => {
|
31
|
+
'Implementor1' => :passed
|
32
|
+
},
|
33
|
+
'Feature Y' => {
|
34
|
+
'Implementor1' => :failed
|
35
|
+
}
|
36
|
+
}
|
37
|
+
})
|
38
|
+
matrix.to_json.should be_json_eql(expected)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'matrix_formatter'
|
2
|
+
require 'rspec/fire'
|
3
|
+
require 'json_spec'
|
4
|
+
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.include(RSpec::Fire)
|
7
|
+
# Unfortunely rspec-fire doesn't support expect, use should
|
8
|
+
# until it's fixed and merged into rspec 3.
|
9
|
+
config.expect_with :rspec do |c|
|
10
|
+
c.syntax = :should
|
11
|
+
end
|
12
|
+
config.mock_with :rspec do |c|
|
13
|
+
c.syntax = :should
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
RSpec::Fire.configure do |config|
|
18
|
+
config.verify_constant_names = true
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: matrix_formatter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Max Lincoln
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: multi_json
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: redcarpet
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-fire
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: json_spec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: RSpec formatter that produces a feature matrix.
|
112
|
+
email:
|
113
|
+
- max@devopsy.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- .gitignore
|
119
|
+
- Gemfile
|
120
|
+
- LICENSE.txt
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- lib/matrix_formatter.rb
|
124
|
+
- lib/matrix_formatter/feature_matrix.rb
|
125
|
+
- lib/matrix_formatter/formatters/base_formatter.rb
|
126
|
+
- lib/matrix_formatter/formatters/html_formatter.rb
|
127
|
+
- lib/matrix_formatter/formatters/markdown_formatter.rb
|
128
|
+
- lib/matrix_formatter/formatters/text_formatter.rb
|
129
|
+
- lib/matrix_formatter/version.rb
|
130
|
+
- matrix_formatter.gemspec
|
131
|
+
- sample_html.png
|
132
|
+
- sample_spec.rb
|
133
|
+
- spec/base_formatter_spec.rb
|
134
|
+
- spec/feature_matrix_spec.rb
|
135
|
+
- spec/spec_helper.rb
|
136
|
+
homepage: http://github.com/maxlinc/matrix_formatter
|
137
|
+
licenses:
|
138
|
+
- MIT
|
139
|
+
metadata: {}
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ! '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.1.11
|
157
|
+
signing_key:
|
158
|
+
specification_version: 4
|
159
|
+
summary: RSpec formatter that produces a feature matrix.
|
160
|
+
test_files:
|
161
|
+
- spec/base_formatter_spec.rb
|
162
|
+
- spec/feature_matrix_spec.rb
|
163
|
+
- spec/spec_helper.rb
|