git-multi 1.2.1 → 2.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
2
  SHA256:
3
- metadata.gz: 6af6353cc4f6c4e5ad93490b27e19b4ad7c359b12aedeea3ea489d7ffded2c8c
4
- data.tar.gz: b3c62ae543ce6d46e7f3da8f7647988115dc03f6da09634d40d7ad71612ec34e
3
+ metadata.gz: 64099842d760a6707023b63b428934a14ab4f07e146db6e39818008a77d2b827
4
+ data.tar.gz: c8c664a4cc5c837cb99102b14bbc706acbe04f7d7adf1b3ceea5e570255f69f8
5
5
  SHA512:
6
- metadata.gz: e54ff429c6bd5865a1d717d943cc97d1e7436d35d07798ff3b62673c64b72d5056bd2ea331fec7a5ae63dd502aa2271738655c4942dea8666e77061a2344795a
7
- data.tar.gz: 76544193d3d55ea41b1d2c9328461bc9b2c5a6869f55f4847a6e8a1ab9f7185e23b9a7a6d80f6b4f3f0173a64313614da43fd57ff32efcd94d722e93386d3763
6
+ metadata.gz: ba020b0a40bc31977567375f0812fa7a33953de174cc5276c23b328bebb567ebd025869daf1d4fb2b148a5b8bd8e7e109dd1e6da6b3536965f3d61ddfc850493
7
+ data.tar.gz: b5e5cf66109a7b3df7f7b9f8976560f43f8a45d17c2e60b6ba3024399b12088c8d44fb7833537242610a90267d95b9e61ffab62622ab3f4b4d0061f1d31b059e
@@ -1,6 +1,6 @@
1
1
  module Git
2
2
  module Multi
3
- PIM = <<~"PIM".freeze # gem post_install_message, used in git-multi.gemspec
3
+ PIM = <<~"PIM".freeze
4
4
 
5
5
  The only required setting for \033[1mgit multi\33[0m is:
6
6
 
@@ -9,8 +9,8 @@ module Git
9
9
  The following settings for \033[1mgit multi\33[0m are
10
10
  optional, and take 0, 1 or more values:
11
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>
12
+ \tgit config --global --add \033[1mgit.multi.users\033[0m <list_of_github_users>
13
+ \tgit config --global --add \033[1mgit.multi.organizations\033[0m <list_of_github_orgs>
14
14
 
15
15
  Unless your top-level workarea is `${HOME}/Workarea` you should also set:
16
16
 
@@ -11,13 +11,7 @@ module Git
11
11
  def setting_status(messages, valid = false, optional = true)
12
12
  fields = messages.compact.join(' - ')
13
13
  icon = valid ? TICK : optional ? ARROW : CROSS
14
- if interactive?
15
- print " #{fields}"
16
- sleep 0.66
17
- puts "\x0d#{icon}"
18
- else
19
- puts "#{icon} #{fields}"
20
- end
14
+ puts "#{icon} #{fields}"
21
15
  end
22
16
 
23
17
  def file_status(file, message = 'File')
@@ -46,7 +40,7 @@ module Git
46
40
  message,
47
41
  File.join(abbreviate(workarea, :workarea), owner),
48
42
  ],
49
- workarea
43
+ File.join(workarea, owner)
50
44
  )
51
45
 
52
46
  github_count = Git::Multi.repositories_for(owner).count
@@ -81,11 +75,11 @@ module Git
81
75
  end
82
76
 
83
77
  def home_status(home)
84
- directory_status(['Home', home], home)
78
+ directory_status(['${HOME}', home], home)
85
79
  end
86
80
 
87
81
  def main_workarea_status(workarea)
88
- directory_status(['Workarea (main)', abbreviate(workarea, :home)], workarea)
82
+ directory_status(['${WORKAREA}', abbreviate(workarea, :home)], workarea)
89
83
  end
90
84
 
91
85
  def user_workarea_status(users)
@@ -6,7 +6,7 @@ require 'addressable'
6
6
  module Git
7
7
  module Multi
8
8
  NAME = 'git-multi'.freeze
9
- VERSION = '1.2.1'.freeze
9
+ VERSION = '2.0.0'.freeze
10
10
 
11
11
  DEPENDENCY_VERSIONS = [
12
12
  "octokit.rb v#{Octokit::VERSION}",
data/lib/git/multi.rb CHANGED
@@ -34,8 +34,8 @@ module Git
34
34
  CACHE = File.join(HOME, '.git', 'multi')
35
35
  REPOSITORIES = File.join(CACHE, 'repositories.byte')
36
36
 
37
- USERS = git_list('github.users')
38
- ORGANIZATIONS = git_list('github.organizations')
37
+ USERS = git_list('git.multi.users')
38
+ ORGANIZATIONS = git_list('git.multi.organizations')
39
39
 
40
40
  MAN_PAGE = File.expand_path('../../man/git-multi.1', __dir__)
41
41
  HTML_PAGE = File.expand_path('../../man/git-multi.html', __dir__)
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: 11/09/2018
5
+ .\" Date: 11/10/2018
6
6
  .\" Manual: Git Manual
7
7
  .\" Source: Git 2.19.1.542.gc4df23f792.dirty
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "GIT\-MULTI" "1" "11/09/2018" "Git 2\&.19\&.1\&.542\&.gc4df23" "Git Manual"
10
+ .TH "GIT\-MULTI" "1" "11/10/2018" "Git 2\&.19\&.1\&.542\&.gc4df23" "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\&.2\&.1\fR of \fIgit multi\fR \&... hooray!
34
+ This is \fBv2\&.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:
@@ -63,11 +63,11 @@ and\&...
63
63
  .sp
64
64
  .SH "DESCRIPTION"
65
65
  .sp
66
- Convenient way to execute the same git command in a set of related repos, currently the repositories of a GitHub user, incl\&. the organizations they are a member of\&.
66
+ Convenient way to execute the same git command in a set of related repositories, which could be all GitHub repos for a given user, or all repos for a given GitHub organization\&.
67
67
  .sp
68
- The list of repositories is determined via a GitHub API v3 call, and cached locally \fI(in binary format)\fR for performance and offline usage\&.
68
+ Multipe users and organizations can be configured, and by default \fBgit multi\fR operates on all repositories for all users and all orgs; to limit the operation to a single user or a single org, the optional \fB++<multi_repo>\fR argument can be used\&.
69
69
  .sp
70
- By default, \fBgit multi\fR operates on all repositories for all configured users and all configured organizations\&. To limit the operation to a single user or a single organization, the optional \fB++<multi_repo>\fR argument can be used\&.
70
+ The list of repos for a user or an org is determined via a GitHub API v3 call and cached locally \fI(in binary format)\fR for performance and offline usage\&.
71
71
  .SH "OPTIONS"
72
72
  .PP
73
73
  \-\-version
data/man/git-multi.erb CHANGED
@@ -41,16 +41,17 @@ and...
41
41
  DESCRIPTION
42
42
  -----------
43
43
 
44
- Convenient way to execute the same git command in a set of related repos,
45
- currently the repositories of a GitHub user, incl. the organizations they
46
- are a member of.
44
+ Convenient way to execute the same git command in a set of related
45
+ repositories, which could be all GitHub repos for a given user, or
46
+ all repos for a given GitHub organization.
47
47
 
48
- The list of repositories is determined via a GitHub API v3 call, and
49
- cached locally '(in binary format)' for performance and offline usage.
48
+ Multipe users and organizations can be configured, and by default
49
+ `git multi` operates on all repositories for all users and all orgs;
50
+ to limit the operation to a single user or a single org, the optional
51
+ `++<multi_repo>` argument can be used.
50
52
 
51
- By default, `git multi` operates on all repositories for all configured users
52
- and all configured organizations. To limit the operation to a single user or
53
- a single organization, the optional `++<multi_repo>` argument can be used.
53
+ The list of repos for a user or an org is determined via a GitHub API v3 call
54
+ and cached locally '(in binary format)' for performance and offline usage.
54
55
 
55
56
  OPTIONS
56
57
  -------
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.2.1</code> of <em>git multi</em> &#8230; hooray!</p></div>
751
+ <div class="paragraph"><p>This is <code>v2.0.0</code> of <em>git multi</em> &#8230; hooray!</p></div>
752
752
  </div>
753
753
  </div>
754
754
  <div class="sect1">
@@ -783,14 +783,15 @@ argument to limit the operation to the list of repositories in the referenced
783
783
  <div class="sect1">
784
784
  <h2 id="_description">DESCRIPTION</h2>
785
785
  <div class="sectionbody">
786
- <div class="paragraph"><p>Convenient way to execute the same git command in a set of related repos,
787
- currently the repositories of a GitHub user, incl. the organizations they
788
- are a member of.</p></div>
789
- <div class="paragraph"><p>The list of repositories is determined via a GitHub API v3 call, and
790
- cached locally <em>(in binary format)</em> for performance and offline usage.</p></div>
791
- <div class="paragraph"><p>By default, <code>git multi</code> operates on all repositories for all configured users
792
- and all configured organizations. To limit the operation to a single user or
793
- a single organization, the optional <code>++&lt;multi_repo&gt;</code> argument can be used.</p></div>
786
+ <div class="paragraph"><p>Convenient way to execute the same git command in a set of related
787
+ repositories, which could be all GitHub repos for a given user, or
788
+ all repos for a given GitHub organization.</p></div>
789
+ <div class="paragraph"><p>Multipe users and organizations can be configured, and by default
790
+ <code>git multi</code> operates on all repositories for all users and all orgs;
791
+ to limit the operation to a single user or a single org, the optional
792
+ <code>++&lt;multi_repo&gt;</code> argument can be used.</p></div>
793
+ <div class="paragraph"><p>The list of repos for a user or an org is determined via a GitHub API v3 call
794
+ and cached locally <em>(in binary format)</em> for performance and offline usage.</p></div>
794
795
  </div>
795
796
  </div>
796
797
  <div class="sect1">
@@ -1200,7 +1201,7 @@ the <code>jq</code> command-line utility:
1200
1201
  <div id="footer">
1201
1202
  <div id="footer-text">
1202
1203
  Last updated
1203
- 2018-11-09 16:43:35 GMT
1204
+ 2018-11-10 08:44:16 GMT
1204
1205
  </div>
1205
1206
  </div>
1206
1207
  </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.2.1
4
+ version: 2.0.0
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-11-09 00:00:00.000000000 Z
11
+ date: 2018-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -111,11 +111,11 @@ metadata: {}
111
111
  post_install_message: "\nThe only required setting for \e[1mgit multi\e[0m is:\n\n\tgit
112
112
  config --global --add \e[1mgithub.token\e[0m <your_github_oauth_token>\n\nThe following
113
113
  settings for \e[1mgit multi\e[0m are\noptional, and take 0, 1 or more values:\n\n\tgit
114
- config --global --add \e[1mgithub.users\e[0m <list_of_github_users>\n\tgit config
115
- --global --add \e[1mgithub.organizations\e[0m <list_of_github_orgs>\n\nUnless your
116
- top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config --global
117
- --add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using \e[1mgit
118
- multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
114
+ config --global --add \e[1mgit.multi.users\e[0m <list_of_github_users>\n\tgit config
115
+ --global --add \e[1mgit.multi.organizations\e[0m <list_of_github_orgs>\n\nUnless
116
+ your top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config
117
+ --global --add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using
118
+ \e[1mgit multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
119
119
  rdoc_options: []
120
120
  require_paths:
121
121
  - lib