detroit-minitest 0.1.0 → 0.2.0

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.
data/.ruby CHANGED
@@ -1,30 +1,36 @@
1
1
  ---
2
+ source:
3
+ - meta
2
4
  authors:
3
5
  - name: Thomas Sawyer
4
6
  email: transfire@gmail.com
5
7
  copyrights:
6
- - holder: Thomas Sawyer
8
+ - holder: Thomas Sawyer, Rubyworks
7
9
  year: '2011'
8
10
  license: GPL3
9
- replacements: []
10
- conflicts: []
11
- requirements: []
11
+ requirements:
12
+ - name: detroit
13
+ version: 0.3.0+
14
+ - name: minitest
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-minitest
22
+ extra: {}
17
23
  load_path:
18
24
  - lib
19
- extra: {}
20
25
  revision: 0
21
- name: detroit-minitest
22
- source:
23
- - Profile
24
- alternatives: []
25
- title: Detroit MiniTest
26
- description: MiniTest plugin for Detroit build system, will run MiniTest-bases tests
27
- during standard test phase. Can also be used as a stand-alone tool in Ruby scripts.
28
- version: 0.1.0
29
- date: '2011-10-14'
26
+ created: '2011-10-16'
30
27
  summary: MiniTest plugin for Detroit
28
+ title: Detroit MiniTest
29
+ version: 0.2.0
30
+ name: detroit-minitest
31
+ suite: detroit
32
+ description: Detroit MiniTest is a plugin for the Detroit build system for runing
33
+ MiniTest-based tests during the standard test phase. Can also be used as a stand-alone
34
+ tool in Ruby scripts.
35
+ organization: rubyworks
36
+ date: '2012-04-01'
File without changes
@@ -1,3 +1,14 @@
1
+ = Detroit MiniTest
2
+
3
+ == Overview
4
+
5
+ Detroit MiniTest is a plug-in for the Detroit build tool.
6
+
7
+ The plugin itself is being tested using a top-down approach
8
+ with the QED test framework. Each section represents a
9
+ scenario deemed significant to test.
10
+
11
+
1
12
  == Break On Failure
2
13
 
3
14
  The Detroit test service should terminate when tests fail.
@@ -23,3 +34,4 @@ should cause execution to abort.
23
34
  }
24
35
  end
25
36
 
37
+
@@ -60,13 +60,24 @@ module Detroit
60
60
  #
61
61
  attr_accessor :extra
62
62
 
63
- # A S S E M B L Y S T A T I O N S
63
+
64
+ # A S S E M B L Y M E T H O D S
64
65
 
65
66
  #
66
- def station_test
67
- test
67
+ def assemble?(station, options={})
68
+ case station
69
+ when :test then true
70
+ end
68
71
  end
69
72
 
73
+ #
74
+ def assemble(station, options={})
75
+ case station
76
+ when :test then test
77
+ end
78
+ end
79
+
80
+
70
81
  # S E R V I C E M E T H O D S
71
82
 
72
83
  # Run tests.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detroit-minitest
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,37 +9,55 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-19 00:00:00.000000000 Z
13
- dependencies: []
14
- description: MiniTest plugin for Detroit build system, will run MiniTest-bases tests
15
- during standard test phase. Can also be used as a stand-alone tool in Ruby scripts.
12
+ date: 2012-04-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: detroit
16
+ requirement: &31656100 !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: *31656100
25
+ - !ruby/object:Gem::Dependency
26
+ name: minitest
27
+ requirement: &31655500 !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: *31655500
36
+ description: Detroit MiniTest is a plugin for the Detroit build system for runing
37
+ MiniTest-based tests during the standard test phase. Can also be used as a stand-alone
38
+ tool in Ruby scripts.
16
39
  email:
17
40
  - transfire@gmail.com
18
41
  executables: []
19
42
  extensions: []
20
43
  extra_rdoc_files:
21
- - GPL3.txt
44
+ - LICENSE.txt
22
45
  - README.rdoc
23
46
  - COPYING.rdoc
47
+ - SPECS.rdoc
24
48
  files:
25
- - .gemspec
26
- - .gitignore
27
49
  - .ruby
28
- - Assembly
29
- - COPYING.rdoc
30
- - GPL3.txt
31
- - Profile
32
- - README.rdoc
33
50
  - lib/detroit-minitest.rb
34
51
  - man/detroit-minitest.5
35
52
  - man/detroit-minitest.5.html
36
53
  - man/detroit-minitest.5.ronn
37
- - site/index.html
38
- - spec/01_overview.rdoc
39
- - spec/02_break_on_failure.rdoc
40
- - spec/applique/rules.rb
54
+ - LICENSE.txt
55
+ - README.rdoc
56
+ - COPYING.rdoc
57
+ - SPECS.rdoc
41
58
  homepage: http://detroit.github.com/
42
- licenses: []
59
+ licenses:
60
+ - GPL3
43
61
  post_install_message:
44
62
  rdoc_options: []
45
63
  require_paths:
@@ -58,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
76
  version: '0'
59
77
  requirements: []
60
78
  rubyforge_project:
61
- rubygems_version: 1.8.5
79
+ rubygems_version: 1.8.11
62
80
  signing_key:
63
81
  specification_version: 3
64
82
  summary: MiniTest plugin for Detroit
data/.gemspec DELETED
@@ -1,143 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'yaml'
4
-
5
- Gem::Specification.new do |gemspec|
6
-
7
- manifest = Dir.glob('manifest{,.txt}', File::FNM_CASEFOLD).first
8
-
9
- scm = case
10
- when File.directory?('.git')
11
- :git
12
- end
13
-
14
- files = case
15
- when manifest
16
- File.readlines(manifest).
17
- map{ |line| line.strip }.
18
- reject{ |line| line.empty? || line[0,1] == '#' }
19
- when scm == :git
20
- `git ls-files -z`.split("\0")
21
- else
22
- Dir.glob('{**/}{.*,*}') # TODO: be more specific using standard locations ?
23
- end.select{ |path| File.file?(path) }
24
-
25
- patterns = {
26
- :bin_files => 'bin/*',
27
- :lib_files => 'lib/{**/}*.rb',
28
- :ext_files => 'ext/{**/}extconf.rb',
29
- :doc_files => '*.{txt,rdoc,md,markdown,tt,textile}',
30
- :test_files => '{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'
31
- }
32
-
33
- glob_files = lambda { |pattern|
34
- Dir.glob(pattern).select { |path|
35
- File.file?(path) && files.include?(path)
36
- }
37
- }
38
-
39
- #files = glob_files[patterns[:files]]
40
-
41
- executables = glob_files[patterns[:bin_files]].map do |path|
42
- File.basename(path)
43
- end
44
-
45
- extensions = glob_files[patterns[:ext_files]].map do |path|
46
- File.basename(path)
47
- end
48
-
49
- metadata = YAML.load_file('.ruby')
50
-
51
- # build-out the gemspec
52
-
53
- case metadata['revision']
54
- when 0
55
- gemspec.name = metadata['name']
56
- gemspec.version = metadata['version']
57
- gemspec.summary = metadata['summary']
58
- gemspec.description = metadata['description']
59
-
60
- metadata['authors'].each do |author|
61
- gemspec.authors << author['name']
62
-
63
- if author.has_key?('email')
64
- if gemspec.email
65
- gemspec.email << author['email']
66
- else
67
- gemspec.email = [author['email']]
68
- end
69
- end
70
- end
71
-
72
- gemspec.licenses = metadata['licenses']
73
-
74
- metadata['requirements'].each do |req|
75
- name = req['name']
76
- version = req['version']
77
- groups = req['groups'] || []
78
-
79
- #development = req['development']
80
- #if development
81
- # # populate development dependencies
82
- # if gemspec.respond_to?(:add_development_dependency)
83
- # gemspec.add_development_dependency(name,*version)
84
- # else
85
- # gemspec.add_dependency(name,*version)
86
- # end
87
- #else
88
- # # populate runtime dependencies
89
- # if gemspec.respond_to?(:add_runtime_dependency)
90
- # gemspec.add_runtime_dependency(name,*version)
91
- # else
92
- # gemspec.add_dependency(name,*version)
93
- # end
94
- #end
95
-
96
- if groups.empty? or groups.include?('runtime')
97
- # populate runtime dependencies
98
- if gemspec.respond_to?(:add_runtime_dependency)
99
- gemspec.add_runtime_dependency(name,*version)
100
- else
101
- gemspec.add_dependency(name,*version)
102
- end
103
- else
104
- # populate development dependencies
105
- if gemspec.respond_to?(:add_development_dependency)
106
- gemspec.add_development_dependency(name,*version)
107
- else
108
- gemspec.add_dependency(name,*version)
109
- end
110
- end
111
- end
112
-
113
- # convert external dependencies into a requirements
114
- if metadata['external_dependencies']
115
- ##gemspec.requirements = [] unless metadata['external_dependencies'].empty?
116
- metadata['external_dependencies'].each do |req|
117
- gemspec.requirements << req.to_s
118
- end
119
- end
120
-
121
- # determine homepage from resources
122
- homepage = metadata['resources'].find{ |key, url| key =~ /^home/ }
123
- gemspec.homepage = homepage.last if homepage
124
-
125
- gemspec.require_paths = metadata['load_path'] || ['lib']
126
- gemspec.post_install_message = metadata['install_message']
127
-
128
- # RubyGems specific metadata
129
- gemspec.files = files
130
- gemspec.extensions = extensions
131
- gemspec.executables = executables
132
-
133
- if Gem::VERSION < '1.7.'
134
- gemspec.default_executable = gemspec.executables.first
135
- end
136
-
137
- gemspec.test_files = glob_files[patterns[:test_files]]
138
-
139
- unless gemspec.files.include?('.document')
140
- gemspec.extra_rdoc_files = glob_files[patterns[:doc_files]]
141
- end
142
- end
143
- end
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- .reap/digest
2
- .yardoc
3
- doc
4
- log
5
- pkg
6
- tmp
7
- SPEC.rdoc
data/Assembly DELETED
@@ -1,39 +0,0 @@
1
- ---
2
- gem:
3
- active: true
4
-
5
- dnote:
6
- title: DEVELOPER NOTES
7
- output: log/NOTES.rdoc
8
-
9
- qed:
10
- files: spec/
11
-
12
- qedoc:
13
- files : spec/*.rdoc
14
- title : Detroit MiniTest
15
- output: SPEC.rdoc
16
-
17
- locat:
18
- active: false
19
-
20
- yard:
21
- active : true
22
- service : yard
23
- readme : [ "README.rdoc" ]
24
- topfiles : [ "[A-Z]*.*" ]
25
- files : [ lib ]
26
- exclude : [ lib/*.yml ]
27
- output : doc
28
- extra : ~
29
- priority : 1
30
-
31
- github:
32
- active: true
33
-
34
- announce:
35
- service: email
36
- mailto :
37
- - transfire@gmail.com
38
- - ruby-talk@ruby-lang.org
39
-
data/Profile DELETED
@@ -1,23 +0,0 @@
1
- ---
2
- name : detroit-minitest
3
- version : 0.1.0
4
- title : Detroit MiniTest
5
- summary : MiniTest plugin for Detroit
6
-
7
- description:
8
- Detroit MiniTest is a plugin for the Detroit build system for
9
- runing MiniTest-based tests during the standard test phase.
10
- Can also be used as a stand-alone tool in Ruby scripts.
11
-
12
- authors:
13
- - Thomas Sawyer <transfire@gmail.com>
14
-
15
- resources:
16
- home: http://detroit.github.com/
17
- code: http://github.com/detroit/detroit-minitest
18
-
19
- copyrights:
20
- - (c) 2011 Thomas Sawyer, Rubyworks (GPL3)
21
-
22
- source: Profile
23
-
@@ -1,137 +0,0 @@
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-minitest(5) - ruby minitest-based test 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-minitest(5)</li>
67
- <li class='tc'></li>
68
- <li class='tr'>detroit-minitest(5)</li>
69
- </ol>
70
-
71
- <h2 id="NAME">NAME</h2>
72
- <p class="man-name">
73
- <code>detroit-minitest</code> - <span class="man-whatis">ruby minitest-based test via detroit</span>
74
- </p>
75
-
76
- <h2 id="DESCRIPTION">DESCRIPTION</h2>
77
-
78
- <p>MiniTest test runner tool can run your Ruby tests 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 a MiniTest service.</p>
85
-
86
- <ul>
87
- <li><p><code>tests</code> - Test files to include.</p></li>
88
- <li><p><code>exclude</code> - Files or globs to exclude.</p></li>
89
- <li><p><code>ignore</code> - Files to ignore by matching filename.</p></li>
90
- <li><p><code>loadpath</code> - Directories to add to<code>$LOAD_PATH</code>. Defaults to <code>['lib']</code>.</p></li>
91
- <li><p><code>requires</code> - Scripts to require before running tests.</p></li>
92
- <li><p><code>extra</code> - Extra command line options to append to command.</p></li>
93
- </ul>
94
-
95
-
96
- <h2 id="EXAMPLES">EXAMPLES</h2>
97
-
98
- <p>A typical example would look something like:</p>
99
-
100
- <pre><code>minitest:
101
- tests: spec/*_spec.rb
102
- loadpath:
103
- - lib
104
- - spec
105
- extra: '| tapout pretty'
106
- </code></pre>
107
-
108
- <h2 id="RESOURCES">RESOURCES</h2>
109
-
110
- <p>For more information:</p>
111
-
112
- <ul>
113
- <li><p><a href="http://rubydoc.info/gems/detroit-minitest">API Documentation</a></p></li>
114
- <li><p><a href="http://github.com/detroit/detroit-minitest">Development Site</a></p></li>
115
- </ul>
116
-
117
-
118
- <h2 id="COPYRIGHT">COPYRIGHT</h2>
119
-
120
- <p>Copyright (c) 2010 Thomas Sawyer, Rubyworks</p>
121
-
122
- <p>Detroit MiniTest is distributable in accordance with the GPLv3 license.</p>
123
-
124
- <h2 id="SEE-ALSO">SEE ALSO</h2>
125
-
126
- <p><span class="man-ref">detroit<span class="s">(1)</span></span>, <span class="man-ref">ruby<span class="s">(1)</span></span></p>
127
-
128
-
129
- <ol class='man-decor man-foot man foot'>
130
- <li class='tl'></li>
131
- <li class='tc'>October 2011</li>
132
- <li class='tr'>detroit-minitest(5)</li>
133
- </ol>
134
-
135
- </div>
136
- </body>
137
- </html>
@@ -1,10 +0,0 @@
1
- = Detroit MiniTest
2
-
3
- == Overview
4
-
5
- Detroit MiniTest is a plug-in for the Detroit build tool.
6
-
7
- The plugin itself is being tested using a top-down approach
8
- with the QED test framework. Each section represents a
9
- scenario deemed significant to test.
10
-
@@ -1,6 +0,0 @@
1
- require 'detroit-minitest'
2
-
3
- When 'Given a test file called "(((.*?)))" containing' do |file, text|
4
- File.open(file ,'w'){ |f| f << text }
5
- end
6
-