crossroads_capistrano 1.3.2 → 1.3.3

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.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "crossroads_capistrano"
6
- s.version = "1.3.2"
6
+ s.version = "1.3.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
9
9
  s.email = ["it_dept@crossroads.org.hk"]
@@ -1,13 +1,10 @@
1
- if defined? Capistrano
2
- # Crossroads shared capistrano recipes
1
+ # Crossroads shared capistrano recipes
2
+
3
+ if defined?(Capistrano::Configuration) && Capistrano::Configuration.instance
3
4
  require 'capistrano/ext/multistage'
4
5
  require 'bundler/capistrano' unless $no_bundler rescue LoadError
5
6
  require 'capistrano_colors' rescue LoadError puts "Capistrano Colors is not installed."
6
7
 
7
- unless Capistrano::Configuration.respond_to?(:instance)
8
- abort "rvm/capistrano requires Capistrano >= 2."
9
- end
10
-
11
8
  Capistrano::Configuration.instance(:must_exist).load do
12
9
  set :rails_root, Dir.pwd # For tasks that need the root directory
13
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossroads_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: