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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a46a0e0bf5c550caf7f4db44b5505e699a930345
4
- data.tar.gz: 2120d214b617440c5f3605c8772cc01cadc73fd4
3
+ metadata.gz: 50d2332e9f83f182b9fc5a1178ab6ef11db8dc22
4
+ data.tar.gz: 8e2536c308e1b3b5ff7d1ccf98478f47f1983233
5
5
  SHA512:
6
- metadata.gz: 84b6d5b015b01887daa17289ab9ed38fb6ca8724e8a84c8b73d9f9b6e2f5dff332bd49c7397303c1d5e5680f1b64a6699b6d29212c368badad3843561cee345c
7
- data.tar.gz: 614ac2617db5cf9ea7ba800406e493921b42d2544e5d59712dd3ab635ddbeb00d17edaaad040a4cdba3e1560f583e7173918d0c4e09b56965ca2ed0f2468e8c7
6
+ metadata.gz: c3a1a06490065b3a52ff7151f1ea28231c8009bcd34c6e946f48561eb5a24bfad3563f6b1c49ec3a8dbfab41241803a509a52295acbc582adc49639dcc8b2a55
7
+ data.tar.gz: 5f46d54c9781d90a2743aedd90da69ab4983f48cef58a402e8b27225774b3b2da6fbc7cdb4bf7e584159eb31ffd76e01daf8e61ce8b1b9f2aa679e30d1dfdb21
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.0
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
 
@@ -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.0
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-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: