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 +1 -1
- data/lib/libdolt/git/process.rb +10 -4
- data/lib/libdolt/version.rb +1 -1
- metadata +3 -3
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
|
26
|
+
Dolt::Git::Process.new(stdin, stdout, stderr, wait_thread)
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.git(git_dir, command)
|
data/lib/libdolt/git/process.rb
CHANGED
@@ -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,
|
24
|
+
def initialize(stdin, stdout, stderr, wait_thread)
|
25
25
|
@stdin = stdin
|
26
26
|
@stdout = stdout
|
27
27
|
@stderr = stderr
|
28
|
-
@
|
28
|
+
@wait_thread = wait_thread
|
29
29
|
end
|
30
30
|
|
31
31
|
def success?
|
32
|
-
|
32
|
+
process_status.success?
|
33
33
|
end
|
34
34
|
|
35
35
|
def exit_code
|
36
|
-
|
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
|
data/lib/libdolt/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|