gravatar_image_tag 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ Once you have installed it as a plugin for your rails app usage is simple.
33
33
 
34
34
  <pre>gravatar_image_tag('spam@spam.com'.gsub('spam', 'mdeering'), :alt => 'Michael Deering')</pre>
35
35
 
36
- *Boom* here is my gravatar !http://www.gravatar.com/avata/4da9ad2bd4a2d1ce3c428e32c423588a(Michael Deering)!
36
+ *Boom* here is my gravatar !http://www.gravatar.com/avatar/4da9ad2bd4a2d1ce3c428e32c423588a(Michael Deering)!
37
37
 
38
38
  h2. Configuration Points
39
39
 
data/Rakefile CHANGED
@@ -4,19 +4,19 @@ require 'spec/rake/spectask'
4
4
 
5
5
  begin
6
6
  AUTHOR = "Michael Deering"
7
- EMAIL = "mdeering@mdeering.com"
7
+ EMAIL = "mdeering@mdeering.com"
8
8
  GEM = "gravatar_image_tag"
9
- HOMEPAGE = "http://github.com/mdeering/gravatar_image_tag"
9
+ HOMEPAGE = "http://github.com/mdeering/gravatar_image_tag"
10
10
  SUMMARY = "A configurable and documented Rails view helper for adding gravatars into your Rails application."
11
-
11
+
12
12
  require 'jeweler'
13
13
  Jeweler::Tasks.new do |s|
14
14
  s.author = AUTHOR
15
15
  s.email = EMAIL
16
- s.files = %w(install.rb install.txt MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,spec}/**/*")
17
- s.homepage = HOMEPAGE
18
- s.name = GEM
19
- s.require_path = 'lib'
16
+ s.files = %w(install.rb install.txt MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,spec}/**/*")
17
+ s.homepage = HOMEPAGE
18
+ s.name = GEM
19
+ s.require_path = 'lib'
20
20
  s.summary = SUMMARY
21
21
  end
22
22
  Jeweler::GemcutterTasks.new
@@ -27,7 +27,7 @@ end
27
27
  desc 'Default: spec tests.'
28
28
  task :default => :spec
29
29
 
30
- desc 'Test the attribute_normalizer plugin.'
30
+ desc 'Test the gravatar_image_tag gem.'
31
31
  Spec::Rake::SpecTask.new('spec') do |t|
32
32
  t.spec_files = FileList['spec/**/*_spec.rb']
33
33
  t.spec_opts = ["-c"]
@@ -40,10 +40,10 @@ Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
40
40
  t.rcov_opts = ['--exclude', '/opt,spec,Library']
41
41
  end
42
42
 
43
- desc 'Generate documentation for the attribute_normalizer plugin.'
43
+ desc 'Generate documentation for the gravatar_image_tag plugin.'
44
44
  Rake::RDocTask.new(:rdoc) do |rdoc|
45
45
  rdoc.rdoc_dir = 'rdoc'
46
- rdoc.title = 'AttributeNormalizer'
46
+ rdoc.title = 'GravatarImageTag'
47
47
  rdoc.options << '--line-numbers' << '--inline-source'
48
48
  rdoc.rdoc_files.include('README.textile')
49
49
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -37,7 +37,7 @@ module GravatarImageTag
37
37
  end
38
38
 
39
39
  def url_params(gravatar_params)
40
- return nil if gravatar_params.keys.count == 0
40
+ return nil if gravatar_params.keys.size == 0
41
41
  "?#{gravatar_params.map { |key, value| "#{key}=#{URI.escape(value.is_a?(String) ? value : value.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))}"}.join('&')}"
42
42
  end
43
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravatar_image_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Deering
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-04 00:00:00 -07:00
12
+ date: 2010-01-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15