svn_command_helper 0.9.0 → 0.9.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: f604e3f587e384d6e6b790e1e72bb85511a0470e
4
- data.tar.gz: 2caa2170e32bd2779914365454e34b0c389b349a
3
+ metadata.gz: 5890b52b98e014db46f996ff77076695869e4d1b
4
+ data.tar.gz: 62e04dd081b29ccdb94ec410d50c4d30b0892be9
5
5
  SHA512:
6
- metadata.gz: 33b69c7d11200c05147e18a9abff5d5d5bae063ba16e09ad04c910735dd2ad31014340d7ba4a07aa8887b8d5664f8e21cbe6f19b5340a3aa09b2e7d8fcb08e13
7
- data.tar.gz: 067457d881f8cd082df9cbcffb079d3d6e23c7915d52a2b081c4cbdc643b9f7e66d6b5c908cddf3ad90ffa9ad7eaa3685e5dd477ee55bc43c32228f1a2f1463f
6
+ metadata.gz: e0bffc21b4c7dc7fe866e74018aff363757035fa4c3bb243982dad3838206bf3428d8c19162208bb2f9dd0939315da1030cc5e03eb78efc470bbdcf17d0201b9
7
+ data.tar.gz: 2a2b94a5605dcc175152d8c95a9ef7952285cff7f61b5a95027909e5bf14c37d878dd70acb13c86f2a8dc7157d8fa467ade6e68e450287ebcb370b0123658b72
@@ -1,4 +1,4 @@
1
1
  module SvnCommandHelper
2
2
  # version
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
@@ -254,10 +254,16 @@ module SvnCommandHelper
254
254
  options << "-x --ignore-space-change" if ignore_space_change
255
255
  options << "-x --ignore-all-space" if ignore_all_space
256
256
  options << "| grep -v '^ '" if ignore_properties
257
- cap("svn diff --summarize #{from_uri} #{to_uri} #{options.join(' ')}")
258
- .each_line.map(&:chomp)
259
- .map {|line| line.match(/^(\s*\S+)\s+(\S.*)$/)}
260
- .map {|result| OpenStruct.new({diff: result[1], file: result[2]})}
257
+
258
+ diff = cap("svn diff --xml --summarize #{from_uri} #{to_uri} #{options.join(' ')}")
259
+ REXML::Document.new(diff).elements.collect("/diff/paths/path") do |path|
260
+ OpenStruct.new({
261
+ kind: path.attribute("kind").value,
262
+ item: path.attribute("item").value,
263
+ props: path.attribute("props").value,
264
+ path: path.text,
265
+ })
266
+ end
261
267
  end
262
268
 
263
269
  # copy single transaction
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka