gravatar_image_tag 1.0.0.pre1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -1
- data/lib/gravatar_image_tag.rb +5 -2
- metadata +4 -4
data/README.textile
CHANGED
@@ -105,4 +105,4 @@ h2. Credits
|
|
105
105
|
|
106
106
|
The ideas an methods for this plugin are from expanding upon my original blog post "Adding Gravatar To Your Website Or Blog (Gravatar Rails)":http://mdeering.com/posts/005-adding-gravitar-to-your-website-or-blog
|
107
107
|
|
108
|
-
Copyright (c) 2009 "Michael Deering(Ruby on Rails Development Edmonton)":http://mdeering.com, released under the MIT license
|
108
|
+
Copyright (c) 2009-2010 "Michael Deering(Ruby on Rails Development Edmonton)":http://mdeering.com, released under the MIT license
|
data/lib/gravatar_image_tag.rb
CHANGED
@@ -4,8 +4,11 @@ module GravatarImageTag
|
|
4
4
|
attr_accessor :configuration
|
5
5
|
end
|
6
6
|
|
7
|
+
def self.configuration
|
8
|
+
@configuration ||= Configuration.new
|
9
|
+
end
|
10
|
+
|
7
11
|
def self.configure
|
8
|
-
self.configuration ||= Configuration.new
|
9
12
|
yield(configuration)
|
10
13
|
end
|
11
14
|
|
@@ -86,7 +89,7 @@ module GravatarImageTag
|
|
86
89
|
|
87
90
|
def self.url_params(gravatar_params)
|
88
91
|
return nil if gravatar_params.keys.size == 0
|
89
|
-
"?#{gravatar_params.map { |key, value| "#{key}=#{URI.escape(value.is_a?(String) ? value : value.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))}"}.join('&')}"
|
92
|
+
"?#{gravatar_params.map { |key, value| "#{key}=#{URI.escape(value.is_a?(String) ? value : value.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))}"}.join('&')}"
|
90
93
|
end
|
91
94
|
|
92
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravatar_image_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1876988175
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.0.0.
|
10
|
+
- pre2
|
11
|
+
version: 1.0.0.pre2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Michael Deering
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-09-08 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|