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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d5731f9ef1f5bc07618506a4fdd5325a94f4700
4
- data.tar.gz: d8574609a60716ddf2866f755c2a0dfe7dde53a3
3
+ metadata.gz: 496075bc2ab5cc6edd18d488d8871c1db8e8f4c4
4
+ data.tar.gz: 48158c1f7b1b3d941ceaa5ee8d72e84cc547fd31
5
5
  SHA512:
6
- metadata.gz: d6ee48022ace5895d735ec1f0f30e02e4276dd19c4f5adcaa176958a3f24e0c8a34a4e72d327121168bddd1fbd0c6e1eba8d7d4619d1d945b717b66279bf3aa3
7
- data.tar.gz: 1f4f1546e7d38b84b849634863c9a368dafebd3f633d60ac98db1648a198527ee401d70935e811cab7c08766f00321425f260a3c200cdcf0a211a4aadb6f71c9
6
+ metadata.gz: c736db22d9eba1525e01572305b17477231b9017ee58160305344fa693a8c35b03127b16f951b8e7c88b9cb018cb04c246f6f22d6670ee7649952baa998cd113
7
+ data.tar.gz: b5cf33c7353faaf29640bd3529d323bb3cf8a55ccbeb31754875fcfce02a7e4423794c325e63c5e69c0984200e2cac735f304253eeb279496cb6116d6d9fe831
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0
5
6
  script: bundle exec rake spec && bundle exec rspec --tag before_load spec
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
 
@@ -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
- h = opts.to_hash
37
- h.delete(:help)
38
- h.delete(:version)
37
+ opts.to_hash.tap do |h|
38
+ h.delete(:help)
39
+ h.delete(:version)
39
40
 
40
- if opts.textmode?
41
- h[:format] = :text
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TableBeet
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -3,5 +3,5 @@ step "Are you talking about :name !!!!!" do |name|
3
3
  end
4
4
 
5
5
  step "When you give up, that's when the game is over." do
6
- expect(true).to be_true
6
+ expect(true).to be true
7
7
  end
@@ -1,4 +1,6 @@
1
1
  require 'table_beet'
2
+ require 'coveralls'
3
+ Coveralls.wear!
2
4
 
3
5
  FIXTURES_PATH = File.dirname(__FILE__) + '/fixtures/steps'
4
6
  OUTPUT_PATH = File.dirname(__FILE__) + '/stepdoc'
@@ -23,4 +23,5 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'guard-rspec'
24
24
  gem.add_development_dependency 'bundler'
25
25
  gem.add_development_dependency 'rake'
26
+ gem.add_development_dependency 'coveralls'
26
27
  end
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.3
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: 2013-03-05 00:00:00.000000000 Z
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.0.0
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