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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af7831460d0a7cf194803286b08e91c66352cd09
4
- data.tar.gz: 524c096737fc930fa597a455efc04e02fa2fd661
3
+ metadata.gz: f98b4fa81ad8c5b9bf416f13852b1a67834da1b4
4
+ data.tar.gz: dac79326ace98a5f5f09ce621eee54b0af77de02
5
5
  SHA512:
6
- metadata.gz: 7033404d1c9507cd1ac59c3d110e0e42a064d36952ab5bc4cf24d2cdec225feea2f85d05ca4125bd75c04c0eaa83e43b69b4c2244b8dbb7c4edb7c74eb6118f0
7
- data.tar.gz: 198c69b523aa7cc2b0ea465aac9dba564918edc95e32d68160c6450cec46d1ce6ac987af251f84f67a5906566266c82edcb3659880d59e8cc8136a043ebeafc5
6
+ metadata.gz: d455288c34debd96c2cd7fa8d1c821978ff097b835e93211d0c3ecbc82c2cd507f542f752a0d9b38fc375a81601dbba02bda8df6ac29af839d64e7b0ad5ff390
7
+ data.tar.gz: 5367fcd349b41599f9a8d7b5b02e8d2034fb865bc268a49df0d0a5aa6cc56c5b3776ad2594d18b33be29f1c8003dc11534b86124de431d2a0b437333a0d99ca8
@@ -10,10 +10,8 @@ end
10
10
 
11
11
  module Svnx::Merge
12
12
  class Options < Svnx::Base::Options
13
- has_fields commit: to_args("-c", :commit),
14
- range: to_args("-r", :range),
15
- accept: to_args("--accept", :accept),
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
@@ -1,68 +1,13 @@
1
1
  #!/usr/bin/ruby -w
2
2
  # -*- ruby -*-
3
3
 
4
- module Svnx
5
- end
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
 
@@ -11,7 +11,7 @@ end
11
11
  module Svnx::Propget
12
12
  class Options < Svnx::Base::Options
13
13
  has_tag_field :revprop
14
- has :revision, :url, :path
15
14
  has_field :name, nil
15
+ has :revision, :url, :path
16
16
  end
17
17
  end
@@ -3,5 +3,5 @@
3
3
 
4
4
  module Svnx
5
5
  NAME = 'svnx'
6
- VERSION = '2.12.0'
6
+ VERSION = '2.14.0'
7
7
  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: 2.12.0
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-09-02 00:00:00.000000000 Z
11
+ date: 2019-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: command-cacheable