qotd 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9c60639e62a9928072dc2d06377d6857b25e93c
4
- data.tar.gz: 7a800932681b2e6a69f9dbeab1ac95f2c89b0ab4
3
+ metadata.gz: 2d2424de6695bc3b0432637e67f1fba73a6ae2b0
4
+ data.tar.gz: 7f8e8713bd9bf3f1332ef70d2bb7a1f3b99db579
5
5
  SHA512:
6
- metadata.gz: e9446ba0cb8fcbfcad35455dd896ca262f49467201b909cef7949249d1b778d508567a7d045437afb78bb7e1a2e82b0b84f01368b512c0975771e3982b697f6f
7
- data.tar.gz: 7fe7f0e8c1d38c8c4e028b442f159f5b8d8f7f36be690b1546dc9d4d127720197ebff04cd097aa04397f793173e55ac1ae9856f19af6817afc3ca985961cb036
6
+ metadata.gz: 2acf5f09a3afd65b702da24671c8c3ce3cf1c5f2c3c112e37d136efe54786979bc2c4f91550ec62dff2d191427d009c39c2270443dae98d45e38a39141dac300
7
+ data.tar.gz: 70b6c285462ddd1a7ee521bfad072bd4e58fcec24a4a2dda1ac56e77254a49967c1b1800c2e3a649ea4c2125b0ebfd2650804733bbf3a74ce51a116b90ae3ac8
data/README.md CHANGED
@@ -1,16 +1,15 @@
1
1
  # Qotd ~ Quote of the Day
2
2
 
3
- Displays a random formatted quote from a massive compilation of hilarious
4
- quotes.
3
+ **Displays a random formatted quote from a massive compilation of hilarious quotes.**
4
+ The output is either formatted in a terminal to always be spaced out to the 80th column, and the quote displayed with reversed foreground / background colors, or displayed in your browser with a Sinatra application on `localhost:4567`.
5
5
 
6
- The output is formatted to always be spaced out to the 80th column, and the
7
- quote is displayed with reversed foreground / background colors.
6
+ ![Quote of the Day](screenshot/screenshot.png)
8
7
 
9
- ![screenshot](screenshot/screenshot.png)
8
+ ![Custom Message](screenshot/screenshot2.png)
10
9
 
11
- A big thanks to [textfiles.com](textfiles.com), where I got all the quotes.
12
- Without it, there would be no quote of the day. The reformatted file with all
13
- the quotes in it numbers over 3000 lines!
10
+ ![The Sinatra Application](screenshot/screenshot3.png)
11
+
12
+ A big thanks to [textfiles.com](textfiles.com), where I got all the quotes. Without it, there would be no quote of the day. The reformatted file with all the quotes in it numbers over 3000 lines!
14
13
 
15
14
  ## Todo
16
15
 
@@ -32,12 +31,47 @@ Or install it yourself as:
32
31
 
33
32
  ## Usage
34
33
 
35
- Add it to a shell configuration file.
34
+ ### For output to the terminal:
35
+
36
+ *A random quote at login.*
36
37
 
37
38
  # ~/.bashrc
38
39
  # ...
40
+ # Random quote.
39
41
  qotd
40
42
 
43
+ *A formatted motd replacement.*
44
+
45
+ # ~/.bashrc
46
+ # ...
47
+ # Custom message.
48
+ qotd "Hello Master"
49
+
50
+ *At the command prompt.*
51
+
52
+ # Random quote.
53
+ $ qotd
54
+
55
+ # Custom message.
56
+ $ qotd "Quote of the Day"
57
+
58
+ ### For the Sinatra application.
59
+
60
+ Sometimes, if you want to see multiple quotes, it can be repetitive to constantly re-run the qotd command.
61
+ Now, you can use a simple Sinatra application, viewed by your browser at [http://localhost:4567](http://localhost:4567), to take in the *wisdom* provided by a compilation of hilarious quotes.
62
+ The CSS styling is arguably better than what is possible with ASCII color escape codes (`\033[7m`, for example).
63
+
64
+ # Open browser at `http://localhost:4567` and
65
+ # run the Qweb Sinatra application.
66
+ $ qotd --web # <CTRL-C> to stop serving on localhost and exit.
67
+
68
+ *Please note that you may have to refresh your browser once it is opened to view quotes. The only way to open the browser is before the sinatra application runs, and `localhost:4567` is not being served before runtime.*
69
+
70
+ #### To change the quote in the browser.
71
+
72
+ - Click to change the quote.
73
+ - If you are so hopelessly lazy to even to that, the quote will automatically change every minute.
74
+
41
75
  ## Contributing
42
76
 
43
77
  1. Fork it ( http://github.com/jfjhh/qotd/fork )
@@ -1,3 +1,3 @@
1
1
  module Qotd
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qotd
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfjhh
@@ -90,6 +90,8 @@ files:
90
90
  - lib/views/layout.erb
91
91
  - qotd.gemspec
92
92
  - screenshot/screenshot.png
93
+ - screenshot/screenshot2.png
94
+ - screenshot/screenshot3.png
93
95
  - spec/format_spec.rb
94
96
  - spec/qotd_spec.rb
95
97
  - spec/qweb_spec.rb