obama 2.1.0
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 +7 -0
- data/Rakefile +8 -0
- data/bin/obama +4 -0
- data/lib/obama.rb +10 -0
- data/lib/obama/image.rb +10 -0
- data/lib/obama/saying.rb +7 -0
- data/test/test_obama.rb +16 -0
- metadata +49 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 11a116efa1a8f5db51ec512c215d264dca44ab69
|
4
|
+
data.tar.gz: ee7fbf1fa179769f8dbc79ddd9a44c3568828c89
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c397748956cb43b01816e969aae058a45993c96007c86c2a9ffa3129080dd5a8e7f400b91ad184565e3b13a9e9ced261baf5773350102542a282d60c3b9ce58a
|
7
|
+
data.tar.gz: 6c9876589496af495f642a5f21bce2bd3a054816049f1550402d44229681051b3ed07010796022308aaa4223b49549a47ce3f409cfb883caa2bdb9c2f14edb6b
|
data/Rakefile
ADDED
data/bin/obama
ADDED
data/lib/obama.rb
ADDED
data/lib/obama/image.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
class Obama::Image
|
2
|
+
def self.funny
|
3
|
+
["https://community.lebara.com/servlet/JiveServlet/download/1956-8611/barack-obama-funny-face-for-facebook-share.jpg", "https://s-media-cache-ak0.pinimg.com/736x/80/c5/ee/80c5ee8341ed0f24ad0c5a3d2b9eac2e.jpg", "https://i.ytimg.com/vi/l8FhrAQrkkw/hqdefault.jpg", "http://media1.s-nbcnews.com/j/MSNBC/Components/Photo/_new/100330-tdy-obamahumor.grid-6x2.jpg", "https://www.askideas.com/media/38/Funny-Obama-Smiley-Face-Image.jpg", "https://www.askideas.com/media/38/Obama-Surprised-Face-Funny-Picture.jpg", "http://www.showbiz411.com/wp-content/uploads/2011/05/whcd_obama.jpg", "http://f.tqn.com/y/politicalhumor/1/L/f/4/5/obama-sunglasses.jpg", "http://topfunia.com/wp-content/uploads/2015/05/Laughing-Obama-1-1024x710.jpg", "http://linkis.com/url-image/http://www.tpnn.com/wp-content/uploads/2014/11/Obama-5.jpg", "http://66.media.tumblr.com/2ad5ddec3ed849750db1c5c216050f93/tumblr_o105srzIxb1rbxmbeo1_500.jpg", "http://media2.s-nbcnews.com/j/ap/obama%20-1678551023.grid-6x2.jpg", "http://advocacy.britannica.com/blog/advocacy/wp-content/uploads/wish-1.jpg", "http://i.telegraph.co.uk/multimedia/archive/01111/barack-obama-stari_1111370c.jpg", "http://img.wonkette.com/wp-content/uploads/2013/02/Obama-laughing.jpg", "http://dailysignal.com/wp-content/uploads/515obama2-1250x650.jpg", "http://www.therightplanet.com/wp-content/uploads/2013/01/obama-finger.jpg", "https://d17td7dfmj97sg.cloudfront.net/wp-content/uploads/2015/02/obama-condescending.jpg", "https://7373-presscdn-0-43-pagely.netdna-ssl.com/wp-content/uploads/2015/02/heres-president-obama-playing-with-a-selfie-stick.png", "http://haveuheard.net/wp-content/uploads/2015/02/presidentobama_buzzfeedvideo-1-400x310.jpg", "http://cdn.cnsnews.com/styles/content_40p/s3/obama_winking.png"].sample
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.serious
|
7
|
+
["http://i2.cdn.turner.com/cnnnext/dam/assets/130410081024-obama-serious-face-horizontal-gallery.jpg", "http://www.thecuttingedgenews.com/uploads/cmimg_22296.jpg", "http://www.theyeshivaworld.com/wp-content/uploads/2014/11/oba.jpg", "http://www.dolcemag.com/wp-content/gallery/spring_barack-obama/barack-obama-face.jpg", "https://earthzebra.files.wordpress.com/2011/04/obama-serious.jpg", "http://a57.foxnews.com/global.fncstatic.com/static/managed/img/fn2/video/612/344/060915_an_keane_640.jpg?ve=1&tl=1", "https://applemagazine.com/wp-content/uploads/2014/01/barackobama_serious_ap.jpg", "http://www.the-american-interest.com/wp-content/uploads/2015/05/obama.jpg", "http://static.independent.co.uk/s3fs-public/thumbnails/image/2014/11/04/09/President-Barack-Obama.jpg", "http://static4.businessinsider.com/image/571a4a1652bcd020008be4c3/obama-europe-is-facing-serious-challenges.jpg", "http://economictimes.indiatimes.com/photo/15542397.cms", "http://media.townhall.com/townhall/reu/ha/2015/300/e13c2009-3f24-45b4-bf86-19ba5de5cd43.jpg", "http://cbsnews3.cbsistatic.com/hub/i/r/2013/12/17/ae99e028-4339-4f50-816d-6bd6306b2327/thumbnail/620x350/de572a3c2630c4f19394f8997d378a31/453828051.jpg", "http://twt-thumbs.washtimes.com/media/image/2015/11/12/Obama_c0-153-4719-2904_s885x516.jpg?e993e455385f6df3c7abe0d03becab085e39df59", "http://www.usnews.com/cmsmedia/30/a6/f2b71987431c91cee0aa4bf28723/140630-obama-editorial.jpg", "http://www.jpost.com/HttpHandlers/ShowImage.ashx?id=225529&h=530&w=758", "http://images.christianpost.com/full/75384/u-s-president-barack-obama.jpg", "https://cdn1.vox-cdn.com/thumbor/hXeRbAYxHm91J3Jaf0ymHc_k8OY=/0x0:1280x853/1280x853/cdn0.vox-cdn.com/uploads/chorus_image/image/48842031/GettyImages-480791886.0_2.0.0.jpg", "https://upload.wikimedia.org/wikipedia/commons/e/e9/Official_portrait_of_Barack_Obama.jpg", "http://d1jrw5jterzxwu.cloudfront.net/sites/default/files/article_media/president_barack_obama_-_ap_file_photo_ron_edmonds1.jpg", "http://www.kgw.com/img/resize/content.kgw.com/photo/2016/02/08/Barack%20Obama_1454972631714_207787_ver1.0.JPG?preset=534-401", "http://bravenewtimes.com/files/2012/07/large_obama1.jpg", "http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/embed/public/2015/09/23/obama.jpg"].sample
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
data/lib/obama/saying.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
class Obama::Saying
|
2
|
+
|
3
|
+
def self.sentence
|
4
|
+
["Change will not come if we wait for some other person or some other time. We are the ones we've been waiting for. We are the change that we seek.","The future rewards those who press on. I don't have time to feel sorry for myself. I don't have time to complain. I'm going to press on.", "If you're walking down the right path and you're willing to keep walking, eventually you'll make progress.", "We need to steer clear of this poverty of ambition, where people want to drive fancy cars and wear nice clothes and live in nice apartments but don't want to work hard to accomplish these things. Everyone should try to realize their full potential.", "We, the People, recognize that we have responsibilities as well as rights; that our destinies are bound together; that a freedom which only asks what's in it for me, a freedom without a commitment to others, a freedom without love or charity or duty or patriotism, is unworthy of our founding ideals, and those who died in their defense.", "Understand, our police officers put their lives on the line for us every single day. They've got a tough job to do to maintain public safety and hold accountable those who break the law.", "I believe marriage is between a man and a woman. I am not in favor of gay marriage. But when you start playing around with constitutions, just to prohibit somebody who cares about another person, it just seems to me that's not what America's about. Usually, our constitutions expand liberties, they don't contract them.", "That's the good thing about being president, I can do whatever I want.", "I think what you're seeing is a profound recognition on the part of the American people that gays and lesbians and transgender persons are our brothers, our sisters, our children, our cousins, our friends, our co-workers, and that they've got to be treated like every other American. And I think that principle will win out.", "I don't care whether you're driving a hybrid or an SUV. If you're headed for a cliff, you have to change direction. That's what the American people called for in November, and that's what we intend to deliver.", "To avoid being mistaken for a sellout, I chose my friends carefully. The more politically active black students. The foreign students. The Chicanos. The Marxist professors and structural feminists and punk-rock performance poets.", "We have an obligation and a responsibility to be investing in our students and our schools. We must make sure that people who have the grades, the desire and the will, but not the money, can still get the best education possible.", "One of the great strengths of the United States is... we have a very large Christian population - we do not consider ourselves a Christian nation or a Jewish nation or a Muslim nation. We consider ourselves a nation of citizens who are bound by ideals and a set of values.", "My family, frankly, they weren't folks who went to church every week. My mother was one of the most spiritual people I knew but she didn't raise me in the church, so I came to my Christian faith later in life and it was because the precepts of Jesus Christ spoke to me in terms of the kind of life that I would want to lead.", "There is probably a perverse pride in my administration... that we were going to do the right thing, even if short-term it was unpopular. And I think anybody who's occupied this office has to remember that success is determined by an intersection in policy and politics and that you can't be neglecting of marketing and P.R. and public opinion.", "I don't oppose all wars. What I am opposed to is a dumb war. What I am opposed to is a rash war.", "I've got two daughters. 9 years old and 6 years old. I am going to teach them first of all about values and morals. But if they make a mistake, I don't want them punished with a baby.", "If we choose to keep those tax breaks for millionaires and billionaires, if we choose to keep a tax break for corporate jet owners, if we choose to keep tax breaks for oil and gas companies that are making hundreds of billions of dollars, then that means we've got to cut some kids off from getting a college scholarship.", "After a century of striving, after a year of debate, after a historic vote, health care reform is no longer an unmet promise. It is the law of the land.", "My task over the last two years hasn't just been to stop the bleeding. My task has also been to try to figure out how do we address some of the structural problems in the economy that have prevented more Googles from being created.", "We're not going to baby sit a civil war.", "This is the moment when we must build on the wealth that open markets have created, and share its benefits more equitably. Trade has been a cornerstone of our growth and global development. But we will not be able to sustain this growth if it favors the few, and not the many.", "We need to recognize that the situation in Ferguson speaks to broader challenges that we still face as a nation. The fact is, in too many parts of this country, a deep distrust exists between law enforcement and communities of color. Some of this is the result of the legacy of racial discrimination in this country.", "Let us remember we are all part of one American family. We are united in common values, and that includes belief in equality under the law, basic respect for public order, and the right of peaceful protest.", "It was the labor movement that helped secure so much of what we take for granted today. The 40-hour work week, the minimum wage, family leave, health insurance, Social Security, Medicare, retirement plans. The cornerstones of the middle-class security all bear the union label.", "We worship an awesome God in the Blue States, and we don't like federal agents poking around our libraries in the Red States. We coach Little League in the Blue States and have gay friends in the Red States.", "We can't have special interests sitting shotgun. We gotta have middle class families up in front. We don't mind the Republicans joining us. They can come for the ride, but they gotta sit in back.", "If the people cannot trust their government to do the job for which it exists - to protect them and to promote their common welfare - all else is lost.", "In the end, that's what this election is about. Do we participate in a politics of cynicism or a politics of hope?"].sample
|
5
|
+
end
|
6
|
+
|
7
|
+
end
|
data/test/test_obama.rb
ADDED
@@ -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,49 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: obama
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hank Chen Taiwan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Obama's Faker gem
|
14
|
+
email: hank860502@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- Rakefile
|
20
|
+
- bin/obama
|
21
|
+
- lib/obama.rb
|
22
|
+
- lib/obama/image.rb
|
23
|
+
- lib/obama/saying.rb
|
24
|
+
- test/test_obama.rb
|
25
|
+
homepage: http://rubygems.org/gems/obama
|
26
|
+
licenses: []
|
27
|
+
metadata: {}
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 2.6.4
|
45
|
+
signing_key:
|
46
|
+
specification_version: 3
|
47
|
+
summary: Random words or any sentence said by Obama!
|
48
|
+
test_files:
|
49
|
+
- test/test_obama.rb
|