capistrano-spec 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # A sample Gemfile
2
+ source "https://rubygems.org"
3
+
4
+ group :test do
5
+ gem 'rspec'
6
+ gem 'rake'
7
+ gem 'jeweler'
8
+ end
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.1.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", ">= 1.2.9"
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 'spec/rake/spectask'
24
- Spec::Rake::SpecTask.new(:spec) do |spec|
25
- spec.libs << 'lib' << 'spec'
26
- spec.spec_files = FileList['spec/**/*_spec.rb']
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
- Spec::Rake::SpecTask.new(:rcov) do |spec|
30
- spec.libs << 'lib' << '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 :spec => :check_dependencies
35
+ task :default => [:spec]
36
36
 
37
- task :default => :spec
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
 
@@ -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 the gemspec command
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 = %q{capistrano-spec}
8
- s.version = "0.1.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 = %q{2010-07-21}
13
- s.description = %q{Helpers and matchers for testing capistrano}
14
- s.email = %q{josh@technicalpickles.com}
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
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "capistrano-spec.gemspec",
26
- "lib/capistrano-spec.rb",
27
- "lib/capistrano/spec.rb",
28
- "spec/capistrano-spec_spec.rb",
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
- "spec/spec_helper.rb"
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
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>, [">= 1.2.9"])
44
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
50
45
  end
51
46
  else
52
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
47
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
53
48
  end
54
49
  end
55
50
 
@@ -43,7 +43,7 @@ module Capistrano
43
43
  end
44
44
 
45
45
  module Matchers
46
- extend ::Spec::Matchers::DSL
46
+ extend ::RSpec::Matchers::DSL
47
47
 
48
48
  define :callback do |task_name|
49
49
  extend Helpers
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 'spec'
5
- require 'spec/autorun'
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
- prerelease: false
5
- segments:
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
- date: 2010-07-21 00:00:00 -04:00
18
- default_executable:
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
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
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
- version_requirements: *id001
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
- - .gitignore
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
- - --charset=UTF-8
62
- require_paths:
49
+ rdoc_options: []
50
+ require_paths:
63
51
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- version: "0"
71
- required_rubygems_version: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- segments:
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.3.6
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: []
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC