commontator 0.5.14 → 1.0.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.
- data/README.md +47 -10
- data/Rakefile +6 -5
- data/app/controllers/commontator/application_controller.rb +3 -1
- data/app/controllers/commontator/application_controller.rb~ +5 -2
- data/app/controllers/commontator/comments_controller.rb +9 -10
- data/app/controllers/commontator/comments_controller.rb~ +9 -10
- data/app/controllers/commontator/commontator_controller.rb~ +22 -0
- data/app/controllers/commontator/subscriptions_controller.rb +2 -2
- data/app/controllers/commontator/subscriptions_controller.rb~ +3 -3
- data/app/controllers/commontator/threads_controller.rb +4 -3
- data/app/controllers/commontator/threads_controller.rb~ +5 -3
- data/app/helpers/commontator/commontator_helper.rb~ +7 -0
- data/app/mailers/commontator/subscriptions_mailer.rb +2 -1
- data/app/mailers/commontator/subscriptions_mailer.rb~ +3 -1
- data/app/models/commontator/comment.rb +13 -9
- data/app/models/commontator/comment.rb~ +14 -10
- data/app/models/commontator/subscription.rb +3 -3
- data/app/models/commontator/subscription.rb~ +19 -0
- data/app/models/commontator/thread.rb +17 -41
- data/app/models/commontator/thread.rb~ +119 -0
- data/app/views/commontator/shared/_thread.html.erb +4 -1
- data/app/views/commontator/shared/_thread.html.erb~ +5 -2
- data/app/views/commontator/subscriptions_mailer/comment_created_email.html.erb +1 -1
- data/app/views/commontator/subscriptions_mailer/comment_created_email.html.erb~ +6 -0
- data/config/initializers/commontator.rb +42 -64
- data/{test/dummy/config/initializers/commontator.rb → config/initializers/commontator.rb~} +42 -64
- data/db/migrate/0_install_commontator.rb +1 -1
- data/{test/dummy/db/migrate/1_install_commontator.commontator.rb → db/migrate/0_install_commontator.rb~} +1 -2
- data/lib/commontator.rb +7 -12
- data/lib/commontator.rb~ +7 -12
- data/lib/commontator/commontable_config.rb +1 -1
- data/lib/commontator/commontable_config.rb~ +13 -0
- data/lib/commontator/commontator_config.rb +1 -1
- data/lib/commontator/commontator_config.rb~ +13 -0
- data/lib/commontator/controller_includes.rb +1 -0
- data/lib/commontator/controller_includes.rb~ +1 -1
- data/lib/commontator/security_transgression.rb +3 -0
- data/{test/dummy/public/favicon.ico → lib/commontator/security_transgression.rb~} +0 -0
- data/lib/commontator/shared_helper.rb +1 -1
- data/lib/commontator/shared_helper.rb~ +2 -2
- data/lib/commontator/version.rb +1 -1
- data/lib/commontator/version.rb~ +1 -1
- metadata +46 -89
- data/test/commontator_test.rb +0 -7
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +0 -61
- data/test/dummy/log/development.log +0 -414
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/script/rails +0 -6
- data/test/functional/comments_controller_test.rb +0 -181
- data/test/functional/subscriptions_controller_test.rb +0 -122
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -15
- data/test/unit/comment_test.rb +0 -35
- data/test/unit/helpers/comments_helper_test.rb +0 -4
- data/test/unit/helpers/subscriptions_helper_test.rb +0 -4
- data/test/unit/subscription_test.rb +0 -15
- data/test/unit/thread_test.rb +0 -57
@@ -4,7 +4,7 @@ Commontator.configure do |config|
|
|
4
4
|
|
5
5
|
# Engine Configuration
|
6
6
|
|
7
|
-
#
|
7
|
+
# Name of the ApplicationController helper method that returns the current user
|
8
8
|
# Default: 'current_user'
|
9
9
|
config.current_user_method = 'current_user'
|
10
10
|
|
@@ -25,6 +25,11 @@ Commontator.configure do |config|
|
|
25
25
|
# Whether the user's name is clickable in the comment view
|
26
26
|
# Default: false
|
27
27
|
config.user_name_clickable = false
|
28
|
+
|
29
|
+
# Whether automated emails are sent to the user whenever
|
30
|
+
# a comment is posted on a thread they subscribe to
|
31
|
+
# Default: true
|
32
|
+
config.subscription_emails = true
|
28
33
|
|
29
34
|
# The method that returns the user's email address
|
30
35
|
# Default: 'email'
|
@@ -34,10 +39,11 @@ Commontator.configure do |config|
|
|
34
39
|
# Default: '' (use user_missing_name)
|
35
40
|
config.user_name_method = ''
|
36
41
|
|
37
|
-
#
|
42
|
+
# Proc called with user as argument that returns true if the user is an admin
|
38
43
|
# Admins can always delete other users' comments and close threads
|
39
|
-
#
|
40
|
-
|
44
|
+
# Note: user can be nil
|
45
|
+
# Default: lambda { |user| false } (no admins)
|
46
|
+
config.user_admin_proc = lambda { |user| false }
|
41
47
|
|
42
48
|
|
43
49
|
# Commontable (acts_as_commontable) Configuration
|
@@ -60,23 +66,6 @@ Commontator.configure do |config|
|
|
60
66
|
# as an argument to acts_as_commontable in each one
|
61
67
|
# Default: 'commontable'
|
62
68
|
config.commontable_name = 'commontable'
|
63
|
-
|
64
|
-
# Proc that returns the commontable url that contains the thread
|
65
|
-
# (defaults to the commontable show url)
|
66
|
-
# Main application's routes can be accessed using main_app object
|
67
|
-
# Default: lambda { |main_app, commontable| main_app.polymorphic_url(commontable) }
|
68
|
-
config.commontable_url_proc = lambda { |main_app, commontable| main_app.polymorphic_url(commontable) }
|
69
|
-
|
70
|
-
# Proc that returns the subscription email subject
|
71
|
-
# Default:
|
72
|
-
# lambda do |params|
|
73
|
-
# "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
|
74
|
-
# "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
|
75
|
-
# end
|
76
|
-
config.subscription_email_subject_proc = lambda do |params|
|
77
|
-
"#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
|
78
|
-
"#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
|
79
|
-
end
|
80
69
|
|
81
70
|
# The format of the timestamps used by Commontator
|
82
71
|
# Default: '%b %d %Y, %I:%M %p'
|
@@ -100,8 +89,8 @@ Commontator.configure do |config|
|
|
100
89
|
config.can_edit_old_comments = false
|
101
90
|
|
102
91
|
# Whether users can delete their own comments
|
103
|
-
# Default:
|
104
|
-
config.can_delete_own_comments =
|
92
|
+
# Default: true
|
93
|
+
config.can_delete_own_comments = true
|
105
94
|
|
106
95
|
# Whether users can delete their own comments
|
107
96
|
# after someone posted a newer comment
|
@@ -116,7 +105,7 @@ Commontator.configure do |config|
|
|
116
105
|
# Note: requires acts_as_votable gem installed
|
117
106
|
# and configured for your application
|
118
107
|
# Default: false
|
119
|
-
config.
|
108
|
+
config.can_vote_on_comments = false
|
120
109
|
|
121
110
|
# Whether comments should be ordered by vote score
|
122
111
|
# instead of by order posted
|
@@ -132,48 +121,37 @@ Commontator.configure do |config|
|
|
132
121
|
# Default: true
|
133
122
|
config.deleted_comments_are_visible = true
|
134
123
|
|
135
|
-
#
|
124
|
+
# The method returns the commontable's id which is sent to users in email messages
|
136
125
|
# Default: 'id'
|
137
126
|
config.commontable_id_method = 'id'
|
138
127
|
|
139
|
-
#
|
140
|
-
# If true, that user is a moderator for that particular
|
128
|
+
# Proc called with thread and user as arguments
|
129
|
+
# If it returns true, that user is a moderator for that particular thread
|
141
130
|
# and is given admin-like capabilities for that thread only
|
142
|
-
#
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
#
|
147
|
-
#
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
#
|
153
|
-
|
154
|
-
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
config.thread_closed_callback = ''
|
169
|
-
|
170
|
-
# Method called on commontable when a thread is subscribed to
|
171
|
-
# Passed user as argument
|
172
|
-
# Default: '' (no callback)
|
173
|
-
config.subscribe_callback = ''
|
174
|
-
|
175
|
-
# Method called on commontable when a thread is unsubscribed to
|
176
|
-
# Passed user as argument
|
177
|
-
# Default: '' (no callback)
|
178
|
-
config.unsubscribe_callback = ''
|
131
|
+
# Note: user can be nil
|
132
|
+
# Default: lambda { |thread, user| false } (no thread-specific moderators)
|
133
|
+
config.can_edit_thread_proc = lambda { |thread, user| false }
|
134
|
+
|
135
|
+
# Proc called with thread and user as arguments
|
136
|
+
# If it returns true, that user is allowed to read that thread
|
137
|
+
# Note: user can be nil
|
138
|
+
# Default: lambda { |thread, user| true } (no read restrictions)
|
139
|
+
config.can_read_thread_proc = lambda { |thread, user| true }
|
140
|
+
|
141
|
+
# Proc that returns the commontable url that contains the thread
|
142
|
+
# (defaults to the commontable show url)
|
143
|
+
# Main application's routes can be accessed using main_app object
|
144
|
+
# Default: lambda { |main_app, commontable| main_app.polymorphic_url(commontable) }
|
145
|
+
config.commontable_url_proc = lambda { |main_app, commontable| main_app.polymorphic_url(commontable) }
|
146
|
+
|
147
|
+
# Proc that returns the subscription email subject string
|
148
|
+
# Default:
|
149
|
+
# lambda do |params|
|
150
|
+
# "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
|
151
|
+
# "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
|
152
|
+
# end
|
153
|
+
config.subscription_email_subject_proc = lambda do |params|
|
154
|
+
"#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
|
155
|
+
"#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
|
156
|
+
end
|
179
157
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# This migration comes from commontator (originally 0)
|
2
1
|
class InstallCommontator < ActiveRecord::Migration
|
3
2
|
def change
|
4
3
|
create_table "commontator_comments" do |t|
|
@@ -21,7 +20,7 @@ class InstallCommontator < ActiveRecord::Migration
|
|
21
20
|
t.integer "subscriber_id"
|
22
21
|
t.string "subscriber_type"
|
23
22
|
t.integer "thread_id"
|
24
|
-
t.
|
23
|
+
t.integer "unread"
|
25
24
|
|
26
25
|
t.timestamps
|
27
26
|
end
|
data/lib/commontator.rb
CHANGED
@@ -11,9 +11,10 @@ module Commontator
|
|
11
11
|
COMMONTATOR_ATTRIBUTES = [
|
12
12
|
:user_missing_name,
|
13
13
|
:user_name_clickable,
|
14
|
+
:subscription_emails,
|
14
15
|
:user_email_method,
|
15
16
|
:user_name_method,
|
16
|
-
:
|
17
|
+
:user_admin_proc
|
17
18
|
]
|
18
19
|
|
19
20
|
# Can be set in initializer or passed as an option to acts_as_commontable
|
@@ -22,8 +23,6 @@ module Commontator
|
|
22
23
|
:comment_create_verb_present,
|
23
24
|
:comment_create_verb_past,
|
24
25
|
:commontable_name,
|
25
|
-
:commontable_url_proc,
|
26
|
-
:subscription_email_subject_proc,
|
27
26
|
:timestamp_format,
|
28
27
|
:admin_can_edit_comments,
|
29
28
|
:auto_subscribe_on_comment,
|
@@ -32,19 +31,15 @@ module Commontator
|
|
32
31
|
:can_delete_own_comments,
|
33
32
|
:can_delete_old_comments,
|
34
33
|
:can_subscribe_to_thread,
|
35
|
-
:
|
34
|
+
:can_vote_on_comments,
|
36
35
|
:comments_ordered_by_votes,
|
37
36
|
:closed_threads_are_readable,
|
38
37
|
:deleted_comments_are_visible,
|
39
38
|
:commontable_id_method,
|
40
|
-
:
|
41
|
-
:
|
42
|
-
:
|
43
|
-
:
|
44
|
-
:comment_deleted_callback,
|
45
|
-
:thread_closed_callback,
|
46
|
-
:subscribe_callback,
|
47
|
-
:unsubscribe_callback
|
39
|
+
:can_edit_thread_proc,
|
40
|
+
:can_read_thread_proc,
|
41
|
+
:commontable_url_proc,
|
42
|
+
:subscription_email_subject_proc
|
48
43
|
]
|
49
44
|
|
50
45
|
(ENGINE_ATTRIBUTES + COMMONTATOR_ATTRIBUTES + \
|
data/lib/commontator.rb~
CHANGED
@@ -11,9 +11,10 @@ module Commontator
|
|
11
11
|
COMMONTATOR_ATTRIBUTES = [
|
12
12
|
:user_missing_name,
|
13
13
|
:user_name_clickable,
|
14
|
+
:subscription_emails,
|
14
15
|
:user_email_method,
|
15
16
|
:user_name_method,
|
16
|
-
:
|
17
|
+
:user_admin_proc
|
17
18
|
]
|
18
19
|
|
19
20
|
# Can be set in initializer or passed as an option to acts_as_commontable
|
@@ -22,8 +23,6 @@ module Commontator
|
|
22
23
|
:comment_create_verb_present,
|
23
24
|
:comment_create_verb_past,
|
24
25
|
:commontable_name,
|
25
|
-
:commontable_url_proc,
|
26
|
-
:subscription_email_subject_proc,
|
27
26
|
:timestamp_format,
|
28
27
|
:admin_can_edit_comments,
|
29
28
|
:auto_subscribe_on_comment,
|
@@ -37,14 +36,10 @@ module Commontator
|
|
37
36
|
:closed_threads_are_readable,
|
38
37
|
:deleted_comments_are_visible,
|
39
38
|
:commontable_id_method,
|
40
|
-
:
|
41
|
-
:
|
42
|
-
:
|
43
|
-
:
|
44
|
-
:comment_deleted_callback,
|
45
|
-
:thread_closed_callback,
|
46
|
-
:subscribe_callback,
|
47
|
-
:unsubscribe_callback
|
39
|
+
:can_edit_thread_proc,
|
40
|
+
:can_read_thread_proc,
|
41
|
+
:commontable_url_proc,
|
42
|
+
:subscription_email_subject_proc
|
48
43
|
]
|
49
44
|
|
50
45
|
(ENGINE_ATTRIBUTES + COMMONTATOR_ATTRIBUTES + \
|
@@ -60,4 +55,4 @@ end
|
|
60
55
|
require 'commontator/engine'
|
61
56
|
require 'commontator/acts_as_commontator'
|
62
57
|
require 'commontator/acts_as_commontable'
|
63
|
-
require 'commontator/
|
58
|
+
require 'commontator/controller_includes'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Commontator
|
2
|
+
class CommontableConfig
|
3
|
+
Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute|
|
4
|
+
cattr_accessor attribute
|
5
|
+
end
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute|
|
9
|
+
self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Commontator
|
2
|
+
class CommontatorConfig
|
3
|
+
Commontator::COMMONTATOR_ATTRIBUTES.each do |attribute|
|
4
|
+
cattr_accessor attribute
|
5
|
+
end
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
Commontator::COMMONTATOR_ATTRIBUTES.each do |attribute|
|
9
|
+
self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -10,7 +10,7 @@ module Commontator
|
|
10
10
|
|
11
11
|
def commontator_thread_show(commontable)
|
12
12
|
user = send Commontator.current_user_method
|
13
|
-
raise SecurityTransgression unless (
|
13
|
+
raise SecurityTransgression unless (user.nil? || user.is_commontator)
|
14
14
|
|
15
15
|
thread = commontable.thread
|
16
16
|
raise SecurityTransgression unless thread.can_be_read_by?(user)
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Commontator
|
2
2
|
module SharedHelper
|
3
3
|
def commontator_thread(commontable)
|
4
|
-
user = send Commontator.current_user_method
|
4
|
+
user = self.send Commontator.current_user_method
|
5
5
|
|
6
6
|
render(:partial => 'commontator/shared/thread',
|
7
7
|
:locals => {:thread => commontable.thread,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Commontator
|
2
2
|
module SharedHelper
|
3
3
|
def commontator_thread(commontable)
|
4
|
-
user =
|
4
|
+
user = Commontator.current_user_proc.call
|
5
5
|
|
6
6
|
render(:partial => 'commontator/shared/thread',
|
7
7
|
:locals => {:thread => commontable.thread,
|
@@ -18,7 +18,7 @@ module Commontator
|
|
18
18
|
def commontator_email(user)
|
19
19
|
return '' if user.nil?
|
20
20
|
config = user.commontator_config
|
21
|
-
config.
|
21
|
+
config.user_email_method.blank? ? '' : user.send(config.user_email_method)
|
22
22
|
end
|
23
23
|
|
24
24
|
def commontator_gravatar_url(user, options = {})
|
data/lib/commontator/version.rb
CHANGED
data/lib/commontator/version.rb~
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commontator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -59,6 +59,38 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: minitest-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: acts_as_votable
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
62
94
|
description: A Rails engine for comments.
|
63
95
|
email:
|
64
96
|
- dms3@rice.edu
|
@@ -80,6 +112,7 @@ files:
|
|
80
112
|
- app/controllers/commontator/subscriptions_controller.rb
|
81
113
|
- app/controllers/commontator/comments_controller.rb~
|
82
114
|
- app/controllers/commontator/application_controller.rb~
|
115
|
+
- app/controllers/commontator/commontator_controller.rb~
|
83
116
|
- app/controllers/commontator/threads_controller.rb
|
84
117
|
- app/controllers/commontator/comments_controller.rb
|
85
118
|
- app/controllers/commontator/subscriptions_controller.rb~
|
@@ -103,6 +136,7 @@ files:
|
|
103
136
|
- app/views/commontator/comments/create.js.erb
|
104
137
|
- app/views/commontator/comments/new.js.erb
|
105
138
|
- app/views/commontator/subscriptions_mailer/comment_created_email.html.erb
|
139
|
+
- app/views/commontator/subscriptions_mailer/comment_created_email.html.erb~
|
106
140
|
- app/views/commontator/subscriptions/subscribe.js.erb
|
107
141
|
- app/views/commontator/subscriptions/_link.html.erb
|
108
142
|
- app/views/commontator/shared/_thread.html.erb~
|
@@ -114,19 +148,25 @@ files:
|
|
114
148
|
- app/models/commontator/comment.rb
|
115
149
|
- app/models/commontator/subscription.rb
|
116
150
|
- app/models/commontator/comment.rb~
|
151
|
+
- app/models/commontator/subscription.rb~
|
152
|
+
- app/models/commontator/thread.rb~
|
117
153
|
- app/models/commontator/thread.rb
|
118
154
|
- app/helpers/commontator/comments_helper.rb~
|
119
155
|
- app/helpers/commontator/threads_helper.rb
|
120
156
|
- app/helpers/commontator/subscriptions_helper.rb~
|
121
157
|
- app/helpers/commontator/threads_helper.rb~
|
158
|
+
- app/helpers/commontator/commontator_helper.rb~
|
122
159
|
- app/helpers/commontator/application_helper.rb
|
123
160
|
- config/initializers/commontator.rb
|
161
|
+
- config/initializers/commontator.rb~
|
124
162
|
- config/routes.rb
|
163
|
+
- db/migrate/0_install_commontator.rb~
|
125
164
|
- db/migrate/0_install_commontator.rb
|
126
165
|
- lib/commontator.rb
|
127
166
|
- lib/commontator.rb~
|
128
167
|
- lib/tasks/commontator_tasks.rake
|
129
168
|
- lib/commontator/acts_as_commontable.rb
|
169
|
+
- lib/commontator/commontator_config.rb~
|
130
170
|
- lib/commontator/controller_includes.rb
|
131
171
|
- lib/commontator/version.rb
|
132
172
|
- lib/commontator/engine.rb
|
@@ -136,55 +176,15 @@ files:
|
|
136
176
|
- lib/commontator/commontable_config.rb
|
137
177
|
- lib/commontator/version.rb~
|
138
178
|
- lib/commontator/shared_helper.rb
|
179
|
+
- lib/commontator/security_transgression.rb~
|
180
|
+
- lib/commontator/security_transgression.rb
|
139
181
|
- lib/commontator/acts_as_commontator.rb
|
182
|
+
- lib/commontator/commontable_config.rb~
|
140
183
|
- lib/commontator/commontator_config.rb
|
141
184
|
- lib/commontator/controller_includes.rb~
|
142
185
|
- MIT-LICENSE
|
143
186
|
- Rakefile
|
144
187
|
- README.md
|
145
|
-
- test/test_helper.rb
|
146
|
-
- test/integration/navigation_test.rb
|
147
|
-
- test/unit/subscription_test.rb
|
148
|
-
- test/unit/comment_test.rb
|
149
|
-
- test/unit/thread_test.rb
|
150
|
-
- test/unit/helpers/subscriptions_helper_test.rb
|
151
|
-
- test/unit/helpers/comments_helper_test.rb
|
152
|
-
- test/functional/comments_controller_test.rb
|
153
|
-
- test/functional/subscriptions_controller_test.rb
|
154
|
-
- test/dummy/README.rdoc
|
155
|
-
- test/dummy/log/development.log
|
156
|
-
- test/dummy/db/development.sqlite3
|
157
|
-
- test/dummy/db/schema.rb
|
158
|
-
- test/dummy/db/migrate/1_install_commontator.commontator.rb
|
159
|
-
- test/dummy/Rakefile
|
160
|
-
- test/dummy/script/rails
|
161
|
-
- test/dummy/app/assets/stylesheets/application.css
|
162
|
-
- test/dummy/app/assets/javascripts/application.js
|
163
|
-
- test/dummy/app/controllers/application_controller.rb
|
164
|
-
- test/dummy/app/views/layouts/application.html.erb
|
165
|
-
- test/dummy/app/helpers/application_helper.rb
|
166
|
-
- test/dummy/config.ru
|
167
|
-
- test/dummy/public/500.html
|
168
|
-
- test/dummy/public/favicon.ico
|
169
|
-
- test/dummy/public/422.html
|
170
|
-
- test/dummy/public/404.html
|
171
|
-
- test/dummy/config/database.yml
|
172
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
173
|
-
- test/dummy/config/initializers/mime_types.rb
|
174
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
175
|
-
- test/dummy/config/initializers/commontator.rb
|
176
|
-
- test/dummy/config/initializers/secret_token.rb
|
177
|
-
- test/dummy/config/initializers/session_store.rb
|
178
|
-
- test/dummy/config/initializers/inflections.rb
|
179
|
-
- test/dummy/config/locales/en.yml
|
180
|
-
- test/dummy/config/boot.rb
|
181
|
-
- test/dummy/config/application.rb
|
182
|
-
- test/dummy/config/environment.rb
|
183
|
-
- test/dummy/config/environments/test.rb
|
184
|
-
- test/dummy/config/environments/production.rb
|
185
|
-
- test/dummy/config/environments/development.rb
|
186
|
-
- test/dummy/config/routes.rb
|
187
|
-
- test/commontator_test.rb
|
188
188
|
homepage: http://rubygems.org/gems/commontator
|
189
189
|
licenses: []
|
190
190
|
post_install_message:
|
@@ -209,47 +209,4 @@ rubygems_version: 1.8.24
|
|
209
209
|
signing_key:
|
210
210
|
specification_version: 3
|
211
211
|
summary: Common Tator
|
212
|
-
test_files:
|
213
|
-
- test/test_helper.rb
|
214
|
-
- test/integration/navigation_test.rb
|
215
|
-
- test/unit/subscription_test.rb
|
216
|
-
- test/unit/comment_test.rb
|
217
|
-
- test/unit/thread_test.rb
|
218
|
-
- test/unit/helpers/subscriptions_helper_test.rb
|
219
|
-
- test/unit/helpers/comments_helper_test.rb
|
220
|
-
- test/functional/comments_controller_test.rb
|
221
|
-
- test/functional/subscriptions_controller_test.rb
|
222
|
-
- test/dummy/README.rdoc
|
223
|
-
- test/dummy/log/development.log
|
224
|
-
- test/dummy/db/development.sqlite3
|
225
|
-
- test/dummy/db/schema.rb
|
226
|
-
- test/dummy/db/migrate/1_install_commontator.commontator.rb
|
227
|
-
- test/dummy/Rakefile
|
228
|
-
- test/dummy/script/rails
|
229
|
-
- test/dummy/app/assets/stylesheets/application.css
|
230
|
-
- test/dummy/app/assets/javascripts/application.js
|
231
|
-
- test/dummy/app/controllers/application_controller.rb
|
232
|
-
- test/dummy/app/views/layouts/application.html.erb
|
233
|
-
- test/dummy/app/helpers/application_helper.rb
|
234
|
-
- test/dummy/config.ru
|
235
|
-
- test/dummy/public/500.html
|
236
|
-
- test/dummy/public/favicon.ico
|
237
|
-
- test/dummy/public/422.html
|
238
|
-
- test/dummy/public/404.html
|
239
|
-
- test/dummy/config/database.yml
|
240
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
241
|
-
- test/dummy/config/initializers/mime_types.rb
|
242
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
243
|
-
- test/dummy/config/initializers/commontator.rb
|
244
|
-
- test/dummy/config/initializers/secret_token.rb
|
245
|
-
- test/dummy/config/initializers/session_store.rb
|
246
|
-
- test/dummy/config/initializers/inflections.rb
|
247
|
-
- test/dummy/config/locales/en.yml
|
248
|
-
- test/dummy/config/boot.rb
|
249
|
-
- test/dummy/config/application.rb
|
250
|
-
- test/dummy/config/environment.rb
|
251
|
-
- test/dummy/config/environments/test.rb
|
252
|
-
- test/dummy/config/environments/production.rb
|
253
|
-
- test/dummy/config/environments/development.rb
|
254
|
-
- test/dummy/config/routes.rb
|
255
|
-
- test/commontator_test.rb
|
212
|
+
test_files: []
|