objectreload-vote_fu 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -2
- data/README.markdown +1 -1
- data/VERSION +1 -1
- data/lib/vote_fu.rb +9 -1
- data/objectreload-vote_fu.gemspec +68 -0
- metadata +16 -8
data/.gitignore
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
pkg/
|
1
|
+
pkg/
|
data/README.markdown
CHANGED
@@ -20,7 +20,7 @@ This plugin started as an adaptation / update of act\_as\_voteable. It has grown
|
|
20
20
|
4. Introduces some newer Rails features like named\_scope and :polymorphic keywords
|
21
21
|
5. Adds "has\_karma" mixin for identifying key content contributors
|
22
22
|
|
23
|
-
###
|
23
|
+
### Difference between original vote_fu and our gem
|
24
24
|
|
25
25
|
Generator creates model vote.rb in you application instead of keeping it in the gem lib.
|
26
26
|
We had bad experience with extending this class in application - unexpected things where having place.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/vote_fu.rb
CHANGED
@@ -5,4 +5,12 @@ require 'has_karma'
|
|
5
5
|
ActiveRecord::Base.send(:include, Juixe::Acts::Voteable)
|
6
6
|
ActiveRecord::Base.send(:include, PeteOnRails::Acts::Voter)
|
7
7
|
ActiveRecord::Base.send(:include, PeteOnRails::VoteFu::Karma)
|
8
|
-
|
8
|
+
|
9
|
+
success_message = '** vote_fu: initialized properly.'
|
10
|
+
|
11
|
+
begin
|
12
|
+
RAILS_DEFAULT_LOGGER.info success_message
|
13
|
+
rescue NameError
|
14
|
+
Logger.new(STDOUT).info success_message
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{objectreload-vote_fu}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Peter Jackson", "Cosmin Radoi", "Bence Nagy", "Rob Maddox", "Wojciech Wnętrzak"]
|
12
|
+
s.date = %q{2010-03-24}
|
13
|
+
s.description = %q{VoteFu provides the ability to have multiple voting entities on an arbitrary number of models in ActiveRecord.}
|
14
|
+
s.email = %q{gems@objectreload.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.markdown"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"CHANGELOG.markdown",
|
21
|
+
"MIT-LICENSE",
|
22
|
+
"README.markdown",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"examples/routes.rb",
|
26
|
+
"examples/users_controller.rb",
|
27
|
+
"examples/voteable.html.erb",
|
28
|
+
"examples/voteable.rb",
|
29
|
+
"examples/voteables_controller.rb",
|
30
|
+
"examples/votes/_voteable_vote.html.erb",
|
31
|
+
"examples/votes/create.rjs",
|
32
|
+
"examples/votes_controller.rb",
|
33
|
+
"generators/vote_fu/templates/migration.rb",
|
34
|
+
"generators/vote_fu/templates/vote.rb",
|
35
|
+
"generators/vote_fu/vote_fu_generator.rb",
|
36
|
+
"lib/acts_as_voteable.rb",
|
37
|
+
"lib/acts_as_voter.rb",
|
38
|
+
"lib/has_karma.rb",
|
39
|
+
"lib/vote_fu.rb",
|
40
|
+
"objectreload-vote_fu.gemspec",
|
41
|
+
"rails/init.rb",
|
42
|
+
"test/vote_fu_test.rb"
|
43
|
+
]
|
44
|
+
s.homepage = %q{http://github.com/objectreload/vote_fu}
|
45
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
46
|
+
s.require_paths = ["lib"]
|
47
|
+
s.rubygems_version = %q{1.3.6}
|
48
|
+
s.summary = %q{Voting for ActiveRecord with multiple vote sources and advanced features.}
|
49
|
+
s.test_files = [
|
50
|
+
"test/vote_fu_test.rb",
|
51
|
+
"examples/routes.rb",
|
52
|
+
"examples/users_controller.rb",
|
53
|
+
"examples/voteable.rb",
|
54
|
+
"examples/voteables_controller.rb",
|
55
|
+
"examples/votes_controller.rb"
|
56
|
+
]
|
57
|
+
|
58
|
+
if s.respond_to? :specification_version then
|
59
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
60
|
+
s.specification_version = 3
|
61
|
+
|
62
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
63
|
+
else
|
64
|
+
end
|
65
|
+
else
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: objectreload-vote_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Peter Jackson
|
@@ -13,7 +18,7 @@ autorequire:
|
|
13
18
|
bindir: bin
|
14
19
|
cert_chain: []
|
15
20
|
|
16
|
-
date: 2010-
|
21
|
+
date: 2010-03-24 00:00:00 +01:00
|
17
22
|
default_executable:
|
18
23
|
dependencies: []
|
19
24
|
|
@@ -47,6 +52,7 @@ files:
|
|
47
52
|
- lib/acts_as_voter.rb
|
48
53
|
- lib/has_karma.rb
|
49
54
|
- lib/vote_fu.rb
|
55
|
+
- objectreload-vote_fu.gemspec
|
50
56
|
- rails/init.rb
|
51
57
|
- test/vote_fu_test.rb
|
52
58
|
has_rdoc: true
|
@@ -62,25 +68,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
65
73
|
version: "0"
|
66
|
-
version:
|
67
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
75
|
requirements:
|
69
76
|
- - ">="
|
70
77
|
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 0
|
71
80
|
version: "0"
|
72
|
-
version:
|
73
81
|
requirements: []
|
74
82
|
|
75
83
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.3.
|
84
|
+
rubygems_version: 1.3.6
|
77
85
|
signing_key:
|
78
86
|
specification_version: 3
|
79
87
|
summary: Voting for ActiveRecord with multiple vote sources and advanced features.
|
80
88
|
test_files:
|
81
89
|
- test/vote_fu_test.rb
|
82
|
-
- examples/voteable.rb
|
83
|
-
- examples/users_controller.rb
|
84
|
-
- examples/votes_controller.rb
|
85
90
|
- examples/routes.rb
|
91
|
+
- examples/users_controller.rb
|
92
|
+
- examples/voteable.rb
|
86
93
|
- examples/voteables_controller.rb
|
94
|
+
- examples/votes_controller.rb
|