minitest-capistrano 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/CHANGELOG.md +19 -3
- data/README.md +1 -1
- data/lib/minitest/assertions.rb +5 -7
- data/lib/minitest/capistrano/version.rb +1 -1
- data/minitest-capistrano.gemspec +1 -2
- data/spec/spec_helper.rb +0 -1
- metadata +10 -27
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,33 @@
|
|
1
|
-
## 0.1.
|
1
|
+
## 0.1.3.dev (unreleased)
|
2
|
+
|
3
|
+
|
4
|
+
## 0.1.2 (July 12, 2012)
|
5
|
+
|
6
|
+
### Bug fixes
|
7
|
+
|
8
|
+
* Pull request [#4](https://github.com/fnichol/minitest-capistrano/pull/4):
|
9
|
+
Fix callback testing. ([@mvandenbeuken][])
|
10
|
+
|
11
|
+
### Improvements
|
12
|
+
|
13
|
+
* Support minitest versions greater than 2.x. ([@fnichol][])
|
14
|
+
* Track code in Code Climate (badge in README). ([@fnichol][])
|
2
15
|
|
3
16
|
|
4
17
|
## 0.1.1 (May 28, 2012)
|
5
18
|
|
6
19
|
### Bug fixes
|
7
20
|
|
8
|
-
* Allow require of 'minitest/capistrano' or 'minitest-capistrano'.
|
21
|
+
* Allow require of 'minitest/capistrano' or 'minitest-capistrano'.
|
22
|
+
([@fnichol][])
|
9
23
|
|
10
24
|
|
11
25
|
## 0.1.0 (May 28, 2012)
|
12
26
|
|
13
27
|
### Improvements
|
14
28
|
|
15
|
-
* Pull request [#3](https://github.com/fnichol/minitest-capistrano/pull/3):
|
29
|
+
* Pull request [#3](https://github.com/fnichol/minitest-capistrano/pull/3):
|
30
|
+
The grand modularization. ([@smdern][])
|
16
31
|
* Add CHANGELOG. ([@fnichol][])
|
17
32
|
|
18
33
|
## Previous releases
|
@@ -21,4 +36,5 @@ The changelog began with version 0.0.8 so any changes prior to that can be
|
|
21
36
|
seen by checking the tagged releases and reading git commit messages.
|
22
37
|
|
23
38
|
[@fnichol]: https://github.com/fnichol
|
39
|
+
[@mvandenbeuken]: https://github.com/mvandenbeuken
|
24
40
|
[@smdern]: https://github.com/smdern
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Minitest::Capistrano [![Build Status](https://secure.travis-ci.org/fnichol/minitest-capistrano.png)](http://travis-ci.org/fnichol/minitest-capistrano) [![Dependency Status](https://gemnasium.com/fnichol/minitest-capistrano.png)](https://gemnasium.com/fnichol/minitest-capistrano)
|
1
|
+
# Minitest::Capistrano [![Build Status](https://secure.travis-ci.org/fnichol/minitest-capistrano.png)](http://travis-ci.org/fnichol/minitest-capistrano) [![Dependency Status](https://gemnasium.com/fnichol/minitest-capistrano.png)](https://gemnasium.com/fnichol/minitest-capistrano) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/fnichol/minitest-capistrano)
|
2
2
|
|
3
3
|
TODO: Write a gem description
|
4
4
|
|
data/lib/minitest/assertions.rb
CHANGED
@@ -148,15 +148,13 @@ module MiniTest
|
|
148
148
|
private
|
149
149
|
|
150
150
|
def test_callback_on(positive, configuration, task_name, on, other_task_name, msg)
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
if callbacks
|
155
|
-
method = positive ? :refute_empty : :assert_empty
|
156
|
-
send method, callbacks.select { |c| c.source == other_task_name }, msg
|
151
|
+
if callbacks = configuration.callbacks[on]
|
152
|
+
callbacks = callbacks.select {|c| c.only.include?(task_name.to_s) && c.source == other_task_name}
|
157
153
|
else
|
158
|
-
|
154
|
+
callbacks = {}
|
159
155
|
end
|
156
|
+
method = positive ? :refute_empty : :assert_empty
|
157
|
+
send method, callbacks.select { |c| c.only.include?(task_name.to_s) && c.source == other_task_name }, msg
|
160
158
|
end
|
161
159
|
end
|
162
160
|
end
|
data/minitest-capistrano.gemspec
CHANGED
@@ -15,9 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = MiniTest::Capistrano::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency "minitest"
|
18
|
+
gem.add_dependency "minitest"
|
19
19
|
gem.add_dependency "capistrano", "~> 2.9"
|
20
20
|
|
21
|
-
gem.add_development_dependency "minitest-colorize", "~> 0.0.4"
|
22
21
|
gem.add_development_dependency "guard-minitest", "~> 0.5.0"
|
23
22
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
16
|
-
requirement: &
|
16
|
+
requirement: &70183344234920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70183344234920
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano
|
27
|
-
requirement: &
|
27
|
+
requirement: &70183344234420 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,10 @@ dependencies:
|
|
32
32
|
version: '2.9'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: minitest-colorize
|
38
|
-
requirement: &70364399150260 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.0.4
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70364399150260
|
35
|
+
version_requirements: *70183344234420
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: guard-minitest
|
49
|
-
requirement: &
|
38
|
+
requirement: &70183344233880 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ~>
|
@@ -54,7 +43,7 @@ dependencies:
|
|
54
43
|
version: 0.5.0
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *70183344233880
|
58
47
|
description: MiniTest assertions and expectations for testing Capistrano recipes
|
59
48
|
email:
|
60
49
|
- fnichol@nichol.ca
|
@@ -96,18 +85,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
85
|
- - ! '>='
|
97
86
|
- !ruby/object:Gem::Version
|
98
87
|
version: '0'
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
hash: -4152224729184798016
|
102
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
89
|
none: false
|
104
90
|
requirements:
|
105
91
|
- - ! '>='
|
106
92
|
- !ruby/object:Gem::Version
|
107
93
|
version: '0'
|
108
|
-
segments:
|
109
|
-
- 0
|
110
|
-
hash: -4152224729184798016
|
111
94
|
requirements: []
|
112
95
|
rubyforge_project:
|
113
96
|
rubygems_version: 1.8.15
|