check-yourself 0.1.0
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 +7 -0
- data/lib/check_yourself.rb +23 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ceb07ccc9852a075bab000116da9a5098b62199f
|
4
|
+
data.tar.gz: c45da22385955bd79450a486dc6d1e8037bbae30
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c2198c772fe3b599656c83623e83418a598fdeb1cd2d820b1a1d93c5717247d62fedb1b7d40df2272b0b862b692f18397ce150bbaf9582f90342ff83a68062d
|
7
|
+
data.tar.gz: 285a95d61b46d7d387c3c7726ca3244df75c6a1512fbead7701a705e7ec89e4ea0b32bcb541e54e5ca4c2cc2605ce3b9917116eab60322aabc9ab5a900e01d2e
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'pry'
|
2
|
+
|
3
|
+
class CheckYourself
|
4
|
+
|
5
|
+
def suggestions
|
6
|
+
{
|
7
|
+
1 => "Take a walk",
|
8
|
+
2 => "Get some coffee",
|
9
|
+
3 => "Eat a snack",
|
10
|
+
4 => "Get the hell out of there",
|
11
|
+
5 => "Use Smiler"
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_random_key
|
16
|
+
rand(1..suggestions.count)
|
17
|
+
end
|
18
|
+
|
19
|
+
def give_a_suggestion
|
20
|
+
suggestions[get_random_key]
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: check-yourself
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mike Scherer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2010-04-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Get a random suggestion for a coding break
|
14
|
+
email: michael.c.scherer@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/check_yourself.rb
|
20
|
+
homepage: https://github.com/mscherer11/check-yourself
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.5.1
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: suggestion
|
44
|
+
test_files: []
|