autotest-suffix 1.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 +7 -0
- data/.autotest +8 -0
- data/.gemtest +0 -0
- data/History.txt +10 -0
- data/Manifest.txt +9 -0
- data/README.md +67 -0
- data/Rakefile +18 -0
- data/autotest-suffix.gemspec +39 -0
- data/lib/autotest/discover.rb +3 -0
- data/lib/autotest/suffix.rb +19 -0
- data/test/autotest/test_suffix.rb +7 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1a38f11c6a72e30990719de5a64f7c787919c012
|
4
|
+
data.tar.gz: 024d8df1b2da83a2d675f68944326efb247cb807
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1a33298320fa69a297cf7875f1c59ce4de600d242b67bf19747964426d72c3af8313e870d109cc43a51d211d941daaefb2720285243580cc159f5d2eddd7349
|
7
|
+
data.tar.gz: 5c5a7a061d3b59615859acb160b538d58844dd864c2099f39a218a58e8554a9ff0fbd1f6f4229eb5d02f7173779512cb8df965d46ff8554435ebc9f1e0d01817
|
data/.autotest
ADDED
data/.gemtest
ADDED
File without changes
|
data/History.txt
ADDED
data/Manifest.txt
ADDED
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
autotest-suffix
|
2
|
+
===============
|
3
|
+
|
4
|
+
Enable suffix named tests in Autotest
|
5
|
+
|
6
|
+
Description
|
7
|
+
-----------
|
8
|
+
|
9
|
+
Autotest plugin to enable rails-style test filenames.
|
10
|
+
|
11
|
+
Usage
|
12
|
+
-----
|
13
|
+
|
14
|
+
Install the gem:
|
15
|
+
|
16
|
+
$ gem install autotest-suffix
|
17
|
+
|
18
|
+
Add the following line to your `.autotest` file:
|
19
|
+
|
20
|
+
require "autotest/suffix"
|
21
|
+
|
22
|
+
Now you can name your test files using the rails convention of `foo_test.rb`
|
23
|
+
instead of the typical ruby convention of `test_foo.rb`.
|
24
|
+
|
25
|
+
Contributing
|
26
|
+
------------
|
27
|
+
|
28
|
+
Fork the project from the
|
29
|
+
[GitHub repository](https://github.com/blowmage/autotest-suffix).
|
30
|
+
|
31
|
+
After checking out the source, run:
|
32
|
+
|
33
|
+
$ gem install hoe
|
34
|
+
$ rake newb
|
35
|
+
|
36
|
+
This task will install any missing dependencies, run the tests, and generate
|
37
|
+
the RDoc. Now you are ready to create and submit a patch.
|
38
|
+
|
39
|
+
Create an issue or pull request on the
|
40
|
+
[blowmage/autotest-suffix](https://github.com/blowmage/autotest-suffix) repo
|
41
|
+
that links to a branch on your repo or a gist of your patch.
|
42
|
+
|
43
|
+
License
|
44
|
+
-------
|
45
|
+
|
46
|
+
(The MIT License)
|
47
|
+
|
48
|
+
Copyright (c) 2013 Mike Moore
|
49
|
+
|
50
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
51
|
+
a copy of this software and associated documentation files (the
|
52
|
+
'Software'), to deal in the Software without restriction, including
|
53
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
54
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
55
|
+
permit persons to whom the Software is furnished to do so, subject to
|
56
|
+
the following conditions:
|
57
|
+
|
58
|
+
The above copyright notice and this permission notice shall be
|
59
|
+
included in all copies or substantial portions of the Software.
|
60
|
+
|
61
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
62
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
63
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
64
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
65
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
66
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
67
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "hoe"
|
3
|
+
|
4
|
+
Hoe.plugin :git
|
5
|
+
Hoe.plugin :gemspec
|
6
|
+
Hoe.plugin :minitest
|
7
|
+
|
8
|
+
Hoe.spec "autotest-suffix" do
|
9
|
+
developer "Mike Moore", "mike@blowmage.com"
|
10
|
+
|
11
|
+
self.summary = "Enable suffix named tests in Autotest"
|
12
|
+
self.description = "Autotest plugin to enable rails-style test filenames."
|
13
|
+
self.urls = ["http://blowmage.com/autotest-suffix"]
|
14
|
+
self.readme_file = "README.md"
|
15
|
+
self.testlib = "minitest/autorun"
|
16
|
+
|
17
|
+
dependency "minitest", "~> 5.0", :dev
|
18
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "autotest-suffix"
|
5
|
+
s.version = "1.0.1.20130523163318"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Mike Moore"]
|
9
|
+
s.date = "2013-05-23"
|
10
|
+
s.description = "Autotest plugin to enable rails-style test filenames."
|
11
|
+
s.email = ["mike@blowmage.com"]
|
12
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.md"]
|
13
|
+
s.files = [".autotest", "History.txt", "Manifest.txt", "README.md", "Rakefile", "autotest-suffix.gemspec", "lib/autotest/discover.rb", "lib/autotest/suffix.rb", "test/autotest/test_suffix.rb", ".gemtest"]
|
14
|
+
s.homepage = "http://blowmage.com/autotest-suffix"
|
15
|
+
s.rdoc_options = ["--main", "README.md"]
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.rubyforge_project = "autotest-suffix"
|
18
|
+
s.rubygems_version = "2.0.3"
|
19
|
+
s.summary = "Enable suffix named tests in Autotest"
|
20
|
+
s.test_files = ["test/autotest/test_suffix.rb"]
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
s.specification_version = 4
|
24
|
+
|
25
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
+
s.add_development_dependency(%q<minitest>, ["~> 5.0"])
|
27
|
+
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
28
|
+
s.add_development_dependency(%q<hoe>, ["~> 3.6"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<minitest>, ["~> 5.0"])
|
31
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
32
|
+
s.add_dependency(%q<hoe>, ["~> 3.6"])
|
33
|
+
end
|
34
|
+
else
|
35
|
+
s.add_dependency(%q<minitest>, ["~> 5.0"])
|
36
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
37
|
+
s.add_dependency(%q<hoe>, ["~> 3.6"])
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "autotest"
|
2
|
+
|
3
|
+
class Autotest::Suffix < Autotest
|
4
|
+
VERSION = "1.0.1"
|
5
|
+
|
6
|
+
def initialize # :nodoc:
|
7
|
+
super
|
8
|
+
|
9
|
+
clear_mappings
|
10
|
+
|
11
|
+
add_mapping %r%^lib/(.*)\.rb$% do |_, m|
|
12
|
+
files_matching %r%^test/#{m[1]}.*_test.rb$%
|
13
|
+
end
|
14
|
+
|
15
|
+
add_mapping %r%^test/.*_test\.rb$% do |filename, _|
|
16
|
+
filename
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: autotest-suffix
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mike Moore
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: hoe
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.6'
|
55
|
+
description: Autotest plugin to enable rails-style test filenames.
|
56
|
+
email:
|
57
|
+
- mike@blowmage.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files:
|
61
|
+
- History.txt
|
62
|
+
- Manifest.txt
|
63
|
+
- README.md
|
64
|
+
files:
|
65
|
+
- .autotest
|
66
|
+
- History.txt
|
67
|
+
- Manifest.txt
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- autotest-suffix.gemspec
|
71
|
+
- lib/autotest/discover.rb
|
72
|
+
- lib/autotest/suffix.rb
|
73
|
+
- test/autotest/test_suffix.rb
|
74
|
+
- .gemtest
|
75
|
+
homepage: http://blowmage.com/autotest-suffix
|
76
|
+
licenses: []
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options:
|
80
|
+
- --main
|
81
|
+
- README.md
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project: autotest-suffix
|
96
|
+
rubygems_version: 2.0.3
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Enable suffix named tests in Autotest
|
100
|
+
test_files:
|
101
|
+
- test/autotest/test_suffix.rb
|