cape 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -1
- data/.rspec +1 -1
- data/.travis.yml +6 -2
- data/Appraisals +11 -0
- data/Gemfile +4 -4
- data/Guardfile +10 -4
- data/History.markdown +6 -0
- data/README.markdown +32 -17
- data/Rakefile +33 -13
- data/cape.gemspec +6 -2
- data/features/dsl/each_rake_task/unqualified.feature +0 -6
- data/features/dsl/each_rake_task/with_defined_namespace.feature +1 -1
- data/features/dsl/each_rake_task/with_defined_task.feature +4 -4
- data/features/dsl/each_rake_task/with_undefined_task_or_namespace.feature +2 -2
- data/features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature +3 -4
- data/features/dsl/mirror_rake_tasks/unqualified.feature +89 -32
- data/features/dsl/mirror_rake_tasks/with_cd.feature +18 -12
- data/features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_defined_namespace.feature +7 -3
- data/features/dsl/mirror_rake_tasks/with_defined_task.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature +21 -17
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature +22 -18
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature +22 -18
- data/features/dsl/mirror_rake_tasks/with_environment_variables.feature +14 -10
- data/features/dsl/mirror_rake_tasks/with_rename.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_cd.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature +2 -2
- data/features/dsl/mirror_rake_tasks/with_valid_options.feature +12 -8
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature +14 -10
- data/features/dsl/rake_executable.feature +1 -6
- data/features/step_definitions.rb +0 -12
- data/gemfiles/capistrano_v2.x.gemfile +7 -0
- data/gemfiles/capistrano_v2.x.gemfile.lock +66 -0
- data/gemfiles/rake_v0.9.3.gemfile +7 -0
- data/gemfiles/rake_v0.9.3.gemfile.lock +66 -0
- data/gemfiles/rake_v10.x.gemfile +7 -0
- data/gemfiles/rake_v10.x.gemfile.lock +66 -0
- data/lib/cape/capistrano.rb +39 -29
- data/lib/cape/version.rb +1 -1
- data/lib/cape/xterm.rb +1 -1
- data/spec/cape/capistrano_spec.rb +13 -3
- data/spec/cape/core_ext/hash_spec.rb +5 -5
- data/spec/cape/core_ext/symbol_spec.rb +10 -8
- data/spec/cape/deprecation/base_sharedspec.rb +6 -2
- data/spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb +123 -101
- data/spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb +119 -97
- data/spec/cape/dsl_deprecated_spec.rb +128 -134
- data/spec/cape/dsl_spec.rb +56 -63
- data/spec/cape/hash_list_spec.rb +40 -20
- data/spec/cape/rake_spec.rb +59 -51
- data/spec/cape/recipe_definition_spec.rb +44 -32
- data/spec/cape/util_spec.rb +18 -18
- data/spec/cape/version_spec.rb +1 -1
- data/spec/cape/xterm_spec.rb +33 -33
- data/spec/cape_spec.rb +9 -7
- data/spec/spec_helper.rb +5 -1
- metadata +100 -86
data/spec/cape_spec.rb
CHANGED
@@ -3,28 +3,30 @@ require 'cape'
|
|
3
3
|
require 'cape/dsl'
|
4
4
|
|
5
5
|
describe Cape do
|
6
|
-
|
7
|
-
|
6
|
+
let(:cape_module) { described_class }
|
7
|
+
|
8
|
+
Cape::DSL.public_instance_methods.each do |m|
|
9
|
+
specify { expect(cape_module).to respond_to(m) }
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
11
13
|
describe '#Cape' do
|
12
|
-
it '
|
14
|
+
it 'yields the Cape module if given a unary block' do
|
13
15
|
yielded = nil
|
14
16
|
Cape do |c|
|
15
17
|
yielded = c
|
16
18
|
end
|
17
|
-
yielded.
|
19
|
+
expect(yielded).to eq(Cape)
|
18
20
|
end
|
19
21
|
|
20
|
-
it '
|
22
|
+
it 'accepts a nullary block' do
|
21
23
|
Cape do
|
22
24
|
end
|
23
25
|
end
|
24
26
|
|
25
|
-
it '
|
27
|
+
it 'expires the Rake tasks cache when leaving the block' do
|
26
28
|
Cape do
|
27
|
-
rake.
|
29
|
+
expect(rake).to receive(:expire_cache!).once
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -15,5 +15,9 @@ RSpec.configure do |config|
|
|
15
15
|
# --seed 1234
|
16
16
|
config.order = 'random'
|
17
17
|
|
18
|
-
config.alias_it_should_behave_like_to :
|
18
|
+
config.alias_it_should_behave_like_to :behaves_like, 'behaves like'
|
19
|
+
|
20
|
+
config.expect_with :rspec do |c|
|
21
|
+
c.syntax = :expect
|
22
|
+
end
|
19
23
|
end
|
metadata
CHANGED
@@ -1,97 +1,116 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cape
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 7
|
9
|
-
- 0
|
10
|
-
version: 1.7.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.8.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Nils Jonsson
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: appraisal
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
21
28
|
name: aruba
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
25
31
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
31
34
|
type: :development
|
32
|
-
requirement: *id001
|
33
35
|
prerelease: false
|
34
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
35
42
|
name: capistrano
|
36
|
-
|
37
|
-
|
38
|
-
requirements:
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
39
45
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
version: "2"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2'
|
45
48
|
type: :development
|
46
|
-
requirement: *id002
|
47
49
|
prerelease: false
|
48
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
49
56
|
name: rake
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
hash: 3
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
version: "0"
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.3
|
59
62
|
type: :development
|
60
|
-
requirement: *id003
|
61
63
|
prerelease: false
|
62
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
63
70
|
name: rspec
|
64
|
-
|
65
|
-
|
66
|
-
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
67
80
|
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: json_pure
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
73
90
|
type: :development
|
74
|
-
requirement: *id004
|
75
91
|
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
76
97
|
description: |-
|
77
98
|
Cape dynamically generates Capistrano recipes for Rake tasks.
|
78
99
|
It provides a DSL for reflecting on Rake tasks and mirroring
|
79
100
|
them as documented Capistrano recipes. You can pass Rake task
|
80
101
|
arguments via environment variables.
|
81
|
-
email:
|
102
|
+
email:
|
82
103
|
- cape@nilsjonsson.com
|
83
104
|
executables: []
|
84
|
-
|
85
105
|
extensions: []
|
86
|
-
|
87
106
|
extra_rdoc_files: []
|
88
|
-
|
89
|
-
files:
|
107
|
+
files:
|
90
108
|
- .gemtest
|
91
109
|
- .gitignore
|
92
110
|
- .rspec
|
93
111
|
- .travis.yml
|
94
112
|
- .yardopts
|
113
|
+
- Appraisals
|
95
114
|
- Gemfile
|
96
115
|
- Guardfile
|
97
116
|
- History.markdown
|
@@ -141,6 +160,12 @@ files:
|
|
141
160
|
- features/dsl/rake_executable.feature
|
142
161
|
- features/step_definitions.rb
|
143
162
|
- features/support/env.rb
|
163
|
+
- gemfiles/capistrano_v2.x.gemfile
|
164
|
+
- gemfiles/capistrano_v2.x.gemfile.lock
|
165
|
+
- gemfiles/rake_v0.9.3.gemfile
|
166
|
+
- gemfiles/rake_v0.9.3.gemfile.lock
|
167
|
+
- gemfiles/rake_v10.x.gemfile
|
168
|
+
- gemfiles/rake_v10.x.gemfile.lock
|
144
169
|
- lib/cape.rb
|
145
170
|
- lib/cape/capistrano.rb
|
146
171
|
- lib/cape/capistrano_deprecated.rb
|
@@ -176,42 +201,31 @@ files:
|
|
176
201
|
- spec/cape/xterm_spec.rb
|
177
202
|
- spec/cape_spec.rb
|
178
203
|
- spec/spec_helper.rb
|
179
|
-
homepage: http://njonsson.github.
|
180
|
-
licenses:
|
204
|
+
homepage: http://njonsson.github.io/cape
|
205
|
+
licenses:
|
181
206
|
- MIT
|
207
|
+
metadata: {}
|
182
208
|
post_install_message:
|
183
209
|
rdoc_options: []
|
184
|
-
|
185
|
-
require_paths:
|
210
|
+
require_paths:
|
186
211
|
- lib
|
187
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
hash: 57
|
193
|
-
segments:
|
194
|
-
- 1
|
195
|
-
- 8
|
196
|
-
- 7
|
212
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - '>='
|
215
|
+
- !ruby/object:Gem::Version
|
197
216
|
version: 1.8.7
|
198
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
hash: 3
|
204
|
-
segments:
|
205
|
-
- 0
|
206
|
-
version: "0"
|
217
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
207
222
|
requirements: []
|
208
|
-
|
209
223
|
rubyforge_project: cape
|
210
|
-
rubygems_version: 1.
|
224
|
+
rubygems_version: 2.1.10
|
211
225
|
signing_key:
|
212
|
-
specification_version:
|
226
|
+
specification_version: 4
|
213
227
|
summary: Dynamically generates Capistrano recipes for Rake tasks
|
214
|
-
test_files:
|
228
|
+
test_files:
|
215
229
|
- features/dsl/each_rake_task/unqualified.feature
|
216
230
|
- features/dsl/each_rake_task/with_defined_namespace.feature
|
217
231
|
- features/dsl/each_rake_task/with_defined_task.feature
|