libdolt 0.33.6 → 0.33.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/libdolt/git.rb CHANGED
@@ -23,7 +23,7 @@ module Dolt
23
23
  module Git
24
24
  def self.shell(command)
25
25
  stdin, stdout, stderr, wait_thread = Open3.popen3(command)
26
- Dolt::Git::Process.new(stdin, stdout, stderr, wait_thread && wait_thread.value || $?)
26
+ Dolt::Git::Process.new(stdin, stdout, stderr, wait_thread)
27
27
  end
28
28
 
29
29
  def self.git(git_dir, command)
@@ -21,24 +21,30 @@ module Dolt
21
21
  class Process
22
22
  attr_reader :stdin, :stdout, :stderr
23
23
 
24
- def initialize(stdin, stdout, stderr, process_status)
24
+ def initialize(stdin, stdout, stderr, wait_thread)
25
25
  @stdin = stdin
26
26
  @stdout = stdout
27
27
  @stderr = stderr
28
- @process_status = process_status
28
+ @wait_thread = wait_thread
29
29
  end
30
30
 
31
31
  def success?
32
- @process_status.success?
32
+ process_status.success?
33
33
  end
34
34
 
35
35
  def exit_code
36
- @process_status.exitstatus
36
+ process_status.exitstatus
37
37
  end
38
38
 
39
39
  def exception
40
40
  Exception.new(stderr.read)
41
41
  end
42
+
43
+ private
44
+
45
+ def process_status
46
+ @wait_thread.value
47
+ end
42
48
  end
43
49
  end
44
50
  end
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Dolt
20
- VERSION = "0.33.6"
20
+ VERSION = "0.33.7"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libdolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.6
4
+ version: 0.33.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-04 00:00:00.000000000 Z
12
+ date: 2013-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rugged
@@ -357,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
357
357
  version: '0'
358
358
  requirements: []
359
359
  rubyforge_project: libdolt
360
- rubygems_version: 1.8.25
360
+ rubygems_version: 1.8.23
361
361
  signing_key:
362
362
  specification_version: 3
363
363
  summary: Dolt API for serving git trees and syntax highlighted blobs