invader_zim 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 9d360cffd3bf5d8ddcff1d73984b44a8e4a712513425b6fe7ed5b973d6beb0d9
4
- data.tar.gz: 8cf113322b30cf7a72946ff07f1dbdafc89df06fa3317102e59e983c25039e80
3
+ metadata.gz: 510feb811b01d12f8256f494065b18669548847ce788baac7f3d28269eb85aed
4
+ data.tar.gz: bd6d790128c066801f26452e33ceb9349a7021c366f7de0d895f92853c72c4c2
5
5
  SHA512:
6
- metadata.gz: 6ebd41bbef88a0488c93abd81cb1868b2be5521a22fd3668e2300022892a82a5cf2828e254e61678b5124cdf36d282e07325e81d1899fa5b9fc5d398d84f8298
7
- data.tar.gz: f0d090bb0074f52c3b4926400713d8ad939da7225f76404acc676184df746cdc5258302df34e7ea848c95e5d1d13a6d97fca404aed6dd987dfac6112a446f92e
6
+ metadata.gz: f9007dea78fb2288b3f7a177b7465d803035630d8cdeb944d787d1c2ac97cfd5c2c394194425887226a5b90d59f4c2d9e7222e0605746fe3f25a9a039be14dfd
7
+ data.tar.gz: a9e95ff348924d0c4d53fe0ea17ebd8a585bdae4f22fd2b18d4c900745fc43716047d5b23c488f30823d3f3872c7321bf8c0be91b907a72225441420b213bb2a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invader_zim (0.1.0)
4
+ invader_zim (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -35,8 +35,8 @@ DEPENDENCIES
35
35
  cli-colorize (~> 2.0)
36
36
  invader_zim!
37
37
  mini_magick (~> 4.7)
38
- nokogiri
39
- pry
38
+ nokogiri (~> 1.10.2)
39
+ pry (~> 0.12.2)
40
40
  rake (~> 10.0)
41
41
  tco (~> 0.1.8)
42
42
 
data/README.md CHANGED
@@ -30,7 +30,7 @@ Put these in your terminal:
30
30
 
31
31
  Type the below and follow the on screen prompts.
32
32
 
33
- $ ./bin/invader_zim
33
+ $ invader_zim
34
34
 
35
35
  ## Development
36
36
 
data/invader_zim.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
20
  end
21
- spec.bindir = "exe"
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.bindir = "bin"
22
+ spec.executables = ["invader_zim"]
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 2.0"
@@ -1,5 +1,5 @@
1
1
  class InvaderZim::Character
2
- attr_accessor :name, :homeworld, :gender, :affliation, :debut, :profile_url, :introduction, :appearance, :facts_of_doom
2
+ attr_accessor :name, :homeworld, :gender, :affiliation, :debut, :profile_url, :introduction, :appearance, :facts_of_doom
3
3
 
4
4
  @@all = []
5
5
 
@@ -48,7 +48,7 @@ class InvaderZim::CLI
48
48
  puts CLIColorize.colorize("Insufficient data? Can't you just make an educated guess?\n", :green).strip
49
49
  sleep(3)
50
50
 
51
- puts CLIColorize.colorize("O... kay... Um, #{@human.name} was born in a year between 1940 and.....now to, uh... demons, and trained to... uh, I dunno, fight... ninjas and rain DOOM?\n", :red).strip
51
+ puts CLIColorize.colorize("O... kay... Um, #{@human.name} was born in a year between 1910 and.....now to, uh... demons, and trained to... uh, I dunno, fight... ninjas and rain DOOM?\n", :red).strip
52
52
  sleep(5)
53
53
 
54
54
  puts CLIColorize.colorize("I KNEW IT!\n", :green).strip
@@ -61,7 +61,7 @@ class InvaderZim::CLI
61
61
  sleep(4)
62
62
  system "clear"
63
63
  print_image("zim_and_gir.gif")
64
- puts CLIColorize.colorize("*You stand on the platform and start descending*\n" , :white)
64
+ puts CLIColorize.colorize("[You stand on the platform and start descending]\n" , :white)
65
65
  sleep(6)
66
66
 
67
67
  system "clear"
@@ -93,7 +93,7 @@ class InvaderZim::CLI
93
93
  sleep(4)
94
94
  puts CLIColorize.colorize("Almighty Tallest Red: 'I am running a diagnostic to find the problem! YOU! Save the doughnuts!'\n" , :red)
95
95
  sleep(4)
96
- puts CLIColorize.colorize("Almighty Tallest Red: 'I found the problem. #{@human.name} put in something other then 1 to 14.'\n" , :red)
96
+ puts CLIColorize.colorize("Almighty Tallest Red: 'I found the problem. #{@human.name} put in something other than 1 to 14.'\n" , :red)
97
97
  sleep(4)
98
98
  puts CLIColorize.colorize("Almighty Tallest Purple: '#{@human.name}, You should have tried harder!'\n" , :magenta)
99
99
  sleep(4)
@@ -120,12 +120,12 @@ class InvaderZim::CLI
120
120
  print CLIColorize.colorize("\nGender:", :red).strip
121
121
  puts CLIColorize.colorize(" #{character.gender}\n", :cyan).strip
122
122
 
123
- if character.affliation == ""
124
- print CLIColorize.colorize("Affliation:", :red).strip
123
+ if character.affiliation == ""
124
+ print CLIColorize.colorize("Affiliation:", :red).strip
125
125
  puts CLIColorize.colorize(" None\n", :cyan).strip
126
126
  else
127
- print CLIColorize.colorize("Affliation:", :red).strip
128
- puts CLIColorize.colorize(" #{character.affliation}\n", :cyan).strip
127
+ print CLIColorize.colorize("Affiliation:", :red).strip
128
+ puts CLIColorize.colorize(" #{character.affiliation}\n", :cyan).strip
129
129
  end
130
130
 
131
131
  print CLIColorize.colorize("Debut:", :red).strip
@@ -178,7 +178,7 @@ class InvaderZim::CLI
178
178
  system "clear"
179
179
  print_image("zim2.gif")
180
180
  puts CLIColorize.colorize("Nooooo! You lie! YOU LIIIIIIIIIEEEEEEEEEE!!!!!\n", :green).strip
181
- puts CLIColorize.colorize("*makes wild scratching motions with his arms*\n", :white).strip
181
+ puts CLIColorize.colorize("[makes wild scratching motions with his arms]\n", :white).strip
182
182
  sleep(5)
183
183
  exit
184
184
  else
@@ -190,7 +190,7 @@ class InvaderZim::CLI
190
190
  menu
191
191
  end
192
192
 
193
- elsif input == "n"
193
+ elsif input == "n"
194
194
  system "clear"
195
195
  print_image("ms_bitters.gif")
196
196
  puts CLIColorize.colorize("\n#{@human.name}, your performance was miserable! Your parents will get a phone call instructing them to love you less.\n", :magenta).strip
@@ -201,6 +201,7 @@ class InvaderZim::CLI
201
201
  input = gets.strip.downcase
202
202
 
203
203
  if input == "y"
204
+ system "clear"
204
205
  print_image("recap_kid.gif")
205
206
  puts CLIColorize.colorize("Previously at Invader Zim's Secret Lair...", :white).strip
206
207
  sleep(4)
@@ -228,6 +229,44 @@ class InvaderZim::CLI
228
229
  sleep(4)
229
230
  menu
230
231
  end
232
+
233
+ elsif input == "exit"
234
+ system "clear"
235
+ print_image("zim.gif")
236
+ puts CLIColorize.colorize("For your betrayal in attempting leave I have decided to launch you into space.\n", :green).strip
237
+ sleep(4)
238
+ 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
239
+ sleep(4)
240
+ puts CLIColorize.colorize("I researched many different wormholes with many possible outcomes. It was a very difficult decision deciding which wormhole would be the most horrible for you.\n", :green).strip
241
+ sleep(5)
242
+ puts CLIColorize.colorize("One wormhole would have spat you out into a dimension of pure itching!\n", :green).strip
243
+ sleep(4)
244
+ puts CLIColorize.colorize("Another would've sent you to a dimension of pure dookie! \n", :green).strip
245
+ sleep(4)
246
+ puts CLIColorize.colorize("But I chose this particular wormhole especially for the occasion.\n", :green).strip
247
+ sleep(4)
248
+ puts CLIColorize.colorize("You see, at the end of this wormhole lies... a room... with a moose!\n", :green).strip
249
+ sleep(4)
250
+ system "clear"
251
+ print_image("moose.gif")
252
+ sleep(6)
253
+ system "clear"
254
+ print_image("zim.gif")
255
+ puts CLIColorize.colorize("Prepare your bladder for imminent release!\n", :green).strip
256
+ sleep(4)
257
+ puts CLIColorize.colorize("Now, #{@human.name}. I leave you to your... em... \n", :green).strip
258
+ sleep(4)
259
+ system "clear"
260
+ print_image("girdisguise.gif")
261
+ puts CLIColorize.colorize("Moosey fate, say moosey fate!\n", :yellow).strip
262
+ sleep(4)
263
+ system "clear"
264
+ print_image("zim.gif")
265
+ puts CLIColorize.colorize("Your...moosey fate!\n", :green).strip
266
+ sleep(3)
267
+ puts CLIColorize.colorize("[Gir laughs hysterically. Zim hesitates, then laughs too and then launches you into space]\n", :white).strip
268
+ sleep(4)
269
+ exit
231
270
  else
232
271
  system "clear"
233
272
  print_image("mini_moose.gif")
@@ -48,17 +48,17 @@ require 'open-uri'
48
48
 
49
49
  case character.name
50
50
  when "Roboparents"
51
- character_page_traits[:affliation] ||= table.css("td")[9].text.strip.gsub(/[\n]/, '')
51
+ character_page_traits[:affiliation] ||= table.css("td")[9].text.strip.gsub(/[\n]/, '')
52
52
  when "Gir", "Minimoose"
53
- character_page_traits[:affliation] ||= table.css("td")[9].text[13..15].strip.gsub(/[\n]/, '')
53
+ character_page_traits[:affiliation] ||= table.css("td")[9].text[13..15].strip.gsub(/[\n]/, '')
54
54
  when "Dib Membrane", "Gaz Membrane", "Keef"
55
- character_page_traits[:affliation] ||= table.css("td")[11].text.strip.gsub(/[\n]/, '')
55
+ character_page_traits[:affiliation] ||= table.css("td")[11].text.strip.gsub(/[\n]/, '')
56
56
  when "Almighty Tallest Red", "Almighty Tallest Purple", "Tak"
57
- character_page_traits[:affliation] ||= table.css("td")[13].text.strip.gsub(/[\n]/, '')
57
+ character_page_traits[:affiliation] ||= table.css("td")[13].text.strip.gsub(/[\n]/, '')
58
58
  when "Zim", "Invader Skoodge"
59
- character_page_traits[:affliation] ||= table.css("td")[17].text.strip.gsub(/[\n]/, '')
59
+ character_page_traits[:affiliation] ||= table.css("td")[17].text.strip.gsub(/[\n]/, '')
60
60
  else
61
- character_page_traits[:affliation] ||= table.css("td")[1].text.strip.gsub(/[\n]/, '')
61
+ character_page_traits[:affiliation] ||= table.css("td")[1].text.strip.gsub(/[\n]/, '')
62
62
  end
63
63
 
64
64
  case character.name
@@ -1,3 +1,3 @@
1
1
  module InvaderZim
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/moose.gif ADDED
Binary file
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invader_zim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'David Mathew Anderson'"
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-04-20 00:00:00.000000000 Z
12
12
  dependencies:
@@ -126,7 +126,8 @@ description: Provides an interactive CLI experience to learn about different Inv
126
126
  Zim Characters
127
127
  email:
128
128
  - "'matandersonlv@hotmail.com'"
129
- executables: []
129
+ executables:
130
+ - invader_zim
130
131
  extensions: []
131
132
  extra_rdoc_files: []
132
133
  files:
@@ -153,6 +154,7 @@ files:
153
154
  - lib/invader_zim/scraper.rb
154
155
  - lib/invader_zim/version.rb
155
156
  - mini_moose.gif
157
+ - moose.gif
156
158
  - ms_bitters.gif
157
159
  - professor.gif
158
160
  - recap_kid.gif