svn_command_helper 0.9.1 → 0.9.2

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: 5890b52b98e014db46f996ff77076695869e4d1b
4
- data.tar.gz: 62e04dd081b29ccdb94ec410d50c4d30b0892be9
3
+ metadata.gz: 2a26bdb93ca25d73f166efbdab7bb537138cfa7d
4
+ data.tar.gz: a155eb28315c094d96623fc1b03081e93b399d25
5
5
  SHA512:
6
- metadata.gz: e0bffc21b4c7dc7fe866e74018aff363757035fa4c3bb243982dad3838206bf3428d8c19162208bb2f9dd0939315da1030cc5e03eb78efc470bbdcf17d0201b9
7
- data.tar.gz: 2a2b94a5605dcc175152d8c95a9ef7952285cff7f61b5a95027909e5bf14c37d878dd70acb13c86f2a8dc7157d8fa467ade6e68e450287ebcb370b0123658b72
6
+ metadata.gz: 0abb87870bdb2169eb1c6885a071b9914904d0b28f87380e58bc7ca15dd2b09fa71c2fd7c59dabd91551dc955c1a9e8e69430431b3fdca76e602061e38257449
7
+ data.tar.gz: e05bd7035308a8b3a95f69148dcba2d8a5426ab3e29b8a6910a1a62627ad3dbdb2de8f4e5b6a82a56149ff5225d5502a9849f8e0d57208b3bdb46aea9d8f12ff
@@ -253,10 +253,9 @@ module SvnCommandHelper
253
253
  options << "-x --ignore-eol-style" if ignore_eol_style
254
254
  options << "-x --ignore-space-change" if ignore_space_change
255
255
  options << "-x --ignore-all-space" if ignore_all_space
256
- options << "| grep -v '^ '" if ignore_properties
257
256
 
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|
257
+ diff_str = cap("svn diff --xml --summarize #{from_uri} #{to_uri} #{options.join(' ')}")
258
+ diff_list = REXML::Document.new(diff_str).elements.collect("/diff/paths/path") do |path|
260
259
  OpenStruct.new({
261
260
  kind: path.attribute("kind").value,
262
261
  item: path.attribute("item").value,
@@ -264,6 +263,10 @@ module SvnCommandHelper
264
263
  path: path.text,
265
264
  })
266
265
  end
266
+ if ignore_properties
267
+ diff_list.reject! {|diff| diff.item == "none"}
268
+ end
269
+ diff_list
267
270
  end
268
271
 
269
272
  # copy single transaction
@@ -1,4 +1,4 @@
1
1
  module SvnCommandHelper
2
2
  # version
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
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.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka