big_eyed_al 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcc72fb292fa0c738c2c2229e1ab62abc899fa99
4
- data.tar.gz: 685c87b69a235e58abed2c1aa487fca429b8e8ce
3
+ metadata.gz: f24b9c658654ee25168678f45189252dd1f6d5f3
4
+ data.tar.gz: ecc58d65a94e19d3c25125f390a7d5d094ff5e23
5
5
  SHA512:
6
- metadata.gz: 4761e617bce12c4fcbaa1f6dab1e5af43fa06120099d4038f7bb50666904b100fb7c6aead5fe5df694043deecc6c51f5daf8f2b35b9ed2d04b72736b2faea881
7
- data.tar.gz: 3535662710cfe0cc1068023f2f3ca5801f95796861c69ba50de166202f4dd3ac11a674db5e079eb0a339a4bac64715d508899de699fce59fd3eaf8baf59760c6
6
+ metadata.gz: 25aebfd9e6430be71d4877e5441472c896d45b41436d5b7e88743206558a57b56b34bb27d6e56fd67cd573591e800aa29f0b77d3dbc2168f51b6b30aee690994
7
+ data.tar.gz: e301cb3e5985f284389a4bf9f05e613130cec6abd3cf5990340b629bc86b267d2d4ac190edffa57078e67325bb6dff30d37f6aae0ce0a35e63aa6c9ac187e691
data/README.md CHANGED
@@ -18,7 +18,12 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ - Open IRB/Pry
22
+ - require 'big_eyed_al'
23
+ - create a class Alex and include the module BigEyedAl
24
+ - create an instance of Alex
25
+ - run the method 'said' on the instance along with a statement or question as an argument
26
+
22
27
 
23
28
  ## Contributing
24
29
 
@@ -1,3 +1,3 @@
1
1
  module BigEyedAl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/big_eyed_al.rb CHANGED
@@ -2,8 +2,12 @@ require "big_eyed_al/version"
2
2
 
3
3
  module BigEyedAl
4
4
 
5
- def tell
6
- "Stop asking questions, Alex."
5
+ def said(sentence)
6
+ if sentence.include? "?"
7
+ "Stop asking questions, Alex."
8
+ else
9
+ "Stop making silly statements, Alex."
10
+ end
7
11
  end
8
12
 
9
13
  end
@@ -6,8 +6,20 @@ require 'spec_helper'
6
6
 
7
7
  let(:alex) { Alex.new }
8
8
 
9
- it 'should print a phrase' do
10
- expect(alex.tell).to eq 'Stop asking questions, Alex.'
11
- end
9
+ context 'when Alex makes a statement' do
10
+
11
+ it 'it should say stop making silly statements' do
12
+ expect(alex.said("Hello")).to eq "Stop making silly statements, Alex."
13
+ end
14
+
15
+ end
16
+
17
+ context 'when Alex asks a question' do
18
+
19
+ it 'it should say stop asking questions' do
20
+ expect(alex.said("Why?")).to eq "Stop asking questions, Alex."
21
+ end
22
+
23
+ end
12
24
 
13
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_eyed_al
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicole Pellicena