gitlab-grit 2.6.10 → 2.6.11

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
  SHA1:
3
- metadata.gz: cc0703262bb7ef4d6c8b89f043540bca37883db1
4
- data.tar.gz: 3dbb330aa2501a0e99adcb6a3ceec5b24434f8f2
3
+ metadata.gz: b24725577aec4aea6d7ba1b0acaecfc1bd2c5d56
4
+ data.tar.gz: 036469130b588bfd28e07dd7c9fcaaf3616da762
5
5
  SHA512:
6
- metadata.gz: b6bbe550adc711e01b2bbd0ae76d99f6de7647fcbad4614bf817fe9c48035ea32d881abae7751d77f3815e8672b6727898e0041b3821805b6501d0dd84193d31
7
- data.tar.gz: 32bb2bf904b9948b38e2a8feaee05fc03d5f99904e43d738f0d43f696ae331ffe0b38cb3c173fa83b87abf1377e6094d4ac31ebcc12abc5a3d7a319f1ba1e8b3
6
+ metadata.gz: caa6f3a1f7988ff5b5ab3fb1b856a3847231bfa3f9089199f6ea6b5edabd8152e8f92a9e8479856a264a809c39d59286b4f3d3c7763d1cef12fa34b28e98e7f7
7
+ data.tar.gz: 2e8e2509bb0aa43cacc5337cce4f36b255d9b1061652d4e5c36b82c494abf3dba3af2d6b4f03198f531f6630bac66b42c3b2abeffe7909d3cfa70aee3c0e1873
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.10
1
+ 2.6.11
@@ -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.6.10
4
+ version: 2.6.11
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-07-14 00:00:00.000000000 Z
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: