jalapeno 1.0.2 → 1.0.4

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: 826878451571de6337f729b80f97645ae8abae63
4
- data.tar.gz: e6ede1e6cbb39204a7649dad32c71e7c54bcaec0
3
+ metadata.gz: 07f964c2cf3065c414411fb3ae68a95488e793ce
4
+ data.tar.gz: c4cce51ea41238ef116d48dbfa495974739e39c1
5
5
  SHA512:
6
- metadata.gz: 43882607a4ba013116e7a12826af4ce10277d33c47ef236e796de7a661983dab2ff108e2f8587ba5d66184eb0ec6a497b2e66259fcfdb29a6f89eac784632cf1
7
- data.tar.gz: 3651c8950443e3b357b0ffbcb085fa7ecb6e502b0e14b2b17a1279ec8244ff8e046e760cb315602637dd6d653b362352753d0e5c6a5560e995e57e7e4fdd8d5d
6
+ metadata.gz: dbcb54b2f4814b07ef7d7599054f00733c214a647340d5becd9ca7ec31be2472fdf929bbd471cb67248ac295c4a5d978474551d23ce9b95bec2068061e3d42ff
7
+ data.tar.gz: fe44b9c736e1534efa465741af78f93512413180218b3fe02e592641d8438a75300ad642a4ea86c3c2aae54f5ab0b215caf83ae1a7082c84de30d67a0b4d4faa
@@ -0,0 +1,11 @@
1
+ module Facts
2
+ trivia = ["The first computer program was actually thought to have been created in 1842",
3
+ "All dogs are banned from Antarctica out of fear they will spread diseases to seals",
4
+ "The chance of being shot in Japan is roughly the same chance as being struck by lightning",
5
+ "Russia has more land mass than Pluto"]
6
+ fake_trivia = ["Prairie Dogs are actually rodents. They are also assholes",
7
+ "Peanuts are actually a legume, but don't be a jerk about it. Just call them nuts still, ok?!",
8
+ "Apparently Mozart had written 3 operas and 25 symphonies by the time he was 16. By the time I was 16 I was still 3rd chair trumpet, so screw you Mozart."]
9
+ TRIVIA = trivia[rand(0..trivia.length - 1)]
10
+ FAKE = fake_trivia[rand(0..trivia.length - 1)]
11
+ end
@@ -2,6 +2,7 @@ module Movies
2
2
  quotes = ["May the force be with you", "Hasta la vista, baby", "I drink your milkshake!",
3
3
  "These go to 11", "They call it a royale with cheese", "The Dude abides",
4
4
  "Leave the gun. Take the cannoli", "To infinity and beyond!", "Why so serious?!",
5
- "The first rule of Fight Club is: you do not talk about Fight Club"]
5
+ "The first rule of Fight Club is: you do not talk about Fight Club",
6
+ "Hold on to your butts"]
6
7
  QUOTE = quotes[rand(0..quotes.length - 1)]
7
8
  end
@@ -2,7 +2,8 @@ module Musics
2
2
  quotes = ["I hurt myself today to see if I still feel. I focus on the pain. The only thing that's real",
3
3
  "If there's a bustle in your hedgerow, Don't be alarmed now, It's just a spring clean for the May Queen",
4
4
  "Nothing's gonna change my world", "The world is a game to be played", "Time takes a cigarette, puts it in your mouth",
5
- "Don't critize what you can't understand", "I feel like i'm looking for my soul, like a poor man looking for gold"]
5
+ "Don't critize what you can't understand", "I feel like i'm looking for my soul, like a poor man looking for gold",
6
+ "I know that I was born and I know that i'll die. The in between is mine", "War, children, it's just a shot away"]
6
7
  QUOTE = quotes[rand(0..quotes.length - 1)]
7
8
 
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module Jalapeno
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.4'
3
3
  end
data/lib/jalapeno.rb CHANGED
@@ -3,6 +3,7 @@ require 'jalapeno/movies'
3
3
  require 'jalapeno/books'
4
4
  require 'jalapeno/originals'
5
5
  require 'jalapeno/musics'
6
+ require 'jalapeno/facts'
6
7
 
7
8
  module Jalapeno
8
9
  def self.version_string
@@ -25,4 +26,12 @@ module Jalapeno
25
26
  "#{Musics::QUOTE}"
26
27
  end
27
28
 
29
+ def self.fact
30
+ "#{Facts::TRIVIA}"
31
+ end
32
+
33
+ def self.fake_fact
34
+ "#{Facts::FAKE}"
35
+ end
36
+
28
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jalapeno
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Busby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generates a random quote that you can use to display on your site
14
14
  email:
@@ -19,6 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - lib/jalapeno.rb
21
21
  - lib/jalapeno/books.rb
22
+ - lib/jalapeno/facts.rb
22
23
  - lib/jalapeno/movies.rb
23
24
  - lib/jalapeno/musics.rb
24
25
  - lib/jalapeno/originals.rb