crossroads_capistrano 1.4.8 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.4.8"
6
+ s.version = "1.4.9"
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"]
@@ -24,7 +24,7 @@ end
24
24
  # Replaces strings in a file, i.e. @SOME_STRING@ is replaced with 'replacement'
25
25
  def sed(file, args, char="@")
26
26
  cmd = "sed -i #{file} " << args.map{|k,v|"-e 's%#{char}#{k}#{char}%#{v}%g'"}.join(" ")
27
- exists?(:use_sudo) && !use_sudo ? run cmd : sudo cmd
27
+ (exists?(:use_sudo) && !use_sudo) ? run(cmd) : sudo(cmd)
28
28
  end
29
29
 
30
30
  # Helper function which prompts for user input.
@@ -7,7 +7,10 @@ namespace :deploy do
7
7
  if ARGV.include?("-n")
8
8
  puts "\n ** Dry run, not notifying Hoptoad.\n\n"
9
9
  else
10
- require 'active_support/core_ext/string' rescue Exception
10
+ begin
11
+ require 'active_support/core_ext/string'
12
+ rescue Exception
13
+ end
11
14
  require 'hoptoad_notifier'
12
15
  require File.join(rails_root,'config','initializers','hoptoad')
13
16
  require 'hoptoad_tasks'
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.4.8
4
+ version: 1.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: