ajaxful_rating 2.2.8 → 2.2.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 2.2.8.1 Jul 02, 2010
2
+ * Call html_safe only when it's available.
3
+
1
4
  == 2.2.8 Jun 14, 2010
2
5
  * Fix html for <li> marking it as html_safe when using rails_xss plugin
3
6
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('ajaxful_rating', '2.2.8') do |p|
5
+ Echoe.new('ajaxful_rating', '2.2.8.1') do |p|
6
6
  p.description = "Provides a simple way to add rating functionality to your application."
7
7
  p.url = "http://github.com/edgarjs/ajaxful-rating"
8
8
  p.author = "Edgar J. Suarez"
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ajaxful_rating}
5
- s.version = "2.2.8"
5
+ s.version = "2.2.8.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Edgar J. Suarez"]
9
- s.date = %q{2010-06-14}
9
+ s.date = %q{2010-07-02}
10
10
  s.description = %q{Provides a simple way to add rating functionality to your application.}
11
11
  s.email = %q{edgar.js@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "README.textile", "lib/ajaxful_rating.rb", "lib/axr/css_builder.rb", "lib/axr/errors.rb", "lib/axr/helpers.rb", "lib/axr/locale.rb", "lib/axr/model.rb", "lib/axr/stars_builder.rb"]
@@ -68,7 +68,8 @@ module AjaxfulRating # :nodoc:
68
68
  star_tag(i)
69
69
  end
70
70
  # When using rails_xss plugin, it needs to render as HTML
71
- @template.content_tag(:ul, stars.join.try(:html_safe), :class => "ajaxful-rating#{' small' if options[:small]}")
71
+ stars = "".respond_to?(:html_safe) ? stars.join.html_safe : stars.join
72
+ @template.content_tag(:ul, stars, :class => "ajaxful-rating#{' small' if options[:small]}")
72
73
  end
73
74
 
74
75
  def star_tag(value)
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxful_rating
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 93
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
9
  - 8
10
- version: 2.2.8
10
+ - 1
11
+ version: 2.2.8.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Edgar J. Suarez
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-06-14 00:00:00 -05:00
19
+ date: 2010-07-02 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies: []
21
22