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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cb8f4c05ec57f320ee9932893d4f79df933107c
4
- data.tar.gz: fd12e41abe5a4816da3e17563ac0d4d01443734f
3
+ metadata.gz: 3f81bedac4cd5da56cec233a84bf70a3097440e5
4
+ data.tar.gz: 7b6cac97c1ea2dc66e575ac86e21f14b0f32ab56
5
5
  SHA512:
6
- metadata.gz: eda66d6bc29b0e79c34a859a7cdb966386768c3a536e8e40274c857f6579e39102ff49bc1c2b2db0c3981fb82ab45aa9cbe7beebbaaf7f4c86c8a003781370c9
7
- data.tar.gz: 61a7d3c8b99d5e3cdad5051d7eba5242366158c7e9029db0894ac5ad58106a95dc685f613639f67ee7703bac2b9a432ce876daf8ea1ef6ab7668d8997f63d22f
6
+ metadata.gz: 796c9306eb40120293eae9fa77bc4d4738ee7c70524b4962945ed1006833d5693356548f252e4c82dfe7bab67a81f5824c4e468fc952120fd98758c30a3bd8ff
7
+ data.tar.gz: 5098f8381ec5f5bb93ceff4ae3545d8b9978524f5f501f7a3a0977c4f3f0d37c6536a31539c9965c69e7b06823666a94e02e27bbf8987c96ac461788a61ef607
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.8.3 (2018-01-16)
6
+
7
+ * Fix preprocessor to avoid deadlocking #35
8
+
5
9
  ## 0.8.2 (2018-01-13)
6
10
 
7
11
  * Move `Concerns::BacktraceFormatter` under `Querly` (@kohtaro24) #34
@@ -18,15 +18,9 @@ module Querly
18
18
  @command = command
19
19
  end
20
20
 
21
- def run!(source_code)
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: stdin_read, out: stdout_write)
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
@@ -40,7 +40,7 @@ module Querly
40
40
 
41
41
  begin
42
42
  source = if preprocessor
43
- preprocessor.run!(path.read)
43
+ preprocessor.run!(path)
44
44
  else
45
45
  path.read
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module Querly
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
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.2
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-12 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler