ruby_list_comprehension 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_list_comprehension.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2af11cfbc01440dc7d210694011584a128be74773259a247c877b385f07cf0
|
4
|
+
data.tar.gz: a222d208644f9e026fabe759e6ec8de69c00da7ae6b4291f173baac0387c985b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4535317fbd3fbae647b53d3893876762be5d1dbf0623d6ecb7cc38899dac49d337e1c6f5896a20a7812bb6eeca8c5f95fb50a0a19ec5877a123cbb8fba772b08
|
7
|
+
data.tar.gz: 3b8541f1684bfd089e778cd733bc1060ddfa99a76ce54be9391d4f2e5ab9f6d4b83b6f40ec814537e71f398a2ba0469de12cae10111de7245c07fcc15231dff4
|
@@ -192,8 +192,11 @@ module RubyList
|
|
192
192
|
@list_comp = iterable
|
193
193
|
$iterable = iterable
|
194
194
|
@filename = $PROGRAM_NAME
|
195
|
-
|
196
|
-
|
195
|
+
if @filename == "pry" || @filename == "irb"
|
196
|
+
@line = locate_list_repl
|
197
|
+
else
|
198
|
+
@line = locate_list_file
|
199
|
+
end
|
197
200
|
return @cache[@line] if @cache.has_key?(@line)
|
198
201
|
|
199
202
|
@cache[@line] = one_shot(@line)
|