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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea3704d7dfe874cc3ce8a4348192fcf9b3a29d550a4e270ada64987df7b6dfaf
4
- data.tar.gz: 5a445aeb9843ae9898f8a9b808651aa0fbf18e1966c48e427571cb3a55bea014
3
+ metadata.gz: 78a7f2dde0bf9795241aecd984b3423001acbf425870c0126970551c487150f7
4
+ data.tar.gz: 7fac12734d322b44f1726f9cacb2ba44ec7ca629bd405de16bc02ec91ab1a535
5
5
  SHA512:
6
- metadata.gz: b498e96e92bbbc1d11d29a5546baae1eff2622e1d54c85e64d3d0885364a032d01cf965120d7147f3d474d046040abbc52cc836cb35b9446b27784c702c9c540
7
- data.tar.gz: 67890cb0bc929f9c7650be92418f62e2a630049e737320a3b752743d21017a2ce176c3030d1f2a5bd8a80086b556ec3aabb766ef7f3563b021a96635631637e2
6
+ metadata.gz: f98e1c56276b90aa2a102694fa9965cec702548d35b4252dedd9b155926225c04f101e1d3f7e1fb39e412e2487dd61f93c7d3f63fb8f9cb4a25ad0286bc74c7c
7
+ data.tar.gz: c5ba25105066756f55f369a7a655efe225394cd6b760d726e7b2f1a0b6b9fb6ec5689331d94b6973adc445f5c9ba9aa6a0ea54fe5a961f01755c3cddb27df8f5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invader_zim (0.1.6)
4
+ invader_zim (0.1.7)
5
5
  catpix_mini (~> 0.1.1)
6
6
  cli-colorize (~> 2.0)
7
7
  mini_magick (~> 4.7)
@@ -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", :white).strip
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.\n", :green).strip
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 into space]\n", :white).strip
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
@@ -1,3 +1,3 @@
1
1
  module InvaderZim
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invader_zim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'David Mathew Anderson'"