questioning_alex 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/lib/questioning_alex/version.rb +1 -1
- data/lib/questioning_alex.rb +6 -2
- data/spec/questioning_alex_spec.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 430006caf9728d613b619bb94384a8ff607f6dc1
|
4
|
+
data.tar.gz: 73ad2d78194a38ac9557af3d4f3e13dcb530d7aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28d6075588d42876cc2f5e499bb7c3c9bbe4d17b3bec3fbddc5e28274eb772d96d74a997a7ae6c3a997b667c8ae2d889798fa4585917cce5b74a12108d3c0122
|
7
|
+
data.tar.gz: dda68a2723fe73cd19c26e21fd2d86c53556209b18d57e4765336c8abe7b1f6f0679049be345caf79c288b16aa3fee246baeba2b667df0e17f6a2c9ba8d900b0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# QuestioningAlex
|
2
2
|
|
3
|
-
|
3
|
+
Alex needs to stop asking silly questions.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,14 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Create class;
|
22
|
+
class Alex
|
23
|
+
require QuestioningAlex
|
24
|
+
end
|
25
|
+
|
26
|
+
alex = Alex.new
|
27
|
+
alex.said("Whatever he said here")
|
28
|
+
|
22
29
|
|
23
30
|
## Contributing
|
24
31
|
|
data/lib/questioning_alex.rb
CHANGED
@@ -5,7 +5,12 @@ class Alex; include QuestioningAlex; end
|
|
5
5
|
describe QuestioningAlex do
|
6
6
|
let(:alex){Alex.new}
|
7
7
|
|
8
|
-
it 'should
|
9
|
-
expect(alex.
|
8
|
+
it 'should return a phrase if Alex asked a question' do
|
9
|
+
expect(alex.said("What?")).to eq 'Stop asking questions, Alex'
|
10
10
|
end
|
11
|
+
|
12
|
+
it 'should return a different phrase if Alex made a statement' do
|
13
|
+
expect(alex.said("What")).to eq 'Stop making silly statements, Alex'
|
14
|
+
end
|
15
|
+
|
11
16
|
end
|