faces 0.6.3 → 0.6.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/faces.gemspec +1 -1
  3. data/lib/faces.rb +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.3
1
+ 0.6.4
data/faces.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{faces}
8
- s.version = "0.6.3"
8
+ s.version = "0.6.4"
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"]
data/lib/faces.rb CHANGED
@@ -58,13 +58,13 @@ module Faces
58
58
  # Returns the default avatar in an <img /> HTML tag
59
59
  def avatar_default_html(configuration = {})
60
60
  default = configuration[:default].present? ? configuration[:default] : ::Faces::Configuration::UNIVERSAL[:default]
61
- url = configuration[:size].present? ? default[configuration[:size]] : default::Faces::Configuration::UNIVERSAL[:size]
61
+ url = configuration[:size].present? ? default[configuration[:size]] : default[::Faces::Configuration::UNIVERSAL[:size]]
62
62
  generate_html(url, configuration)
63
63
  end
64
64
  # Returns the default avatar as a url
65
65
  def avatar_default_url(configuration = {})
66
66
  default = configuration[:default].present? ? configuration[:default] : ::Faces::Configuration::UNIVERSAL[:default]
67
- url = configuration[:size].present? ? default[configuration[:size]] : default::Faces::Configuration::UNIVERSAL[:size]
67
+ url = configuration[:size].present? ? default[configuration[:size]] : default[::Faces::Configuration::UNIVERSAL[:size]]
68
68
  end
69
69
  # Returns true if provider exists, false if not
70
70
  def provider_exists?(provider)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 3
9
- version: 0.6.3
8
+ - 4
9
+ version: 0.6.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nick Pellant