svn_command_helper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svn_command_helper/version.rb +1 -1
- data/lib/svn_command_helper.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45cbe266b3a6d3c4fc40a117ac61f4f19e0dd35
|
4
|
+
data.tar.gz: 29ce35786e269289f29ce2305c18d3629e75b43d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2676ee2fc987e8ef387dadaffe7de5867381705e0e57900ba268ba24775fe6c7a727b79dae4287bcaa9d04293c2bbba10a32e6cb379e240f86bf62b5dfc52386
|
7
|
+
data.tar.gz: 17a536322cd7e7926f71be69bd48268bf6f3ddd74f43f06312b61a18a2920086df0ae693dbe35360045b99319bb52372a292dc13a538f324471b7f28af73366c
|
data/lib/svn_command_helper.rb
CHANGED
@@ -59,14 +59,16 @@ module SvnCommandHelper
|
|
59
59
|
# @param [uri string like] uri target uri
|
60
60
|
# @return [Boolean] true if exists
|
61
61
|
def exist?(uri)
|
62
|
-
|
62
|
+
basename = File.basename(uri)
|
63
|
+
list(File.dirname(uri)).find{|_basename| File.fnmatch(basename, _basename.sub(/\/$/, ''))}
|
63
64
|
end
|
64
65
|
|
65
66
|
# check svn uri file exists or not
|
66
67
|
# @param [uri string like] uri target uri
|
67
68
|
# @return [Boolean] true if exists
|
68
69
|
def exist_file?(uri)
|
69
|
-
|
70
|
+
file = File.basename(uri)
|
71
|
+
list_files(File.dirname(uri)).find{|_file| File.fnmatch(file, _file)}
|
70
72
|
end
|
71
73
|
|
72
74
|
# svn update
|