qotd 2.0.1 → 2.0.3

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: 2d2424de6695bc3b0432637e67f1fba73a6ae2b0
4
- data.tar.gz: 7f8e8713bd9bf3f1332ef70d2bb7a1f3b99db579
3
+ metadata.gz: 0a39a3f9a21868f43c2d397117b43c0f9f1722f3
4
+ data.tar.gz: 47295327c73c515fdc237c03147ad4d723b92e5a
5
5
  SHA512:
6
- metadata.gz: 2acf5f09a3afd65b702da24671c8c3ce3cf1c5f2c3c112e37d136efe54786979bc2c4f91550ec62dff2d191427d009c39c2270443dae98d45e38a39141dac300
7
- data.tar.gz: 70b6c285462ddd1a7ee521bfad072bd4e58fcec24a4a2dda1ac56e77254a49967c1b1800c2e3a649ea4c2125b0ebfd2650804733bbf3a74ce51a116b90ae3ac8
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:"
@@ -1,3 +1,4 @@
1
1
  module Qotd
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.3"
3
+ GEMDIR = "/Library/Ruby/Gems/2.0.0/Gems/qotd-#{Qotd::VERSION}"
3
4
  end
@@ -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 new quote on login to terminal."
12
- spec.description = "Gets a random quote from a file and displays it to the standard output."
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
 
@@ -3,10 +3,10 @@ require_relative "spec_helper"
3
3
  describe "Qweb" do
4
4
  include Rack::Test::Methods
5
5
 
6
- it "says hello world" do
6
+ it "loads the quote page" do
7
7
  get '/'
8
8
  expect(last_response).to be_ok
9
- expect(last_response.body).to eq("Hello World!")
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.1
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-09 00:00:00.000000000 Z
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 standard output.
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 new quote on login to terminal.
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