mongoid-forums 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/mongoid_forums/install_generator.rb +1 -0
- data/lib/mongoid_forums.rb +5 -2
- data/lib/mongoid_forums/engine.rb +0 -3
- data/lib/mongoid_forums/version.rb +1 -1
- data/test/dummy/config/application.rb +2 -2
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/log/development.log +55 -0
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8c73f1a48ff5f8a55dd8bfac0bdf25aa469e637
|
4
|
+
data.tar.gz: 6336dd6f6439610464b3d16d23bc82012840697a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e11aaf9e3097562401ec0385c721988f3eff8b48a4035e82223b7ecc68d4988e1be44fba5fd26a1b43bc19390c1317775f6e7f53ffb2895a77726fe38d00fc9b
|
7
|
+
data.tar.gz: 037b00b2aaa54678d503dd97fdb5ce38984f020d116d278addd10ed86772317924f6fc63572c09a08eb611769f0e51dd0348fe0d0826fee8f2e52855d2305dcb
|
data/lib/mongoid_forums.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
# Fix for #185 and build issues
|
2
|
+
require 'active_support/core_ext/kernel/singleton_class'
|
3
|
+
require 'decorators'
|
1
4
|
require "mongoid_forums/engine"
|
2
5
|
require 'mongoid_forums/sanitizer'
|
3
6
|
require 'mongoid_forums/default_permissions'
|
4
7
|
require 'sanitize'
|
5
|
-
|
6
|
-
require
|
8
|
+
require 'haml'
|
9
|
+
require "mongoid"
|
7
10
|
|
8
11
|
module MongoidForums
|
9
12
|
mattr_accessor :per_page, :user_class, :formatter, :email_from_address, :sign_in_path
|
@@ -10,8 +10,8 @@ require "rails/test_unit/railtie"
|
|
10
10
|
require "sprockets/railtie" # Uncomment this line for Rails 3.1+
|
11
11
|
|
12
12
|
Bundler.require(*Rails.groups)
|
13
|
-
require "mongoid_forums"
|
14
|
-
require "kaminari" # TODO: Generator should do this
|
13
|
+
#require "mongoid_forums"
|
14
|
+
#require "kaminari" # TODO: Generator should do this
|
15
15
|
module Dummy
|
16
16
|
class Application < Rails::Application
|
17
17
|
# Settings in config/environments/* take precedence over those specified here.
|
data/test/dummy/config/routes.rb
CHANGED
@@ -79938,3 +79938,58 @@ ActionView::Template::Error (undefined method `num_pages' for #<Mongoid::Criteri
|
|
79938
79938
|
Rendered /Users/neiljohari/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
|
79939
79939
|
Rendered /Users/neiljohari/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (17.5ms)
|
79940
79940
|
Overwriting existing field mongoid_admin in class User.
|
79941
|
+
Overwriting existing field mongoid_admin in class User.
|
79942
|
+
Overwriting existing field mongoid_admin in class User.
|
79943
|
+
|
79944
|
+
|
79945
|
+
Started GET "/" for ::1 at 2015-04-10 15:51:54 -0400
|
79946
|
+
Processing by WelcomeController#index as HTML
|
79947
|
+
Rendered welcome/index.html.erb within layouts/application (1.7ms)
|
79948
|
+
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 12.5420ms
|
79949
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=users selector={"$query"=>{"_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 142.7700ms
|
79950
|
+
Rendered partials/_nav.haml (159.9ms)
|
79951
|
+
Completed 200 OK in 278ms (Views: 277.6ms)
|
79952
|
+
|
79953
|
+
|
79954
|
+
Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for ::1 at 2015-04-10 15:51:55 -0400
|
79955
|
+
|
79956
|
+
|
79957
|
+
Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for ::1 at 2015-04-10 15:51:55 -0400
|
79958
|
+
|
79959
|
+
|
79960
|
+
Started GET "/" for ::1 at 2015-04-10 15:51:57 -0400
|
79961
|
+
Processing by WelcomeController#index as HTML
|
79962
|
+
Rendered welcome/index.html.erb within layouts/application (0.0ms)
|
79963
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=users selector={"$query"=>{"_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.5040ms
|
79964
|
+
Rendered partials/_nav.haml (1.6ms)
|
79965
|
+
Completed 200 OK in 28ms (Views: 27.7ms)
|
79966
|
+
|
79967
|
+
|
79968
|
+
Started GET "/forums" for ::1 at 2015-04-10 15:51:59 -0400
|
79969
|
+
Processing by MongoidForums::ForumsController#index as HTML
|
79970
|
+
MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.4840ms
|
79971
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=users selector={"$query"=>{"_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.3780ms
|
79972
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_categories selector={"$query"=>{}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 8.4690ms
|
79973
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"category_id"=>BSON::ObjectId('5520481b4e6569fe0d000000')}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.8410ms
|
79974
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_topics selector={"forum_id"=>BSON::ObjectId('5526b8184e65695685000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.5340ms
|
79975
|
+
MOPED: 127.0.0.1:27017 COMMAND database=dummy_development command={:count=>"mongoid_forums_topics", :query=>{"forum_id"=>BSON::ObjectId('5526b8184e65695685000000')}} runtime: 0.7290ms
|
79976
|
+
MOPED: 127.0.0.1:27017 COMMAND database=dummy_development command={:count=>"mongoid_forums_topics", :query=>{"forum_id"=>BSON::ObjectId('5526b8184e65695685000000')}} runtime: 1.1040ms
|
79977
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_views selector={"$query"=>{"viewable_id"=>BSON::ObjectId('5526b8184e65695685000000'), "user_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 9.5750ms
|
79978
|
+
MOPED: 127.0.0.1:27017 COMMAND database=dummy_development command={:count=>"mongoid_forums_topics", :query=>{"forum_id"=>BSON::ObjectId('5526b8184e65695685000000')}} runtime: 0.6480ms
|
79979
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"category_id"=>BSON::ObjectId('5526b77d4e65695660000000')}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5460ms
|
79980
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"category_id"=>BSON::ObjectId('55215efc4e656917a2010000')}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.3910ms
|
79981
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"category_id"=>BSON::ObjectId('55215dce4e656917a2000000')}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4590ms
|
79982
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_topics selector={"forum_id"=>BSON::ObjectId('55215f4a4e656917a2020000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6420ms
|
79983
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"_id"=>BSON::ObjectId('55215f4a4e656917a2020000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 1.4180ms
|
79984
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_forums selector={"$query"=>{"_id"=>BSON::ObjectId('55215f4a4e656917a2020000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.5320ms
|
79985
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_posts selector={"$query"=>{"topic_id"=>BSON::ObjectId('5526b5814e6569535b070000')}, "$orderby"=>{:_id=>-1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 2.5830ms
|
79986
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_topics selector={"$query"=>{"_id"=>BSON::ObjectId('5526b5814e6569535b070000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 1.1130ms
|
79987
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=users selector={"$query"=>{"_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.5120ms
|
79988
|
+
MOPED: 127.0.0.1:27017 COMMAND database=dummy_development command={:count=>"mongoid_forums_topics", :query=>{"forum_id"=>BSON::ObjectId('55215f4a4e656917a2020000')}} runtime: 0.4040ms
|
79989
|
+
MOPED: 127.0.0.1:27017 COMMAND database=dummy_development command={:count=>"mongoid_forums_topics", :query=>{"forum_id"=>BSON::ObjectId('55215f4a4e656917a2020000')}} runtime: 0.3470ms
|
79990
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_views selector={"$query"=>{"viewable_id"=>BSON::ObjectId('55215f4a4e656917a2020000'), "user_id"=>BSON::ObjectId('54c407ca4e65694706000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.4650ms
|
79991
|
+
Rendered /Users/neiljohari/Desktop/Programming/NJayDevelopment/forums/mongoid_forums/app/views/mongoid_forums/forums/index.haml within layouts/mongoid_forums/application (125.1ms)
|
79992
|
+
MOPED: 127.0.0.1:27017 QUERY database=dummy_development collection=mongoid_forums_alerts selector={"$query"=>{"user_id"=>BSON::ObjectId('54c407ca4e65694706000000'), "read"=>false}, "$orderby"=>{"updated_at"=>-1}} flags=[] limit=25 skip=0 batch_size=nil fields=nil runtime: 2.2180ms
|
79993
|
+
Completed 200 OK in 184ms (Views: 165.2ms)
|
79994
|
+
Overwriting existing field mongoid_admin in class User.
|
79995
|
+
Overwriting existing field mongoid_admin in class User.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-forums
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- skipperguy12
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: devise
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 3.4.1
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.4.1
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: simple_form
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,14 +98,14 @@ dependencies:
|
|
112
98
|
name: decorators
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - '='
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 1.0.2
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- -
|
108
|
+
- - '='
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: 1.0.2
|
125
111
|
- !ruby/object:Gem::Dependency
|
@@ -129,13 +115,27 @@ dependencies:
|
|
129
115
|
- - ">="
|
130
116
|
- !ruby/object:Gem::Version
|
131
117
|
version: '0'
|
132
|
-
type: :
|
118
|
+
type: :runtime
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: devise
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.4.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.4.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: jquery-rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|