akitaonrails-locarails 1.1.9 → 1.1.10

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.
@@ -0,0 +1,24 @@
1
+ module Capistrano
2
+ module Deploy
3
+ module Strategy
4
+ class Base
5
+ protected
6
+ # A wrapper for Kernel#system that logs the command being executed.
7
+ def system(*args)
8
+ cmd = args.join(' ')
9
+ if RUBY_PLATFORM =~ /win32/
10
+ cmd.gsub!('/','\\') # Replace / with \\
11
+ cmd.gsub!(/^cd /,'cd /D ') # Replace cd with cd /D
12
+ cmd.gsub!(/&& cd /,'&& cd /D ') # Replace cd with cd /D
13
+ cmd.gsub!('%%', '/') # Avoid windows command line parameters to be erroneously replaced by backslashes
14
+ logger.trace "executing locally: #{cmd}"
15
+ super(cmd)
16
+ else
17
+ logger.trace "executing locally: #{cmd}"
18
+ super
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -2,7 +2,7 @@ module Locarails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akitaonrails-locarails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Akita
@@ -54,6 +54,7 @@ files:
54
54
  - bin/locarails
55
55
  - bin/locarails.cmd
56
56
  - lib/locarails
57
+ - lib/locarails/base.rb
57
58
  - lib/locarails/copy.rb
58
59
  - lib/locarails/fix.rb
59
60
  - lib/locarails/none.rb