svnx 2.3.0 → 2.4.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: 03dc7ad9a32bb28cd8948fbe5921ead0f014fd47
4
- data.tar.gz: 16794b57d049be33261365a1537250e6bc4d4833
3
+ metadata.gz: 520e01a3b50f0db39d0dedcc9af1d4134128a139
4
+ data.tar.gz: 33eb076b2f6acac9537433c912dc2f1d38002ebb
5
5
  SHA512:
6
- metadata.gz: 83ca8614a6553fdc808ceb319fd2aaca159b1c84ad745cb0940cd7565843245c4d24135915d300255c6083b9050ab1e975066aace36e6c398ac53a845d3a29fa
7
- data.tar.gz: 8a5b6bcd7040e7655a7547a0d5fd295368522b191554222c2a6f0ab4186783f0c0bdcd696f47b5a41b61908868215f6d41388bfec0ce1d007348a642dd41e1f9
6
+ metadata.gz: 578d7cbbfc9624a929d565bc6ac04d4d57fc768456a2058617cde404eb7ec36ef14c774f86effe296bfb90b3bc1a3b958fe726f337034f8e64fc0b14d68fe306
7
+ data.tar.gz: 065360d70d43f4d3b8f958ceb74f5f0ae9fa2bbd2e73097c5e0aad47f4e61bd4f40949f4d919e75c6381984b5f979ca8910a693888be369137118b685194bfab
@@ -13,24 +13,26 @@ end
13
13
 
14
14
  module Svnx::Log
15
15
  class Entry < Svnx::Base::Entry
16
- attr_reader :revision, :author, :date, :paths, :msg
16
+ attr_reader :revision, :reverse_merge, :author, :date, :paths, :msg, :entries
17
17
 
18
18
  def set_from_element elmt
19
19
  set_attr_var elmt, 'revision'
20
- set_elmt_vars elmt, 'author', 'date', 'msg'
20
+ @reverse_merge = attribute_value elmt, 'reverse-merge'
21
21
 
22
- @paths = Array.new
22
+ set_elmt_vars elmt, 'author', 'date', 'msg'
23
23
 
24
- elmt.elements.each('paths/path') do |pe|
24
+ # sort, because Subversion is not consistent with order
25
+ @paths = elmt.elements.to_a('paths/path').collect do |pe|
25
26
  kind = attribute_value pe, 'kind'
26
27
  action = attribute_value pe, 'action'
27
28
  name = pe.text
28
29
 
29
- @paths << EntryPath.new(kind: kind, action: Svnx::Action.new(action), name: name)
30
+ EntryPath.new(kind: kind, action: Svnx::Action.new(action), name: name)
31
+ end.sort
32
+
33
+ @entries = elmt.elements.to_a('logentry').collect do |le|
34
+ Entry.new le
30
35
  end
31
-
32
- # Svn isn't consistent with the order of paths
33
- @paths.sort!
34
36
  end
35
37
 
36
38
  def message
@@ -3,5 +3,5 @@
3
3
 
4
4
  module Svnx
5
5
  NAME = 'svnx'
6
- VERSION = '2.3.0'
6
+ VERSION = '2.4.0'
7
7
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_runtime_dependency "command-cacheable", "~> 0.2"
31
31
  spec.add_development_dependency "bundler", "~> 1.12"
32
32
  spec.add_development_dependency "rake", "~> 10.0"
33
- spec.add_development_dependency "logue", "~> 1.0.6"
33
+ spec.add_development_dependency "logue", "~> 1.0.16"
34
34
  spec.add_development_dependency "test-unit", "~> 3.1.5"
35
35
  spec.add_development_dependency "paramesan", "~> 0.1.1"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svnx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Pace
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-10 00:00:00.000000000 Z
11
+ date: 2019-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: command-cacheable
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.6
61
+ version: 1.0.16
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.6
68
+ version: 1.0.16
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: test-unit
71
71
  requirement: !ruby/object:Gem::Requirement