meme_generator 1.1 → 1.2
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.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/README.txt +1 -1
- data/lib/meme.rb +12 -3
- metadata +5 -5
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
data/lib/meme.rb
CHANGED
|
@@ -16,7 +16,7 @@ class Meme
|
|
|
16
16
|
##
|
|
17
17
|
# Every meme generator needs a version
|
|
18
18
|
|
|
19
|
-
VERSION = '1.
|
|
19
|
+
VERSION = '1.2'
|
|
20
20
|
|
|
21
21
|
##
|
|
22
22
|
# For statistics!
|
|
@@ -46,6 +46,7 @@ class Meme
|
|
|
46
46
|
GENERATORS['OBAMA'] = [1332, 'Obama-']
|
|
47
47
|
GENERATORS['SPARTA'] = [1013, 'sparta']
|
|
48
48
|
GENERATORS['TOWNCRIER'] = [434537, 'Towncrier']
|
|
49
|
+
GENERATORS['H_MERMAID'] = [405224, 'Hipster-Mermaid']
|
|
49
50
|
|
|
50
51
|
##
|
|
51
52
|
# Looks up generator name
|
|
@@ -137,10 +138,18 @@ class Meme
|
|
|
137
138
|
end
|
|
138
139
|
|
|
139
140
|
##
|
|
140
|
-
#
|
|
141
|
+
# Tries to find clipboard copy executable and if found puts +link+ in your
|
|
142
|
+
# clipboard.
|
|
141
143
|
|
|
142
144
|
def paste link
|
|
143
|
-
|
|
145
|
+
clipboard = %w{
|
|
146
|
+
/usr/bin/pbcopy
|
|
147
|
+
/usr/bin/xclip
|
|
148
|
+
}.find { |path| File.exist? path }
|
|
149
|
+
|
|
150
|
+
if clipboard
|
|
151
|
+
IO.popen clipboard, 'w' do |io| io.write link end
|
|
152
|
+
end
|
|
144
153
|
end
|
|
145
154
|
|
|
146
155
|
end
|
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meme_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: "1.
|
|
8
|
+
- 2
|
|
9
|
+
version: "1.2"
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Eric Hodel
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
x52qPcexcYZR7w==
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
37
|
|
|
38
|
-
date: 2011-02-
|
|
38
|
+
date: 2011-02-11 00:00:00 -08:00
|
|
39
39
|
default_executable:
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
requirements: []
|
|
119
119
|
|
|
120
120
|
rubyforge_project: meme_generator
|
|
121
|
-
rubygems_version: 1.5.
|
|
121
|
+
rubygems_version: 1.5.3
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 3
|
|
124
124
|
summary: Generate meme images using http://memegenerator.net! Save yourself some time!
|
metadata.gz.sig
CHANGED
|
Binary file
|