rickroll 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +8 -0
- data/Rakefile +1 -0
- data/bin/rickroll +4 -0
- data/lib/rickroll/version.rb +3 -0
- data/lib/rickroll.rb +27 -0
- data/rickroll.gemspec +25 -0
- data/site/index.html +21 -0
- data/site/rickroll.gif +0 -0
- data/site/rickroll.mp3 +0 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7d7603f43b83da19559950f078f32f447352b72f
|
4
|
+
data.tar.gz: 01ea42c7f526ea304001e2b0977bdc3bcc70ae8d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c53fd72735dc4496b4abc63f4ec50f8ef9557bfe4c0b2db50af6a309448ee7250b9a475da369463f315b0df622c0271afeeabdc0344ac53698472297220677a9
|
7
|
+
data.tar.gz: 01a4d763f4b4948b1801c540bfcd3f680e30efb27fe3bc0a4ce0a9821faecb06b9b552dc8327a9fe1696786c6a82afedbd823efc42f066edb1be43dc34833acd
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jared Grippe
|
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
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/rickroll
ADDED
data/lib/rickroll.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require "rickroll/version"
|
2
|
+
|
3
|
+
module Rickroll
|
4
|
+
def self.path
|
5
|
+
File.expand_path('../../site/index.html', __FILE__)
|
6
|
+
end
|
7
|
+
def self.open_with_launchy
|
8
|
+
require 'launchy'
|
9
|
+
Launchy.open(path)
|
10
|
+
end
|
11
|
+
def self.open_with_safari
|
12
|
+
`open -a Safari #{path.inspect}`
|
13
|
+
end
|
14
|
+
def self.has_open?
|
15
|
+
`which open`
|
16
|
+
return false unless $?.success?
|
17
|
+
`open --help 2>&1`.include? 'Opens with the specified application'
|
18
|
+
end
|
19
|
+
def self.open
|
20
|
+
has_open? ? open_with_safari : open_with_launchy
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def Rickroll
|
25
|
+
Rickroll.open
|
26
|
+
end
|
27
|
+
|
data/rickroll.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rickroll/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rickroll"
|
8
|
+
spec.version = Rickroll::VERSION
|
9
|
+
spec.authors = ["Jared Grippe"]
|
10
|
+
spec.email = ["jared@deadlyicon.com"]
|
11
|
+
spec.description = %q{gives you the rickroll command}
|
12
|
+
spec.summary = %q{gives you the rickroll command}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "launchy"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
end
|
data/site/index.html
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title></title>
|
4
|
+
<style type="text/css">
|
5
|
+
html,body{
|
6
|
+
padding: 0;
|
7
|
+
margin: 0;
|
8
|
+
height: 100%;
|
9
|
+
background-color: black;
|
10
|
+
}
|
11
|
+
html,body,img{
|
12
|
+
width: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
</style>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<img src="rickroll.gif">
|
19
|
+
<embed height="0" width="0" src="rickroll.mp3">
|
20
|
+
</body>
|
21
|
+
</html>
|
data/site/rickroll.gif
ADDED
Binary file
|
data/site/rickroll.mp3
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rickroll
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jared Grippe
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: launchy
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: gives you the rickroll command
|
56
|
+
email:
|
57
|
+
- jared@deadlyicon.com
|
58
|
+
executables:
|
59
|
+
- rickroll
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- .gitignore
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/rickroll
|
69
|
+
- lib/rickroll.rb
|
70
|
+
- lib/rickroll/version.rb
|
71
|
+
- rickroll.gemspec
|
72
|
+
- site/index.html
|
73
|
+
- site/rickroll.gif
|
74
|
+
- site/rickroll.mp3
|
75
|
+
homepage: ''
|
76
|
+
licenses:
|
77
|
+
- MIT
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.0.2
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: gives you the rickroll command
|
99
|
+
test_files: []
|