drumpf 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eff738a1d8cf4a2c150bd2b773e449658e116369
4
+ data.tar.gz: 9a4000dee8dbcc7eafb5e67c8fe846e19c1ed3f3
5
+ SHA512:
6
+ metadata.gz: febb2dcc70092801353998245b87292a5908786da15b3e3de038a03d2d3ae72b34715e9a59c761c06b59b037c7338421277a22d16c7b8c215f95a4ee64780e9f
7
+ data.tar.gz: 2fbd6e4a78a5c7543b073eca489415a0369734a79fdfe5da3093c7c2e41bcdc14c636771984af2a5c1111415e90f4e0349ecc60e60a73340c02e84de91ec3e9c
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ drumpf-0.1.0.gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in drumpf.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # Drumpf
2
+
3
+ A Donald Trump saying generator.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'drumpf'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install drumpf
20
+
21
+ ## Usage
22
+
23
+ ```
24
+ require 'drumpf'
25
+
26
+ Drumpf.be_offensive
27
+ Drumpf.be_presidential
28
+ Drumpf.give_hope
29
+ Drumpf.lie
30
+ Drumpf.repeat_yourself
31
+ ```
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/MemphisRuby/drumpf.
42
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rake'
4
+ require 'rake/testtask'
5
+ Rake::TestTask.new do |t|
6
+ t.libs << "test"
7
+ t.pattern = 'test/**/*_test.rb'
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "drumpf"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/drumpf.gemspec ADDED
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'drumpf/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "drumpf"
8
+ spec.version = Drumpf::VERSION
9
+ spec.authors = ["Memphis Ruby User's Group"]
10
+ spec.email = ["jason@thecharnes.com"]
11
+
12
+ spec.summary = %q{MemphisRuby attempt at creating a gem.}
13
+ spec.description = %q{MemphisRuby attempt at creating a gem, okay.}
14
+ spec.homepage = "http://www.memphisruby.org"
15
+
16
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
+ # delete this section to allow pushing this gem to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.11"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "minitest", "~> 5.8"
32
+ end
@@ -0,0 +1,3 @@
1
+ module Drumpf
2
+ VERSION = "0.1.0"
3
+ end
data/lib/drumpf.rb ADDED
@@ -0,0 +1,65 @@
1
+ require "drumpf/version"
2
+
3
+ OFFENSIVE = [
4
+ "Ariana Huffington is unattractive, both inside and out. I fully understand why her former husband left her for a man – he made a good decision.",
5
+ "Robert Pattinson should not take back Kristen Stewart. She cheated on him like a dog & will do it again – just watch. He can do much better!",
6
+ "I have never seen a thin person drinking Diet Coke."
7
+ ]
8
+
9
+ PRESIDENTAL = [
10
+ "An 'extremely credible source' has called my office and told me that Barack Obama’s birth certificate is a fraud."
11
+ ]
12
+
13
+ PROMISES = [
14
+ "I’ll win the Latino vote because I’ll create jobs. I’ll create jobs and the Latinos will have jobs they didn’t have."
15
+ ]
16
+
17
+ LIES = [
18
+ "I will build a great wall – and nobody builds walls better than me, believe me – and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words.",
19
+ "I am a really smart guy.",
20
+ "The concept of global warming was created by and for the Chinese in order to make U.S. manufacturing non-competitive.",
21
+ ]
22
+
23
+ REPEATS = [
24
+ ]
25
+
26
+ UNSORTED = [
27
+ "You know, it really doesn’t matter what the media write as long as you’ve got a young and beautiful piece of ass.",
28
+ "The concept of global warming was created by and for the Chinese in order to make U.S. manufacturing non-competitive.",
29
+ "Listen you motherfucker, we're going to tax you 25 percent!",
30
+ "When was the last time anybody saw us beating, let's say, China in a trade deal? They kill us. I beat China all the time. All the time.",
31
+ "I will build a great wall — and nobody builds walls better than me, believe me —and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words.",
32
+ "When Mexico sends its people, they're not sending the best. They're not sending you, they're sending people that have lots of problems and they're bringing those problems with us. They’re bringing drugs. They’re bringing crime. They’re rapists.",
33
+ "The wall will go up and Mexico will start behaving.",
34
+ "Our great African American President hasn't exactly had a positive impact on the thugs who are so happily and openly destroying Baltimore!",
35
+ "The only kind of people I want counting my money are little short guys that wear yamakas every day.",
36
+ "If I were running 'The View,' I'd fire Rosie. I mean, I'd look her right in that fat, ugly face of hers, I'd say, 'Rosie, you're fired'.",
37
+ "A certificate of live birth is not the same thing by any stretch of the imagination as a birth certificate.",
38
+ "He's not a war hero. He's a war hero because he was captured. I like people that weren't captured, OK, I hate to tell you.",
39
+ "All the women on The Apprentice flirted with me — consciously or unconsciously. That’s to be expected."
40
+ ]
41
+
42
+ module Drumpf
43
+ def self.be_offensive
44
+ OFFENSIVE.sample
45
+ end
46
+
47
+ def self.be_presidential
48
+ PRESIDENTIAL.sample
49
+ end
50
+
51
+ def self.give_hope
52
+ PROMISES.sample
53
+ end
54
+
55
+ def self.lie
56
+ LIES.sample
57
+ end
58
+
59
+ def self.repeat_yourself
60
+ "I don't repeat myself. \
61
+ I don't repeat myself. \
62
+ Here's the guy who repeats himself. \
63
+ I don't repeat myself."
64
+ end
65
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: drumpf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Memphis Ruby User's Group
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.8'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.8'
55
+ description: MemphisRuby attempt at creating a gem, okay.
56
+ email:
57
+ - jason@thecharnes.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - README.md
65
+ - Rakefile
66
+ - bin/console
67
+ - bin/setup
68
+ - drumpf.gemspec
69
+ - lib/drumpf.rb
70
+ - lib/drumpf/version.rb
71
+ homepage: http://www.memphisruby.org
72
+ licenses: []
73
+ metadata:
74
+ allowed_push_host: https://rubygems.org
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.4.5.1
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: MemphisRuby attempt at creating a gem.
95
+ test_files: []