adieush 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. data/lib/adieush.rb +4 -3
  2. metadata +1 -1
data/lib/adieush.rb CHANGED
@@ -23,6 +23,7 @@ class Adieush
23
23
  end
24
24
 
25
25
  def save_to_file(filename)
26
+ @search_words = []
26
27
  input_array = output_words(@storage_array)
27
28
  input_string = ''
28
29
  input_array.each do |word|
@@ -34,6 +35,7 @@ class Adieush
34
35
  end
35
36
 
36
37
  def save_to_zip(zip_name)
38
+ @search_words = []
37
39
  input_array = output_words(@storage_array)
38
40
  input_string = ''
39
41
  input_array.each do |word|
@@ -108,6 +110,7 @@ class Adieush
108
110
  prev_node = current_node[c]
109
111
  i+=1
110
112
  if string_size == i
113
+ @search_words = []
111
114
  return output_words(current_node[c])
112
115
  end
113
116
  end
@@ -122,8 +125,6 @@ class Adieush
122
125
  output_words(node[child])
123
126
  end
124
127
  end
125
- output = @search_words
126
- @search_words = []
127
- return output
128
+ return @search_words
128
129
  end
129
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adieush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: