acts_as_votable 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +39 -37
- data/lib/acts_as_votable/version.rb +1 -1
- data/lib/acts_as_votable/votable.rb +1 -4
- metadata +7 -7
data/Gemfile.lock
CHANGED
@@ -1,71 +1,73 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
acts_as_votable (0.1.
|
4
|
+
acts_as_votable (0.1.2)
|
5
5
|
rails (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
10
|
abstract (1.0.0)
|
11
|
-
actionmailer (3.0.
|
12
|
-
actionpack (= 3.0.
|
13
|
-
mail (~> 2.2.
|
14
|
-
actionpack (3.0.
|
15
|
-
activemodel (= 3.0.
|
16
|
-
activesupport (= 3.0.
|
11
|
+
actionmailer (3.0.9)
|
12
|
+
actionpack (= 3.0.9)
|
13
|
+
mail (~> 2.2.19)
|
14
|
+
actionpack (3.0.9)
|
15
|
+
activemodel (= 3.0.9)
|
16
|
+
activesupport (= 3.0.9)
|
17
17
|
builder (~> 2.1.2)
|
18
18
|
erubis (~> 2.6.6)
|
19
|
-
i18n (~> 0.
|
19
|
+
i18n (~> 0.5.0)
|
20
20
|
rack (~> 1.2.1)
|
21
|
-
rack-mount (~> 0.6.
|
22
|
-
rack-test (~> 0.5.
|
21
|
+
rack-mount (~> 0.6.14)
|
22
|
+
rack-test (~> 0.5.7)
|
23
23
|
tzinfo (~> 0.3.23)
|
24
|
-
activemodel (3.0.
|
25
|
-
activesupport (= 3.0.
|
24
|
+
activemodel (3.0.9)
|
25
|
+
activesupport (= 3.0.9)
|
26
26
|
builder (~> 2.1.2)
|
27
|
-
i18n (~> 0.
|
28
|
-
activerecord (3.0.
|
29
|
-
activemodel (= 3.0.
|
30
|
-
activesupport (= 3.0.
|
31
|
-
arel (~> 2.0.
|
27
|
+
i18n (~> 0.5.0)
|
28
|
+
activerecord (3.0.9)
|
29
|
+
activemodel (= 3.0.9)
|
30
|
+
activesupport (= 3.0.9)
|
31
|
+
arel (~> 2.0.10)
|
32
32
|
tzinfo (~> 0.3.23)
|
33
|
-
activeresource (3.0.
|
34
|
-
activemodel (= 3.0.
|
35
|
-
activesupport (= 3.0.
|
36
|
-
activesupport (3.0.
|
37
|
-
arel (2.0.
|
33
|
+
activeresource (3.0.9)
|
34
|
+
activemodel (= 3.0.9)
|
35
|
+
activesupport (= 3.0.9)
|
36
|
+
activesupport (3.0.9)
|
37
|
+
arel (2.0.10)
|
38
38
|
builder (2.1.2)
|
39
39
|
diff-lcs (1.1.2)
|
40
40
|
erubis (2.6.6)
|
41
41
|
abstract (>= 1.0.0)
|
42
42
|
i18n (0.5.0)
|
43
|
-
mail (2.2.
|
43
|
+
mail (2.2.19)
|
44
44
|
activesupport (>= 2.3.6)
|
45
45
|
i18n (>= 0.4.0)
|
46
46
|
mime-types (~> 1.16)
|
47
47
|
treetop (~> 1.4.8)
|
48
48
|
mime-types (1.16)
|
49
49
|
polyglot (0.3.1)
|
50
|
-
rack (1.2.
|
51
|
-
rack-mount (0.6.
|
50
|
+
rack (1.2.3)
|
51
|
+
rack-mount (0.6.14)
|
52
52
|
rack (>= 1.0.0)
|
53
|
-
rack-test (0.5.
|
53
|
+
rack-test (0.5.7)
|
54
54
|
rack (>= 1.0)
|
55
|
-
rails (3.0.
|
56
|
-
actionmailer (= 3.0.
|
57
|
-
actionpack (= 3.0.
|
58
|
-
activerecord (= 3.0.
|
59
|
-
activeresource (= 3.0.
|
60
|
-
activesupport (= 3.0.
|
55
|
+
rails (3.0.9)
|
56
|
+
actionmailer (= 3.0.9)
|
57
|
+
actionpack (= 3.0.9)
|
58
|
+
activerecord (= 3.0.9)
|
59
|
+
activeresource (= 3.0.9)
|
60
|
+
activesupport (= 3.0.9)
|
61
61
|
bundler (~> 1.0)
|
62
|
-
railties (= 3.0.
|
63
|
-
railties (3.0.
|
64
|
-
actionpack (= 3.0.
|
65
|
-
activesupport (= 3.0.
|
62
|
+
railties (= 3.0.9)
|
63
|
+
railties (3.0.9)
|
64
|
+
actionpack (= 3.0.9)
|
65
|
+
activesupport (= 3.0.9)
|
66
66
|
rake (>= 0.8.7)
|
67
|
+
rdoc (~> 3.4)
|
67
68
|
thor (~> 0.14.4)
|
68
69
|
rake (0.8.7)
|
70
|
+
rdoc (3.8)
|
69
71
|
rspec (2.3.0)
|
70
72
|
rspec-core (~> 2.3.0)
|
71
73
|
rspec-expectations (~> 2.3.0)
|
@@ -78,7 +80,7 @@ GEM
|
|
78
80
|
thor (0.14.6)
|
79
81
|
treetop (1.4.9)
|
80
82
|
polyglot (>= 0.3.1)
|
81
|
-
tzinfo (0.3.
|
83
|
+
tzinfo (0.3.29)
|
82
84
|
|
83
85
|
PLATFORMS
|
84
86
|
ruby
|
@@ -52,7 +52,7 @@ module ActsAsVotable
|
|
52
52
|
def default_conditions
|
53
53
|
{
|
54
54
|
:votable_id => self.id,
|
55
|
-
:votable_type => self.class.name
|
55
|
+
:votable_type => self.class.base_class.name.to_s
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
@@ -81,9 +81,6 @@ module ActsAsVotable
|
|
81
81
|
:votable => self,
|
82
82
|
:voter => options[:voter]
|
83
83
|
)
|
84
|
-
# redefine type if this object has a type. this is to deal
|
85
|
-
# with sti classes
|
86
|
-
vote.votable_type = type if respond_to?(:type) && !type.blank?
|
87
84
|
else
|
88
85
|
# this voter is potentially changing his vote
|
89
86
|
vote = votes.first
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_votable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-08 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2957740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2957740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &2957530 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2957530
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &2957280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 3.0.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2957280
|
47
47
|
description: Rails gem to allowing records to be votable
|
48
48
|
email:
|
49
49
|
- ryanto
|