meme_generator 1.2 → 1.2.2

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 +12 -1
  3. data/lib/meme.rb +8 -2
  4. metadata +5 -4
  5. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
@@ -1,7 +1,18 @@
1
+ === 1.2.2 / 2011-02-22
2
+
3
+ * Bug Fix
4
+ * Don't print ERROR when we're exiting normally.
5
+
6
+ === 1.2.1 / 2011-02-22
7
+
8
+ * Bug Fix
9
+ * A proper error is now printed (instead of crashing) when `meme` is run
10
+ without both lines. Bug #7 by Trevor Hartman.
11
+
1
12
  === 1.2 / 2011-02-11
2
13
 
3
14
  * Minor enhancements
4
- * Added Hipster mermain. Pull Request #6 by Josep M. Bach.
15
+ * Added Hipster mermaid. Pull Request #6 by Josep M. Bach.
5
16
  * Support xclip on linux. Pull Request #5 by Matthew M. Boedicker.
6
17
 
7
18
  === 1.1 / 2011-02-09
@@ -16,7 +16,7 @@ class Meme
16
16
  ##
17
17
  # Every meme generator needs a version
18
18
 
19
- VERSION = '1.2'
19
+ VERSION = '1.2.2'
20
20
 
21
21
  ##
22
22
  # For statistics!
@@ -87,6 +87,12 @@ class Meme
87
87
 
88
88
  puts link
89
89
  link
90
+ rescue Interrupt
91
+ exit
92
+ rescue SystemExit
93
+ raise
94
+ rescue Exception => e
95
+ abort "ERROR: #{e.message} (#{e.class})"
90
96
  end
91
97
 
92
98
  ##
@@ -111,7 +117,7 @@ class Meme
111
117
  line1 = @default_line
112
118
  end
113
119
 
114
- raise Error, "must supply both lines for #{generator_name}" unless line1
120
+ raise Error, "two lines are required for #{@generator_name}" unless line1
115
121
 
116
122
  Net::HTTP.start url.host do |http|
117
123
  post = Net::HTTP::Post.new url.path
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: 11
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- version: "1.2"
9
+ - 2
10
+ version: 1.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Eric Hodel
@@ -35,7 +36,7 @@ cert_chain:
35
36
  x52qPcexcYZR7w==
36
37
  -----END CERTIFICATE-----
37
38
 
38
- date: 2011-02-11 00:00:00 -08:00
39
+ date: 2011-02-23 00:00:00 -08:00
39
40
  default_executable:
40
41
  dependencies:
41
42
  - !ruby/object:Gem::Dependency
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  requirements: []
119
120
 
120
121
  rubyforge_project: meme_generator
121
- rubygems_version: 1.5.3
122
+ rubygems_version: 1.5.2
122
123
  signing_key:
123
124
  specification_version: 3
124
125
  summary: Generate meme images using http://memegenerator.net! Save yourself some time!
metadata.gz.sig CHANGED
Binary file