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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efa7ac9d66ff0fccb1677b36b5c09af3336531b9
4
- data.tar.gz: 330d83eeccec6b97006895f25492203cca0229fd
3
+ metadata.gz: 759f64ff2fb82a12e58b4ae33be6f1ab5df391af
4
+ data.tar.gz: e319aced5f94a6447b1304e3684102427d111a73
5
5
  SHA512:
6
- metadata.gz: 8ac35abce7e13bcaa25da8f999bc96a6545571edb3f4d2e638700e8e2909132b70c5e2b9a0abe643765de2a3452d38c10006a82f2456351473275a2e59e3fbb3
7
- data.tar.gz: 863f9b79dafd6541d62e52d1ca0e08ec50487db4a559b61a267c3ef803becfcfd05598bc8a9d70909ec43b5c2eb689ef6d5ed5a1d5b52d65abe8633abfb239ee
6
+ metadata.gz: b9307ee3595171bf6490a8b974e274ca95dd35a40a59e7ca48c2d0019ce0f77afc0da3fb554be80288a45da10a8f7c583954e9a9ac34f57efd5c8ed2843daf97
7
+ data.tar.gz: c3d7e0bbf22495b43c0db7d506bf3a941753a2085cd689cb0644d83135068b898ca12cfd2f5d3a6616791859df71db74f5333c48dc3ab7342530b2f36e8d7bd4
@@ -17,7 +17,7 @@ module Svnx::Base
17
17
  def mapping field
18
18
  case field
19
19
  when :revision
20
- Proc.new { |x| [ "-r", x.send(:revision) ] }
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
- Proc.new { |x| [ "--file", x.file ] }
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
@@ -11,5 +11,6 @@ end
11
11
  module Svnx::Commit
12
12
  class Options < Svnx::Base::Options
13
13
  has :file, :paths
14
+ has_fields with_revprop: to_args("--with-revprop", :with_revprop)
14
15
  end
15
16
  end
@@ -10,10 +10,10 @@ end
10
10
 
11
11
  module Svnx::Diff
12
12
  class Options < Svnx::Base::Options
13
- has_fields commit: Proc.new { |x| [ "-c", x.commit ] },
13
+ has_fields commit: to_args("-c", :commit),
14
14
  ignoreproperties: "--ignore-properties",
15
- depth: Proc.new { |x| [ "--depth", x.depth ] }
16
-
15
+ depth: to_args("--depth", :depth)
16
+
17
17
  has :ignorewhitespace, :paths, :url
18
18
  end
19
19
  end
@@ -11,11 +11,11 @@ end
11
11
 
12
12
  module Svnx::Log
13
13
  class Options < Svnx::Base::Options
14
- has_fields limit: Proc.new { |x| [ "--limit", x.send(: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: "--use-merge-history",
18
- depth: Proc.new { |x| [ "--depth", x.send(: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
@@ -10,9 +10,9 @@ end
10
10
 
11
11
  module Svnx::Merge
12
12
  class Options < Svnx::Base::Options
13
- has_fields commit: Proc.new { |x| [ "-c", x.commit ] },
14
- range: Proc.new { |x| [ "-r", x.range ] },
15
- accept: Proc.new { |x| [ "--accept", x.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
@@ -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
@@ -3,5 +3,5 @@
3
3
 
4
4
  module Svnx
5
5
  NAME = 'svnx'
6
- VERSION = '2.7.1'
6
+ VERSION = '2.7.2'
7
7
  end
@@ -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.add_runtime_dependency "command-cacheable", "~> 0.2"
31
- spec.add_runtime_dependency "logue", "~> 1.0.16"
32
- spec.add_runtime_dependency "nokogiri", "~> 1.10.3"
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.1
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-07 00:00:00.000000000 Z
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