thumbnail 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +7 -0
- data/README.txt +1 -1
- data/Rakefile +1 -1
- data/lib/thumbnail.rb +3 -1
- data/lib/thumbnail/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +12 -4
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -37,7 +37,7 @@ Download a small thumbnail of http://www.craphound.com as a local file called sm
|
|
37
37
|
Write a view helper for use in a Rails application to generate image tags with Amazon redirect urls in your templates. In app/helpers/my_helper.rb:
|
38
38
|
|
39
39
|
module MyHelper
|
40
|
-
def thumbnail_image(url, size=:large)
|
40
|
+
def thumbnail_image(url, size=:large)
|
41
41
|
t = Thumbnail::Client.new :access_key_id => AWS_ACCESS_KEY_ID, :secret_access_key => AWS_SECRET_ACCESS_KEY,
|
42
42
|
:action => :redirect, :size => size
|
43
43
|
"<img src=\"#{t.get(url)}\">"
|
data/Rakefile
CHANGED
@@ -78,7 +78,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
78
78
|
|
79
79
|
# == Optional
|
80
80
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
81
|
-
|
81
|
+
p.extra_deps = [ ['hpricot', '>= 0.5'] ]
|
82
82
|
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
83
83
|
end
|
84
84
|
|
data/lib/thumbnail.rb
CHANGED
data/lib/thumbnail/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
<img src="logo.png" id="logo">
|
33
33
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/thumbnail"; return false'>
|
34
34
|
<p>Get Version</p>
|
35
|
-
<a href="http://rubyforge.org/projects/thumbnail" class="numbers">0.2.
|
35
|
+
<a href="http://rubyforge.org/projects/thumbnail" class="numbers">0.2.1</a>
|
36
36
|
</div>
|
37
37
|
|
38
38
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: thumbnail
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2007-06-
|
6
|
+
version: 0.2.1
|
7
|
+
date: 2007-06-18 00:00:00 -07:00
|
8
8
|
summary: Wrapper for the Amazon Web Services Alexa Thumbnail Service REST API, which provides website thumbnail images on demand for a small fee ($0.20/1000)
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -74,5 +74,13 @@ extensions: []
|
|
74
74
|
|
75
75
|
requirements: []
|
76
76
|
|
77
|
-
dependencies:
|
78
|
-
|
77
|
+
dependencies:
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: hpricot
|
80
|
+
version_requirement:
|
81
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: "0.5"
|
86
|
+
version:
|