querly 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/querly/preprocessor.rb +2 -9
- data/lib/querly/script_enumerator.rb +1 -1
- data/lib/querly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f81bedac4cd5da56cec233a84bf70a3097440e5
|
4
|
+
data.tar.gz: 7b6cac97c1ea2dc66e575ac86e21f14b0f32ab56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 796c9306eb40120293eae9fa77bc4d4738ee7c70524b4962945ed1006833d5693356548f252e4c82dfe7bab67a81f5824c4e468fc952120fd98758c30a3bd8ff
|
7
|
+
data.tar.gz: 5098f8381ec5f5bb93ceff4ae3545d8b9978524f5f501f7a3a0977c4f3f0d37c6536a31539c9965c69e7b06823666a94e02e27bbf8987c96ac461788a61ef607
|
data/CHANGELOG.md
CHANGED
data/lib/querly/preprocessor.rb
CHANGED
@@ -18,15 +18,9 @@ module Querly
|
|
18
18
|
@command = command
|
19
19
|
end
|
20
20
|
|
21
|
-
def run!(
|
22
|
-
stdin_read, stdin_write = IO.pipe
|
21
|
+
def run!(path)
|
23
22
|
stdout_read, stdout_write = IO.pipe
|
24
23
|
|
25
|
-
writer = Thread.new do
|
26
|
-
stdin_write.print source_code
|
27
|
-
stdin_write.close
|
28
|
-
end
|
29
|
-
|
30
24
|
output = ""
|
31
25
|
|
32
26
|
reader = Thread.new do
|
@@ -35,10 +29,9 @@ module Querly
|
|
35
29
|
end
|
36
30
|
end
|
37
31
|
|
38
|
-
succeeded = system(command, in:
|
32
|
+
succeeded = system(command, in: path.to_s, out: stdout_write)
|
39
33
|
stdout_write.close
|
40
34
|
|
41
|
-
writer.join
|
42
35
|
reader.join
|
43
36
|
|
44
37
|
raise Error.new(status: $?, command: command) unless succeeded
|
data/lib/querly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: querly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|