memegen 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require "RMagick"
2
2
  require "fileutils"
3
3
 
4
4
  class MemeGenerator
5
- VERSION = "1.0.4"
5
+ VERSION = "1.0.5"
6
6
 
7
7
  class << self
8
8
  def generate(path, top, bottom)
@@ -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 "#{image}" -o #{path} --silent`
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
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-09 00:00:00 Z
18
+ date: 2011-05-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rmagick