quotify 0.3.0 → 0.3.1
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/CHANGELOG.md +3 -0
- data/bin/quotify +7 -6
- data/lib/quotify/quotes.yml +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e35bf337674a084aa87a47429da16ec90f95c55e27774613e49aebab8d9bb91a
|
|
4
|
+
data.tar.gz: d7b2ae90b551da9a00d61c1a57d18c5907224dbeeec1e8934af17a125a2862a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd55213a17ef985f27497af70bb071237750542544d653d77d8bfbe0817d3aba971e07a36afc2d9554979d7dce0862f6b20018545f878e1b9b0d9585b6fb246a
|
|
7
|
+
data.tar.gz: 0c6b3cbcb5fbc6e916ff0c2984920c0bf132468446c08b665251779c755b2de5750af17ed8af659e76bb381c3d35a75b7fb26c3cfbe3704fdcf544cce7bc9485
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
## V0.3.1
|
|
2
|
+
Quotify CLI command can also be used to display random quotes without calling the update function. Calling `quotify` without parameter will now show a quote instead of returning null. Also the CLI logo was fixed.
|
|
3
|
+
|
|
1
4
|
## V0.3.0
|
|
2
5
|
Introduction quotify CLI. Pretty barebone implementation with update method. `quotify update` or `quotify u` updates the database.
|
|
3
6
|
|
data/bin/quotify
CHANGED
|
@@ -4,16 +4,17 @@ require 'quotify'
|
|
|
4
4
|
require 'HTTParty'
|
|
5
5
|
require 'yaml'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
" ____ __ _ ____
|
|
7
|
+
puts "-------------------------------------\n"\
|
|
8
|
+
" ____ __ _ ____
|
|
10
9
|
/ __ \\__ ______ / /_(_) __/_ __
|
|
11
10
|
/ / / / / / / __ \\/ __/ / /_/ / / /
|
|
12
11
|
/ /_/ / /_/ / /_/ / /_/ / __/ /_/ /
|
|
13
12
|
\\___\\_\\__,_/\\____/\\__/_/_/ \\__, /
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
.____/ /
|
|
14
|
+
/______/\n"\
|
|
15
|
+
"-------------------------------------\n"\
|
|
16
|
+
"#{Quotify.generate}\n\n"
|
|
17
|
+
if ARGV[0] == 'update' || ARGV[0] == 'u'
|
|
17
18
|
payload = YAML.load(HTTParty.get('https://raw.githubusercontent.com/jusleg/quotify-ruby/master/lib/quotify/quotes.yml'))
|
|
18
19
|
|
|
19
20
|
if Quotify.config[:updated_at] < payload[:updated_at]
|
data/lib/quotify/quotes.yml
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
:
|
|
3
|
-
:default_spacer: " - "
|
|
1
|
+
:updated_at: 2018-02-01
|
|
2
|
+
:default_spacer: ' - '
|
|
4
3
|
:authors:
|
|
5
4
|
- Ivanka Trump
|
|
6
5
|
- Dog The Bounty Hunter
|
|
@@ -29,6 +28,7 @@
|
|
|
29
28
|
- Snoop Dogg
|
|
30
29
|
- Olga
|
|
31
30
|
- Logan Paul
|
|
31
|
+
|
|
32
32
|
:quotes:
|
|
33
33
|
- The ode lives upon the ideal, the epic upon the grandiose, the drama upon the real.
|
|
34
34
|
- If we don't study the mistakes of the future we're doomed to repeat them for the
|
|
@@ -95,3 +95,4 @@
|
|
|
95
95
|
- Link in Bio
|
|
96
96
|
- Be a maverick
|
|
97
97
|
- DAMN DAWG.
|
|
98
|
+
- zaaaaamn zoooooog
|