catgame 0.0.5 → 0.0.6

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.
@@ -1,3 +1,3 @@
1
1
  class Catgame
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
data/lib/levels/death.rb CHANGED
@@ -6,7 +6,7 @@ module Levels
6
6
  @status = Helper::Assets.deathpic
7
7
  end
8
8
 
9
- def death
9
+ def enter
10
10
  space
11
11
  puts <<-PARAGRAPH
12
12
  *** R.I.P Johnny ***
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::WashingRoom
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -56,7 +57,6 @@ module Levels
56
57
  Oh man, the food from my grandmother wasn't fresh anymore
57
58
  That's maybe the reason why Johnny don't move anymore.
58
59
  PARAGRAPH
59
- death
60
60
  end
61
61
 
62
62
  def invalid_input
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::SleepingRoom
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -61,7 +62,6 @@ module Levels
61
62
  Poor Johnny. He was so bored, that he can't breath anymore.
62
63
  Johnny never plays outside again.
63
64
  PARAGRAPH
64
- death
65
65
  end
66
66
 
67
67
  def invalid_input
@@ -21,6 +21,7 @@ module Levels
21
21
  Process.exit(0)
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -62,7 +63,6 @@ module Levels
62
63
  Johnny's heartache was big because he still miss his girlfriend.
63
64
  He's heart decided to don't beat anmymore.
64
65
  PARAGRAPH
65
- death
66
66
  end
67
67
  def invalid_input
68
68
  space
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::HappyEnd
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -64,7 +65,6 @@ module Levels
64
65
  He's heart hurt so much that Johnny decied
65
66
  to never wake up again.
66
67
  PARAGRAPH
67
- death
68
68
  end
69
69
 
70
70
  def invalid_input
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::GuestRoom
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -59,7 +60,6 @@ module Levels
59
60
  Oh, no ! It was too cold for Johnny outside.
60
61
  He is frozen and never mets your Friend.
61
62
  PARAGRAPH
62
- death
63
63
  end
64
64
 
65
65
  def invalid_input
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::StylingRoom
22
22
  when 10
23
23
  second_choice(1)
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -79,7 +80,6 @@ module Levels
79
80
  Shit happens. That was too much for Johnny.
80
81
  Johnny never made a ##{i} Training."
81
82
  PARAGRAPH
82
- death
83
83
  end
84
84
  end
85
85
  end
@@ -21,6 +21,7 @@ module Levels
21
21
  return Levels::TrainingRoom
22
22
  when BAD_CHOICE
23
23
  second_choice
24
+ return Levels::Death
24
25
  else
25
26
  invalid_input
26
27
  end
@@ -63,7 +64,6 @@ module Levels
63
64
  you find Johnny in the bath tube.
64
65
  The tube was too full for Johnny.
65
66
  PARAGRAPH
66
- death
67
67
  end
68
68
 
69
69
  def invalid_input
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catgame
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Franca Rast
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-02 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-09-05 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: "Play a game with a lovely cat in the terminal. "
@@ -48,7 +47,6 @@ files:
48
47
  - lib/levels/training_room.rb
49
48
  - lib/levels/washing_room.rb
50
49
  - test/test_catgame.rb
51
- has_rdoc: true
52
50
  homepage: https://github.com/ryabrody
53
51
  licenses: []
54
52
 
@@ -78,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
76
  requirements: []
79
77
 
80
78
  rubyforge_project: catgame
81
- rubygems_version: 1.3.7
79
+ rubygems_version: 1.8.6
82
80
  signing_key:
83
81
  specification_version: 3
84
82
  summary: Fancy game for Cat-Fans