stash-query 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccad0b0e0077c1bbda3390027e84b57be31235ab
4
- data.tar.gz: eb48df98b461d986d2f8838a10562c8c7c99597d
3
+ metadata.gz: dfe167aa7e4566dfd8a252ef7509fe1790c8c6fc
4
+ data.tar.gz: c2039cd7e74ab550c09a82150345dc2fa3eea1c3
5
5
  SHA512:
6
- metadata.gz: 11a8394d3446915a8081f70af7db9b371294e23a241d4c292e572c604347617064e70f8ea4ec924fba53f6aaac95e3aff1557b45b49d76bfda57a7632bcf4e49
7
- data.tar.gz: 18b4f50a7848a14068437b80785f5e8d04fc3afc935294a403a76f8689cfb9086823ea27e199b395640c419f4ead7aa2a454a8bb3ed4f86220424dd335c7a55c
6
+ metadata.gz: e1173c31b06e1b53405f956756d8282277914af1caa4239a9e143e168eaf2339576a0a581b74ed01c7d912eb7bb75f3a97bdfdf97d207be31f26808672d212ea
7
+ data.tar.gz: 0ba308509044f132f5a0046c53ccdb5627a56d6fb9c44eea3158773fcebe6cff6a90234a031dd8b0717c99b8d7b8a117700a96c19c4d8275680d5fa447dad2b3
@@ -85,6 +85,9 @@ module Stashquery
85
85
 
86
86
  def flush_to_file(hit_list)
87
87
  return if @config[:output].nil?
88
+ if hit_list.is_a? String
89
+ hit_list = hit_list.split("\n")
90
+ end
88
91
  File.open(@config[:output], 'a') do |file|
89
92
  begin
90
93
  file.puts(generate_output(hit_list))
@@ -225,7 +228,7 @@ module Stashquery
225
228
  bar.increment! if @config[:print]
226
229
  hit_list << hit
227
230
  if hit_list.length % $flush_buffer == 0
228
- flush_to_file hit_list.join("\n")
231
+ flush_to_file hit_list
229
232
  hit_list = Array.new
230
233
  end
231
234
  end
@@ -1,3 +1,3 @@
1
1
  module Stashquery
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stash-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robby Dyer