cape 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -1
  3. data/.rspec +1 -1
  4. data/.travis.yml +6 -2
  5. data/Appraisals +11 -0
  6. data/Gemfile +4 -4
  7. data/Guardfile +10 -4
  8. data/History.markdown +6 -0
  9. data/README.markdown +32 -17
  10. data/Rakefile +33 -13
  11. data/cape.gemspec +6 -2
  12. data/features/dsl/each_rake_task/unqualified.feature +0 -6
  13. data/features/dsl/each_rake_task/with_defined_namespace.feature +1 -1
  14. data/features/dsl/each_rake_task/with_defined_task.feature +4 -4
  15. data/features/dsl/each_rake_task/with_undefined_task_or_namespace.feature +2 -2
  16. data/features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature +3 -4
  17. data/features/dsl/mirror_rake_tasks/unqualified.feature +89 -32
  18. data/features/dsl/mirror_rake_tasks/with_cd.feature +18 -12
  19. data/features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature +6 -4
  20. data/features/dsl/mirror_rake_tasks/with_defined_namespace.feature +7 -3
  21. data/features/dsl/mirror_rake_tasks/with_defined_task.feature +10 -8
  22. data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature +10 -8
  23. data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature +10 -8
  24. data/features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature +21 -17
  25. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature +4 -2
  26. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature +4 -2
  27. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature +4 -2
  28. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature +4 -2
  29. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature +4 -2
  30. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature +4 -2
  31. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature +4 -2
  32. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature +4 -2
  33. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature +22 -18
  34. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature +10 -8
  35. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature +10 -8
  36. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature +22 -18
  37. data/features/dsl/mirror_rake_tasks/with_environment_variables.feature +14 -10
  38. data/features/dsl/mirror_rake_tasks/with_rename.feature +3 -1
  39. data/features/dsl/mirror_rake_tasks/with_rename_and_cd.feature +3 -1
  40. data/features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature +3 -1
  41. data/features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature +3 -1
  42. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature +3 -1
  43. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature +3 -1
  44. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature +3 -1
  45. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature +3 -1
  46. data/features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature +2 -2
  47. data/features/dsl/mirror_rake_tasks/with_valid_options.feature +12 -8
  48. data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature +6 -4
  49. data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature +6 -4
  50. data/features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature +14 -10
  51. data/features/dsl/rake_executable.feature +1 -6
  52. data/features/step_definitions.rb +0 -12
  53. data/gemfiles/capistrano_v2.x.gemfile +7 -0
  54. data/gemfiles/capistrano_v2.x.gemfile.lock +66 -0
  55. data/gemfiles/rake_v0.9.3.gemfile +7 -0
  56. data/gemfiles/rake_v0.9.3.gemfile.lock +66 -0
  57. data/gemfiles/rake_v10.x.gemfile +7 -0
  58. data/gemfiles/rake_v10.x.gemfile.lock +66 -0
  59. data/lib/cape/capistrano.rb +39 -29
  60. data/lib/cape/version.rb +1 -1
  61. data/lib/cape/xterm.rb +1 -1
  62. data/spec/cape/capistrano_spec.rb +13 -3
  63. data/spec/cape/core_ext/hash_spec.rb +5 -5
  64. data/spec/cape/core_ext/symbol_spec.rb +10 -8
  65. data/spec/cape/deprecation/base_sharedspec.rb +6 -2
  66. data/spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb +123 -101
  67. data/spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb +119 -97
  68. data/spec/cape/dsl_deprecated_spec.rb +128 -134
  69. data/spec/cape/dsl_spec.rb +56 -63
  70. data/spec/cape/hash_list_spec.rb +40 -20
  71. data/spec/cape/rake_spec.rb +59 -51
  72. data/spec/cape/recipe_definition_spec.rb +44 -32
  73. data/spec/cape/util_spec.rb +18 -18
  74. data/spec/cape/version_spec.rb +1 -1
  75. data/spec/cape/xterm_spec.rb +33 -33
  76. data/spec/cape_spec.rb +9 -7
  77. data/spec/spec_helper.rb +5 -1
  78. metadata +100 -86
@@ -3,28 +3,30 @@ require 'cape'
3
3
  require 'cape/dsl'
4
4
 
5
5
  describe Cape do
6
- Cape::DSL.instance_methods.each do |m|
7
- it { should respond_to(m) }
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 'should yield the Cape module if given a unary block' do
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.should == Cape
19
+ expect(yielded).to eq(Cape)
18
20
  end
19
21
 
20
- it 'should accept a nullary block' do
22
+ it 'accepts a nullary block' do
21
23
  Cape do
22
24
  end
23
25
  end
24
26
 
25
- it 'should expire the Rake tasks cache when leaving the block' do
27
+ it 'expires the Rake tasks cache when leaving the block' do
26
28
  Cape do
27
- rake.should_receive(:expire_cache!).once
29
+ expect(rake).to receive(:expire_cache!).once
28
30
  end
29
31
  end
30
32
  end
@@ -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 :should_behave_like, 'should behave like'
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
- hash: 11
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
- date: 2013-03-07 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
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
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
25
31
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 3
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
- - !ruby/object:Gem::Dependency
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
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
39
45
  - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 7
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
- - !ruby/object:Gem::Dependency
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
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
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
- - !ruby/object:Gem::Dependency
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
- version_requirements: &id004 !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
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
- hash: 7
70
- segments:
71
- - 2
72
- version: "2"
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.com/cape
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
- none: false
189
- requirements:
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
- none: false
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
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.8.24
224
+ rubygems_version: 2.1.10
211
225
  signing_key:
212
- specification_version: 3
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