memegen 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/meme_generator.rb +1 -1
- data/lib/meme_generator/cli.rb +1 -1
- metadata +4 -4
data/lib/meme_generator.rb
CHANGED
data/lib/meme_generator/cli.rb
CHANGED
@@ -21,7 +21,7 @@ end
|
|
21
21
|
def parse_path(string)
|
22
22
|
if string =~ /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/ix
|
23
23
|
path = "/tmp/memegen-download-#{Time.now.to_i}"
|
24
|
-
`curl "#{
|
24
|
+
`curl "#{string}" -o #{path} --silent`
|
25
25
|
elsif path = images.find { |p| p =~ /\/#{string}\..*$/ }
|
26
26
|
else
|
27
27
|
puts "Error: Image not found. Use --list to view installed images."
|
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: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Keene
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-10 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rmagick
|