capistrano-spec 0.1.0 → 0.2.0
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.
- data/Gemfile +8 -0
- data/Gemfile.lock +30 -0
- data/README.rdoc +5 -0
- data/Rakefile +11 -13
- data/capistrano-spec.gemspec +26 -31
- data/lib/capistrano/spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +37 -54
- data/.gitignore +0 -21
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.3)
|
5
|
+
git (1.2.5)
|
6
|
+
jeweler (1.8.3)
|
7
|
+
bundler (~> 1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
rake
|
10
|
+
rdoc
|
11
|
+
json (1.6.6)
|
12
|
+
rake (0.9.2.2)
|
13
|
+
rdoc (3.12)
|
14
|
+
json (~> 1.4)
|
15
|
+
rspec (2.8.0)
|
16
|
+
rspec-core (~> 2.8.0)
|
17
|
+
rspec-expectations (~> 2.8.0)
|
18
|
+
rspec-mocks (~> 2.8.0)
|
19
|
+
rspec-core (2.8.0)
|
20
|
+
rspec-expectations (2.8.0)
|
21
|
+
diff-lcs (~> 1.1.2)
|
22
|
+
rspec-mocks (2.8.0)
|
23
|
+
|
24
|
+
PLATFORMS
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
jeweler
|
29
|
+
rake
|
30
|
+
rspec
|
data/README.rdoc
CHANGED
@@ -124,6 +124,11 @@ One thing you might be wondering now is... that's cool, but what about working w
|
|
124
124
|
@configuration.should have_gotten('/tmp/bar').to('bar')
|
125
125
|
end
|
126
126
|
|
127
|
+
== Real world examples
|
128
|
+
|
129
|
+
* [capistrano-mountaintop](https://github.com/technicalpickles/capistrano-mountaintop/blob/master/spec/capistrano-mountaintop_spec.rb)
|
130
|
+
* [moonshine](https://github.com/railsmachine/moonshine/blob/master/spec/moonshine/capistrano_integration_spec.rb)
|
131
|
+
|
127
132
|
== Note on Patches/Pull Requests
|
128
133
|
|
129
134
|
* Fork the project.
|
data/Rakefile
CHANGED
@@ -5,14 +5,14 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "capistrano-spec"
|
8
|
-
gem.version = '0.
|
8
|
+
gem.version = '0.2.0'
|
9
9
|
|
10
10
|
gem.summary = %Q{Test your capistrano recipes}
|
11
11
|
gem.description = %Q{Helpers and matchers for testing capistrano}
|
12
12
|
gem.email = "josh@technicalpickles.com"
|
13
13
|
gem.homepage = "http://github.com/technicalpickles/capistrano-spec"
|
14
|
-
gem.authors = ["Joshua Nichols"]
|
15
|
-
gem.add_development_dependency "rspec", ">=
|
14
|
+
gem.authors = ["Joshua Nichols", "Karl Matthias"]
|
15
|
+
gem.add_development_dependency "rspec", ">= 2.0.0"
|
16
16
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
17
|
end
|
18
18
|
Jeweler::GemcutterTasks.new
|
@@ -20,23 +20,21 @@ rescue LoadError
|
|
20
20
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
21
21
|
end
|
22
22
|
|
23
|
-
require '
|
24
|
-
|
25
|
-
spec.
|
26
|
-
spec.
|
23
|
+
require 'rspec/core/rake_task'
|
24
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
25
|
+
spec.rspec_opts = '--color --format=documentation -I lib -I spec'
|
26
|
+
spec.pattern = "spec/**/*_spec.rb"
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
spec.
|
29
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
30
|
+
spec.rspec_opts = '-I lib -I spec'
|
31
31
|
spec.pattern = 'spec/**/*_spec.rb'
|
32
32
|
spec.rcov = true
|
33
33
|
end
|
34
34
|
|
35
|
-
task :
|
35
|
+
task :default => [:spec]
|
36
36
|
|
37
|
-
task
|
38
|
-
|
39
|
-
require 'rake/rdoctask'
|
37
|
+
require 'rdoc/task'
|
40
38
|
Rake::RDocTask.new do |rdoc|
|
41
39
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
42
40
|
|
data/capistrano-spec.gemspec
CHANGED
@@ -1,55 +1,50 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.
|
7
|
+
s.name = "capistrano-spec"
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Joshua Nichols"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Joshua Nichols", "Karl Matthias"]
|
12
|
+
s.date = "2013-03-25"
|
13
|
+
s.description = "Helpers and matchers for testing capistrano"
|
14
|
+
s.email = "josh@technicalpickles.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"spec/spec.opts",
|
30
|
-
"spec/spec_helper.rb"
|
31
|
-
]
|
32
|
-
s.homepage = %q{http://github.com/technicalpickles/capistrano-spec}
|
33
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
34
|
-
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.6}
|
36
|
-
s.summary = %q{Test your capistrano recipes}
|
37
|
-
s.test_files = [
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"capistrano-spec.gemspec",
|
27
|
+
"lib/capistrano-spec.rb",
|
28
|
+
"lib/capistrano/spec.rb",
|
38
29
|
"spec/capistrano-spec_spec.rb",
|
39
|
-
|
30
|
+
"spec/spec.opts",
|
31
|
+
"spec/spec_helper.rb"
|
40
32
|
]
|
33
|
+
s.homepage = "http://github.com/technicalpickles/capistrano-spec"
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = "1.8.11"
|
36
|
+
s.summary = "Test your capistrano recipes"
|
41
37
|
|
42
38
|
if s.respond_to? :specification_version then
|
43
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
39
|
s.specification_version = 3
|
45
40
|
|
46
|
-
if Gem::Version.new(Gem::
|
47
|
-
s.add_development_dependency(%q<rspec>, [">=
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
+
s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
|
48
43
|
else
|
49
|
-
s.add_dependency(%q<rspec>, [">=
|
44
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0"])
|
50
45
|
end
|
51
46
|
else
|
52
|
-
s.add_dependency(%q<rspec>, [">=
|
47
|
+
s.add_dependency(%q<rspec>, [">= 2.0.0"])
|
53
48
|
end
|
54
49
|
end
|
55
50
|
|
data/lib/capistrano/spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
require 'capistrano-spec'
|
4
|
-
require '
|
5
|
-
require '
|
4
|
+
require 'rspec'
|
5
|
+
require 'rspec/autorun'
|
6
6
|
|
7
7
|
Spec::Runner.configure do |config|
|
8
8
|
|
metadata
CHANGED
@@ -1,48 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-spec
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Joshua Nichols
|
9
|
+
- Karl Matthias
|
13
10
|
autorequire:
|
14
11
|
bindir: bin
|
15
12
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-03-25 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: rspec
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 1
|
29
|
-
- 2
|
30
|
-
- 9
|
31
|
-
version: 1.2.9
|
17
|
+
requirement: &2160210760 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.0.0
|
32
23
|
type: :development
|
33
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2160210760
|
34
26
|
description: Helpers and matchers for testing capistrano
|
35
27
|
email: josh@technicalpickles.com
|
36
28
|
executables: []
|
37
|
-
|
38
29
|
extensions: []
|
39
|
-
|
40
|
-
extra_rdoc_files:
|
30
|
+
extra_rdoc_files:
|
41
31
|
- LICENSE
|
42
32
|
- README.rdoc
|
43
|
-
files:
|
33
|
+
files:
|
44
34
|
- .document
|
45
|
-
-
|
35
|
+
- Gemfile
|
36
|
+
- Gemfile.lock
|
46
37
|
- LICENSE
|
47
38
|
- README.rdoc
|
48
39
|
- Rakefile
|
@@ -52,36 +43,28 @@ files:
|
|
52
43
|
- spec/capistrano-spec_spec.rb
|
53
44
|
- spec/spec.opts
|
54
45
|
- spec/spec_helper.rb
|
55
|
-
has_rdoc: true
|
56
46
|
homepage: http://github.com/technicalpickles/capistrano-spec
|
57
47
|
licenses: []
|
58
|
-
|
59
48
|
post_install_message:
|
60
|
-
rdoc_options:
|
61
|
-
|
62
|
-
require_paths:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
63
51
|
- lib
|
64
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
requirements:
|
73
|
-
- -
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
- 0
|
77
|
-
version: "0"
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
78
64
|
requirements: []
|
79
|
-
|
80
65
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.8.11
|
82
67
|
signing_key:
|
83
68
|
specification_version: 3
|
84
69
|
summary: Test your capistrano recipes
|
85
|
-
test_files:
|
86
|
-
- spec/capistrano-spec_spec.rb
|
87
|
-
- spec/spec_helper.rb
|
70
|
+
test_files: []
|