svnx 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svnx/log/command.rb +2 -1
- data/lib/svnx.rb +1 -1
- data/test/integration/log/log_test.rb +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182d4597707fd26ecddd3a1ea79ca60f9394fe83
|
4
|
+
data.tar.gz: c2a7e445bf8454ca3e66db6823a0f85fe91a7ba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e94d144f15aa124cd3c787c4ce983801f6a52bb3b3bc9f83c6d3dc0cc80d17f44b737f58fb12cf19793f4af0c5f38b8a03ac5744c3bcb2f43ba3ba7923f0cef
|
7
|
+
data.tar.gz: 697d80dddd57c3c4b5b39aae20224540cb9d7d0142b64c6b57be2257424f18930f7d45ca36dee5b1766861d98d1bea72b64e5b34b99b7adf925c77aa2caa2788
|
data/lib/svnx/log/command.rb
CHANGED
@@ -79,7 +79,8 @@ module SVNx
|
|
79
79
|
|
80
80
|
def initialize args
|
81
81
|
cmd = LogCommand.new LogCommandArgs.new(args)
|
82
|
-
|
82
|
+
entcls = args[:entries_class] || SVNx::Log::Entries
|
83
|
+
@entries = entcls.new :xmllines => cmd.execute
|
83
84
|
end
|
84
85
|
end
|
85
86
|
end
|
data/lib/svnx.rb
CHANGED
@@ -15,7 +15,7 @@ module SVNx::Log
|
|
15
15
|
|
16
16
|
def test_specified_args
|
17
17
|
entries = SVNx::LogExec.new(path: '/Programs/pvn/pvntestbed.from', revision: nil, limit: nil, verbose: true, use_cache: false).entries
|
18
|
-
|
18
|
+
|
19
19
|
assert_equal 22, entries.size
|
20
20
|
|
21
21
|
assert_entry '21', 'Governor William J. Le Petomane', 3, entries, 1
|
@@ -57,5 +57,18 @@ module SVNx::Log
|
|
57
57
|
assert_entry '22', 'Lyle', 0, entries, 0
|
58
58
|
assert_entry '18', 'Lili von Shtupp', 0, entries, 4
|
59
59
|
end
|
60
|
+
|
61
|
+
def test_default_entries_class
|
62
|
+
logexec = SVNx::LogExec.new(path: '/Programs/pvn/pvntestbed.from', revision: nil, limit: nil, verbose: true, use_cache: false)
|
63
|
+
assert_instance_of SVNx::Log::Entries, logexec.entries
|
64
|
+
end
|
65
|
+
|
66
|
+
class LogTestEntries < SVNx::Log::Entries
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_specified_entries_class
|
70
|
+
logexec = SVNx::LogExec.new(path: '/Programs/pvn/pvntestbed.from', revision: nil, limit: nil, verbose: true, use_cache: false, entries_class: LogTestEntries)
|
71
|
+
assert_instance_of LogTestEntries, logexec.entries
|
72
|
+
end
|
60
73
|
end
|
61
74
|
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: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Pace
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logue
|