meme_generator 1.7 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +5 -0
  3. data/lib/meme.rb +7 -4
  4. metadata +3 -2
  5. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.7.1 / 2011-03-18
2
+
3
+ * Bug Fix
4
+ * Meme::advice_dog now accepts an optional first line.
5
+
1
6
  === 1.7 / 2011-03-18
2
7
 
3
8
  * Minor enhancement
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.7'
19
+ VERSION = '1.7.1'
20
20
 
21
21
  ##
22
22
  # For statistics!
@@ -35,8 +35,11 @@ class Meme
35
35
  #
36
36
  # These can accept up to two lines of text
37
37
 
38
- def self.advice_dog name, id, template_name
39
- GENERATORS[name] = [id, 'AdviceDogSpinoff', template_name]
38
+ def self.advice_dog name, id, template_name, first_line = nil
39
+ template = [id, 'AdviceDogSpinoff', template_name, first_line]
40
+ template.compact
41
+
42
+ GENERATORS[name] = template
40
43
  end
41
44
 
42
45
  ##
@@ -67,7 +70,7 @@ class Meme
67
70
  advice_dog 'J_DUCREUX', 1356, 'Joseph-Ducreux'
68
71
  advice_dog 'KEANU', 47718, 'Keanu-reeves'
69
72
  advice_dog 'MINECRAFT', 122309, 'Minecraft'
70
- advice_dog 'O-RLY-OWL', 117041, 'O-RLY-OWL','ORLY???'
73
+ advice_dog 'O-RLY-OWL', 117041, 'O-RLY-OWL', 'ORLY???'
71
74
  advice_dog 'OBAMA', 1332, 'Obama-'
72
75
  advice_dog 'PHILOSORAPTOR', 984, 'Philosoraptor'
73
76
  advice_dog 'P_OAK', 24321, 'Professor-Oak'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meme_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- version: "1.7"
9
+ - 1
10
+ version: 1.7.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Eric Hodel
metadata.gz.sig CHANGED
Binary file