turbot-runner 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/turbot_runner/version.rb +1 -1
- data/lib/turbot_runner.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2YxNWRlNmYwMTk4YjNmNzU5MmEyMGVjNGUzMTQ5ZTg3Y2NmNTllNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjM2YTE3N2E2MTM1MmEzNmY1NmY0MWU1NDIxYzFhMDkxMzZiYmM4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGFlZjRmMjUwMzY0ZmJkNjk2M2ExZmQ3ZmVmMjFmMmI3Y2Y0MmVhNjFkNThh
|
10
|
+
MjExOTMyZDI3MmI4YWZlM2NlYTQzYjZjZDI0Nzg1OTI1MjllNWJiMzBlMzBl
|
11
|
+
YzU2NmU3ZDUxZDliNDAyOTY1ZGQxMDhhYTU1OWQ4NWQwNjkzMTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzRkYWNkMzIwZWNlNGQzNDExYzVmMmU4NjNmYTMwNGRlZmNhN2MyZTJjODQ4
|
14
|
+
MWY0Yzc2Njc0YWZlODViZjUzNjBlOWRjNmE1OTg1MGFiMjI2OWE5Y2JkODYy
|
15
|
+
OTY5NTE1YjBjNjhlOWFkNmJjM2Y0MTIzMjdjNmMzYmZjMDQwZGU=
|
data/lib/turbot_runner.rb
CHANGED
@@ -63,7 +63,7 @@ module TurbotRunner
|
|
63
63
|
handle_successful_run
|
64
64
|
end
|
65
65
|
rescue ScriptError => e
|
66
|
-
handle_failed_run
|
66
|
+
handle_failed_run
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -112,13 +112,13 @@ module TurbotRunner
|
|
112
112
|
def handle_interrupted_run
|
113
113
|
end
|
114
114
|
|
115
|
-
def handle_failed_run
|
115
|
+
def handle_failed_run
|
116
116
|
raise NotImplementedError
|
117
117
|
end
|
118
118
|
|
119
119
|
def run_script_each_line(command, options={})
|
120
120
|
# TODO: handle timeouts, errors
|
121
|
-
Open3::
|
121
|
+
Open3::popen2(command) do |stdin, stdout, wait_thread|
|
122
122
|
if options[:input]
|
123
123
|
stdin.puts(options[:input])
|
124
124
|
stdin.close
|
@@ -136,8 +136,7 @@ module TurbotRunner
|
|
136
136
|
end
|
137
137
|
|
138
138
|
if !wait_thread.value.success?
|
139
|
-
|
140
|
-
raise ScriptError.new(output)
|
139
|
+
raise ScriptError
|
141
140
|
end
|
142
141
|
end
|
143
142
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenCorporates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|