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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d47ea36471b94fda56202e1c64b89d24b989ae98
4
- data.tar.gz: 794513a1bc00aea3fdcb3e426e09e3a7732f56f2
3
+ metadata.gz: b45cbe266b3a6d3c4fc40a117ac61f4f19e0dd35
4
+ data.tar.gz: 29ce35786e269289f29ce2305c18d3629e75b43d
5
5
  SHA512:
6
- metadata.gz: 45ca7ade456b31728cc8ba6737792f8a9fdff942f64442f398ee5f323d62168d0324d1321b03c6d9d573240317a21d71a9fcd283d99eb33d01cf6dd60b1dcfcd
7
- data.tar.gz: 3c6af82ce304903f6710383f0eebc088a7d331078110b4b035a13d4a021e28edd38834b9f283ecc54525935e9a6173e0becc8f11baa9cba802738d76ac889b20
6
+ metadata.gz: 2676ee2fc987e8ef387dadaffe7de5867381705e0e57900ba268ba24775fe6c7a727b79dae4287bcaa9d04293c2bbba10a32e6cb379e240f86bf62b5dfc52386
7
+ data.tar.gz: 17a536322cd7e7926f71be69bd48268bf6f3ddd74f43f06312b61a18a2920086df0ae693dbe35360045b99319bb52372a292dc13a538f324471b7f28af73366c
@@ -1,4 +1,4 @@
1
1
  module SvnCommandHelper
2
2
  # version
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
@@ -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
- list(File.dirname(uri)).find{|_file| File.fnmatch(@file, _file.sub(/\/$/, ''))}
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
- list_files(File.dirname(uri)).find{|_file| File.fnmatch(@file, _file)}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svn_command_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka