git-multi 1.0.6 → 1.0.7

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: 49bfee3e9faa4d3eea798863ec6891761b5f2dc144912437f8aed41f4ef3afc4
4
- data.tar.gz: e35b5abff76ddc7f394f1b0e35a3479bd6a365f16861e39111a70a1f8f95fd13
3
+ metadata.gz: 966d4a517f09e90fd7019b59e767bf98ca80762e0ea09a9b314bbd6bf03bfd2b
4
+ data.tar.gz: 98b09aa608813ed8b0bdc2ae0718175af2442386adad5a88fb5db1d9efb0da80
5
5
  SHA512:
6
- metadata.gz: b1a5a8d752b0c9ff87f3764f60bd83ea13ff293b1ad0fbf3a5d4e029e00423e438916242093fddbdc3d98092efd34f40f6166ffec2b629bdc6cd17c97c300e95
7
- data.tar.gz: 503dd9d963fedc4c1d629ae1db81e79caad4274f5f5d4bdf600e8679e36c1dfd2fdd374da57dca193f94a3b6224af318b6e546ccea9632e6ea31bf0346edcd33
6
+ metadata.gz: fc09e60ab111875c99028fd1cabc811f575f0595646d636c29bda7f0bfd35514c494ad44ddb75827086595af9220259ea71617f2e2b0c7743af060220d64023d
7
+ data.tar.gz: f29e79443b67655328b80fdcbe77927a327bc07cbba6f22e50f282ab308432dda71bc88917ce0c3d855b792d2c9d0da3c232cc7d1e0b6e52ff04bbfb7b31f6bf
data/Rakefile CHANGED
@@ -1,23 +1,19 @@
1
+ # rubocop:disable Style/SymbolArray
1
2
  # rubocop:disable Style/HashSyntax
2
3
 
3
4
  require 'bundler/gem_tasks'
4
5
 
5
- def gemspec
6
- @gemspec ||= begin
7
- # rubocop:disable Security/Eval
8
- eval(File.read('git-multi.gemspec'))
9
- # rubocop:enable Security/Eval
10
- end
6
+ task :validate_gemspec do
7
+ Bundler.load_gemspec('git-multi.gemspec').validate
11
8
  end
12
9
 
13
- desc 'Validate the gemspec'
14
- task :validate do
15
- gemspec.validate
10
+ task :version => :validate_gemspec do
11
+ puts Git::Multi::VERSION
16
12
  end
17
13
 
18
14
  require 'rubocop/rake_task'
19
15
 
20
- RuboCop::RakeTask.new
16
+ RuboCop::RakeTask.new(:rubocop)
21
17
 
22
18
  require 'rake/testtask'
23
19
 
@@ -52,6 +48,7 @@ task :documentation => git_asciidoc do
52
48
  end
53
49
  end
54
50
 
55
- Rake::Task['build'].enhance([:documentation])
51
+ Rake::Task['build'].enhance([:default, :documentation])
56
52
 
57
53
  # rubocop:enable Style/HashSyntax
54
+ # rubocop:enable Style/SymbolArray
@@ -44,6 +44,10 @@ module Git
44
44
  value.empty? && default ? default : value
45
45
  end
46
46
 
47
+ def git_list(name, default = nil)
48
+ git_option(name, default).split(',').map(&:strip)
49
+ end
50
+
47
51
  def env_var(name, default = nil)
48
52
  value = ENV[name].freeze
49
53
  (value.nil? || value.empty?) && default ? default : value
@@ -6,13 +6,14 @@ require 'addressable'
6
6
  module Git
7
7
  module Multi
8
8
  NAME = 'git-multi'.freeze
9
- VERSION = '1.0.6'.freeze
9
+ VERSION = '1.0.7'.freeze
10
10
 
11
11
  DEPENDENCY_VERSIONS = [
12
12
  "octokit.rb v#{Octokit::VERSION}",
13
13
  "sawyer v#{Sawyer::VERSION}",
14
14
  "faraday v#{Faraday::VERSION}",
15
15
  "addressable v#{Addressable::VERSION::STRING}",
16
+ "#{RUBY_ENGINE} #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}",
16
17
  ].join(', ').freeze
17
18
 
18
19
  LONG_VERSION = "#{NAME} v#{VERSION} (#{DEPENDENCY_VERSIONS})".freeze
data/lib/git/multi.rb CHANGED
@@ -36,7 +36,7 @@ module Git
36
36
  REPOSITORIES = File.join(CACHE, 'repositories.byte')
37
37
 
38
38
  USER = git_option('github.user')
39
- ORGANIZATIONS = git_option('github.organizations').split(/\s*,\s*/)
39
+ ORGANIZATIONS = git_list('github.organizations')
40
40
 
41
41
  MAN_PAGE = File.expand_path('../../man/git-multi.1', __dir__)
42
42
  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: 09/23/2018
5
+ .\" Date: 10/06/2018
6
6
  .\" Manual: Git Manual
7
7
  .\" Source: Git 2.19.0.216.g2d3b1c576.dirty
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "GIT\-MULTI" "1" "09/23/2018" "Git 2\&.19\&.0\&.216\&.g2d3b1c" "Git Manual"
10
+ .TH "GIT\-MULTI" "1" "10/06/2018" "Git 2\&.19\&.0\&.216\&.g2d3b1c" "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\&.6\fR of \fIgit multi\fR \&... hooray!
34
+ This is \fBv1\&.0\&.7\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.6</code> of <em>git multi</em> &#8230; hooray!</p></div>
751
+ <div class="paragraph"><p>This is <code>v1.0.7</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-09-23 14:13:02 BST
1182
+ 2018-10-06 14:49:18 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.6
4
+ version: 1.0.7
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-09-23 00:00:00.000000000 Z
11
+ date: 2018-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit