escape-room 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -8
- data/lib/escape/commands/questions.rb +2 -1
- data/lib/escape/version.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: 4b71013c365304da6575762cc2dfd9e8bbb3055ca5106f02ae53ef8010ffc808
|
4
|
+
data.tar.gz: ff77b336fa2873cfe3254a3fbb2efb2a48e087893daa73fdd83e14deaa64d228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7943c64979176ea85f1c0be51af92164e625074979a03f4dd61f761f34ebcbccb2cbd5eb5baa94a5c62b24b21b2834a67b1051e7c452baefb0ccfe7578c5c3
|
7
|
+
data.tar.gz: 90e8f54252e551c880e31a70467033d2bca1fd329131f024afa82a5d5ffb5dfaffd646ca491898effd15dfe5924e1465936a31d4d6a3b1a249eb9cd5c7ea10a1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -54,21 +54,19 @@ Once the CLI loops through all of the questions, you will get a message with a c
|
|
54
54
|
|
55
55
|
### Installation
|
56
56
|
|
57
|
-
1.
|
57
|
+
1. Install the gem
|
58
58
|
|
59
59
|
```
|
60
|
-
|
60
|
+
gem install escape-room
|
61
61
|
```
|
62
|
-
|
63
|
-
2. `cd` into this directory
|
62
|
+
2. Configure your welcome message, questions, answers, and code at [./configuration.yml](./configuration.yml)
|
64
63
|
|
65
64
|
```
|
66
|
-
cd escape
|
65
|
+
cd $GEM_HOME/gems/escape-room-0.0.3
|
66
|
+
nano configuration.yml
|
67
67
|
```
|
68
68
|
|
69
|
-
3.
|
70
|
-
|
71
|
-
4. Run the application at the command line
|
69
|
+
3. Run the application at the command line
|
72
70
|
|
73
71
|
```
|
74
72
|
escape
|
@@ -77,6 +75,7 @@ escape
|
|
77
75
|
## RELEASING A NEW GEM
|
78
76
|
|
79
77
|
1. Bump the VERSION in `lib/escape/version.rb`
|
78
|
+
1. Bundle install `bundle install`
|
80
79
|
1. Commit changes and push to GitHub
|
81
80
|
1. run `bundle exec rake release`
|
82
81
|
|
@@ -4,7 +4,8 @@ module Escape
|
|
4
4
|
def start(questions, clues)
|
5
5
|
questions.each_with_index do |question, index|
|
6
6
|
answer = runner.ask(question.text)
|
7
|
-
|
7
|
+
clue = question.correct?(answer) ? Clue.new(clues).correct(index) : Clue.new(clues).incorrect(index)
|
8
|
+
runner.say("YOUR NEXT CLUE IS '#{clue}'")
|
8
9
|
runner.say
|
9
10
|
end
|
10
11
|
end
|
data/lib/escape/version.rb
CHANGED