quotify 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/LICENSE +1 -1
- data/lib/quotify.rb +0 -4
- data/lib/quotify/quote.rb +0 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f8b5ba09213aaa7238a8fd474560a9161fa5d6f6cda18137ef930d9d150b466
|
4
|
+
data.tar.gz: 321fa9889c476be3d53208e1d405db2f10df7d8639345dc728ef1744cbc32d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a820edc5b569fddb1ee22f5fb3897e05ef95f27db82af818e0684ba95440e332dd04e86b7499bffc83dd60eef2c5ac0353e85fdca5acdc5625488ad0b3565dc
|
7
|
+
data.tar.gz: 6bc7e2d329df8156ca1c3f615ba77839c9fc1b4f298a75332207547b44599f4219962b259ce3d4af8c55efb040aefbe184b52a781ec64ce97b4ee209a58cb586
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/lib/quotify.rb
CHANGED
@@ -8,10 +8,6 @@ module Quotify
|
|
8
8
|
# @param quote [#to_s] A specified quote
|
9
9
|
# @param author [#to_s] A specified author
|
10
10
|
# @return [Quotify::Quote] quote with author
|
11
|
-
# <br>
|
12
|
-
# Example:
|
13
|
-
# >> Quotify.generate
|
14
|
-
# => #<Quotify::Quote:0x00007f8a44053978 @quote="You must be the change you wish to see in the world.", @author="Logan Paul">
|
15
11
|
def self.generate(quote: nil, author: nil)
|
16
12
|
Quote.new(quote: quote, author: author)
|
17
13
|
end
|
data/lib/quotify/quote.rb
CHANGED
@@ -19,10 +19,6 @@ module Quotify
|
|
19
19
|
|
20
20
|
# Returns the quote and author in a string format
|
21
21
|
# @option spacer [#to_s] Characters between quote and author
|
22
|
-
# <br>
|
23
|
-
# Example:
|
24
|
-
# >> Quote.new.to_s(spacer: " 🔥 ")
|
25
|
-
# => You must be the change you wish to see in the world. 🔥 Logan Paul
|
26
22
|
def to_s(spacer: " - ")
|
27
23
|
"#{@quote}#{spacer}#{@author}"
|
28
24
|
end
|
@@ -30,10 +26,6 @@ module Quotify
|
|
30
26
|
|
31
27
|
# Returns the quote and author in a string format
|
32
28
|
# @option spacer [#to_s] Characters between quote and author
|
33
|
-
# <br>
|
34
|
-
# Example:
|
35
|
-
# >> Quote.new.to_s(spacer: " 🔥 ")
|
36
|
-
# => You must be the change you wish to see in the world. 🔥 Logan Paul
|
37
29
|
def to_str(spacer: " - ")
|
38
30
|
to_s(spacer: spacer)
|
39
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Leger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|