look_of_disapproval 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d68ac2e325563167189e10f50f944a6dd38cb5b
4
+ data.tar.gz: a79bc354b054306fd0a5cd84610953f36ffaa45f
5
+ SHA512:
6
+ metadata.gz: 2c883bc5f426cfd4f93d1aac4636ce1cc391c83c926db9766369e87a861714e26f1a19e84bfb6d707d12fc61c424f533b08eebb241255334051eed0b14cc1300
7
+ data.tar.gz: 564891ac2447ec32207c422722fc8a5e0b4734ea84bd69608c314137c253ac863c2e7b923f6a8f61037b746a22754cb8607b887cf29d6dd0600437580347abf7
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in look_of_disapproval.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Quinn Rohlf
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,31 @@
1
+ # LookOfDisapproval
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'look_of_disapproval'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install look_of_disapproval
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/look_of_disapproval/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/disapprove ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'erb'
4
+ require 'look_of_disapproval'
5
+
6
+ LookOfDisapproval::Disapprover.new(ARGV.join(" ")).write('/tmp/disapprove.html')
7
+ `open /tmp/disapprove.html`
@@ -0,0 +1,18 @@
1
+ require "look_of_disapproval/version"
2
+
3
+ module LookOfDisapproval
4
+ class Disapprover
5
+ def initialize(message=nil)
6
+ @template = ERB.new(File.read(File.dirname(__FILE__)+'/look_of_disapproval/disapprove.erb'))
7
+ @message = message
8
+ end
9
+
10
+ def to_html
11
+ @template.result(binding)
12
+ end
13
+
14
+ def write(filename)
15
+ File.write(filename, to_html)
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,60 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>LOOK OF DISAPPROVAL</title>
6
+ <style>
7
+ html {
8
+ height: 100%;
9
+ margin: 0;
10
+ }
11
+
12
+ body {
13
+ font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
14
+ text-align: center;
15
+ min-height: 100%;
16
+ margin: 0;
17
+ background: #ecf0f1;
18
+ color: #222;
19
+ }
20
+
21
+ h1, h2 {
22
+ margin: 0 0;
23
+ padding: 16px;
24
+ line-height: 1;
25
+ font-weight: normal;
26
+ }
27
+
28
+ h1 {
29
+ margin-top: 0;
30
+ font-size: 100px;
31
+ }
32
+
33
+ h2 {
34
+ margin-top: .5em;
35
+ font-size: 25px;
36
+ color: #ecf0f1;
37
+ background: #34495e;
38
+ border: solid #2980b9;
39
+ border-width: 12px 0 12px 0;
40
+ }
41
+
42
+ @media screen and(min-width: 400px) {
43
+ h1 { font-size: 200px; }
44
+ h2 { font-size: 50px; }
45
+ }
46
+
47
+ @media screen and(min-width: 800px) {
48
+ h1 { font-size: 500px; }
49
+ h2 { font-size: 120px; }
50
+ }
51
+
52
+ </style>
53
+ </head>
54
+ <body>
55
+ <h1>ಠ_ಠ</h1>
56
+ <% if @message and @message.length > 0%>
57
+ <h2><%= @message %></h2>
58
+ <% end %>
59
+ </body>
60
+ </html>
@@ -0,0 +1,3 @@
1
+ module LookOfDisapproval
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: look_of_disapproval
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Quinn Rohlf
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-26 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.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
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
+ description:
42
+ email:
43
+ - qr@qrohlf.com
44
+ executables:
45
+ - disapprove
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - bin/disapprove
54
+ - lib/look_of_disapproval.rb
55
+ - lib/look_of_disapproval/disapprove.erb
56
+ - lib/look_of_disapproval/version.rb
57
+ homepage: http://qrohlf.com
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 2.2.2
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: A utility to disapprove of things
81
+ test_files: []