ajaxful_rating 2.2.7 → 2.2.8

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 Jun 14, 2010
2
+ * Fix html for <li> marking it as html_safe when using rails_xss plugin
3
+
1
4
  == 2.2.7 Jun 12, 2010
2
5
  * Fix generated html 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.7') do |p|
5
+ Echoe.new('ajaxful_rating', '2.2.8') 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.7"
5
+ s.version = "2.2.8"
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-12}
9
+ s.date = %q{2010-06-14}
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"]
@@ -20,8 +20,7 @@ module AjaxfulRating # :nodoc:
20
20
  end
21
21
 
22
22
  def render
23
- # When using rails_xss plugin, it needs to render as HTML
24
- (options[:wrap] ? wrapper_tag : ratings_tag).try(:html_safe)
23
+ options[:wrap] ? wrapper_tag : ratings_tag
25
24
  end
26
25
 
27
26
  private
@@ -68,7 +67,8 @@ module AjaxfulRating # :nodoc:
68
67
  stars += (1..rateable.class.max_stars).map do |i|
69
68
  star_tag(i)
70
69
  end
71
- @template.content_tag(:ul, stars.join, :class => "ajaxful-rating#{' small' if options[:small]}")
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]}")
72
72
  end
73
73
 
74
74
  def star_tag(value)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxful_rating
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 7
10
- version: 2.2.7
9
+ - 8
10
+ version: 2.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Edgar J. Suarez
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-12 00:00:00 -05:00
18
+ date: 2010-06-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21