gitlab-grit 2.7.0 → 2.7.1
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 +4 -4
- data/VERSION +1 -1
- data/lib/grit/git-ruby/git_object.rb +0 -6
- data/lib/grit/git.rb +6 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50d2332e9f83f182b9fc5a1178ab6ef11db8dc22
|
4
|
+
data.tar.gz: 8e2536c308e1b3b5ff7d1ccf98478f47f1983233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3a1a06490065b3a52ff7151f1ea28231c8009bcd34c6e946f48561eb5a24bfad3563f6b1c49ec3a8dbfab41241803a509a52295acbc582adc49639dcc8b2a55
|
7
|
+
data.tar.gz: 5f46d54c9781d90a2743aedd90da69ab4983f48cef58a402e8b27225774b3b2da6fbc7cdb4bf7e584159eb31ffd76e01daf8e61ce8b1b9f2aa679e30d1dfdb21
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.1
|
@@ -255,9 +255,6 @@ module Grit
|
|
255
255
|
author = UserInfo.new(value)
|
256
256
|
when "committer"
|
257
257
|
committer = UserInfo.new(value)
|
258
|
-
else
|
259
|
-
warn "unknown header '%s' in commit %s" % \
|
260
|
-
[key, rawobject.sha1.unpack("H*")[0]]
|
261
258
|
end
|
262
259
|
end
|
263
260
|
if not tree && author && committer
|
@@ -322,9 +319,6 @@ module Grit
|
|
322
319
|
tag = value
|
323
320
|
when "tagger"
|
324
321
|
tagger = UserInfo.new(value)
|
325
|
-
else
|
326
|
-
warn "unknown header '%s' in tag" % \
|
327
|
-
[key, rawobject.sha1.unpack("H*")[0]]
|
328
322
|
end
|
329
323
|
end
|
330
324
|
|
data/lib/grit/git.rb
CHANGED
@@ -23,14 +23,18 @@ module Grit
|
|
23
23
|
# The integer exit status.
|
24
24
|
attr_reader :exitstatus
|
25
25
|
|
26
|
+
# Everything output on the command's stdout as a String.
|
27
|
+
attr_reader :out
|
28
|
+
|
26
29
|
# Everything output on the command's stderr as a String.
|
27
30
|
attr_reader :err
|
28
31
|
|
29
|
-
def initialize(command, exitstatus=nil, err='')
|
32
|
+
def initialize(command, exitstatus=nil, err='', out='')
|
30
33
|
if exitstatus
|
31
34
|
@command = command
|
32
35
|
@exitstatus = exitstatus
|
33
36
|
@err = err
|
37
|
+
@out = out
|
34
38
|
message = "Command failed [#{exitstatus}]: #{command}"
|
35
39
|
message << "\n\n" << err unless err.nil? || err.empty?
|
36
40
|
super message
|
@@ -344,7 +348,7 @@ module Grit
|
|
344
348
|
|
345
349
|
status = process.status
|
346
350
|
if raise_errors && !status.success?
|
347
|
-
raise CommandFailed.new(argv.join(' '), status.exitstatus, process.err)
|
351
|
+
raise CommandFailed.new(argv.join(' '), status.exitstatus, process.err, process.out)
|
348
352
|
elsif process_info
|
349
353
|
[status.exitstatus, process.out, process.err]
|
350
354
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-grit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: charlock_holmes
|
@@ -157,3 +157,4 @@ signing_key:
|
|
157
157
|
specification_version: 4
|
158
158
|
summary: Ruby Git bindings.
|
159
159
|
test_files: []
|
160
|
+
has_rdoc:
|