git-multi 4.0.1 → 5.0.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
- SHA1:
3
- metadata.gz: 51588224906aef318ed5a82707903308fb3b6893
4
- data.tar.gz: 0d7a81cb842e75eca9376a13b4208664f37b07f0
2
+ SHA256:
3
+ metadata.gz: 5005557fa2d73eb4101db22dd204c876c6188f39a91325fca56610fe0174d399
4
+ data.tar.gz: '08c86b9b8f3db86b7f9a1e13f9a7a649af8b586933a746f619c8e9d0fb3329ea'
5
5
  SHA512:
6
- metadata.gz: c8bf7f8f280a7c68c3dd3b4ba75bfb116a2d733fffd8c1f9f1def816c4ff5cea279a39737cd04ba75590634b955d616e225e32d8c0b7146583af9dfa93b06285
7
- data.tar.gz: f22a97171ca367bb483bc8a43b66adcdab6e07554378c51e33032344ab0176361e1cd6ab94be25ee9c47939ce2d6db982752b96731afd15d06094848ee9a9c43
6
+ metadata.gz: 864abb46e6adc5a22072b831631dcb1b5daedc45fcccbc8a0207ed47fb28896b183cca26efdb191771b5df7bc4c44265bb14af9c3cf6456bab6d05c4a708401c
7
+ data.tar.gz: 4aba904daae482a352e7aef74ad47bcaa5ee56085ea59f092a52c0d0bf92294e0db7e901f1e0d9f10c4c201943afea151bfecf099475cb32e08d9979b1d29a97
data/.pryrc CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'git/multi'
5
5
 
6
6
  # this loads all 'git multi' contribs
7
- Dir.glob File.join(__dir__, 'contrib', '*', '*.rb'), &method(:require)
7
+ Dir.glob File.join(__dir__, 'contrib', '**', '*.rb'), &method(:require)
8
8
 
9
9
  # configure a logger
10
10
  require 'logger'
@@ -28,15 +28,21 @@ end
28
28
 
29
29
  # utility function to set pry context
30
30
  # to an instance of <Octokit::Client>
31
- def client() pry(Git::Hub.send(:client)); end
31
+ def client
32
+ pry(Git::Hub.send(:client))
33
+ end
32
34
 
33
35
  # utility function to set pry context
34
36
  # to the Array of github repositories
35
- def repos() pry(Git::Multi.repositories); end
37
+ def repos
38
+ pry(Git::Multi.repositories)
39
+ end
36
40
 
37
41
  # utility function to set pry context
38
42
  # to the various 'git multi' commands:
39
- def cmds() pry(Git::Multi::Commands); end
43
+ def cmds
44
+ pry(Git::Multi::Commands)
45
+ end
40
46
 
41
47
  # utility function to set context
42
48
  # to the named github repository:
@@ -1,14 +1,11 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.6
3
+ NewCops: enable
3
4
  Exclude:
4
5
  - 'doc/*'
5
6
  - 'tmp/*'
6
7
  - 'pkg/*'
7
8
 
8
- Layout/EmptyLinesAroundClassBody:
9
- Enabled: false
10
- Layout/EmptyLinesAroundModuleBody:
11
- Enabled: false
12
9
  Layout/LineLength:
13
10
  Enabled: false
14
11
 
@@ -34,8 +31,7 @@ Style/NestedTernaryOperator:
34
31
  Enabled: false
35
32
  Style/RedundantBegin:
36
33
  Enabled: false
37
- Style/SingleLineMethods:
38
- Enabled: false
34
+
39
35
  Style/TrailingCommaInArguments:
40
36
  Enabled: false
41
37
  Style/TrailingCommaInArrayLiteral:
@@ -1 +1 @@
1
- 2.3.8
1
+ 2.6.6
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-multi (4.0.1)
5
- faraday (>= 0.9)
4
+ git-multi (5.0.0)
5
+ faraday (~> 1)
6
6
  octokit (~> 4)
7
7
 
8
8
  GEM
@@ -10,42 +10,47 @@ GEM
10
10
  specs:
11
11
  addressable (2.7.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
- ast (2.4.0)
14
- coderay (1.1.2)
15
- faraday (1.0.0)
13
+ ast (2.4.1)
14
+ coderay (1.1.3)
15
+ faraday (1.0.1)
16
16
  multipart-post (>= 1.2, < 3)
17
17
  interception (0.5)
18
- jaro_winkler (1.5.4)
19
- method_source (0.9.2)
20
- minitest (5.14.0)
18
+ method_source (1.0.0)
19
+ minitest (5.14.1)
21
20
  multipart-post (2.1.1)
22
- octokit (4.15.0)
21
+ octokit (4.18.0)
23
22
  faraday (>= 0.9)
24
23
  sawyer (~> 0.8.0, >= 0.5.3)
25
- parallel (1.19.1)
26
- parser (2.7.0.2)
27
- ast (~> 2.4.0)
28
- pry (0.12.2)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
31
- pry-rescue (1.5.0)
24
+ parallel (1.19.2)
25
+ parser (2.7.1.4)
26
+ ast (~> 2.4.1)
27
+ pry (0.13.1)
28
+ coderay (~> 1.1)
29
+ method_source (~> 1.0)
30
+ pry-rescue (1.5.1)
32
31
  interception (>= 0.5)
33
32
  pry (>= 0.12.0)
34
- public_suffix (4.0.3)
33
+ public_suffix (4.0.5)
35
34
  rainbow (3.0.0)
36
35
  rake (13.0.1)
37
- rubocop (0.79.0)
38
- jaro_winkler (~> 1.5.1)
36
+ regexp_parser (1.7.1)
37
+ rexml (3.2.4)
38
+ rubocop (0.85.1)
39
39
  parallel (~> 1.10)
40
40
  parser (>= 2.7.0.1)
41
41
  rainbow (>= 2.2.2, < 4.0)
42
+ regexp_parser (>= 1.7)
43
+ rexml
44
+ rubocop-ast (>= 0.0.3)
42
45
  ruby-progressbar (~> 1.7)
43
- unicode-display_width (>= 1.4.0, < 1.7)
46
+ unicode-display_width (>= 1.4.0, < 2.0)
47
+ rubocop-ast (0.0.3)
48
+ parser (>= 2.7.0.1)
44
49
  ruby-progressbar (1.10.1)
45
50
  sawyer (0.8.2)
46
51
  addressable (>= 2.3.5)
47
52
  faraday (> 0.8, < 2.0)
48
- unicode-display_width (1.6.1)
53
+ unicode-display_width (1.7.0)
49
54
 
50
55
  PLATFORMS
51
56
  ruby
@@ -11,8 +11,8 @@ if !STDIN.tty?
11
11
  multi_repo = STDIN.readlines.map(&:strip).map(&:freeze).freeze
12
12
  # reopen STDIN (to ensure all `Kernel.system` based cmds work)
13
13
  STDIN.reopen('/dev/tty')
14
- elsif (command = ARGV.shift)&.start_with? '++'
15
- multi_repo = command[2..-1]
14
+ elsif (command = ARGV.shift)&.start_with?('++')
15
+ multi_repo = command.delete('++')
16
16
  command = nil
17
17
  end
18
18
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.post_install_message = Git::Multi::PIM
27
27
 
28
- spec.add_dependency 'faraday', '>= 0.9'
28
+ spec.add_dependency 'faraday', '~> 1'
29
29
  spec.add_dependency 'octokit', '~> 4'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
@@ -1,9 +1,9 @@
1
1
  class Dir
2
2
  def git_repos(subdir = '*')
3
3
  Dir.glob(File.join(path, subdir, '*', '.git')).map { |path_to_git_dir|
4
- path_to_git_repo = File.dirname(path_to_git_dir) # without "/.git"
5
- repo_name = path_to_git_repo[%r{[^\/]+\/[^\/]+\z}] # e.g. "pvdb/git-multi"
6
- def repo_name.full_name() self; end
4
+ path_to_git_repo = File.dirname(path_to_git_dir) # without "/.git"
5
+ repo_name = path_to_git_repo[%r{[^/]+/[^/]+\z}] # e.g. "pvdb/git-multi"
6
+ def repo_name.full_name() self; end # rubocop:disable Style/SingleLineMethods
7
7
  repo_name
8
8
  }
9
9
  end
@@ -1,7 +1,6 @@
1
- # rubocop:disable Layout/EmptyLineBetweenDefs
2
-
3
1
  class String
4
-
2
+ # rubocop:disable Layout/EmptyLineBetweenDefs
3
+ # rubocop:disable Style/SingleLineMethods
5
4
  def colorize(color_code) "\e[#{color_code}m#{self}\e[0m"; end
6
5
 
7
6
  def bold() colorize('1'); end
@@ -12,7 +11,6 @@ class String
12
11
  def green() colorize('32'); end
13
12
 
14
13
  def undent() gsub(/^.{#{slice(/^ +/).length}}/, ''); end
15
-
14
+ # rubocop:enable Style/SingleLineMethods
15
+ # rubocop:enable Layout/EmptyLineBetweenDefs
16
16
  end
17
-
18
- # rubocop:enable Layout/EmptyLineBetweenDefs
@@ -2,10 +2,10 @@ require 'octokit'
2
2
 
3
3
  begin
4
4
  require 'net/http/persistent'
5
- Octokit.middleware.swap(
6
- Faraday::Adapter::NetHttp, # default Faraday adapter
7
- Faraday::Adapter::NetHttpPersistent # experimental Faraday adapter
8
- )
5
+ if Octokit.middleware.adapter == Faraday::Adapter::NetHttp
6
+ adapter = Faraday::RackBuilder::Handler.new(Faraday::Adapter::NetHttpPersistent)
7
+ Octokit.middleware.instance_variable_set(:'@adapter', adapter)
8
+ end
9
9
  rescue LoadError
10
10
  # NOOP - `Net::HTTP::Persistent` is optional, so
11
11
  # if the gem isn't installed, then we run with the
@@ -16,7 +16,6 @@ end
16
16
 
17
17
  module Git
18
18
  module Hub
19
-
20
19
  module_function
21
20
 
22
21
  def client
@@ -104,6 +103,5 @@ module Git
104
103
  # type can be one of: all, public, private, forks, sources, member
105
104
  @org_repositories[[org, type]]
106
105
  end
107
-
108
106
  end
109
107
  end
@@ -139,7 +139,6 @@ module Git
139
139
  #
140
140
 
141
141
  module Nike
142
-
143
142
  # rubocop:disable Metrics/PerceivedComplexity
144
143
  # rubocop:disable Metrics/CyclomaticComplexity
145
144
  def just_do_it(interactive, pipelined, captured = nil, options = {})
@@ -182,7 +181,6 @@ module Git
182
181
  end
183
182
  end
184
183
  end
185
-
186
184
  end
187
185
 
188
186
  def repositories
@@ -293,6 +291,5 @@ module Git
293
291
  File.directory? repo.local_path
294
292
  }
295
293
  end
296
-
297
294
  end
298
295
  end
@@ -1,7 +1,6 @@
1
1
  module Git
2
2
  module Multi
3
3
  module Commands
4
-
5
4
  module_function
6
5
 
7
6
  def version
@@ -203,7 +202,6 @@ module Git
203
202
  end
204
203
 
205
204
  private_class_method :system
206
-
207
205
  end
208
206
  end
209
207
  end
@@ -1,6 +1,5 @@
1
1
  module Git
2
2
  module Multi
3
-
4
3
  module_function
5
4
 
6
5
  def local_option(path, name, default = nil)
@@ -26,6 +25,5 @@ module Git
26
25
  value = ENV[name]
27
26
  (value.nil? || value.empty?) && default ? default : value
28
27
  end
29
-
30
28
  end
31
29
  end
@@ -1,7 +1,6 @@
1
1
  module Git
2
2
  module Multi
3
3
  module Report
4
-
5
4
  TICK = ['2714'.hex].pack('U*').green.freeze
6
5
  CROSS = ['2718'.hex].pack('U*').red.freeze
7
6
  ARROW = ['2794'.hex].pack('U*').blue.freeze
@@ -77,7 +76,7 @@ module Git
77
76
  elsif token.empty?
78
77
  '(empty)'
79
78
  else
80
- "#{'*' * 36}#{token[36..-1]}"
79
+ "#{'*' * 36}#{token[36..]}"
81
80
  end
82
81
  end
83
82
 
@@ -128,7 +127,6 @@ module Git
128
127
  false
129
128
  )
130
129
  end
131
-
132
130
  end
133
131
  end
134
132
  end
@@ -1,7 +1,7 @@
1
1
  module Git
2
2
  module Multi
3
3
  NAME = 'git-multi'.freeze
4
- VERSION = '4.0.1'.freeze
4
+ VERSION = '5.0.0'.freeze
5
5
 
6
6
  def self.version
7
7
  "#{NAME} v#{VERSION}"
@@ -1,13 +1,13 @@
1
1
  '\" t
2
2
  .\" Title: git-multi
3
- .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
- .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5
- .\" Date: 01/27/2020
3
+ .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4
+ .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5
+ .\" Date: 06/20/2020
6
6
  .\" Manual: Git Manual
7
- .\" Source: Git 2.23.0.606.g08da6496b6.dirty
7
+ .\" Source: Git 2.27.0.112.g101b3204f3.dirty
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "GIT\-MULTI" "1" "01/27/2020" "Git 2\&.23\&.0\&.606\&.g08da64" "Git Manual"
10
+ .TH "GIT\-MULTI" "1" "06/20/2020" "Git 2\&.27\&.0\&.112\&.g101b32" "Git Manual"
11
11
  .\" -----------------------------------------------------------------
12
12
  .\" * Define some portability stuff
13
13
  .\" -----------------------------------------------------------------
@@ -31,7 +31,7 @@
31
31
  git-multi \- execute the same git command in multiple repositories
32
32
  .SH "VERSION"
33
33
  .sp
34
- This is \fBv4\&.0\&.1\fR of \fIgit multi\fR \&... hooray!
34
+ This is \fBv5\&.0\&.0\fR of \fIgit multi\fR \&... hooray!
35
35
  .SH "SYNOPSIS"
36
36
  .sp
37
37
  There are some options for \fBgit multi\fR itself, in which case it is invoked as follows:
@@ -4,7 +4,7 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
7
- <meta name="generator" content="AsciiDoc 8.6.10" />
7
+ <meta name="generator" content="AsciiDoc 9.0.0" />
8
8
  <title>git-multi(1)</title>
9
9
  <style type="text/css">
10
10
  /* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -436,7 +436,7 @@ thead, p.table.header {
436
436
  p.table {
437
437
  margin-top: 0;
438
438
  }
439
- /* Because the table frame attribute is overriden by CSS in most browsers. */
439
+ /* Because the table frame attribute is overridden by CSS in most browsers. */
440
440
  div.tableblock > table[frame="void"] {
441
441
  border-style: none;
442
442
  }
@@ -748,7 +748,7 @@ git-multi(1) Manual Page
748
748
  <div class="sect1">
749
749
  <h2 id="_version">VERSION</h2>
750
750
  <div class="sectionbody">
751
- <div class="paragraph"><p>This is <code>v4.0.1</code> of <em>git multi</em> &#8230; hooray!</p></div>
751
+ <div class="paragraph"><p>This is <code>v5.0.0</code> of <em>git multi</em> &#8230; hooray!</p></div>
752
752
  </div>
753
753
  </div>
754
754
  <div class="sect1">
@@ -1222,7 +1222,7 @@ the jq command-line utility:
1222
1222
  <div id="footer">
1223
1223
  <div id="footer-text">
1224
1224
  Last updated
1225
- 2020-01-27 10:19:18 GMT
1225
+ 2020-06-20 07:51:21 BST
1226
1226
  </div>
1227
1227
  </div>
1228
1228
  </body>
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-multi
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2020-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,9 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.5.2.3
193
- signing_key:
191
+ rubygems_version: 3.0.3
192
+ signing_key:
194
193
  specification_version: 4
195
194
  summary: The ultimate multi-repo utility for git!
196
195
  test_files: []