table_beet 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +2 -0
- data/lib/table_beet/cli.rb +6 -7
- data/lib/table_beet/formatters/oneline_formatter.rb +15 -0
- data/lib/table_beet/reporter.rb +3 -0
- data/lib/table_beet/version.rb +1 -1
- data/spec/fixtures/steps/global_steps.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- data/table_beet.gemspec +1 -0
- metadata +35 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496075bc2ab5cc6edd18d488d8871c1db8e8f4c4
|
4
|
+
data.tar.gz: 48158c1f7b1b3d941ceaa5ee8d72e84cc547fd31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c736db22d9eba1525e01572305b17477231b9017ee58160305344fa693a8c35b03127b16f951b8e7c88b9cb018cb04c246f6f22d6670ee7649952baa998cd113
|
7
|
+
data.tar.gz: b5cf33c7353faaf29640bd3529d323bb3cf8a55ccbeb31754875fcfce02a7e4423794c325e63c5e69c0984200e2cac735f304253eeb279496cb6116d6d9fe831
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@ TableBeet is reference generator for [turnip](https://github.com/jnicklas/turnip
|
|
4
4
|
|
5
5
|
[![Build Status](https://travis-ci.org/gongo/table_beet.png?branch=master)](https://travis-ci.org/gongo/table_beet)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/gongo/table_beet.png)](https://codeclimate.com/github/gongo/table_beet)
|
7
|
+
[![Dependency Status](https://gemnasium.com/gongo/table_beet.png)](https://gemnasium.com/gongo/table_beet)
|
8
|
+
[![Coverage Status](https://coveralls.io/repos/gongo/table_beet/badge.png?branch=master)](https://coveralls.io/r/gongo/table_beet)
|
7
9
|
|
8
10
|
# Requirements
|
9
11
|
|
data/lib/table_beet/cli.rb
CHANGED
@@ -25,6 +25,7 @@ module TableBeet
|
|
25
25
|
on :path=, 'Directory that contains step file. (default: ./spec)'
|
26
26
|
on :suffix=, 'Suffix of step file (default: _steps.rb)'
|
27
27
|
on :n, :textmode, 'Display steps in plain text (No generate HTML)'
|
28
|
+
on :s, :oneline, 'Display steps in plain text (short mode)'
|
28
29
|
on :v, :version, 'Print this version' do
|
29
30
|
puts TableBeet::VERSION
|
30
31
|
exit
|
@@ -33,15 +34,13 @@ module TableBeet
|
|
33
34
|
|
34
35
|
exit if opts.present?(:help)
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
opts.to_hash.tap do |h|
|
38
|
+
h.delete(:help)
|
39
|
+
h.delete(:version)
|
39
40
|
|
40
|
-
|
41
|
-
h[:format] = :
|
41
|
+
h[:format] = :text if opts.textmode?
|
42
|
+
h[:format] = :oneline if opts.oneline?
|
42
43
|
end
|
43
|
-
|
44
|
-
h
|
45
44
|
end
|
46
45
|
end
|
47
46
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'table_beet/formatters/base_formatter.rb'
|
2
|
+
|
3
|
+
module TableBeet
|
4
|
+
module Formatters
|
5
|
+
class OnelineFormatter < BaseFormatter
|
6
|
+
def flush
|
7
|
+
@scopes.each do |name, steps|
|
8
|
+
steps.each do |step|
|
9
|
+
puts "[@#{name}] #{step.name} at:#{step.file}:#{step.lineno}"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/table_beet/reporter.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'table_beet/world'
|
2
2
|
require 'table_beet/formatters/text_formatter'
|
3
|
+
require 'table_beet/formatters/oneline_formatter'
|
3
4
|
require 'table_beet/formatters/html_formatter'
|
4
5
|
|
5
6
|
module TableBeet
|
@@ -22,6 +23,8 @@ module TableBeet
|
|
22
23
|
case type
|
23
24
|
when :t, :text
|
24
25
|
TableBeet::Formatters::TextFormatter
|
26
|
+
when :s, :oneline
|
27
|
+
TableBeet::Formatters::OnelineFormatter
|
25
28
|
else
|
26
29
|
TableBeet::Formatters::HTMLFormatter
|
27
30
|
end
|
data/lib/table_beet/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/table_beet.gemspec
CHANGED
metadata
CHANGED
@@ -1,97 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_beet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wataru MIYAGUNI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: turnip
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
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'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: slop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
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'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: method_source
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
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: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: guard-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
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: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
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'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
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
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
description: Reference generator for Turnip steps of exists
|
@@ -102,9 +116,9 @@ executables:
|
|
102
116
|
extensions: []
|
103
117
|
extra_rdoc_files: []
|
104
118
|
files:
|
105
|
-
- .gitignore
|
106
|
-
- .rspec
|
107
|
-
- .travis.yml
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".travis.yml"
|
108
122
|
- Gemfile
|
109
123
|
- Guardfile
|
110
124
|
- LICENSE.txt
|
@@ -404,6 +418,7 @@ files:
|
|
404
418
|
- lib/table_beet/formatters/html_template/data/js/plugins/jquery.responsiveText.js
|
405
419
|
- lib/table_beet/formatters/html_template/data/js/plugins/jquery.tooltip.js
|
406
420
|
- lib/table_beet/formatters/html_template/index.erb
|
421
|
+
- lib/table_beet/formatters/oneline_formatter.rb
|
407
422
|
- lib/table_beet/formatters/text_formatter.rb
|
408
423
|
- lib/table_beet/loader.rb
|
409
424
|
- lib/table_beet/reporter.rb
|
@@ -428,17 +443,17 @@ require_paths:
|
|
428
443
|
- lib
|
429
444
|
required_ruby_version: !ruby/object:Gem::Requirement
|
430
445
|
requirements:
|
431
|
-
- -
|
446
|
+
- - ">="
|
432
447
|
- !ruby/object:Gem::Version
|
433
448
|
version: '0'
|
434
449
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
435
450
|
requirements:
|
436
|
-
- -
|
451
|
+
- - ">="
|
437
452
|
- !ruby/object:Gem::Version
|
438
453
|
version: '0'
|
439
454
|
requirements: []
|
440
455
|
rubyforge_project:
|
441
|
-
rubygems_version: 2.
|
456
|
+
rubygems_version: 2.2.0
|
442
457
|
signing_key:
|
443
458
|
specification_version: 4
|
444
459
|
summary: Reference generator for Turnip steps of exists
|