burger_game 1.0.2 → 1.0.3
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 +4 -4
- data/burger_game.gemspec +4 -4
- data/lib/{data/customer_request.json → customer_request.json} +0 -0
- data/lib/customer_request.rb +2 -2
- data/lib/{data/customer_response.json → customer_response.json} +0 -0
- data/lib/{data/recipe.json → recipe.json} +0 -0
- data/lib/recipe.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05baef14f9fdefed6aed8fc8cfe38e484f0c15b7d0739d982bb4f39fd1ded774
|
4
|
+
data.tar.gz: 0d5eb2c019edab1f15a2048fa0837a773cac711d45f1723d884fce654aad5333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2537a953f3d897effdced5cafb72e4572f70f78880fb167d0387db7512bd25bef031fb31cc25e82408bfb7df4b8721c31fcc14c06788ace6a8569b1db94fe073
|
7
|
+
data.tar.gz: 4286d65a31cc90608c5077e04226cac032cbbd26dd835c659254e707caa097dba4e7e44993ebf109d3a2a6498bd56ee4900b52086feac763a26a7710134c790d
|
data/burger_game.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "burger_game"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.3"
|
4
4
|
s.summary = "A Ruby Burger Game"
|
5
5
|
s.description = "A simple text-based Ruby terminal game, that simulates a burger shop, where you need to build the meal for the customers with different requests and preferences."
|
6
6
|
s.authors = ["Jessica Gozali"]
|
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
"./lib/recipe.rb",
|
21
21
|
"./lib/score_comparison.rb",
|
22
22
|
"./lib/screen_message.rb",
|
23
|
-
"./lib/
|
24
|
-
"./lib/
|
25
|
-
"./lib/
|
23
|
+
"./lib/customer_request.json",
|
24
|
+
"./lib/customer_response.json",
|
25
|
+
"./lib/recipe.json",
|
26
26
|
"./spec/burger_game_spec.rb"]
|
27
27
|
s.homepage = "https://rubygems.org/gems/burger_game"
|
28
28
|
s.license = "GPL-3.0"
|
File without changes
|
data/lib/customer_request.rb
CHANGED
@@ -5,7 +5,7 @@ class CustomerRequest
|
|
5
5
|
# ERROR HANDLING for reading files
|
6
6
|
begin
|
7
7
|
# Read customer_request.JSON file
|
8
|
-
customer_file = File.read('./
|
8
|
+
customer_file = File.read('./customer_request.json')
|
9
9
|
rescue Errno::ENOENT => e
|
10
10
|
puts "Could not find customer_request.json file. Please put customer_request.json in the 'data' directory."
|
11
11
|
puts e.message
|
@@ -18,7 +18,7 @@ class CustomerRequest
|
|
18
18
|
|
19
19
|
begin
|
20
20
|
# Read customer_response.JSON file
|
21
|
-
response_file = File.read('./
|
21
|
+
response_file = File.read('./customer_response.json')
|
22
22
|
rescue Errno::ENOENT => e
|
23
23
|
puts "Could not find customer_response.json file. Please put customer_response.json in the 'data' directory."
|
24
24
|
puts e.message
|
File without changes
|
File without changes
|
data/lib/recipe.rb
CHANGED
@@ -8,7 +8,7 @@ class Recipe
|
|
8
8
|
# ERROR HANDLING for reading files
|
9
9
|
begin
|
10
10
|
# Read recipe.JSON file
|
11
|
-
file = File.read('./
|
11
|
+
file = File.read('./recipe.json')
|
12
12
|
rescue Errno::ENOENT => e
|
13
13
|
puts "Could not find recipe.json file. Please put recipe.json in the 'data' directory."
|
14
14
|
puts e.message
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: burger_game
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessica Gozali
|
@@ -122,12 +122,12 @@ files:
|
|
122
122
|
- "./bin/start_burger_game"
|
123
123
|
- "./burger_game.gemspec"
|
124
124
|
- "./lib/burger_game.rb"
|
125
|
+
- "./lib/customer_request.json"
|
125
126
|
- "./lib/customer_request.rb"
|
126
|
-
- "./lib/
|
127
|
-
- "./lib/data/customer_response.json"
|
128
|
-
- "./lib/data/recipe.json"
|
127
|
+
- "./lib/customer_response.json"
|
129
128
|
- "./lib/game_state.rb"
|
130
129
|
- "./lib/player_option.rb"
|
130
|
+
- "./lib/recipe.json"
|
131
131
|
- "./lib/recipe.rb"
|
132
132
|
- "./lib/score_comparison.rb"
|
133
133
|
- "./lib/screen_message.rb"
|