git-multi 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 966d4a517f09e90fd7019b59e767bf98ca80762e0ea09a9b314bbd6bf03bfd2b
4
- data.tar.gz: 98b09aa608813ed8b0bdc2ae0718175af2442386adad5a88fb5db1d9efb0da80
3
+ metadata.gz: 93cde3e72f341136423fa1e1990e92ace46e948dfd8d6d2d4e6c13bce943b830
4
+ data.tar.gz: a17ad46a34d50b4cdd16e00fc51af79d4c5f1052ee510f1d34062e79807093cd
5
5
  SHA512:
6
- metadata.gz: fc09e60ab111875c99028fd1cabc811f575f0595646d636c29bda7f0bfd35514c494ad44ddb75827086595af9220259ea71617f2e2b0c7743af060220d64023d
7
- data.tar.gz: f29e79443b67655328b80fdcbe77927a327bc07cbba6f22e50f282ab308432dda71bc88917ce0c3d855b792d2c9d0da3c232cc7d1e0b6e52ff04bbfb7b31f6bf
6
+ metadata.gz: f0b71c4cb69ebcfc962a9ac7874395fad25b5f311dcd9ae8698f777dec0c13608d7a596e777bfb95a39addd2329dfa67bbda2a6f7a18538084febe798b0dcf2e
7
+ data.tar.gz: cb5190bef249a60e01b1acbf40adb97e5fad1f04f36250c12cad5d968588b27cf1d0b01a4416d9b68cf4fa021499e9a53568b3e9097915f8333a372bf43c1b4e
@@ -9,14 +9,14 @@ module Git
9
9
  end
10
10
 
11
11
  def check
12
- Settings.user_status(Git::Multi::USER)
13
- Settings.organization_status(Git::Multi::ORGANIZATIONS)
14
- Settings.token_status(Git::Multi::TOKEN)
12
+ # Settings.user_status(Git::Multi::USER)
13
+ # Settings.organization_status(Git::Multi::ORGANIZATIONS)
14
+ # Settings.token_status(Git::Multi::TOKEN)
15
15
  Settings.home_status(Git::Multi::HOME)
16
16
  Settings.main_workarea_status(Git::Multi::WORKAREA)
17
- Settings.user_workarea_status(Git::Multi::USER)
17
+ Settings.user_workarea_status(Git::Multi::USERS)
18
18
  Settings.organization_workarea_status(Git::Multi::ORGANIZATIONS)
19
- Settings.file_status(Git::Multi::REPOSITORIES)
19
+ # Settings.file_status(Git::Multi::REPOSITORIES)
20
20
  end
21
21
 
22
22
  def help
@@ -2,12 +2,16 @@ module Git
2
2
  module Multi
3
3
  PIM = <<~"PIM".freeze # gem post_install_message, used in git-multi.gemspec
4
4
 
5
- The required settings for \033[1mgit multi\33[0m are as follows:
5
+ The only required setting for \033[1mgit multi\33[0m is:
6
6
 
7
- \tgit config --global --add \033[1mgithub.user\033[0m <your_github_username>
8
- \tgit config --global --add \033[1mgithub.organizations\033[0m <your_github_orgs>
9
7
  \tgit config --global --add \033[1mgithub.token\033[0m <your_github_oauth_token>
10
8
 
9
+ The following settings for \033[1mgit multi\33[0m are
10
+ optional, and take 0, 1 or more values:
11
+
12
+ \tgit config --global --add \033[1mgithub.users\033[0m <list_of_github_users>
13
+ \tgit config --global --add \033[1mgithub.organizations\033[0m <list_of_github_orgs>
14
+
11
15
  Unless your top-level workarea is `${HOME}/Workarea` you should also set:
12
16
 
13
17
  \tgit config --global --add \033[1mgit.multi.workarea\033[0m <your_root_workarea>
@@ -76,8 +76,10 @@ module Git
76
76
  directory_status(['Workarea (main)', abbreviate(workarea, :home)], workarea)
77
77
  end
78
78
 
79
- def user_workarea_status(user)
80
- workarea_status("Workarea (user: #{user})", Git::Multi::WORKAREA, user)
79
+ def user_workarea_status(users)
80
+ users.each do |user|
81
+ workarea_status("Workarea (user: #{user})", Git::Multi::WORKAREA, user)
82
+ end
81
83
  end
82
84
 
83
85
  def organization_workarea_status(orgs)
@@ -6,7 +6,7 @@ require 'addressable'
6
6
  module Git
7
7
  module Multi
8
8
  NAME = 'git-multi'.freeze
9
- VERSION = '1.0.7'.freeze
9
+ VERSION = '1.0.8'.freeze
10
10
 
11
11
  DEPENDENCY_VERSIONS = [
12
12
  "octokit.rb v#{Octokit::VERSION}",
data/lib/git/multi.rb CHANGED
@@ -35,7 +35,7 @@ module Git
35
35
  CACHE = File.join(HOME, '.git', 'multi')
36
36
  REPOSITORIES = File.join(CACHE, 'repositories.byte')
37
37
 
38
- USER = git_option('github.user')
38
+ USERS = git_list('github.users')
39
39
  ORGANIZATIONS = git_list('github.organizations')
40
40
 
41
41
  MAN_PAGE = File.expand_path('../../man/git-multi.1', __dir__)
@@ -57,7 +57,7 @@ module Git
57
57
 
58
58
  def local_repositories
59
59
  (
60
- @local_user_repositories[USER] +
60
+ USERS.map { |user| @local_user_repositories[user] } +
61
61
  ORGANIZATIONS.map { |org| @local_org_repositories[org] }
62
62
  ).flatten
63
63
  end
@@ -68,7 +68,7 @@ module Git
68
68
 
69
69
  def github_repositories
70
70
  @github_repositories ||= (
71
- Git::Hub.user_repositories(USER) +
71
+ USERS.map { |user| Git::Hub.user_repositories(user) } +
72
72
  ORGANIZATIONS.map { |org| Git::Hub.org_repositories(org) }
73
73
  ).flatten
74
74
  end
data/man/git-multi.1 CHANGED
@@ -2,12 +2,12 @@
2
2
  .\" Title: git-multi
3
3
  .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
4
  .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5
- .\" Date: 10/06/2018
5
+ .\" Date: 10/08/2018
6
6
  .\" Manual: Git Manual
7
- .\" Source: Git 2.19.0.216.g2d3b1c576.dirty
7
+ .\" Source: Git 2.19.1.272.gf84b9b09d.dirty
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "GIT\-MULTI" "1" "10/06/2018" "Git 2\&.19\&.0\&.216\&.g2d3b1c" "Git Manual"
10
+ .TH "GIT\-MULTI" "1" "10/08/2018" "Git 2\&.19\&.1\&.272\&.gf84b9b" "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 \fBv1\&.0\&.7\fR of \fIgit multi\fR \&... hooray!
34
+ This is \fBv1\&.0\&.8\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:
data/man/git-multi.html CHANGED
@@ -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>v1.0.7</code> of <em>git multi</em> &#8230; hooray!</p></div>
751
+ <div class="paragraph"><p>This is <code>v1.0.8</code> of <em>git multi</em> &#8230; hooray!</p></div>
752
752
  </div>
753
753
  </div>
754
754
  <div class="sect1">
@@ -1179,7 +1179,7 @@ the <code>jq</code> command-line utility:
1179
1179
  <div id="footer">
1180
1180
  <div id="footer-text">
1181
1181
  Last updated
1182
- 2018-10-06 14:49:18 BST
1182
+ 2018-10-08 19:41:38 BST
1183
1183
  </div>
1184
1184
  </div>
1185
1185
  </body>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-multi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-06 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -109,13 +109,14 @@ homepage: https://github.com/pvdb/git-multi
109
109
  licenses:
110
110
  - MIT
111
111
  metadata: {}
112
- post_install_message: "\nThe required settings for \e[1mgit multi\e[0m are as follows:\n\n\tgit
113
- config --global --add \e[1mgithub.user\e[0m <your_github_username>\n\tgit config
114
- --global --add \e[1mgithub.organizations\e[0m <your_github_orgs>\n\tgit config --global
115
- --add \e[1mgithub.token\e[0m <your_github_oauth_token>\n\nUnless your top-level
116
- workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config --global --add
117
- \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using \e[1mgit multi\e[0m
118
- ... the ultimate multi-repo utility for git!\n\n"
112
+ post_install_message: "\nThe only required setting for \e[1mgit multi\e[0m is:\n\n\tgit
113
+ config --global --add \e[1mgithub.token\e[0m <your_github_oauth_token>\n\nThe following
114
+ settings for \e[1mgit multi\e[0m are\noptional, and take 0, 1 or more values:\n\n\tgit
115
+ config --global --add \e[1mgithub.users\e[0m <list_of_github_users>\n\tgit config
116
+ --global --add \e[1mgithub.organizations\e[0m <list_of_github_orgs>\n\nUnless your
117
+ top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config --global
118
+ --add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using \e[1mgit
119
+ multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
119
120
  rdoc_options: []
120
121
  require_paths:
121
122
  - lib