invader_zim 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/invader_zim/cli.rb +32 -3
- data/lib/invader_zim/version.rb +1 -1
- 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: 78a7f2dde0bf9795241aecd984b3423001acbf425870c0126970551c487150f7
|
4
|
+
data.tar.gz: 7fac12734d322b44f1726f9cacb2ba44ec7ca629bd405de16bc02ec91ab1a535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98e1c56276b90aa2a102694fa9965cec702548d35b4252dedd9b155926225c04f101e1d3f7e1fb39e412e2487dd61f93c7d3f63fb8f9cb4a25ad0286bc74c7c
|
7
|
+
data.tar.gz: c5ba25105066756f55f369a7a655efe225394cd6b760d726e7b2f1a0b6b9fb6ec5689331d94b6973adc445f5c9ba9aa6a0ea54fe5a961f01755c3cddb27df8f5
|
data/Gemfile.lock
CHANGED
data/lib/invader_zim/cli.rb
CHANGED
@@ -9,6 +9,7 @@ class InvaderZim::CLI
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def introduction
|
12
|
+
system "clear"
|
12
13
|
print_image("zim.gif")
|
13
14
|
sleep(2)
|
14
15
|
puts CLIColorize.colorize("Greetings human! It is I, ZIM!\n", :green).strip
|
@@ -181,6 +182,7 @@ class InvaderZim::CLI
|
|
181
182
|
puts CLIColorize.colorize("Nooooo! You lie! YOU LIIIIIIIIIEEEEEEEEEE!!!!!\n", :green).strip
|
182
183
|
puts CLIColorize.colorize("[makes wild scratching motions with his arms]\n", :white).strip
|
183
184
|
sleep(5)
|
185
|
+
delete_all_images
|
184
186
|
exit
|
185
187
|
else
|
186
188
|
system "clear"
|
@@ -210,8 +212,9 @@ class InvaderZim::CLI
|
|
210
212
|
elsif input == "n" || input == "exit"
|
211
213
|
system "clear"
|
212
214
|
print_image("sad_gir.gif")
|
213
|
-
puts CLIColorize.colorize("\nWhy!? Why!? I loveded you! I loveded you!\n", :
|
215
|
+
puts CLIColorize.colorize("\nWhy!? Why!? I loveded you! I loveded you!\n", :yellow).strip
|
214
216
|
sleep(5)
|
217
|
+
delete_all_images
|
215
218
|
exit
|
216
219
|
else
|
217
220
|
system "clear"
|
@@ -234,7 +237,7 @@ class InvaderZim::CLI
|
|
234
237
|
elsif input == "exit"
|
235
238
|
system "clear"
|
236
239
|
print_image("zim.gif")
|
237
|
-
puts CLIColorize.colorize("For your betrayal in attempting to leave I have decided to launch you into space
|
240
|
+
puts CLIColorize.colorize("For your betrayal in attempting to leave I have decided to launch you into space\n", :green).strip
|
238
241
|
sleep(4)
|
239
242
|
puts CLIColorize.colorize("Launching you into space is just the first part of my plan! Now is where the fun really starts!\n", :green).strip
|
240
243
|
sleep(4)
|
@@ -265,8 +268,9 @@ class InvaderZim::CLI
|
|
265
268
|
print_image("zim.gif")
|
266
269
|
puts CLIColorize.colorize("Your...moosey fate!\n", :green).strip
|
267
270
|
sleep(3)
|
268
|
-
puts CLIColorize.colorize("[Gir laughs hysterically. Zim hesitates, then laughs too and then launches you
|
271
|
+
puts CLIColorize.colorize("[Gir laughs hysterically. Zim hesitates, then laughs too and then launches you into space]\n", :white).strip
|
269
272
|
sleep(4)
|
273
|
+
delete_all_images
|
270
274
|
exit
|
271
275
|
else
|
272
276
|
system "clear"
|
@@ -303,6 +307,10 @@ class InvaderZim::CLI
|
|
303
307
|
end
|
304
308
|
|
305
309
|
def create_images
|
310
|
+
puts CLIColorize.colorize("One moment while I load the necessary images to make you worthy of ZIM!\n", :white).strip
|
311
|
+
sleep(3)
|
312
|
+
puts CLIColorize.colorize("They will be deleted upon your exit and you will be a little less awesome.", :white).strip
|
313
|
+
sleep(2)
|
306
314
|
get_image("zim.gif", "https://oi27.photobucket.com/albums/c180/LVSpiritSeeker/zim5.png")
|
307
315
|
get_image("zim_and_gir.gif", "https://oi27.photobucket.com/albums/c180/LVSpiritSeeker/zim_and_gir.gif")
|
308
316
|
get_image("almighty_tallest.gif", "https://oi27.photobucket.com/albums/c180/LVSpiritSeeker/thetallestb.png")
|
@@ -318,4 +326,25 @@ class InvaderZim::CLI
|
|
318
326
|
get_image("mini_moose.gif", "https://oi27.photobucket.com/albums/c180/LVSpiritSeeker/Moose_float.gif")
|
319
327
|
end
|
320
328
|
|
329
|
+
def delete_image(img)
|
330
|
+
File.delete(img) if File.exist?(img)
|
331
|
+
end
|
332
|
+
|
333
|
+
def delete_all_images
|
334
|
+
delete_image("almighty_tallest.gif")
|
335
|
+
delete_image("girdisguise.gif")
|
336
|
+
delete_image("gir_red.gif")
|
337
|
+
delete_image("gir_transformation.gif")
|
338
|
+
delete_image("mini_moose.gif")
|
339
|
+
delete_image("moose.gif")
|
340
|
+
delete_image("ms_bitters.gif")
|
341
|
+
delete_image("professor.gif")
|
342
|
+
delete_image("recap_kid.gif")
|
343
|
+
delete_image("sad_gir.gif")
|
344
|
+
delete_image("zim2.gif")
|
345
|
+
delete_image("zim_and_gir.gif")
|
346
|
+
delete_image("zim.gif")
|
347
|
+
system "clear"
|
348
|
+
end
|
349
|
+
|
321
350
|
end
|
data/lib/invader_zim/version.rb
CHANGED