faces 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/faces.gemspec +2 -2
  3. data/lib/faces.rb +5 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/faces.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{faces}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Pellant"]
12
- s.date = %q{2010-03-29}
12
+ s.date = %q{2010-04-12}
13
13
  s.description = %q{Avatars made super simple.}
14
14
  s.email = %q{nick@silentale.com}
15
15
  s.extra_rdoc_files = [
data/lib/faces.rb CHANGED
@@ -83,9 +83,12 @@ module Faces
83
83
  def generate_html(url, configuration = {})
84
84
  m_configuration = Faces::Common.merge_configurations([Faces::Configuration::UNIVERSAL, configuration])
85
85
  combined_classes = m_configuration[:html_provider_classes].present? ? m_configuration[:html_classes] + ' ' + m_configuration[:html_provider_classes] : m_configuration[:html_classes]
86
-
86
+
87
87
  html = '<img src="' + url + '" class="' + combined_classes + '"'
88
- html += 'id="' + m_configuration[:id] + '"' if m_configuration[:id].present?
88
+ html += " id=\"#{m_configuration[:id]}\"" if m_configuration[:id].present?
89
+ html += " width=\"#{m_configuration[:width]}\"" if m_configuration[:width].present?
90
+ html += " height=\"#{m_configuration[:height]}\"" if m_configuration[:height].present?
91
+ html += " alt=\"#{m_configuration[:alt]}\"" if m_configuration[:alt].present?
89
92
  html += ' />'
90
93
  end
91
94
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 2
9
+ version: 0.6.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nick Pellant
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-29 00:00:00 +02:00
17
+ date: 2010-04-12 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20