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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa3e4ac2b219d65a50ddca4c0f8f6d634af53d14
4
- data.tar.gz: c1d090947956d48fe5d80843a30191a7a52d527b
3
+ metadata.gz: e85dcaf3cc7d685e312fbdb37ea67d63cea8f82a
4
+ data.tar.gz: bf1193dea89b3285efd218abef8908c18c70a4cd
5
5
  SHA512:
6
- metadata.gz: 312b9d9adf9beaabd677335c488357a35a7f4d1530808a52463a99597fbcea516cc2938913f4e59b35d9569f468e19d5fafd05988be13cfad3737091125eb988
7
- data.tar.gz: 07cc992a15097305fdc574089afc4053c15ba359e1dd094fa5bd5c11498515dfc42d58746d3ee9c1ab121ae88de5fe89aa7a1a5ca793926935eb48d6a534bfbd
6
+ metadata.gz: 8dff09533c77ed3d6cd2d6388ba4f10f9ff81ddd6ad20e37b0b9c838af9ea3d5d05074af170463b6b35dc0c366e714f054f017109d874f6eee2799c969e5bb0f
7
+ data.tar.gz: 27c99ad02531726697a8ce978d1f2afabef745def0add5139dec58c61eeadaa79dd71377471e4067afb0d554fb8bec395ca15afea6bb1a7e77111ff9747e1369
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # FactIsFact
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fact_is_fact`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module FactIsFact
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fact_is_fact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aks