svn_command_helper 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c76b5ad4dad201a7824cd3ceaa6b16fb717d866b
4
- data.tar.gz: b888a7a706cf64ad30f796042b3de0c63bd0a365
3
+ metadata.gz: 3bd87982f559e1473b9142676e7db6c370d61c60
4
+ data.tar.gz: b0eba9df0dddaeed5712854e73c59b5118a708f9
5
5
  SHA512:
6
- metadata.gz: c378bcb135924e360faf210fccf1dcd3c5260755ad01c0eb83edd62f7be1238e258952a50eb451dce981b6acb2f8432fa1e34694c4fd314fa105239ba8a777ad
7
- data.tar.gz: e29ad93b6ddda05d0bbfde866806016d65d8250d1b07432cc89ab9759399c9ddbda506707c0c8938368a62e7e16043612cd31599ef39dae2265fe6e948407f1a
6
+ metadata.gz: 1cbce97b48f515cb6c359d23029c4d0d5846a2bfe8a6860eb233f58f411ca4949a993a4848775a8043ebe18afb8b885534858c8d6881508dcea6677cd7336a64
7
+ data.tar.gz: 7e73ec9d8fd639720af21196b8ad8e0f2c86199016180e7aa90b711df9e3dbc55d51bf7070db50340195a4f4603e6869d21463fe3e4f5b4c1ca785e1b4692c92
@@ -1,4 +1,4 @@
1
1
  module SvnCommandHelper
2
2
  # version
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
@@ -115,8 +115,9 @@ module SvnCommandHelper
115
115
 
116
116
  # svn update to deep path recursive
117
117
  # @param [path string like] path target path
118
- # @param [depth] depth --set-depth for only new updated dirs
119
- def update_deep(path, depth = nil)
118
+ # @param [Integer] depth --set-depth for only new updated dirs
119
+ # @param [Boolean] exist_path_update middle path update flag
120
+ def update_deep(path, depth = nil, exist_path_update = true)
120
121
  exist_path = path
121
122
  until File.exist?(exist_path)
122
123
  exist_path = File.dirname(exist_path)
@@ -129,7 +130,7 @@ module SvnCommandHelper
129
130
  end
130
131
  parents.each do |dir|
131
132
  if dir.exist?
132
- sys "svn update #{dir}"
133
+ sys "svn update #{dir}" if exist_path_update
133
134
  else
134
135
  sys "svn update #{depth ? "--set-depth #{depth}" : ""} #{dir}"
135
136
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svn_command_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: system_command_helper