fact_is_fact 0.1.0 → 0.2.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 +4 -4
- data/README.md +8 -4
- data/lib/fact_is_fact/version.rb +1 -1
- 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: e85dcaf3cc7d685e312fbdb37ea67d63cea8f82a
|
|
4
|
+
data.tar.gz: bf1193dea89b3285efd218abef8908c18c70a4cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dff09533c77ed3d6cd2d6388ba4f10f9ff81ddd6ad20e37b0b9c838af9ea3d5d05074af170463b6b35dc0c366e714f054f017109d874f6eee2799c969e5bb0f
|
|
7
|
+
data.tar.gz: 27c99ad02531726697a8ce978d1f2afabef745def0add5139dec58c61eeadaa79dd71377471e4067afb0d554fb8bec395ca15afea6bb1a7e77111ff9747e1369
|
data/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# FactIsFact
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This gem returns a fact about any number provided. It is useful when you want
|
|
4
|
+
some random trivia or facts to be displayed about a number, on your website.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
P.S: Gem internally uses `numbersapi.com` to return the results.
|
|
6
7
|
|
|
7
8
|
## Installation
|
|
8
9
|
|
|
@@ -21,8 +22,11 @@ Or install it yourself as:
|
|
|
21
22
|
$ gem install fact_is_fact
|
|
22
23
|
|
|
23
24
|
## Usage
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
Currently it only supports Random trivia about a number.
|
|
26
|
+
```ruby
|
|
27
|
+
FactIsFact::Random.new(number: 42).trivia
|
|
28
|
+
#=> "42 is the answer to the Ultimate Question of Life, the Universe, and Everything."
|
|
29
|
+
```
|
|
26
30
|
|
|
27
31
|
## Development
|
|
28
32
|
|
data/lib/fact_is_fact/version.rb
CHANGED