pot_of_coffee 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/Rakefile +9 -0
- data/bin/pot_of_coffee +0 -0
- data/lib/pot_of_coffee/version.rb +1 -1
- data/pot_of_coffee.gemspec +1 -0
- data/test/test_pot_of_coffee.rb +26 -0
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c737bb79b74044f92383833c7640131dcfa03522
|
4
|
+
data.tar.gz: 9792a23a844be2faf6fe460fb9e3f809084e0716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe29369cce46158e413f3d40c99caf3890bedba7e0008b1e621c3bb20dfbfa8638bcf2626780d0f6a5f4ef8228888ba120b14fd5c95ba041eb6633798ce81f8
|
7
|
+
data.tar.gz: bddb3be88b3adfcc9dc0db2cc84b8e89324a89201992c62d526ddfba3e513ca0a1429c8632c3be234341232f1d54455dd19240c0de120daa2306c406d46a1cf3
|
data/Rakefile
CHANGED
data/bin/pot_of_coffee
CHANGED
File without changes
|
data/pot_of_coffee.gemspec
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'minitest/autorun' # Because testing should happen
|
2
|
+
require 'minitest/pride' # Because testing should be fabulous
|
3
|
+
require 'pot_of_coffee'
|
4
|
+
|
5
|
+
class PotOfCoffeeTest < Minitest::Test
|
6
|
+
def setup
|
7
|
+
options = { quantity: rand(24), strength: PotOfCoffee::Brewer.ratios.keys.sample }
|
8
|
+
@pot_of_coffee = PotOfCoffee::Brewer.new(options)
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_ratios
|
12
|
+
assert_kind_of Hash, PotOfCoffee::Brewer.ratios
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_strength
|
16
|
+
assert_includes @pot_of_coffee.ratios, @pot_of_coffee.strength
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_quantity
|
20
|
+
assert_kind_of Integer, @pot_of_coffee.quantity
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_scoops
|
24
|
+
assert_kind_of Float, @pot_of_coffee.scoops
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pot_of_coffee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: This is a small CLI app for calculating the brew strength for an automatic
|
42
56
|
drip coffee maker. It can help keep coffee brews consistent.
|
43
57
|
email:
|
@@ -56,6 +70,7 @@ files:
|
|
56
70
|
- lib/pot_of_coffee.rb
|
57
71
|
- lib/pot_of_coffee/version.rb
|
58
72
|
- pot_of_coffee.gemspec
|
73
|
+
- test/test_pot_of_coffee.rb
|
59
74
|
homepage: http://daveshaffer.co/coffee
|
60
75
|
licenses:
|
61
76
|
- MIT
|
@@ -76,8 +91,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
91
|
version: '0'
|
77
92
|
requirements: []
|
78
93
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.
|
94
|
+
rubygems_version: 2.4.6
|
80
95
|
signing_key:
|
81
96
|
specification_version: 4
|
82
97
|
summary: Coffee brew strength calculator
|
83
|
-
test_files:
|
98
|
+
test_files:
|
99
|
+
- test/test_pot_of_coffee.rb
|