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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDYxODhhNGExNTA0ZDJmN2ZjNmY2NjA4NjlkZThmNDNmNzU1Y2ViNQ==
4
+ Y2YxNWRlNmYwMTk4YjNmNzU5MmEyMGVjNGUzMTQ5ZTg3Y2NmNTllNg==
5
5
  data.tar.gz: !binary |-
6
- MzVlMWRhNWZjNDgzYTcxY2ZmOTY0N2Q3YzFlOGUxYmFkOTU2NWRmMg==
6
+ MjM2YTE3N2E2MTM1MmEzNmY1NmY0MWU1NDIxYzFhMDkxMzZiYmM4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjVhYTk3NGExYWYyMjk3NWE2NjRkYzJlMjRmMmU5MTkxOTA5N2U2MDcyNzA0
10
- OWE1ZWNkN2M4ZmZmMWVjNjU0OTc0NzVkNDdmYThmYTVjM2FkNTlkZTk3MWUy
11
- YzZmMzYzZjdiZDkxYjY0ZjZjMjIyOWM4Y2E0YWU1NTk5YmE5Y2E=
9
+ OGFlZjRmMjUwMzY0ZmJkNjk2M2ExZmQ3ZmVmMjFmMmI3Y2Y0MmVhNjFkNThh
10
+ MjExOTMyZDI3MmI4YWZlM2NlYTQzYjZjZDI0Nzg1OTI1MjllNWJiMzBlMzBl
11
+ YzU2NmU3ZDUxZDliNDAyOTY1ZGQxMDhhYTU1OWQ4NWQwNjkzMTE=
12
12
  data.tar.gz: !binary |-
13
- Nzc3NmY3NjYwMmE3N2IxYTA3YzExOWViNjE4MGQzZTY5MTQ1M2EyYjE5Y2Nh
14
- Y2NjMzhlZjE0MTRkYjQwNTc0MjBhZTYxNTQ0Mzg3M2IxMmU0NTRmMjhkYWY0
15
- ZTU0ZGM2NDRlZTgzNDU4NWZjZTJlYmMxMjA1MTM2ZTZhM2Y2ZWI=
13
+ MzRkYWNkMzIwZWNlNGQzNDExYzVmMmU4NjNmYTMwNGRlZmNhN2MyZTJjODQ4
14
+ MWY0Yzc2Njc0YWZlODViZjUzNjBlOWRjNmE1OTg1MGFiMjI2OWE5Y2JkODYy
15
+ OTY5NTE1YjBjNjhlOWFkNmJjM2Y0MTIzMjdjNmMzYmZjMDQwZGU=
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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(e.message)
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(output)
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::popen3(command) do |stdin, stdout, stderr, wait_thread|
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
- output = stderr.read
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.2
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-06-26 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema