ajaxful_rating 3.0.0.beta2 → 3.0.0.beta3
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.
- data/Rakefile +1 -1
- data/ajaxful_rating.gemspec +2 -2
- data/lib/axr/helpers.rb +3 -3
- data/lib/axr/locale.rb +6 -6
- metadata +4 -4
data/Rakefile
CHANGED
|
@@ -6,7 +6,7 @@ begin
|
|
|
6
6
|
|
|
7
7
|
Jeweler::Tasks.new do |spec|
|
|
8
8
|
spec.name = "ajaxful_rating"
|
|
9
|
-
spec.version = "3.0.0.
|
|
9
|
+
spec.version = "3.0.0.beta3"
|
|
10
10
|
spec.summary = "Provides a simple way to add rating functionality to your application."
|
|
11
11
|
spec.description = "Provides a simple way to add rating functionality to your application."
|
|
12
12
|
spec.homepage = "http://github.com/edgarjs/ajaxful-rating"
|
data/ajaxful_rating.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{ajaxful_rating}
|
|
8
|
-
s.version = "3.0.0.
|
|
8
|
+
s.version = "3.0.0.beta3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Edgar J. Suarez", "Denis Odorcic"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-10-14}
|
|
13
13
|
s.description = %q{Provides a simple way to add rating functionality to your application.}
|
|
14
14
|
s.email = ["edgar.js@gmail.com", "denis.odorcic@gmail.com"]
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/axr/helpers.rb
CHANGED
|
@@ -69,9 +69,9 @@ module AjaxfulRating # :nodoc:
|
|
|
69
69
|
#
|
|
70
70
|
# ajaxful_rating:
|
|
71
71
|
# helper:
|
|
72
|
-
# global_average: "Global rating average: {
|
|
73
|
-
# user_rating: "Your rating: {
|
|
74
|
-
# hover: "Rate {
|
|
72
|
+
# global_average: "Global rating average: %{value} out of %{max}"
|
|
73
|
+
# user_rating: "Your rating: %{value} out of %{max}"
|
|
74
|
+
# hover: "Rate %{value} out of %{max}" def ratings_for(*args)
|
|
75
75
|
def ratings_for(*args)
|
|
76
76
|
@axr_css ||= CSSBuilder.new
|
|
77
77
|
options = args.extract_options!.to_hash.symbolize_keys.slice(:small, :remote_options,
|
data/lib/axr/locale.rb
CHANGED
|
@@ -4,15 +4,15 @@ module AjaxfulRating # :nodoc:
|
|
|
4
4
|
#
|
|
5
5
|
# ajaxful_rating:
|
|
6
6
|
# helper:
|
|
7
|
-
# global_average: "Global rating average: {
|
|
8
|
-
# user_rating: "Your rating: {
|
|
9
|
-
# hover: "Rate {
|
|
7
|
+
# global_average: "Global rating average: %{value} out of %{max}"
|
|
8
|
+
# user_rating: "Your rating: %{value} out of %{max}"
|
|
9
|
+
# hover: "Rate %{value} out of %{max}"
|
|
10
10
|
module Locale
|
|
11
11
|
|
|
12
12
|
DEFAULTS = {
|
|
13
|
-
:user_rating => "Your rating: {
|
|
14
|
-
:global_average => "Global rating average: {
|
|
15
|
-
:hover => "Rate {
|
|
13
|
+
:user_rating => "Your rating: %{value} out of %{max}",
|
|
14
|
+
:global_average => "Global rating average: %{value} out of %{max}",
|
|
15
|
+
:hover => "Rate %{value} out of %{max}"
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
def i18n(key, value = nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ajaxful_rating
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash: -
|
|
4
|
+
hash: -1848230021
|
|
5
5
|
prerelease: true
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 0
|
|
9
9
|
- 0
|
|
10
|
-
-
|
|
11
|
-
version: 3.0.0.
|
|
10
|
+
- beta3
|
|
11
|
+
version: 3.0.0.beta3
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Edgar J. Suarez
|
|
@@ -17,7 +17,7 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2010-
|
|
20
|
+
date: 2010-10-14 00:00:00 -05:00
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies: []
|
|
23
23
|
|