guard-cane 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/guard-cane.gemspec +1 -1
- data/lib/guard/cane.rb +2 -1
- data/spec/guard/cane_spec.rb +20 -0
- metadata +29 -18
- checksums.yaml +0 -7
data/guard-cane.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'guard-cane'
|
7
|
-
gem.version = '0.
|
7
|
+
gem.version = '0.2.0'
|
8
8
|
gem.authors = ["Justin Campbell"]
|
9
9
|
gem.email = ["justin@justincampbell.me"]
|
10
10
|
gem.summary = "Guard plugin for Cane"
|
data/lib/guard/cane.rb
CHANGED
data/spec/guard/cane_spec.rb
CHANGED
@@ -55,6 +55,26 @@ describe Guard::Cane do
|
|
55
55
|
|
56
56
|
run_on_modifications
|
57
57
|
end
|
58
|
+
|
59
|
+
context "with all_after_pass: true" do
|
60
|
+
let(:options) { { all_after_pass: true } }
|
61
|
+
|
62
|
+
it "does run all after pass" do
|
63
|
+
guard.stub(:cane).and_return(true)
|
64
|
+
guard.should_receive(:cane).with(paths)
|
65
|
+
guard.should_receive :run_all
|
66
|
+
|
67
|
+
run_on_modifications
|
68
|
+
end
|
69
|
+
|
70
|
+
it "does not run all if tests did not pass" do
|
71
|
+
guard.stub(:cane).and_return(false)
|
72
|
+
guard.should_receive(:cane).with(paths)
|
73
|
+
guard.should_not_receive :run_all
|
74
|
+
|
75
|
+
run_on_modifications
|
76
|
+
end
|
77
|
+
end
|
58
78
|
end
|
59
79
|
|
60
80
|
describe "#cane" do
|
metadata
CHANGED
@@ -1,83 +1,94 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-cane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Justin Campbell
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: cane
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: guard
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: guard-rspec
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rake
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- - '>='
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- - '>='
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rspec
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- - '>='
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- - '>='
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
description: Guard::Cane automatically runs Cane when files change
|
@@ -102,26 +113,26 @@ files:
|
|
102
113
|
- spec/spec_helper.rb
|
103
114
|
homepage: https://github.com/guard/guard-cane
|
104
115
|
licenses: []
|
105
|
-
metadata: {}
|
106
116
|
post_install_message:
|
107
117
|
rdoc_options: []
|
108
118
|
require_paths:
|
109
119
|
- lib
|
110
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
111
122
|
requirements:
|
112
|
-
- - '>='
|
123
|
+
- - ! '>='
|
113
124
|
- !ruby/object:Gem::Version
|
114
125
|
version: '0'
|
115
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
116
128
|
requirements:
|
117
|
-
- - '>='
|
129
|
+
- - ! '>='
|
118
130
|
- !ruby/object:Gem::Version
|
119
131
|
version: '0'
|
120
132
|
requirements: []
|
121
133
|
rubyforge_project:
|
122
|
-
rubygems_version:
|
134
|
+
rubygems_version: 1.8.23
|
123
135
|
signing_key:
|
124
|
-
specification_version:
|
136
|
+
specification_version: 3
|
125
137
|
summary: Guard plugin for Cane
|
126
138
|
test_files: []
|
127
|
-
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 078c0a49a2cdfe8ae7d919b10e30e9409e61717b
|
4
|
-
data.tar.gz: 4ac0abf907f03e540c6c8864bfff6d274825ecba
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: f711e5cb812b297c6bec308dfa1d32da9b5814bc45ffce388694293eb54b271df649a5489cc71cf6a10bf35ff1bf6d331823193be1efb5f7d35860b97cac6b48
|
7
|
-
data.tar.gz: 203396434e5fc439e1287fab5207db9019ec7c2eef2073c7c7381f8c8a434f4fb99f21ce267f812ece84002791a7d1f12a7704ee8bd4a89c7e25de933b573411
|