svnx 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/svnx/base/options.rb +12 -2
- data/lib/svnx/log/options.rb +7 -5
- data/lib/svnx/update/options.rb +2 -1
- data/lib/svnx/util/strutil.rb +14 -0
- data/lib/svnx/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ec7139dbe80c6857309246b41071cc4db44d4e
|
4
|
+
data.tar.gz: 09a10d1d01c520b4c9754e3f551f1b2086830c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7031a81df0adc128f5a9bd835fef720372a6051ff3badbc71054286fcc3232f96b42d6dc4ac7c1fae081073e109216b635e3f99cd5377c81b79360a6e8f298
|
7
|
+
data.tar.gz: 30238c1108f0f22efd176f338c6db0b0faf5500c0712225ccaafcaf5693f70304ffc0026f5ca2025a79adb8c86e1dda0dab4109a250da1c0c2b911a87ae1ffdf
|
data/lib/svnx/base/options.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# -*- ruby -*-
|
3
3
|
|
4
4
|
require 'svnx/util/objutil'
|
5
|
+
require 'svnx/util/strutil'
|
5
6
|
|
6
7
|
module Svnx
|
7
8
|
module Base
|
@@ -16,7 +17,7 @@ module Svnx::Base
|
|
16
17
|
def mapping field
|
17
18
|
case field
|
18
19
|
when :revision
|
19
|
-
Proc.new { |x| [ "-r", x.revision ] }
|
20
|
+
Proc.new { |x| [ "-r", x.send(:revision) ] }
|
20
21
|
when :ignorewhitespace, :ignore_whitespace
|
21
22
|
%w{ -x -bw -x --ignore-eol-style }
|
22
23
|
when :paths
|
@@ -28,7 +29,7 @@ module Svnx::Base
|
|
28
29
|
when :url
|
29
30
|
nil
|
30
31
|
when :file
|
31
|
-
Proc.new { |x| [ "
|
32
|
+
Proc.new { |x| [ "--file", x.file ] }
|
32
33
|
else
|
33
34
|
raise "invalid field '#{field}'"
|
34
35
|
end
|
@@ -40,6 +41,15 @@ module Svnx::Base
|
|
40
41
|
has_field field, arg
|
41
42
|
end
|
42
43
|
end
|
44
|
+
|
45
|
+
def to_tag sym, invoke = nil
|
46
|
+
tag = "--" + StringUtil.with_dashes(sym)
|
47
|
+
if invoke
|
48
|
+
Proc.new { |x| [ tag, x.send(sym) ] }
|
49
|
+
else
|
50
|
+
tag
|
51
|
+
end
|
52
|
+
end
|
43
53
|
end
|
44
54
|
|
45
55
|
def initialize args
|
data/lib/svnx/log/options.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# -*- ruby -*-
|
3
3
|
|
4
4
|
require 'svnx/base/options'
|
5
|
+
require 'svnx/util/strutil'
|
5
6
|
|
6
7
|
module Svnx
|
7
8
|
module Log
|
@@ -10,10 +11,11 @@ end
|
|
10
11
|
|
11
12
|
module Svnx::Log
|
12
13
|
class Options < Svnx::Base::Options
|
13
|
-
has_fields limit:
|
14
|
-
verbose:
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
has_fields limit: Proc.new { |x| [ "--limit", x.send(:limit) ] },
|
15
|
+
verbose: "-v",
|
16
|
+
stop_on_copy: to_tag(:stop_on_copy),
|
17
|
+
use_merge_history: "--use-merge-history",
|
18
|
+
depth: Proc.new { |x| [ "--depth", x.send(:depth) ] }
|
19
|
+
has :revision, :url, :path
|
18
20
|
end
|
19
21
|
end
|
data/lib/svnx/update/options.rb
CHANGED
data/lib/svnx/version.rb
CHANGED
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.
|
4
|
+
version: 2.7.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: 2019-07
|
11
|
+
date: 2019-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: command-cacheable
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/svnx/util/dateutil.rb
|
197
197
|
- lib/svnx/util/englishtime.rb
|
198
198
|
- lib/svnx/util/objutil.rb
|
199
|
+
- lib/svnx/util/strutil.rb
|
199
200
|
- lib/svnx/util/timeutil.rb
|
200
201
|
- lib/svnx/version.rb
|
201
202
|
- repackage
|