git-multi 2.4.0 → 2.5.0

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
- SHA1:
3
- metadata.gz: b318cfa926df6a1166ae8dfe09584a23dd31b394
4
- data.tar.gz: 85f8eec214d92a50065197275e7fdff093896fa4
2
+ SHA256:
3
+ metadata.gz: 1f9a895a73ee5149dcd5480e9ee663fc7c119029e411260d56801a4d45c888dc
4
+ data.tar.gz: b577e204634215bbe64c6619b5f1bdab83f17eea91a27cdee8d034263da4650a
5
5
  SHA512:
6
- metadata.gz: d51a1472f58f1c3e3f144a80fc62f5a2f143e9faa640e799158af4bc9102d7b27f3d533ae3c1120607f490f5052394b80d1fae4b76ea0d6084eb6ff88158ae99
7
- data.tar.gz: 235025ca8590485a5e2933609ff4aa5dfec13ec3af1edac7e35c2726cb50ecedb5a9f91ef914127e8ae85d6d2aa954858af80e76d44a16fc5aa087a7c4cbb12b
6
+ metadata.gz: c42ac386eab76a161da343af5af216de62844cc479af83b996e57d8eed3cfb25e645cb107630f579b8c911e3d064e064a53c91271e854590ca5398ae3ada7261
7
+ data.tar.gz: b538d11e2aa3f4336254d46b9d8e3209d86a64c013104e28e1c6c404fac491125a327ee8ad50878cca11866b10cd9cf8a4471ff35dfe5a32e95806536a9966a9
data/lib/git/multi.rb CHANGED
@@ -159,6 +159,20 @@ module Git
159
159
  end
160
160
  end
161
161
 
162
+ def spputs(*args)
163
+ # split, prefix and puts
164
+ args.each do |arg|
165
+ case arg
166
+ when Array
167
+ arg.each do |argh| puts("#{full_name}: #{argh}"); end
168
+ when String
169
+ spputs(arg.split($RS))
170
+ else
171
+ ssputs(arg.to_s)
172
+ end
173
+ end
174
+ end
175
+
162
176
  end
163
177
 
164
178
  def repositories
@@ -1,6 +1,6 @@
1
1
  module Git
2
2
  module Multi
3
3
  NAME = 'git-multi'.freeze
4
- VERSION = '2.4.0'.freeze
4
+ VERSION = '2.5.0'.freeze
5
5
  end
6
6
  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: 11/13/2018
5
+ .\" Date: 01/23/2019
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/13/2018" "Git 2\&.19\&.1\&.542\&.gc4df23" "Git Manual"
10
+ .TH "GIT\-MULTI" "1" "01/23/2019" "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 \fBv2\&.4\&.0\fR of \fIgit multi\fR \&... hooray!
34
+ This is \fBv2\&.5\&.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:
@@ -412,7 +412,19 @@ print out all webhooks
412
412
  .RS 4
413
413
  .\}
414
414
  .nf
415
- git multi \-\-eval \*(Aq(hooks = client\&.hooks(full_name))\&.any? && begin print full_name ; print "\et" ; puts hooks\&.map { |hook| ["", hook\&.name, hook\&.config\&.url]\&.join("\et") } ; end\*(Aq
415
+ git multi \-\-eval \*(Aqputs client\&.hooks(full_name)\&.map { |hook| [full_name, hook\&.name, hook\&.config\&.url]\&.join("\et") }\*(Aq
416
+ .fi
417
+ .if n \{\
418
+ .RE
419
+ .\}
420
+ .sp
421
+ delete all webhooks with matching URLs (in this case: \fBnotify\&.travis\-ci\&.org\fR)
422
+ .sp
423
+ .if n \{\
424
+ .RS 4
425
+ .\}
426
+ .nf
427
+ git multi \-\-eval \*(Aqclient\&.hooks(full_name)\&.find_all { |hook| hook\&.config\&.url =~ /notify\&.travis\-ci\&.org/ }\&.each { |hook| client\&.remove_hook(full_name, hook\&.id) }\*(Aq
416
428
  .fi
417
429
  .if n \{\
418
430
  .RE
data/man/git-multi.erb CHANGED
@@ -200,7 +200,11 @@ find all projects that have seen activity this calendar year
200
200
 
201
201
  print out all webhooks
202
202
 
203
- git multi --eval '(hooks = client.hooks(full_name)).any? && begin print full_name ; print "\t" ; puts hooks.map { |hook| ["", hook.name, hook.config.url].join("\t") } ; end'
203
+ git multi --eval 'puts client.hooks(full_name).map { |hook| [full_name, hook.name, hook.config.url].join("\t") }'
204
+
205
+ delete all webhooks with matching URLs (in this case: `notify.travis-ci.org`)
206
+
207
+ git multi --eval 'client.hooks(full_name).find_all { |hook| hook.config.url =~ /notify.travis-ci.org/ }.each { |hook| client.remove_hook(full_name, hook.id) }'
204
208
 
205
209
  print out all deploy keys
206
210
 
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>v2.4.0</code> of <em>git multi</em> &#8230; hooray!</p></div>
751
+ <div class="paragraph"><p>This is <code>v2.5.0</code> of <em>git multi</em> &#8230; hooray!</p></div>
752
752
  </div>
753
753
  </div>
754
754
  <div class="sect1">
@@ -1070,7 +1070,12 @@ and cached locally <em>(in binary format)</em> for performance and offline usage
1070
1070
  <div class="paragraph"><p>print out all webhooks</p></div>
1071
1071
  <div class="literalblock">
1072
1072
  <div class="content">
1073
- <pre><code>git multi --eval '(hooks = client.hooks(full_name)).any? &amp;&amp; begin print full_name ; print "\t" ; puts hooks.map { |hook| ["", hook.name, hook.config.url].join("\t") } ; end'</code></pre>
1073
+ <pre><code>git multi --eval 'puts client.hooks(full_name).map { |hook| [full_name, hook.name, hook.config.url].join("\t") }'</code></pre>
1074
+ </div></div>
1075
+ <div class="paragraph"><p>delete all webhooks with matching URLs (in this case: <code>notify.travis-ci.org</code>)</p></div>
1076
+ <div class="literalblock">
1077
+ <div class="content">
1078
+ <pre><code>git multi --eval 'client.hooks(full_name).find_all { |hook| hook.config.url =~ /notify.travis-ci.org/ }.each { |hook| client.remove_hook(full_name, hook.id) }'</code></pre>
1074
1079
  </div></div>
1075
1080
  <div class="paragraph"><p>print out all deploy keys</p></div>
1076
1081
  <div class="literalblock">
@@ -1209,7 +1214,7 @@ the <code>jq</code> command-line utility:
1209
1214
  <div id="footer">
1210
1215
  <div id="footer-text">
1211
1216
  Last updated
1212
- 2018-11-13 20:59:28 GMT
1217
+ 2019-01-23 21:22:08 GMT
1213
1218
  </div>
1214
1219
  </div>
1215
1220
  </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: 2.4.0
4
+ version: 2.5.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-13 00:00:00.000000000 Z
11
+ date: 2019-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -143,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.5.2.3
146
+ rubygems_version: 3.0.2
148
147
  signing_key:
149
148
  specification_version: 4
150
149
  summary: The ultimate multi-repo utility for git!