rs_voteable_mongo 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.watchr +23 -0
- data/CHANGELOG.rdoc +87 -0
- data/Gemfile +4 -0
- data/README.rdoc +212 -0
- data/Rakefile +10 -0
- data/TODO +17 -0
- data/lib/rs_votable_mongo.rb +1 -0
- data/lib/voteable_mongo/helpers.rb +18 -0
- data/lib/voteable_mongo/integrations/mongoid.rb +31 -0
- data/lib/voteable_mongo/railtie.rb +19 -0
- data/lib/voteable_mongo/railties/database.rake +18 -0
- data/lib/voteable_mongo/tasks.rb +152 -0
- data/lib/voteable_mongo/version.rb +3 -0
- data/lib/voteable_mongo/voteable.rb +203 -0
- data/lib/voteable_mongo/voter.rb +91 -0
- data/lib/voteable_mongo/voting.rb +214 -0
- data/lib/voteable_mongo.rb +8 -0
- data/spec/.rspec +1 -0
- data/spec/mongoid/models/category.rb +10 -0
- data/spec/mongoid/models/comment.rb +13 -0
- data/spec/mongoid/models/post.rb +17 -0
- data/spec/mongoid/models/user.rb +4 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/voteable_mongo/tasks_spec.rb +34 -0
- data/spec/voteable_mongo/voteable_spec.rb +436 -0
- data/spec/voteable_mongo/voter_spec.rb +150 -0
- data/voteable_mongo.gemspec +24 -0
- metadata +118 -0
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rs_voteable_mongo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- RocketScience
|
8
|
+
- Alex Nguyen
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-09-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mongoid
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '3.0'
|
21
|
+
- - <
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.0'
|
31
|
+
- - <
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rspec
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.14.1
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.14.1
|
48
|
+
description: Add up / down voting ability to Mongoid documents. Optimized for speed
|
49
|
+
by using only ONE request to MongoDB to validate, update, and retrieve updated data.
|
50
|
+
email:
|
51
|
+
- i@gleb.tv
|
52
|
+
- alex@vinova.sg
|
53
|
+
executables: []
|
54
|
+
extensions: []
|
55
|
+
extra_rdoc_files: []
|
56
|
+
files:
|
57
|
+
- .gitignore
|
58
|
+
- .ruby-gemset
|
59
|
+
- .ruby-version
|
60
|
+
- .watchr
|
61
|
+
- CHANGELOG.rdoc
|
62
|
+
- Gemfile
|
63
|
+
- README.rdoc
|
64
|
+
- Rakefile
|
65
|
+
- TODO
|
66
|
+
- lib/rs_votable_mongo.rb
|
67
|
+
- lib/voteable_mongo.rb
|
68
|
+
- lib/voteable_mongo/helpers.rb
|
69
|
+
- lib/voteable_mongo/integrations/mongoid.rb
|
70
|
+
- lib/voteable_mongo/railtie.rb
|
71
|
+
- lib/voteable_mongo/railties/database.rake
|
72
|
+
- lib/voteable_mongo/tasks.rb
|
73
|
+
- lib/voteable_mongo/version.rb
|
74
|
+
- lib/voteable_mongo/voteable.rb
|
75
|
+
- lib/voteable_mongo/voter.rb
|
76
|
+
- lib/voteable_mongo/voting.rb
|
77
|
+
- spec/.rspec
|
78
|
+
- spec/mongoid/models/category.rb
|
79
|
+
- spec/mongoid/models/comment.rb
|
80
|
+
- spec/mongoid/models/post.rb
|
81
|
+
- spec/mongoid/models/user.rb
|
82
|
+
- spec/spec_helper.rb
|
83
|
+
- spec/voteable_mongo/tasks_spec.rb
|
84
|
+
- spec/voteable_mongo/voteable_spec.rb
|
85
|
+
- spec/voteable_mongo/voter_spec.rb
|
86
|
+
- voteable_mongo.gemspec
|
87
|
+
homepage: https://github.com/rs-pro/voteable_mongo
|
88
|
+
licenses: []
|
89
|
+
metadata: {}
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubyforge_project: voteable_mongo
|
106
|
+
rubygems_version: 2.0.6
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Add up / down voting ability to Mongoid documents
|
110
|
+
test_files:
|
111
|
+
- spec/mongoid/models/category.rb
|
112
|
+
- spec/mongoid/models/comment.rb
|
113
|
+
- spec/mongoid/models/post.rb
|
114
|
+
- spec/mongoid/models/user.rb
|
115
|
+
- spec/spec_helper.rb
|
116
|
+
- spec/voteable_mongo/tasks_spec.rb
|
117
|
+
- spec/voteable_mongo/voteable_spec.rb
|
118
|
+
- spec/voteable_mongo/voter_spec.rb
|