ajaxful_rating 3.0.0.beta1 → 3.0.0.beta2

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 3.0.0.beta2 August 8, 2010
2
+ * Fix dom_class and tap methods in rails.rc
3
+
1
4
  == 2.2.3 March 10, 2010
2
5
  * Fix validation of current_user to show linked stars
3
6
 
@@ -30,4 +33,4 @@
30
33
  * Added option for showing current_user's rate instead of global average
31
34
 
32
35
  == 2.1.0 July 25, 2009
33
- * AjaxfulRating is now available as a gem
36
+ * AjaxfulRating is now available as a gem
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.beta1"
9
+ spec.version = "3.0.0.beta2"
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"
@@ -5,16 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ajaxful_rating}
8
- s.version = "3.0.0.beta1"
8
+ s.version = "3.0.0.beta2"
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-05-03}
12
+ s.date = %q{2010-08-08}
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 = [
16
- "ChangeLog",
17
- "README.textile"
16
+ "README.textile"
18
17
  ]
19
18
  s.files = [
20
19
  ".gitignore",
@@ -50,7 +49,7 @@ Gem::Specification.new do |s|
50
49
  s.homepage = %q{http://github.com/edgarjs/ajaxful-rating}
51
50
  s.rdoc_options = ["--charset=UTF-8"]
52
51
  s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.3.6}
52
+ s.rubygems_version = %q{1.3.7}
54
53
  s.summary = %q{Provides a simple way to add rating functionality to your application.}
55
54
  s.test_files = [
56
55
  "test/fixtures/car.rb",
@@ -65,7 +64,7 @@ Gem::Specification.new do |s|
65
64
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
66
65
  s.specification_version = 3
67
66
 
68
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
67
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
68
  else
70
69
  end
71
70
  else
data/lib/axr/model.rb CHANGED
@@ -76,7 +76,7 @@ module AjaxfulRating # :nodoc:
76
76
  rate = if self.class.axr_config[:allow_update] && rated_by?(user, dimension)
77
77
  rate_by(user, dimension)
78
78
  else
79
- returning rates(dimension).build do |r|
79
+ rates(dimension).build.tap do |r|
80
80
  r.rater = user
81
81
  end
82
82
  end
@@ -44,7 +44,7 @@ module AjaxfulRating # :nodoc:
44
44
  }.merge(remote_options)
45
45
 
46
46
  if @remote_options[:url].nil?
47
- rateable_name = ActionController::RecordIdentifier.singular_class_name(rateable)
47
+ rateable_name = ActionController::RecordIdentifier.dom_class(rateable)
48
48
  url = "rate_#{rateable_name}_path"
49
49
  if @template.respond_to?(url)
50
50
  @remote_options[:url] = @template.send(url, rateable)
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: -1848230022
4
5
  prerelease: true
5
6
  segments:
6
7
  - 3
7
8
  - 0
8
9
  - 0
9
- - beta1
10
- version: 3.0.0.beta1
10
+ - beta2
11
+ version: 3.0.0.beta2
11
12
  platform: ruby
12
13
  authors:
13
14
  - Edgar J. Suarez
@@ -16,7 +17,7 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-05-03 00:00:00 -05:00
20
+ date: 2010-08-08 00:00:00 -05:00
20
21
  default_executable:
21
22
  dependencies: []
22
23
 
@@ -29,7 +30,6 @@ executables: []
29
30
  extensions: []
30
31
 
31
32
  extra_rdoc_files:
32
- - ChangeLog
33
33
  - README.textile
34
34
  files:
35
35
  - .gitignore
@@ -61,7 +61,6 @@ files:
61
61
  - test/fixtures/users.yml
62
62
  - test/lib/model_test.rb
63
63
  - test/test_helper.rb
64
- - ChangeLog
65
64
  has_rdoc: true
66
65
  homepage: http://github.com/edgarjs/ajaxful-rating
67
66
  licenses: []
@@ -72,16 +71,20 @@ rdoc_options:
72
71
  require_paths:
73
72
  - lib
74
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
+ none: false
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
+ hash: 3
78
79
  segments:
79
80
  - 0
80
81
  version: "0"
81
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
+ none: false
82
84
  requirements:
83
85
  - - ">"
84
86
  - !ruby/object:Gem::Version
87
+ hash: 25
85
88
  segments:
86
89
  - 1
87
90
  - 3
@@ -90,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
93
  requirements: []
91
94
 
92
95
  rubyforge_project:
93
- rubygems_version: 1.3.6
96
+ rubygems_version: 1.3.7
94
97
  signing_key:
95
98
  specification_version: 3
96
99
  summary: Provides a simple way to add rating functionality to your application.
data/ChangeLog DELETED
@@ -1,33 +0,0 @@
1
- == 2.2.3 March 10, 2010
2
- * Fix validation of current_user to show linked stars
3
-
4
- == 2.2.2 March 9, 2010
5
- * Fix bug for jRuby
6
- * Fixed user self relational model to be rater and rateable.
7
-
8
- == 2.2.1 March 8, 2010
9
- * Changed :force_dynamic for its opposite :force_static.
10
- * Fixed I18n texts.
11
- * Fixed missed quotes for Rate belongs_to association with User class
12
- * Detailed wrapper DOM id with passed hash.
13
-
14
- == 2.2.0 March 7, 2010
15
- * Improved model methods and options.
16
- * Works now with inherited models.
17
- * Removed HTML and CSS options for helper for sake of simpleness.
18
- * Renamed helper option :small_stars to :small.
19
- * Changed whole helper approach. It should work the same as before.
20
- (Except for the renamed and removed options)
21
- * Removed :force_dynamic, you should exclude the helper from cache since it uses
22
- authorization.
23
- * Fixed opened bugs so far.
24
-
25
- == 2.1.5 January 28, 2010
26
- * Renamed options method name to avoid collapse.
27
- * Removed CSS duplication.
28
-
29
- == 2.1.4 January 25, 2010
30
- * Added option for showing current_user's rate instead of global average
31
-
32
- == 2.1.0 July 25, 2009
33
- * AjaxfulRating is now available as a gem