fruitfacts 0.0.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/LICENSE +21 -0
- data/README.md +4 -0
- data/lib/fruitfacts.rb +18 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a7883ba86268909a08e59c2c468b571c17d405cb
|
|
4
|
+
data.tar.gz: de049b51957ce06c3b25409f55c902bc2a04dc76
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 46b1436605d5231da47838b4a245908377bf1410fdf51f32fe583a0df97926045b8c77f08b27571e14509407ef6dedf9e875737f8c0a258c31c1a2c09414d691
|
|
7
|
+
data.tar.gz: c996f015d7dbad55bd63ba72508a64641fcd618ddf5382a5c544693b5b64e9c3a6d4aa52f7e796401465351ef390b5b156cb82a50f890816142180a5548292ac
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Zachary Perlmutter
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
data/lib/fruitfacts.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Produces a random fact.
|
|
2
|
+
def fact
|
|
3
|
+
return ["The average strawberry has around 200 seeds.", "Peaches were once known as Persian apples.",
|
|
4
|
+
"Add half a cup of lemon juice to your laundry to brighten your whites.",
|
|
5
|
+
"Kiwi fruits were originally known by their Chinese name, yang tao (sunny peach).",
|
|
6
|
+
"Strawberries are members of the rose family.",
|
|
7
|
+
"The inside of banana peel can be used to polish leather shoes.",
|
|
8
|
+
"Apples have almost 5x the antioxidant capicity of bananas.",
|
|
9
|
+
"Kiwi fruits are declared as the national fruit of China.",
|
|
10
|
+
"In China, peaches are a symbol of longevity & good luck.",
|
|
11
|
+
"There are almost 400 varieties the inside of a banana skin on a mosquito bite to stop the itchiness.",
|
|
12
|
+
"Bananas are high in the B-complex vitamins, which help calm the nervous system.",
|
|
13
|
+
"If you warm a lemon before squeezing, it will yield much more juice!",
|
|
14
|
+
"Passion fruits were first grown in Brazil.",
|
|
15
|
+
"Mature lemon trees may prduce around 1,500 fruits per year.",
|
|
16
|
+
"Pineapples contain bromelain, which is used to stop cold beer from going cloudy."
|
|
17
|
+
].sample
|
|
18
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: fruitfacts
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Zachary Perlmutter
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2014-06-28 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Sentence generator that generates facts on fruit. Good if you want random
|
|
14
|
+
sentences
|
|
15
|
+
email: zrp200@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files:
|
|
19
|
+
- LICENSE
|
|
20
|
+
- README.md
|
|
21
|
+
files:
|
|
22
|
+
- LICENSE
|
|
23
|
+
- README.md
|
|
24
|
+
- lib/fruitfacts.rb
|
|
25
|
+
homepage: https://rubygems.org/gems/fruitfacts/versions/0.0.0
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata: {}
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '0'
|
|
43
|
+
requirements: []
|
|
44
|
+
rubyforge_project:
|
|
45
|
+
rubygems_version: 2.3.0
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: Sentence generator
|
|
49
|
+
test_files: []
|