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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df897af510240d716cdc7c8c3d1a104ab2d6ca6c
4
- data.tar.gz: 9124a68c96632f05faeee974e88b5c5551fb82c9
3
+ metadata.gz: 182d4597707fd26ecddd3a1ea79ca60f9394fe83
4
+ data.tar.gz: c2a7e445bf8454ca3e66db6823a0f85fe91a7ba4
5
5
  SHA512:
6
- metadata.gz: fce53366b404dddc37fcbfcaa5b86200df0a829806bf3e9f5fdefa8b5607ae42cb90023b4b643e8cdfd530e1b1021c3d540e7f46d5aefc919c08304d92c33c1f
7
- data.tar.gz: d8cd5441dea00c059678e52d3b05582ca9eb38f227589ed96b60c295ab5d66b2994aa3d04701d037f75b4253b99b2f2e835583206db3572b7c168ad8fc2ccf7e
6
+ metadata.gz: 5e94d144f15aa124cd3c787c4ce983801f6a52bb3b3bc9f83c6d3dc0cc80d17f44b737f58fb12cf19793f4af0c5f38b8a03ac5744c3bcb2f43ba3ba7923f0cef
7
+ data.tar.gz: 697d80dddd57c3c4b5b39aae20224540cb9d7d0142b64c6b57be2257424f18930f7d45ca36dee5b1766861d98d1bea72b64e5b34b99b7adf925c77aa2caa2788
@@ -79,7 +79,8 @@ module SVNx
79
79
 
80
80
  def initialize args
81
81
  cmd = LogCommand.new LogCommandArgs.new(args)
82
- @entries = SVNx::Log::Entries.new :xmllines => cmd.execute
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
@@ -2,5 +2,5 @@
2
2
  # -*- ruby -*-
3
3
 
4
4
  module SVNx
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
  end
@@ -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.3
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-23 00:00:00.000000000 Z
11
+ date: 2013-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logue