svnx 2.7.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svnx/base/options.rb +6 -2
- data/lib/svnx/commit/options.rb +1 -0
- data/lib/svnx/diff/options.rb +3 -3
- data/lib/svnx/log/options.rb +3 -3
- data/lib/svnx/merge/options.rb +3 -3
- data/lib/svnx/propset/options.rb +1 -1
- data/lib/svnx/version.rb +1 -1
- data/svnx.gemspec +4 -3
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 759f64ff2fb82a12e58b4ae33be6f1ab5df391af
|
4
|
+
data.tar.gz: e319aced5f94a6447b1304e3684102427d111a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9307ee3595171bf6490a8b974e274ca95dd35a40a59e7ca48c2d0019ce0f77afc0da3fb554be80288a45da10a8f7c583954e9a9ac34f57efd5c8ed2843daf97
|
7
|
+
data.tar.gz: c3d7e0bbf22495b43c0db7d506bf3a941753a2085cd689cb0644d83135068b898ca12cfd2f5d3a6616791859df71db74f5333c48dc3ab7342530b2f36e8d7bd4
|
data/lib/svnx/base/options.rb
CHANGED
@@ -17,7 +17,7 @@ module Svnx::Base
|
|
17
17
|
def mapping field
|
18
18
|
case field
|
19
19
|
when :revision
|
20
|
-
|
20
|
+
to_args "-r", field
|
21
21
|
when :ignorewhitespace, :ignore_whitespace
|
22
22
|
%w{ -x -bw -x --ignore-eol-style }
|
23
23
|
when :paths
|
@@ -29,7 +29,7 @@ module Svnx::Base
|
|
29
29
|
when :url
|
30
30
|
nil
|
31
31
|
when :file
|
32
|
-
|
32
|
+
to_args "--file", field
|
33
33
|
else
|
34
34
|
raise "invalid field '#{field}'"
|
35
35
|
end
|
@@ -42,6 +42,10 @@ module Svnx::Base
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
def to_args tagname, methname
|
46
|
+
Proc.new { |obj| [ tagname, obj.send(methname) ] }
|
47
|
+
end
|
48
|
+
|
45
49
|
def to_tag sym, invoke = nil
|
46
50
|
tag = "--" + StringUtil.with_dashes(sym)
|
47
51
|
if invoke
|
data/lib/svnx/commit/options.rb
CHANGED
data/lib/svnx/diff/options.rb
CHANGED
@@ -10,10 +10,10 @@ end
|
|
10
10
|
|
11
11
|
module Svnx::Diff
|
12
12
|
class Options < Svnx::Base::Options
|
13
|
-
has_fields commit:
|
13
|
+
has_fields commit: to_args("-c", :commit),
|
14
14
|
ignoreproperties: "--ignore-properties",
|
15
|
-
depth:
|
16
|
-
|
15
|
+
depth: to_args("--depth", :depth)
|
16
|
+
|
17
17
|
has :ignorewhitespace, :paths, :url
|
18
18
|
end
|
19
19
|
end
|
data/lib/svnx/log/options.rb
CHANGED
@@ -11,11 +11,11 @@ end
|
|
11
11
|
|
12
12
|
module Svnx::Log
|
13
13
|
class Options < Svnx::Base::Options
|
14
|
-
has_fields limit:
|
14
|
+
has_fields limit: to_args("--limit", :limit),
|
15
15
|
verbose: "-v",
|
16
16
|
stop_on_copy: to_tag(:stop_on_copy),
|
17
|
-
use_merge_history:
|
18
|
-
depth:
|
17
|
+
use_merge_history: to_tag(:use_merge_history),
|
18
|
+
depth: to_args("--depth", :depth)
|
19
19
|
has :revision, :url, :path
|
20
20
|
end
|
21
21
|
end
|
data/lib/svnx/merge/options.rb
CHANGED
@@ -10,9 +10,9 @@ end
|
|
10
10
|
|
11
11
|
module Svnx::Merge
|
12
12
|
class Options < Svnx::Base::Options
|
13
|
-
has_fields commit:
|
14
|
-
range:
|
15
|
-
accept:
|
13
|
+
has_fields commit: to_args("-c", :commit),
|
14
|
+
range: to_args("-r", :range),
|
15
|
+
accept: to_args("--accept", :accept),
|
16
16
|
from: nil,
|
17
17
|
to: nil
|
18
18
|
end
|
data/lib/svnx/propset/options.rb
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
module Svnx::Propset
|
12
12
|
class Options < Svnx::Base::Options
|
13
13
|
has_fields name: nil,
|
14
|
-
revision: Proc.new { |x| [ "--revprop", "-r", x.revision ] }
|
14
|
+
revision: Proc.new { |x| [ "--revprop", "-r", x.send(:revision) ] }
|
15
15
|
has :file
|
16
16
|
has_fields value: nil
|
17
17
|
has :url, :path
|
data/lib/svnx/version.rb
CHANGED
data/svnx.gemspec
CHANGED
@@ -27,9 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename f }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.
|
31
|
-
spec.
|
32
|
-
spec.
|
30
|
+
spec.add_dependency "command-cacheable", "~> 0.2"
|
31
|
+
spec.add_dependency "logue", ">= 1.0.16"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.10.3"
|
33
|
+
spec.add_dependency "rainbow", "~> 3.0.0"
|
33
34
|
|
34
35
|
spec.add_development_dependency "bundler", "~> 2.0"
|
35
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
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.7.
|
4
|
+
version: 2.7.2
|
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-08-
|
11
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: command-cacheable
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: logue
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.16
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.16
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.10.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rainbow
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.0.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|