qotd 2.0.1 → 2.0.3
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 +0 -4
- data/bin/qotd +5 -1
- data/lib/qotd/version.rb +2 -1
- data/qotd.gemspec +2 -2
- data/spec/qweb_spec.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a39a3f9a21868f43c2d397117b43c0f9f1722f3
|
4
|
+
data.tar.gz: 47295327c73c515fdc237c03147ad4d723b92e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 926ec40391b515212c57bc1a5970aa156198205af5c4007a9c831fc479df80c41319cdb9fbf43e75ef61b9debf5b326a8edcefef2509bd4888d7206690092e4a
|
7
|
+
data.tar.gz: c43f4b24d6170b2ce346ef4b86817dbccafb1128ee03e2df397bf2f4c6f30f43df6422592b4a5a8b190fe10485f6b0c12cacb6df8bdbd6467bb17eec46939afc
|
data/README.md
CHANGED
@@ -11,10 +11,6 @@ The output is either formatted in a terminal to always be spaced out to the 80th
|
|
11
11
|
|
12
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!
|
13
13
|
|
14
|
-
## Todo
|
15
|
-
|
16
|
-
- Find a way to test it.
|
17
|
-
|
18
14
|
## Installation
|
19
15
|
|
20
16
|
Add this line to your application's Gemfile:
|
data/bin/qotd
CHANGED
@@ -5,10 +5,14 @@
|
|
5
5
|
# If no arguments given, rint a random quote from the quotes file.
|
6
6
|
|
7
7
|
require 'qotd'
|
8
|
+
require 'qotd/version'
|
8
9
|
|
9
10
|
if ARGV.first == "--web"
|
11
|
+
puts "=== RUUNNING QWEB ON localhost:4567 ==="
|
12
|
+
puts "=== WITH ruby #{Qotd::GEMDIR}/lib/qweb.rb ==="
|
13
|
+
|
10
14
|
`open http://localhost:4567`
|
11
|
-
`ruby lib/qweb.rb`
|
15
|
+
`ruby #{Qotd::GEMDIR}/lib/qweb.rb`
|
12
16
|
else
|
13
17
|
|
14
18
|
puts "Quote of the Day:"
|
data/lib/qotd/version.rb
CHANGED
data/qotd.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Qotd::VERSION
|
9
9
|
spec.authors = ["jfjhh"]
|
10
10
|
spec.email = ["alex.striff1@gmail.com"]
|
11
|
-
spec.summary = "Displays a
|
12
|
-
spec.description = "Gets a random quote from a file and displays it to the
|
11
|
+
spec.summary = "Displays a quote to the terminal or web."
|
12
|
+
spec.description = "Gets a random quote from a file and displays it to the terminal or in a Sinatra Application"
|
13
13
|
spec.homepage = "https://github.com/jfjhh/qotd"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
data/spec/qweb_spec.rb
CHANGED
@@ -3,10 +3,10 @@ require_relative "spec_helper"
|
|
3
3
|
describe "Qweb" do
|
4
4
|
include Rack::Test::Methods
|
5
5
|
|
6
|
-
it "
|
6
|
+
it "loads the quote page" do
|
7
7
|
get '/'
|
8
8
|
expect(last_response).to be_ok
|
9
|
-
expect(last_response.body).to
|
9
|
+
expect(last_response.body).to include("Quote of the Day")
|
10
10
|
end
|
11
11
|
|
12
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qotd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfjhh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,7 +66,8 @@ dependencies:
|
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.14'
|
69
|
-
description: Gets a random quote from a file and displays it to the
|
69
|
+
description: Gets a random quote from a file and displays it to the terminal or in
|
70
|
+
a Sinatra Application
|
70
71
|
email:
|
71
72
|
- alex.striff1@gmail.com
|
72
73
|
executables:
|
@@ -119,7 +120,7 @@ rubyforge_project:
|
|
119
120
|
rubygems_version: 2.2.2
|
120
121
|
signing_key:
|
121
122
|
specification_version: 4
|
122
|
-
summary: Displays a
|
123
|
+
summary: Displays a quote to the terminal or web.
|
123
124
|
test_files:
|
124
125
|
- spec/format_spec.rb
|
125
126
|
- spec/qotd_spec.rb
|