svnx 2.12.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svnx/merge/options.rb +3 -5
- data/lib/svnx/project.rb +4 -59
- data/lib/svnx/propget/options.rb +1 -1
- data/lib/svnx/version.rb +1 -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: f98b4fa81ad8c5b9bf416f13852b1a67834da1b4
|
4
|
+
data.tar.gz: dac79326ace98a5f5f09ce621eee54b0af77de02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d455288c34debd96c2cd7fa8d1c821978ff097b835e93211d0c3ecbc82c2cd507f542f752a0d9b38fc375a81601dbba02bda8df6ac29af839d64e7b0ad5ff390
|
7
|
+
data.tar.gz: 5367fcd349b41599f9a8d7b5b02e8d2034fb865bc268a49df0d0a5aa6cc56c5b3776ad2594d18b33be29f1c8003dc11534b86124de431d2a0b437333a0d99ca8
|
data/lib/svnx/merge/options.rb
CHANGED
@@ -10,10 +10,8 @@ end
|
|
10
10
|
|
11
11
|
module Svnx::Merge
|
12
12
|
class Options < Svnx::Base::Options
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
from: nil,
|
17
|
-
to: nil
|
13
|
+
has_tag_argument :change, :revision, :accept
|
14
|
+
has_fields from: nil,
|
15
|
+
to: nil
|
18
16
|
end
|
19
17
|
end
|
data/lib/svnx/project.rb
CHANGED
@@ -1,68 +1,13 @@
|
|
1
1
|
#!/usr/bin/ruby -w
|
2
2
|
# -*- ruby -*-
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
$stderr.puts "Svnx::Project deprecated for naming; use Svnx::Exec instead"
|
5
|
+
|
6
|
+
require 'svnx/exec'
|
6
7
|
|
7
8
|
# A low-level wrapper around the Svnx commands, converting arguments (svnx/<command>/options) into
|
8
9
|
# entries (svnx/<command>/entry) or output. Enhances the low level functionality.
|
9
10
|
|
10
|
-
class Svnx::Project
|
11
|
-
attr_reader :dir
|
12
|
-
|
13
|
-
def initialize dir: nil, url: nil, cmdlinecls: nil
|
14
|
-
@dir = dir
|
15
|
-
@url = url
|
16
|
-
@cmdlinecls = cmdlinecls
|
17
|
-
end
|
18
|
-
|
19
|
-
def where
|
20
|
-
@url || @dir
|
21
|
-
end
|
22
|
-
|
23
|
-
def url
|
24
|
-
@url ||= begin
|
25
|
-
entries = info
|
26
|
-
entries && entries[0].url
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def path
|
31
|
-
info.path
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.add_delegator cmd
|
35
|
-
require "svnx/#{cmd}/command"
|
36
|
-
require "svnx/#{cmd}/options"
|
37
|
-
|
38
|
-
modname = Kernel.const_get "Svnx::" + cmd.to_s.capitalize
|
39
|
-
initargs = { url: "@url", path: "@dir", paths: "[ @dir ]" }
|
40
|
-
optcls = modname::Options
|
41
|
-
opts = optcls.new Hash.new
|
42
|
-
fields = opts.fields.keys
|
43
|
-
params = fields.collect { |key| key.to_s + ": " + (initargs[key] || "nil") }.join ", "
|
44
|
-
cmdargs = fields.collect { |key| key.to_s + ": " + key.to_s }.join ", "
|
45
|
-
|
46
|
-
src = Array.new.tap do |a|
|
47
|
-
a << "def #{cmd} #{params}, cmdlinecls: @cmdlinecls"
|
48
|
-
a << " svncmd = #{modname}::Command.new({ #{cmdargs} }, cmdlinecls: cmdlinecls)"
|
49
|
-
a << " svncmd.respond_to?(:entries) ? svncmd.entries : svncmd.output"
|
50
|
-
a << "end"
|
51
|
-
end.join "\n"
|
52
|
-
|
53
|
-
class_eval src
|
54
|
-
end
|
55
|
-
|
56
|
-
add_delegator :commit
|
57
|
-
add_delegator :diff
|
58
|
-
add_delegator :info
|
59
|
-
add_delegator :log
|
60
|
-
add_delegator :propget
|
61
|
-
add_delegator :propset
|
62
|
-
add_delegator :update
|
63
|
-
|
64
|
-
def to_s
|
65
|
-
where.to_s
|
66
|
-
end
|
11
|
+
class Svnx::Project < Svnx::Exec
|
67
12
|
end
|
68
13
|
|
data/lib/svnx/propget/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.14.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-
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: command-cacheable
|