zoolander 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +33 -0
- data/Rakefile +1 -0
- data/lib/quotes.yml +30 -0
- data/lib/zoolander.rb +8 -0
- data/lib/zoolander/helpers.rb +12 -0
- data/lib/zoolander/railtie.rb +10 -0
- data/lib/zoolander/version.rb +3 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/zoolander_spec.rb +21 -0
- data/zoolander.gemspec +22 -0
- metadata +93 -0
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 John Butler
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Zoolander
|
2
|
+
|
3
|
+
A ridiculously good looking ruby gem that adds a view helper to Rails and dishes out Zoolander quotes
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'zoolander'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install zoolander
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
To add some random Zoolander quotes to your view just drop in..
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
<%= zoolander_quote %>
|
25
|
+
```
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
1. Fork it
|
30
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
31
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
32
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
33
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/quotes.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
--- # zoolander quotes
|
2
|
+
- I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.
|
3
|
+
- Moisture is the essence of wetness, and wetness is the essence of beauty.
|
4
|
+
- Have you ever wondered if there was more to life, other than being really, really, ridiculously good looking?
|
5
|
+
- It's a walk-off!
|
6
|
+
- Seriously, do you like service yourself ten times a day?
|
7
|
+
- So I'm rappelling down Mount Vesuvius when suddenly I slip, and I start to fall. Just falling, ahh ahh, I'll never forget the terror. When suddenly I realize \"Holy shit, Hansel, haven't you been smoking Peyote for six straight days, and couldn't some of this maybe be in your head?\"
|
8
|
+
- I felt like, "This guy's really hurting me." And it hurt.
|
9
|
+
- Taste my pain, bitch!
|
10
|
+
- Or are you here to tell me what a bad eugoogoolizer I am?
|
11
|
+
- So join now, 'cause at the Derek Zoolander Center For Kids Who Can't Read Good And Wanna Learn To Do Other Stuff Good Too, we teach you that there's more to life than just being really, really, really good looking. Right kids?
|
12
|
+
- Let me show you Derelicte. It is a fashion, a way of life inspired by the very homeless, the vagrants, the crack whores that make this wonderful city so unique!
|
13
|
+
- I'm sorry I was wack.
|
14
|
+
- You is talking loco and I like it!
|
15
|
+
- I've got a prostate the size of a honeydew and a head full of bad memories.
|
16
|
+
- Well I guess it all started the first time I went through the second grade. I caught my reflection in a spoon while I was eating my cereal, and I remember thinking \"wow, you're ridiculously good looking, maybe you could do that for a career.\"
|
17
|
+
- They're *in* the computer?
|
18
|
+
- SHUT UP! Enough already, Ballstein! Who cares about Derek Zoolander anyway? The man has only one look, for Christ's sake! Blue Steel? Ferrari? Le Tigra? They're the same face! Doesn't anybody notice this? I feel like I'm taking crazy pills! I invented the piano key necktie, I invented it! What have you done, Derek? You've done nothing! NOTHIIIING! And I will be a monkey's uncle if I let you ruin this for me, because if you can't get the job done, then I will!
|
19
|
+
- I wasn't like every other kid, you know, who dreams about being an astronaut, I was always more interested in what bark was made out of on a tree. Richard Gere's a real hero of mine. Sting. Sting would be another person who's a hero. The music he's created over the years, I don't really listen to it, but the fact that he's making it, I respect that. I care desperately about what I do. Do I know what product I'm selling? No. Do I know what I'm doing today? No. But I'm here, and I'm gonna give it my best shot.
|
20
|
+
- Pretty soon, they'll be reading *our* eugoogaly!
|
21
|
+
- Oh, I'm sorry, did my pin get in the way of your ass? Do me a favor and lose five pounds immediately or get out of my building like now!
|
22
|
+
- Mugatu is so hot right now he could take a crap, wrap it in tinfoil, put a couple fish hooks on it and sell it to Queen Elizabeth as earrings.
|
23
|
+
- It's that damn Hansel! He's so hot right now!
|
24
|
+
- Todd! Are you not aware that I get farty and bloated with a foamy latte?
|
25
|
+
- How can we be expected to teach children to learn how to read if they can't even fit inside the building?
|
26
|
+
- There was a moment last night, when she was sandwiched between the two Finnish dwarves and the Maori tribesmen, where I thought, \"Wow, I could really spend the rest of my life with this woman\".
|
27
|
+
- I just thank the Lord she didn't live to see her son as a mermaid.
|
28
|
+
- What is this? A center for ants?
|
29
|
+
- I think I'm getting the Black Lung, Pop. It's not very well ventilated down there.
|
30
|
+
- I guess you can dere-lick my balls cap-E-tan.
|
data/lib/zoolander.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
|
+
config.run_all_when_everything_filtered = true
|
10
|
+
config.filter_run :focus
|
11
|
+
|
12
|
+
# Run specs in random order to surface order dependencies. If you find an
|
13
|
+
# order dependency and want to debug it, you can fix the order by providing
|
14
|
+
# the seed, which is printed after each run.
|
15
|
+
# --seed 1234
|
16
|
+
config.order = 'random'
|
17
|
+
end
|
18
|
+
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../lib/zoolander")
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Zoolander do
|
4
|
+
|
5
|
+
it "should load quotes from the yml file" do
|
6
|
+
Zoolander::Helpers::QUOTES.class.should be Array
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should dish out awesome quotes" do
|
10
|
+
|
11
|
+
class ZoolanderTest
|
12
|
+
include Zoolander::Helpers
|
13
|
+
end
|
14
|
+
|
15
|
+
test = ZoolanderTest.new
|
16
|
+
puts test.zoolander_quote
|
17
|
+
test.zoolander_quote.class.should be String
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/zoolander.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'zoolander/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "zoolander"
|
8
|
+
gem.version = Zoolander::VERSION
|
9
|
+
gem.authors = ["John Butler"]
|
10
|
+
gem.email = ["johnnypez@gmail.com"]
|
11
|
+
gem.description = %q{An example gem that extends ActionView and prints Zoolander quotes}
|
12
|
+
gem.summary = %q{An example gem that extends ActionView and prints Zoolander quotes}
|
13
|
+
gem.homepage = "http://github.com/johnnypez/zoolander"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency 'activesupport', '~> 3.2'
|
21
|
+
gem.add_development_dependency 'rspec'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zoolander
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- John Butler
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.2'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: An example gem that extends ActionView and prints Zoolander quotes
|
47
|
+
email:
|
48
|
+
- johnnypez@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- .rspec
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE.txt
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- lib/quotes.yml
|
60
|
+
- lib/zoolander.rb
|
61
|
+
- lib/zoolander/helpers.rb
|
62
|
+
- lib/zoolander/railtie.rb
|
63
|
+
- lib/zoolander/version.rb
|
64
|
+
- spec/spec_helper.rb
|
65
|
+
- spec/zoolander_spec.rb
|
66
|
+
- zoolander.gemspec
|
67
|
+
homepage: http://github.com/johnnypez/zoolander
|
68
|
+
licenses: []
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
requirements: []
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 1.8.24
|
88
|
+
signing_key:
|
89
|
+
specification_version: 3
|
90
|
+
summary: An example gem that extends ActionView and prints Zoolander quotes
|
91
|
+
test_files:
|
92
|
+
- spec/spec_helper.rb
|
93
|
+
- spec/zoolander_spec.rb
|