burger_game 1.0.3 → 1.0.4
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 +1 -1
- data/lib/customer_request.rb +2 -2
- data/lib/recipe.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc43834396f60c40cffd14363e340d1a56886a3e947ad6b0ce8327765da81cc9
|
4
|
+
data.tar.gz: 283ed5afe1a73ad9e88ee404bddda1a5fa2024c7c05a6a81b3065cbfcc62fb79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d2acaeef63213ce8c99ff41a9a266a072461899592af6c09e1d6f671d5202865d5e201c2f909486983bed60f413b502b1a7e4d81657ac089fdfcb3f82a5ceab
|
7
|
+
data.tar.gz: 12493b20fe1ab4134df1691122aae603451202f3f9499720f052752b2bab607393831173ea2f3f53fab24ae4e901996d8a2af4cc63d3d81b9251e1eac44017f6
|
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.4"
|
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"]
|
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('./customer_request.json')
|
8
|
+
customer_file = File.read('./lib/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('./customer_response.json')
|
21
|
+
response_file = File.read('./lib/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
|
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('./recipe.json')
|
11
|
+
file = File.read('./lib/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
|