opener-tokenizer 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/tokenizer/version.rb +1 -1
- data/lib/opener/tokenizer.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 227b7496821543178e68fa3954cd1c7761ef5f4b
|
4
|
+
data.tar.gz: 892176f30bac5e0b499660a512d04451c79729d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d7f56439173cabf27caa1eba7ca8111b3e0f9a1721fdeb537211e51735d3a64d345148a816574b129d00cac139692fc7def7679b1de4dc3d2a55fad0efc51d
|
7
|
+
data.tar.gz: 14ec10d19752b1f8646e6a707c185f59f657ad3706bd0621556ee82fa64e8229941cd2742e18eb2bbf253219791fe51457e9c57404e1e213076fe479561a34a9
|
data/lib/opener/tokenizer.rb
CHANGED
@@ -70,8 +70,11 @@ module Opener
|
|
70
70
|
end
|
71
71
|
|
72
72
|
kernel = language_constant(language).new(:args => options[:args])
|
73
|
-
|
74
|
-
|
73
|
+
|
74
|
+
stdout, stderr, process = Open3.capture3(*kernel.command.split(" "), :stdin_data => input)
|
75
|
+
raise stderr unless process.success?
|
76
|
+
return stdout
|
77
|
+
|
75
78
|
rescue Exception => error
|
76
79
|
return ErrorLayer.new(input, error.message, self.class).add
|
77
80
|
end
|