between_the_sheets 1.0.2 → 1.0.4

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
- SHA256:
3
- metadata.gz: a41ad92eb1902b009ee69a6e0e00089df0af2c36b6bf1f7b4b0bc2f8feddd936
4
- data.tar.gz: 9ef13c0842b1e2d5d67b61109ea8bc65e94b91970a42285e654fb5b59fba3532
2
+ SHA1:
3
+ metadata.gz: 8b38e668c72251eff41a1dfbda138e4258b6daf0
4
+ data.tar.gz: 7333916b316864837c1e55dd432af53d12a053d6
5
5
  SHA512:
6
- metadata.gz: e87068c472d7e349a5a96f035fb23e0b63cf26114ab4c091e51b69c10e9948e61959cf3cbde9294e08e5e7e2ba00d29b6ce6925bc9119c83f393597981145315
7
- data.tar.gz: a39514eeb89f64fa2d564244345010c5304d790f4d95fc04bf086cf4ec4afe31dd838e86c2ed0cb858105df98be1cc4f00fc3b911cc1dbf3cbb756320550bd96
6
+ metadata.gz: 63440f0703a200a1fd38093e3df37fc8558b2675ce4052e7780fb207e3fec1c28499fabe04c9cff2f740c4887ccfbe6057c8fcbd84e3b47c240044d908ad6d9d
7
+ data.tar.gz: 347ef943ebd00feac5b24f7f2996d791363d0bc33becbc314ef1076f37c534602be6dc4116965ea9af6d17bde99537bba1116e5e46f51efdcbc1e0797f31a350
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
File without changes
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -9,17 +9,21 @@ require_relative "between_the_sheets/wager"
9
9
  require_relative "between_the_sheets/version"
10
10
 
11
11
  module BetweenTheSheets
12
+ running = true
13
+
12
14
  loop do
13
15
  begin
16
+ raise ApplicationExit unless running
17
+
14
18
  @game = Game.new(@jackpot || Game::STARTING_JACKPOT)
15
19
  @game.execute
16
20
  rescue GameOver
17
21
  @jackpot = @game.jackpot
18
22
  puts Game.message :game_over
19
- next if Ask.print("Play again? ", match: /y|n/) == "y"
23
+ running = Ask.print("Play again? ", match: /y|n/) == "y"
20
24
  rescue ApplicationHelp
21
25
  puts Game.message :help
22
- rescue ApplicationExit
26
+ rescue ApplicationExit, SystemExit, Interrupt
23
27
  puts Game.message :exit
24
28
  break
25
29
  rescue => e
File without changes
File without changes
File without changes
File without changes
@@ -2,8 +2,8 @@ module BetweenTheSheets
2
2
  class Game
3
3
  module Messages
4
4
  MESSAGES = {
5
- error: "Sorry, there was an error.".colorize(:orange),
6
- exit: "Good bye.",
5
+ error: "\nSorry, there was an error.".colorize(:orange),
6
+ exit: "\nGood bye.",
7
7
  game_over: "GAME OVER".colorize(:red),
8
8
  lose: "You LOSE!".colorize(:red),
9
9
  win: "You WIN!".colorize(:green),
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module BetweenTheSheets
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.4"
3
3
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: between_the_sheets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roerig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-30 00:00:00.000000000 Z
11
+ date: 2019-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -96,7 +96,6 @@ files:
96
96
  - LICENSE.txt
97
97
  - README.md
98
98
  - Rakefile
99
- - between_the_sheets-1.0.0.gem
100
99
  - between_the_sheets.gemspec
101
100
  - bin/console
102
101
  - bin/setup
@@ -140,7 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
139
  - !ruby/object:Gem::Version
141
140
  version: '0'
142
141
  requirements: []
143
- rubygems_version: 3.0.3
142
+ rubyforge_project:
143
+ rubygems_version: 2.6.12
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A simple card game I used to play at the bar.
Binary file