poundie-pic 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/poundie-pic.rb +5 -1
- metadata +5 -7
data/lib/poundie-pic.rb
CHANGED
@@ -4,7 +4,11 @@ class PoundiePicture < Poundie::Plugin
|
|
4
4
|
register :poundie_picture
|
5
5
|
|
6
6
|
prefix %r/poundie pic\s+/ do |term|
|
7
|
-
|
7
|
+
if image = GoogleImageApi.find(term).images.first
|
8
|
+
speak image["unescapedUrl"]
|
9
|
+
else
|
10
|
+
speak "Google Images ain't got nothing on #{term.inspect}"
|
11
|
+
end
|
8
12
|
end
|
9
13
|
end
|
10
14
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poundie-pic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Nakajima
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-13 00:00:00
|
19
|
-
default_executable:
|
18
|
+
date: 2011-05-13 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: google_image_api
|
@@ -58,7 +57,6 @@ extra_rdoc_files: []
|
|
58
57
|
|
59
58
|
files:
|
60
59
|
- lib/poundie-pic.rb
|
61
|
-
has_rdoc: true
|
62
60
|
homepage:
|
63
61
|
licenses: []
|
64
62
|
|
@@ -88,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
86
|
requirements: []
|
89
87
|
|
90
88
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.8.2
|
92
90
|
signing_key:
|
93
91
|
specification_version: 3
|
94
92
|
summary: A Poundie plugin to post first google images result to Campfire
|