detroit-rspec 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby CHANGED
@@ -1,4 +1,6 @@
1
1
  ---
2
+ source:
3
+ - meta
2
4
  authors:
3
5
  - name: T. Sawyer
4
6
  email: transfire@gmail.com
@@ -6,25 +8,29 @@ copyrights:
6
8
  - holder: Thomas Sawyer
7
9
  year: '2011'
8
10
  license: GPL-3
9
- replacements: []
10
- conflicts: []
11
- requirements: []
11
+ requirements:
12
+ - name: detroit
13
+ version: 0.3.0+
14
+ - name: rspec
12
15
  dependencies: []
16
+ alternatives: []
17
+ conflicts: []
13
18
  repositories: []
14
19
  resources:
15
20
  home: http://detroit.github.com/
16
21
  code: http://github.com/detroit/detroit-rspec
17
22
  mail: http://google.groups.com/group/rubyworks-mailinglist
23
+ extra: {}
18
24
  load_path:
19
25
  - lib
20
- extra: {}
21
26
  revision: 0
22
- name: detroit-rspec
23
- source: []
24
- alternatives: []
25
- title: Detroit RSpec
26
- version: 0.1.0
27
+ created: '2011-10-16'
27
28
  summary: RSpec plugin for Detroit
29
+ title: Detroit RSpec
30
+ version: 0.2.0
31
+ name: detroit-rspec
32
+ suite: detroit
28
33
  description: RSpec plugin for Detroit build system. This plugin runs rspec specification
29
34
  durring the test phase.
30
- date: '2011-10-16'
35
+ organization: rubyworks
36
+ date: '2012-04-01'
File without changes
@@ -53,20 +53,30 @@ module Detroit
53
53
  # Format of RSpec output.
54
54
  attr_accessor :format
55
55
 
56
+ # Output file, STDOUT if nil.
57
+ attr_accessor :output
58
+
56
59
  # Additional command line options for rspec.
57
60
  attr_accessor :extra
58
61
 
59
62
 
60
- # A S S E M B L Y S T A T I O N S
63
+ # A S S E M B L Y M E T H O D S
61
64
 
62
- # Attach test method to test assembly station.
63
- def station_test
64
- test
65
+ #
66
+ def assemble?(station, options={})
67
+ case station
68
+ when :test then true
69
+ end
65
70
  end
66
71
 
67
- # Attach document method to document assembly station.
68
- def station_document
69
- document
72
+ # Attach test method to test assembly.
73
+ #
74
+ # @todo Attach documentaton?
75
+ def assemble(station, options={})
76
+ case station
77
+ #when :document then document
78
+ when :test then run
79
+ end
70
80
  end
71
81
 
72
82
 
@@ -115,9 +125,11 @@ module Detroit
115
125
  argv << "-w" if warning
116
126
  argv << %[-I"#{loadpath.join(':')}"] unless loadpath.empty?
117
127
  argv << %[-r"#{requires.join(':')}"] unless requires.empty?
128
+ argv << %[-f"#{format}"] if format
129
+ argv << %[-o"#{output}"] if output
118
130
  argv << files
119
- argv << spec_options
120
- argv << ['--format', "#{format}"] if format
131
+ argv << extra_options
132
+
121
133
  argv = argv.flatten
122
134
 
123
135
  trace "rspec " + argv.join(' ')
@@ -126,8 +138,8 @@ module Detroit
126
138
  end
127
139
  end
128
140
 
129
- #
130
- def spec_options
141
+ # Extra options.
142
+ def extra_options
131
143
  case extra
132
144
  when String
133
145
  extra.split(/\s+/)
@@ -0,0 +1,79 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "DETROIT\-RSPEC" "5" "October 2011" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBdetroit\-rspec\fR \- ruby rspec specifications via detroit
8
+ .
9
+ .SH "DESCRIPTION"
10
+ The RSpec runner tool can run your specs during the standard test phase\.
11
+ .
12
+ .SH "OPTIONS"
13
+ The following options can be used in the Detroit assembly file for defining an RSpec service\.
14
+ .
15
+ .IP "\(bu" 4
16
+ \fBspecs\fR/\fBinclude\fR \- Spec files or globs of spec files\. Defaults to \fB[\'spec/**/*_spec\.rb\', \'spec/**/spec_*\.rb\']\fR\.
17
+ .
18
+ .IP "\(bu" 4
19
+ \fBexclude\fR \- Files or globs to exclude\.
20
+ .
21
+ .IP "\(bu" 4
22
+ \fBignore\fR \- Files to ignore by matching filename\.
23
+ .
24
+ .IP "\(bu" 4
25
+ \fBrequires\fR \- Scripts to require before excuting specs\.
26
+ .
27
+ .IP "\(bu" 4
28
+ \fBloadpath\fR \- Directories to add to\fB$LOAD_PATH\fR\. Defaults to \fB[\'lib\']\fR\.
29
+ .
30
+ .IP "\(bu" 4
31
+ \fBwarning\fR \- Whether to show warnings or not\. Default is \fBfalse\fR\.
32
+ .
33
+ .IP "\(bu" 4
34
+ \fBformat\fR \- Format of RSpec output\.
35
+ .
36
+ .IP "\(bu" 4
37
+ \fBextra\fR \- Extra command line options to append to the rspec command\.
38
+ .
39
+ .IP "" 0
40
+ .
41
+ .SH "EXAMPLES"
42
+ A typical example would look something like:
43
+ .
44
+ .IP "" 4
45
+ .
46
+ .nf
47
+
48
+ rspec:
49
+ specs: spec/*_spec\.rb
50
+ loadpath:
51
+ \- lib
52
+ \- spec
53
+ .
54
+ .fi
55
+ .
56
+ .IP "" 0
57
+ .
58
+ .P
59
+ The above examples use the YAML\-base assembly format\. Assembly files can also be Ruby\-based\. See Detroit documentation for more details\.
60
+ .
61
+ .SH "RESOURCES"
62
+ For more information:
63
+ .
64
+ .IP "\(bu" 4
65
+ API Documentation \fIhttp://rubydoc\.info/gems/detroit\-rspec\fR
66
+ .
67
+ .IP "\(bu" 4
68
+ Development Site \fIhttp://github\.com/detroit/detroit\-rspec\fR
69
+ .
70
+ .IP "" 0
71
+ .
72
+ .SH "COPYRIGHT"
73
+ Copyright (c) 2010 Thomas Sawyer, Rubyworks
74
+ .
75
+ .P
76
+ Detroit DNote is distributable in accordance with the GPLv3 license\.
77
+ .
78
+ .SH "SEE ALSO"
79
+ detroit(1), rspec(1)
@@ -0,0 +1,143 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv='content-type' value='text/html;charset=utf8'>
5
+ <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
6
+ <title>detroit-rspec(5) - ruby rspec specifications via detroit</title>
7
+ <style type='text/css' media='all'>
8
+ /* style: man */
9
+ body#manpage {margin:0}
10
+ .mp {max-width:100ex;padding:0 9ex 1ex 4ex}
11
+ .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
12
+ .mp h2 {margin:10px 0 0 0}
13
+ .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
14
+ .mp h3 {margin:0 0 0 4ex}
15
+ .mp dt {margin:0;clear:left}
16
+ .mp dt.flush {float:left;width:8ex}
17
+ .mp dd {margin:0 0 0 9ex}
18
+ .mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
19
+ .mp pre {margin-bottom:20px}
20
+ .mp pre+h2,.mp pre+h3 {margin-top:22px}
21
+ .mp h2+pre,.mp h3+pre {margin-top:5px}
22
+ .mp img {display:block;margin:auto}
23
+ .mp h1.man-title {display:none}
24
+ .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
25
+ .mp h2 {font-size:16px;line-height:1.25}
26
+ .mp h1 {font-size:20px;line-height:2}
27
+ .mp {text-align:justify;background:#fff}
28
+ .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
29
+ .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
30
+ .mp u {text-decoration:underline}
31
+ .mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
32
+ .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
33
+ .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
34
+ .mp b.man-ref {font-weight:normal;color:#434241}
35
+ .mp pre {padding:0 4ex}
36
+ .mp pre code {font-weight:normal;color:#434241}
37
+ .mp h2+pre,h3+pre {padding-left:0}
38
+ ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
39
+ ol.man-decor {width:100%}
40
+ ol.man-decor li.tl {text-align:left}
41
+ ol.man-decor li.tc {text-align:center;letter-spacing:4px}
42
+ ol.man-decor li.tr {text-align:right;float:right}
43
+ </style>
44
+ </head>
45
+ <!--
46
+ The following styles are deprecated and will be removed at some point:
47
+ div#man, div#man ol.man, div#man ol.head, div#man ol.man.
48
+
49
+ The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
50
+ .man-navigation should be used instead.
51
+ -->
52
+ <body id='manpage'>
53
+ <div class='mp' id='man'>
54
+
55
+ <div class='man-navigation' style='display:none'>
56
+ <a href="#NAME">NAME</a>
57
+ <a href="#DESCRIPTION">DESCRIPTION</a>
58
+ <a href="#OPTIONS">OPTIONS</a>
59
+ <a href="#EXAMPLES">EXAMPLES</a>
60
+ <a href="#RESOURCES">RESOURCES</a>
61
+ <a href="#COPYRIGHT">COPYRIGHT</a>
62
+ <a href="#SEE-ALSO">SEE ALSO</a>
63
+ </div>
64
+
65
+ <ol class='man-decor man-head man head'>
66
+ <li class='tl'>detroit-rspec(5)</li>
67
+ <li class='tc'></li>
68
+ <li class='tr'>detroit-rspec(5)</li>
69
+ </ol>
70
+
71
+ <h2 id="NAME">NAME</h2>
72
+ <p class="man-name">
73
+ <code>detroit-rspec</code> - <span class="man-whatis">ruby rspec specifications via detroit</span>
74
+ </p>
75
+
76
+ <h2 id="DESCRIPTION">DESCRIPTION</h2>
77
+
78
+ <p>The RSpec runner tool can run your specs during the
79
+ standard test phase.</p>
80
+
81
+ <h2 id="OPTIONS">OPTIONS</h2>
82
+
83
+ <p>The following options can be used in the Detroit assembly file
84
+ for defining an RSpec service.</p>
85
+
86
+ <ul>
87
+ <li><p><code>specs</code>/<code>include</code> - Spec files or globs of spec files.
88
+ Defaults to <code>['spec/**/*_spec.rb', 'spec/**/spec_*.rb']</code>.</p></li>
89
+ <li><p><code>exclude</code> - Files or globs to exclude.</p></li>
90
+ <li><p><code>ignore</code> - Files to ignore by matching filename.</p></li>
91
+ <li><p><code>requires</code> - Scripts to require before excuting specs.</p></li>
92
+ <li><p><code>loadpath</code> - Directories to add to<code>$LOAD_PATH</code>. Defaults to <code>['lib']</code>.</p></li>
93
+ <li><p><code>warning</code> - Whether to show warnings or not. Default is <code>false</code>.</p></li>
94
+ <li><p><code>format</code> - Format of RSpec output.</p></li>
95
+ <li><p><code>extra</code> - Extra command line options to append to the rspec command.</p></li>
96
+ </ul>
97
+
98
+
99
+ <h2 id="EXAMPLES">EXAMPLES</h2>
100
+
101
+ <p>A typical example would look something like:</p>
102
+
103
+ <pre><code>rspec:
104
+ specs: spec/*_spec.rb
105
+ loadpath:
106
+ - lib
107
+ - spec
108
+ </code></pre>
109
+
110
+ <p>The above examples use the YAML-base assembly format. Assembly
111
+ files can also be Ruby-based. See Detroit documentation for more
112
+ details.</p>
113
+
114
+ <h2 id="RESOURCES">RESOURCES</h2>
115
+
116
+ <p>For more information:</p>
117
+
118
+ <ul>
119
+ <li><p><a href="http://rubydoc.info/gems/detroit-rspec">API Documentation</a></p></li>
120
+ <li><p><a href="http://github.com/detroit/detroit-rspec">Development Site</a></p></li>
121
+ </ul>
122
+
123
+
124
+ <h2 id="COPYRIGHT">COPYRIGHT</h2>
125
+
126
+ <p>Copyright (c) 2010 Thomas Sawyer, Rubyworks</p>
127
+
128
+ <p>Detroit DNote is distributable in accordance with the GPLv3 license.</p>
129
+
130
+ <h2 id="SEE-ALSO">SEE ALSO</h2>
131
+
132
+ <p><span class="man-ref">detroit<span class="s">(1)</span></span>, <span class="man-ref">rspec<span class="s">(1)</span></span></p>
133
+
134
+
135
+ <ol class='man-decor man-foot man foot'>
136
+ <li class='tl'></li>
137
+ <li class='tc'>October 2011</li>
138
+ <li class='tr'>detroit-rspec(5)</li>
139
+ </ol>
140
+
141
+ </div>
142
+ </body>
143
+ </html>
@@ -0,0 +1,66 @@
1
+ detroit-rspec(5) - ruby rspec specifications via detroit
2
+ ========================================================
3
+
4
+ ## DESCRIPTION
5
+
6
+ The RSpec runner tool can run your specs during the
7
+ standard test phase.
8
+
9
+
10
+ ## OPTIONS
11
+
12
+ The following options can be used in the Detroit assembly file
13
+ for defining an RSpec service.
14
+
15
+ * `specs`/`include` - Spec files or globs of spec files.
16
+ Defaults to `['spec/**/*_spec.rb', 'spec/**/spec_*.rb']`.
17
+
18
+ * `exclude` - Files or globs to exclude.
19
+
20
+ * `ignore` - Files to ignore by matching filename.
21
+
22
+ * `requires` - Scripts to require before executing specs.
23
+
24
+ * `loadpath` - Directories to add to`$LOAD_PATH`. Defaults to `['lib']`.
25
+
26
+ * `warning` - Whether to show warnings or not. Default is `false`.
27
+
28
+ * `format` - Format of RSpec output.
29
+
30
+ * `extra` - Extra command line options to append to the rspec command.
31
+
32
+
33
+ ## EXAMPLES
34
+
35
+ A typical example would look something like:
36
+
37
+ rspec:
38
+ specs: spec/*_spec.rb
39
+ loadpath:
40
+ - lib
41
+ - spec
42
+
43
+ The above examples use the YAML-base assembly format. Assembly
44
+ files can also be Ruby-based. See Detroit documentation for more
45
+ details.
46
+
47
+
48
+ ## RESOURCES
49
+
50
+ For more information:
51
+
52
+ * [API Documentation](http://rubydoc.info/gems/detroit-rspec)
53
+
54
+ * [Development Site](http://github.com/detroit/detroit-rspec)
55
+
56
+
57
+ ## COPYRIGHT
58
+
59
+ Copyright (c) 2010 Thomas Sawyer, Rubyworks
60
+
61
+ Detroit RSpec is distributable in accordance with the GPLv3 license.
62
+
63
+
64
+ ## SEE ALSO
65
+
66
+ detroit(1), rspec(1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detroit-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-19 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-04-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: detroit
16
+ requirement: &20488520 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.3.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *20488520
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &20487260 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *20487260
14
36
  description: RSpec plugin for Detroit build system. This plugin runs rspec specification
15
37
  durring the test phase.
16
38
  email:
@@ -18,17 +40,21 @@ email:
18
40
  executables: []
19
41
  extensions: []
20
42
  extra_rdoc_files:
21
- - GPL3.txt
43
+ - LICENSE.txt
22
44
  - README.rdoc
23
45
  - COPYING.rdoc
24
46
  files:
25
47
  - .ruby
26
48
  - lib/detroit-rspec.rb
49
+ - man/detroit-rspec.5
50
+ - man/detroit-rspec.5.html
51
+ - man/detroit-rspec.5.ronn
52
+ - LICENSE.txt
27
53
  - README.rdoc
28
- - GPL3.txt
29
54
  - COPYING.rdoc
30
55
  homepage: http://detroit.github.com/
31
- licenses: []
56
+ licenses:
57
+ - GPL-3
32
58
  post_install_message:
33
59
  rdoc_options: []
34
60
  require_paths:
@@ -47,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
73
  version: '0'
48
74
  requirements: []
49
75
  rubyforge_project:
50
- rubygems_version: 1.8.5
76
+ rubygems_version: 1.8.11
51
77
  signing_key:
52
78
  specification_version: 3
53
79
  summary: RSpec plugin for Detroit