acts_as_votable 0.5.0 → 0.8.0
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.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +17 -0
- data/Gemfile +14 -1
- data/README.markdown +219 -142
- data/Rakefile +8 -0
- data/acts_as_votable.gemspec +1 -6
- data/lib/acts_as_votable/extenders/controller.rb +19 -0
- data/lib/acts_as_votable/version.rb +1 -1
- data/lib/acts_as_votable/votable.rb +102 -29
- data/lib/acts_as_votable/vote.rb +8 -6
- data/lib/acts_as_votable/voter.rb +13 -14
- data/lib/acts_as_votable.rb +5 -0
- data/lib/generators/acts_as_votable/migration/templates/active_record/migration.rb +6 -2
- data/spec/spec_helper.rb +9 -0
- data/spec/votable_spec.rb +143 -0
- data/spec/voter_spec.rb +6 -0
- metadata +16 -47
- data/Gemfile.lock +0 -104
metadata
CHANGED
@@ -1,64 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_votable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ryan
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sqlite3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: 1.3.7
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rails
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 3.0.0
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
37
|
requirements:
|
59
|
-
- -
|
38
|
+
- - '='
|
60
39
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
40
|
+
version: 1.3.7
|
62
41
|
description: Rails gem to allowing records to be votable
|
63
42
|
email:
|
64
43
|
- ryanto
|
@@ -67,12 +46,13 @@ extensions: []
|
|
67
46
|
extra_rdoc_files: []
|
68
47
|
files:
|
69
48
|
- .gitignore
|
49
|
+
- .travis.yml
|
70
50
|
- Gemfile
|
71
|
-
- Gemfile.lock
|
72
51
|
- README.markdown
|
73
52
|
- Rakefile
|
74
53
|
- acts_as_votable.gemspec
|
75
54
|
- lib/acts_as_votable.rb
|
55
|
+
- lib/acts_as_votable/extenders/controller.rb
|
76
56
|
- lib/acts_as_votable/extenders/votable.rb
|
77
57
|
- lib/acts_as_votable/extenders/voter.rb
|
78
58
|
- lib/acts_as_votable/helpers/words.rb
|
@@ -88,36 +68,25 @@ files:
|
|
88
68
|
- spec/words_spec.rb
|
89
69
|
homepage: http://rubygems.org/gems/acts_as_votable
|
90
70
|
licenses: []
|
71
|
+
metadata: {}
|
91
72
|
post_install_message:
|
92
73
|
rdoc_options: []
|
93
74
|
require_paths:
|
94
75
|
- lib
|
95
76
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
77
|
requirements:
|
98
|
-
- -
|
78
|
+
- - '>='
|
99
79
|
- !ruby/object:Gem::Version
|
100
80
|
version: '0'
|
101
|
-
segments:
|
102
|
-
- 0
|
103
|
-
hash: 3405338433430010114
|
104
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
82
|
requirements:
|
107
|
-
- -
|
83
|
+
- - '>='
|
108
84
|
- !ruby/object:Gem::Version
|
109
85
|
version: '0'
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
hash: 3405338433430010114
|
113
86
|
requirements: []
|
114
87
|
rubyforge_project: acts_as_votable
|
115
|
-
rubygems_version:
|
88
|
+
rubygems_version: 2.0.3
|
116
89
|
signing_key:
|
117
|
-
specification_version:
|
90
|
+
specification_version: 4
|
118
91
|
summary: Rails gem to allowing records to be votable
|
119
|
-
test_files:
|
120
|
-
- spec/spec_helper.rb
|
121
|
-
- spec/votable_spec.rb
|
122
|
-
- spec/voter_spec.rb
|
123
|
-
- spec/words_spec.rb
|
92
|
+
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
acts_as_votable (0.5.0)
|
5
|
-
rails (>= 3.0.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (3.2.11)
|
11
|
-
actionpack (= 3.2.11)
|
12
|
-
mail (~> 2.4.4)
|
13
|
-
actionpack (3.2.11)
|
14
|
-
activemodel (= 3.2.11)
|
15
|
-
activesupport (= 3.2.11)
|
16
|
-
builder (~> 3.0.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.0)
|
20
|
-
rack-cache (~> 1.2)
|
21
|
-
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.2.1)
|
23
|
-
activemodel (3.2.11)
|
24
|
-
activesupport (= 3.2.11)
|
25
|
-
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.11)
|
27
|
-
activemodel (= 3.2.11)
|
28
|
-
activesupport (= 3.2.11)
|
29
|
-
arel (~> 3.0.2)
|
30
|
-
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.11)
|
32
|
-
activemodel (= 3.2.11)
|
33
|
-
activesupport (= 3.2.11)
|
34
|
-
activesupport (3.2.11)
|
35
|
-
i18n (~> 0.6)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
arel (3.0.2)
|
38
|
-
builder (3.0.4)
|
39
|
-
diff-lcs (1.1.3)
|
40
|
-
erubis (2.7.0)
|
41
|
-
hike (1.2.1)
|
42
|
-
i18n (0.6.1)
|
43
|
-
journey (1.0.4)
|
44
|
-
json (1.7.6)
|
45
|
-
mail (2.4.4)
|
46
|
-
i18n (>= 0.4.0)
|
47
|
-
mime-types (~> 1.16)
|
48
|
-
treetop (~> 1.4.8)
|
49
|
-
mime-types (1.19)
|
50
|
-
multi_json (1.5.0)
|
51
|
-
polyglot (0.3.3)
|
52
|
-
rack (1.4.4)
|
53
|
-
rack-cache (1.2)
|
54
|
-
rack (>= 0.4)
|
55
|
-
rack-ssl (1.3.2)
|
56
|
-
rack
|
57
|
-
rack-test (0.6.2)
|
58
|
-
rack (>= 1.0)
|
59
|
-
rails (3.2.11)
|
60
|
-
actionmailer (= 3.2.11)
|
61
|
-
actionpack (= 3.2.11)
|
62
|
-
activerecord (= 3.2.11)
|
63
|
-
activeresource (= 3.2.11)
|
64
|
-
activesupport (= 3.2.11)
|
65
|
-
bundler (~> 1.0)
|
66
|
-
railties (= 3.2.11)
|
67
|
-
railties (3.2.11)
|
68
|
-
actionpack (= 3.2.11)
|
69
|
-
activesupport (= 3.2.11)
|
70
|
-
rack-ssl (~> 1.3.2)
|
71
|
-
rake (>= 0.8.7)
|
72
|
-
rdoc (~> 3.4)
|
73
|
-
thor (>= 0.14.6, < 2.0)
|
74
|
-
rake (10.0.3)
|
75
|
-
rdoc (3.12)
|
76
|
-
json (~> 1.4)
|
77
|
-
rspec (2.9.0)
|
78
|
-
rspec-core (~> 2.9.0)
|
79
|
-
rspec-expectations (~> 2.9.0)
|
80
|
-
rspec-mocks (~> 2.9.0)
|
81
|
-
rspec-core (2.9.0)
|
82
|
-
rspec-expectations (2.9.1)
|
83
|
-
diff-lcs (~> 1.1.3)
|
84
|
-
rspec-mocks (2.9.0)
|
85
|
-
sprockets (2.2.2)
|
86
|
-
hike (~> 1.2)
|
87
|
-
multi_json (~> 1.0)
|
88
|
-
rack (~> 1.0)
|
89
|
-
tilt (~> 1.1, != 1.3.0)
|
90
|
-
sqlite3 (1.3.5)
|
91
|
-
thor (0.16.0)
|
92
|
-
tilt (1.3.3)
|
93
|
-
treetop (1.4.12)
|
94
|
-
polyglot
|
95
|
-
polyglot (>= 0.3.1)
|
96
|
-
tzinfo (0.3.35)
|
97
|
-
|
98
|
-
PLATFORMS
|
99
|
-
ruby
|
100
|
-
|
101
|
-
DEPENDENCIES
|
102
|
-
acts_as_votable!
|
103
|
-
rspec
|
104
|
-
sqlite3
|