schwarzefaker 0.0.5

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e2acda28b347f77228ac16928c9e1f8f04a28049
4
+ data.tar.gz: 427f7add299b405a74d3d6fba8662f0e9c6b98fa
5
+ SHA512:
6
+ metadata.gz: 232971694094cbc9d1bf84217179e2f73448d5c7e106d8ae230b12d6abd41dde797852f70775a15cfad2cd5a5b57ff9059761f3a02a8a546e6eb974d1684358d
7
+ data.tar.gz: b55649be4aa68070509220ee2131303e4d9a237fd64e313ce0f77f983b8bad3d7e16f940b05ff48df3b514dbd85a06af3586a31a35d3cb232dbff2647e3c240a
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -0,0 +1 @@
1
+ #!/usr/bin/env ruby
@@ -0,0 +1,21 @@
1
+ class Arnold
2
+ def self.quote
3
+ quote_list = ["Get to the chopper!", "What is best in life? To crush your enemies, see them driven before you, and to hear the lamentation of their women!", "Your clothes, give them to me, now!", "Do it!", "If it bleeds, we can kill it.", "Let off some steam, Bennett!", "I'll be back.", "Hasta la vista, baby!", "It's not a tumor!", "I let him go.", "Remember, Sully, when I promised to kill you last?... I lied.", "You are one ugly motherfucker.", "Come with me if you want to live.", "You're a fucking choir boy compared to me!", "I need your clothes, your boots, and your motorcycle.", "Don't disturb my friend... he's dead tired.", "Can you hurry up? My horse is getting tired.", "The bridge is out!", "I'm a cop, you idiot!", "Dillon... you son of a bitch!", "Who is your daddy, and what does he do?"]
4
+ return quote_list[rand(0..(quote_list.length - 1))]
5
+ end
6
+
7
+ def self.character
8
+ character_list = ["Conan", "John Matrix", "Dutch", "Ivan Danko", "Julius Benedict", "John Kimble", "Terminator", "Harry Tasker", "Howard Langston", "Jack Slater", "John Kruger", "Jericho Cane", "Douglas Quaid", "Mr.Freeze", "Ben Richards"]
9
+ return character_list[rand(0..(character_list.length - 1))]
10
+ end
11
+
12
+ def self.villain
13
+ villain_list = ["Terminator T-1000", "Bennett", "Thulsa Doom", "Juno Skinner", "Lori Quaid", "Richter", "Predator", "Robin", "Batman", "Entire Val Verde Army", "Salim Abu Aziz", "Killian", "Sarah Connor", "John Connor", "Cullen Crisp Sr.", "Dynamo", "Satan", "Poison Ivy"]
14
+ return villain_list[rand(0..(villain_list.length - 1))]
15
+ end
16
+
17
+ def self.movie
18
+ movie_list = ["Hercules in New York", "Conan The Barbarian", "Conan The Destroyer", "The Terminator", "Commando", "Predator", "The Running Man", "Red Heat", "Twins", "Total Recall", "Kindergarten Cop", "Terminator 2: Judgement Day", "Last Action Hero", "True Lies", "Junior", "Eraser", "Jingle All The Way", "Batman And Robin", "End Of Days", "The 6th Day", "Collateral Damage", "Terminator 3: Rise Of The Machines", "The Expendables", "Terminator Genisys", "Sabotage", "The Last Stand", "The Expendables 2", "The Expendables 3"]
19
+ return movie_list[rand(0..(movie_list.length - 1))]
20
+ end
21
+ end
@@ -0,0 +1,16 @@
1
+ require 'test/unit'
2
+ require 'hola'
3
+
4
+ class HolaTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", Hola.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", Hola.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "hola mundo", Hola.hi("spanish")
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: schwarzefaker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy Oltean
8
+ - Matt Harris
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-03-30 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Arnold Schwarzefakker. You can call quote, movie, character, and villain
15
+ on class Arnold. Returns a random string.
16
+ email: jeremyoltean@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - Rakefile
22
+ - bin/schwarzefaker
23
+ - lib/schwarzefaker.rb
24
+ - test/test_schwarzefaker.rb
25
+ homepage: http://rubygems.org/gems/schwarzefaker
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.6.2
46
+ signing_key:
47
+ specification_version: 3
48
+ summary: You like Faker and you love Arnold Schwarzenegger. You're welcome.
49
+ test_files:
50
+ - test/test_schwarzefaker.rb