memegen 1.0.2 → 1.0.3
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/README.md +4 -0
- data/bin/memegen +1 -0
- data/lib/meme_generator.rb +1 -1
- data/lib/meme_generator/cli.rb +20 -1
- data/script/autocomplete.sh +9 -0
- metadata +6 -4
data/README.md
CHANGED
@@ -61,6 +61,10 @@ It will prompt you for your subdomain, token, and room name the first time.
|
|
61
61
|
|
62
62
|
Source or copy `script/autocomplete.sh` inside `~/.bashrc` to get image name autocompletion.
|
63
63
|
|
64
|
+
See also:
|
65
|
+
|
66
|
+
memegen --install-autocomplete
|
67
|
+
|
64
68
|
## Contribute
|
65
69
|
|
66
70
|
Pull requests welcome!
|
data/bin/memegen
CHANGED
@@ -12,6 +12,7 @@ list = ARGV.include?("--list") || ARGV.include?("-l")
|
|
12
12
|
campfire = ARGV.include?("--campfire") || ARGV.include?("-c")
|
13
13
|
|
14
14
|
usage if help || ARGV.empty?
|
15
|
+
install_autocomplete if ARGV.include?("--install-autocomplete")
|
15
16
|
list_generators if list
|
16
17
|
|
17
18
|
path = parse_path(image)
|
data/lib/meme_generator.rb
CHANGED
data/lib/meme_generator/cli.rb
CHANGED
@@ -5,7 +5,7 @@ def images
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def usage
|
8
|
-
puts 'usage: memegen <image> <top> <bottom> [--list|-l] [--campfire|-c] [--help|-h]'
|
8
|
+
puts 'usage: memegen <image> <top> <bottom> [--list|-l] [--campfire|-c] [--help|-h] [--install-autocomplete]'
|
9
9
|
exit 1
|
10
10
|
end
|
11
11
|
|
@@ -48,3 +48,22 @@ def generate(path, top, bottom, campfire)
|
|
48
48
|
usage
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
def install_autocomplete
|
53
|
+
path = File.join(File.dirname(__FILE__), "..", "..", "script", "autocomplete.sh")
|
54
|
+
puts <<-END
|
55
|
+
Source autocomplete.sh in your ~/.bashrc:
|
56
|
+
|
57
|
+
$ echo "source #{path}" >> ~/.bashrc
|
58
|
+
|
59
|
+
Then source the profile:
|
60
|
+
|
61
|
+
$ source ~/.bashrc
|
62
|
+
|
63
|
+
You can copy the path to autocomplete.sh somewhere in your home directory if
|
64
|
+
you upgrade gem versions, but it should always work.
|
65
|
+
|
66
|
+
(Sorry, this sucks but I don't know a foolproof way to do this)
|
67
|
+
END
|
68
|
+
exit 0
|
69
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Keene
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- generators/y_u_no.jpg
|
108
108
|
- generators/yao_ming.jpg
|
109
109
|
- fonts/Impact.ttf
|
110
|
+
- script/autocomplete.sh
|
110
111
|
- LICENSE
|
111
112
|
- README.md
|
112
113
|
homepage: http://github.com/cmdrkeene/memegen
|
@@ -140,9 +141,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
141
|
requirements: []
|
141
142
|
|
142
143
|
rubyforge_project:
|
143
|
-
rubygems_version: 1.
|
144
|
+
rubygems_version: 1.7.0
|
144
145
|
signing_key:
|
145
146
|
specification_version: 3
|
146
147
|
summary: Two-caption meme generator CLI
|
147
148
|
test_files: []
|
148
149
|
|
150
|
+
has_rdoc:
|