memegen 0.0.6 → 0.0.7
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 +17 -9
- data/lib/meme_generator.rb +1 -1
- metadata +18 -5
data/README.md
CHANGED
@@ -10,10 +10,14 @@ You'll need [ImageMagick](http://www.imagemagick.org/script/index.php) installed
|
|
10
10
|
The easiest way is to use [Homebrew](https://github.com/mxcl/homebrew).
|
11
11
|
|
12
12
|
brew install imagemagick
|
13
|
+
|
14
|
+
Then install the gem!
|
15
|
+
|
16
|
+
gem install memegen
|
13
17
|
|
14
18
|
## Usage
|
15
19
|
|
16
|
-
To see a list of available
|
20
|
+
To see a list of available images:
|
17
21
|
|
18
22
|
$ memegen --list
|
19
23
|
a_dog
|
@@ -23,28 +27,32 @@ To see a list of available generators:
|
|
23
27
|
To generate an image:
|
24
28
|
|
25
29
|
$ memegen a_dog "Eat Crayons" "Poop Rainbows"
|
26
|
-
/tmp/meme-
|
30
|
+
/tmp/meme-1234567890.jpg
|
27
31
|
$
|
28
32
|
|
29
33
|
You only have to supply one piece of text:
|
30
34
|
|
31
35
|
$ memegen a_dog "" "AWESOME"
|
32
|
-
/tmp/meme-
|
36
|
+
/tmp/meme-1234567890.jpg
|
37
|
+
$
|
38
|
+
|
39
|
+
You can also use URLs for one time use memes:
|
40
|
+
|
41
|
+
$ memegen http://example.com/stupid.jpg "Generated" "From a URL"
|
42
|
+
/tmp/meme-1234567890.jpg
|
33
43
|
$
|
34
44
|
|
35
|
-
## Adding your own
|
45
|
+
## Adding your own images
|
36
46
|
|
37
|
-
You can add
|
47
|
+
You can add images to your local `~/.memegen` folder:
|
38
48
|
|
39
49
|
$ ls ~/.memegen
|
40
|
-
|
50
|
+
my_custom_image.png
|
41
51
|
|
42
52
|
## Bash completion
|
43
53
|
|
44
|
-
Source or copy `script/autocomplete.sh` inside `~/.bashrc` to get
|
45
|
-
name autocompletion.
|
54
|
+
Source or copy `script/autocomplete.sh` inside `~/.bashrc` to get image name autocompletion.
|
46
55
|
|
47
56
|
## Contribute
|
48
57
|
|
49
58
|
Pull requests welcome!
|
50
|
-
|
data/lib/meme_generator.rb
CHANGED
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
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Keene
|
@@ -16,8 +16,21 @@ bindir: bin
|
|
16
16
|
cert_chain: []
|
17
17
|
|
18
18
|
date: 2011-05-08 00:00:00 Z
|
19
|
-
dependencies:
|
20
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 3
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
version_requirements: *id001
|
31
|
+
prerelease: false
|
32
|
+
name: rmagick
|
33
|
+
type: :runtime
|
21
34
|
description: Locally generate two-caption 'Advice Dog'-style meme images
|
22
35
|
email:
|
23
36
|
- bkeene@gmail.com
|