commontator 6.0.0.pre.1 → 6.0.0.pre.2
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 +4 -4
- data/app/assets/stylesheets/commontator/application.scss +10 -3
- data/app/assets/stylesheets/commontator/comments.scss +4 -0
- data/app/controllers/commontator/comments_controller.rb +16 -4
- data/app/controllers/commontator/threads_controller.rb +1 -0
- data/app/helpers/commontator/link_renderer.rb +6 -4
- data/app/models/commontator/collection.rb +26 -0
- data/app/models/commontator/comment.rb +13 -110
- data/app/models/commontator/subscription.rb +2 -2
- data/app/models/commontator/thread.rb +102 -16
- data/app/views/commontator/comments/_body.html.erb +1 -8
- data/app/views/commontator/comments/_form.html.erb +1 -4
- data/app/views/commontator/comments/_list.html.erb +9 -5
- data/app/views/commontator/comments/_show.html.erb +85 -39
- data/app/views/commontator/comments/_show.js.erb +14 -0
- data/app/views/commontator/comments/_votes.html.erb +1 -1
- data/app/views/commontator/comments/create.js.erb +18 -13
- data/app/views/commontator/comments/delete.js.erb +9 -15
- data/app/views/commontator/comments/new.js.erb +2 -8
- data/app/views/commontator/comments/show.js.erb +30 -0
- data/app/views/commontator/comments/update.js.erb +9 -7
- data/app/views/commontator/shared/_thread.html.erb +3 -8
- data/app/views/commontator/threads/_reply.html.erb +2 -3
- data/app/views/commontator/threads/_show.html.erb +39 -42
- data/app/views/commontator/threads/_show.js.erb +5 -5
- data/app/views/commontator/threads/show.js.erb +3 -2
- data/config/initializers/commontator.rb +9 -6
- data/config/locales/de.yml +10 -2
- data/config/locales/en.yml +10 -2
- data/config/locales/pt-BR.yml +10 -2
- data/config/locales/ru.yml +10 -2
- data/config/locales/zh.yml +12 -4
- data/config/routes.rb +9 -9
- data/db/migrate/1_add_replying_to_comments.rb +0 -2
- data/lib/commontator.rb +1 -0
- data/lib/commontator/commontable_config.rb +6 -1
- data/lib/commontator/commontator_config.rb +1 -1
- data/lib/commontator/config.rb +2 -2
- data/lib/commontator/controllers.rb +3 -8
- data/lib/commontator/shared_helper.rb +0 -1
- data/lib/commontator/version.rb +1 -1
- metadata +13 -12
- data/app/views/commontator/comments/_actions.html.erb +0 -28
- data/app/views/commontator/comments/_reply.html.erb +0 -15
@@ -1,14 +1,14 @@
|
|
1
1
|
<%#
|
2
2
|
Views that use this partial must supply the following variables:
|
3
|
-
thread
|
4
3
|
user
|
4
|
+
thread
|
5
5
|
page
|
6
|
-
per_page
|
7
6
|
show_all
|
8
7
|
%>
|
9
8
|
|
9
|
+
|
10
10
|
$("#commontator-thread-<%= thread.id %>").html("<%= escape_javascript(
|
11
|
-
render partial: 'commontator/threads/show',
|
12
|
-
|
13
|
-
|
11
|
+
render partial: 'commontator/threads/show', formats: [ :html ], locals: {
|
12
|
+
user: user, thread: thread, page: page, show_all: show_all
|
13
|
+
}
|
14
14
|
) %>");
|
@@ -1,11 +1,12 @@
|
|
1
1
|
<%=
|
2
2
|
render partial: 'show', locals: {
|
3
|
-
thread: @commontator_thread,
|
4
3
|
user: @commontator_user,
|
4
|
+
thread: @commontator_thread,
|
5
5
|
page: @commontator_page,
|
6
|
-
per_page: @commontator_per_page,
|
7
6
|
show_all: @commontator_show_all
|
8
7
|
}
|
9
8
|
%>
|
10
9
|
|
10
|
+
$("#commontator-thread-<%= @commontator_thread.id %>-comment-list").hide().fadeIn();
|
11
|
+
|
11
12
|
<%= javascript_proc %>
|
@@ -222,19 +222,22 @@ Commontator.configure do |config|
|
|
222
222
|
# Valid options:
|
223
223
|
# :n (no replies, though users can still manually add <blockquote>s)
|
224
224
|
# :q (copies the comment being replied to into a <blockquote>)
|
225
|
-
# Not yet implemented:
|
226
225
|
# :i (indents each reply under the comment being replied to)
|
226
|
+
# :b (both <blockquote> the original comment and indent replies)
|
227
227
|
# It might be a good idea to add some CSS to hide <blockquote>s when converting from :q to :i
|
228
228
|
# Default: :n
|
229
229
|
config.comment_reply_style = :n
|
230
230
|
|
231
231
|
# comments_per_page
|
232
|
-
# Type:
|
232
|
+
# Type: Array
|
233
233
|
# Number of comments to display in each page
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
|
234
|
+
# The array represents how many comments to load at each nesting level, with the
|
235
|
+
# first number corresponding to the current level, the second number to the next level, etc
|
236
|
+
# Note: large values WILL cause performance and memory issues with many nested comments
|
237
|
+
# The maximum number of comments loaded at once is for the default setting is:
|
238
|
+
# 20 + 20*5 + 20*5*2 == 320
|
239
|
+
# Default: [ 20, 5, 2 ]
|
240
|
+
config.comments_per_page = [ 20, 5, 2 ]
|
238
241
|
|
239
242
|
# thread_subscription
|
240
243
|
# Type: Symbol
|
data/config/locales/de.yml
CHANGED
@@ -7,11 +7,18 @@ de:
|
|
7
7
|
creator: Ersteller
|
8
8
|
editor: Bearbeiter
|
9
9
|
thread: Diskussion
|
10
|
+
parent: Elternkommentar
|
10
11
|
commontator/subscription:
|
11
12
|
subscriber: Subscriber
|
12
13
|
thread: Diskussion
|
13
14
|
commontator/thread:
|
14
15
|
commontable: Commontable
|
16
|
+
errors:
|
17
|
+
models:
|
18
|
+
commontator/comment:
|
19
|
+
attributes:
|
20
|
+
body:
|
21
|
+
double_posted: ist ein Duplikat.
|
15
22
|
models:
|
16
23
|
commontator/comment:
|
17
24
|
one: Kommentar
|
@@ -38,14 +45,14 @@ de:
|
|
38
45
|
errors:
|
39
46
|
already_deleted: Dieser Kommentar wurde bereits gelöscht.
|
40
47
|
create: "Kommentar kann nicht veröffentlicht werden:"
|
41
|
-
double_posted: Kommentar ist ein Duplikat.
|
42
48
|
not_deleted: Dieser Kommentar wurde nicht gelöscht..
|
43
49
|
update: "Kommentar kann nicht bearbeitet werden:"
|
44
50
|
status:
|
45
51
|
created_at: Veröffentlich am %{created_at}.
|
46
52
|
deleted_by: Kommentar gelöscht von %{deleter_name}.
|
47
53
|
updated_at: Bearbeitet von %{editor_name} am %{updated_at}.
|
48
|
-
|
54
|
+
replying: "%{creator_name} Antworten"
|
55
|
+
reply_pages: "Antwortseiten:"
|
49
56
|
email:
|
50
57
|
comment_created:
|
51
58
|
body: "%{creator_name} kommentierte zu %{commontable_name}:"
|
@@ -75,6 +82,7 @@ de:
|
|
75
82
|
cannot_post: Zurzeit können keine neuen Kommentare verfasst werden.
|
76
83
|
closed: Kommentare (geschlossen von %{closer_name})
|
77
84
|
open: Kommentare
|
85
|
+
pages: "Kommentarseiten:"
|
78
86
|
time:
|
79
87
|
formats:
|
80
88
|
commontator: "%d. %B %Y um %H:%M %Z"
|
data/config/locales/en.yml
CHANGED
@@ -38,11 +38,18 @@ en:
|
|
38
38
|
creator: Creator
|
39
39
|
editor: Editor
|
40
40
|
thread: Discussion
|
41
|
+
parent: Parent Comment
|
41
42
|
commontator/subscription:
|
42
43
|
subscriber: Subscriber
|
43
44
|
thread: Discussion
|
44
45
|
commontator/thread:
|
45
46
|
commontable: Commontable
|
47
|
+
errors:
|
48
|
+
models:
|
49
|
+
commontator/comment:
|
50
|
+
attributes:
|
51
|
+
body:
|
52
|
+
double_posted: is a duplicate of another comment.
|
46
53
|
models:
|
47
54
|
commontator/comment:
|
48
55
|
one: comment
|
@@ -69,14 +76,14 @@ en:
|
|
69
76
|
errors:
|
70
77
|
already_deleted: This comment has already been deleted.
|
71
78
|
create: "This comment could not be posted because:"
|
72
|
-
double_posted: is a duplicate of another comment.
|
73
79
|
not_deleted: This comment is not deleted.
|
74
80
|
update: "This comment could not be modified because:"
|
75
81
|
status:
|
76
82
|
created_at: Posted on %{created_at}.
|
77
83
|
deleted_by: Comment deleted by %{deleter_name}.
|
78
84
|
updated_at: Last modified by %{editor_name} on %{updated_at}.
|
79
|
-
|
85
|
+
replying: Replying to %{creator_name}
|
86
|
+
reply_pages: "Reply pages:"
|
80
87
|
email:
|
81
88
|
comment_created:
|
82
89
|
body: "%{creator_name} commented on %{commontable_name}:"
|
@@ -106,6 +113,7 @@ en:
|
|
106
113
|
cannot_post: New comments cannot be posted at this time.
|
107
114
|
closed: Comments (Closed by %{closer_name})
|
108
115
|
open: Comments
|
116
|
+
pages: "Comment pages:"
|
109
117
|
time:
|
110
118
|
formats:
|
111
119
|
commontator: "%b %d %Y at %I:%M%p %Z"
|
data/config/locales/pt-BR.yml
CHANGED
@@ -7,11 +7,18 @@ pt-BR:
|
|
7
7
|
creator: Criador
|
8
8
|
editor: Editor
|
9
9
|
thread: Discussão
|
10
|
+
parent: Comentário pai
|
10
11
|
commontator/subscription:
|
11
12
|
subscriber: Assinante
|
12
13
|
thread: Discussão
|
13
14
|
commontator/thread:
|
14
15
|
commontable: Comentável
|
16
|
+
errors:
|
17
|
+
models:
|
18
|
+
commontator/comment:
|
19
|
+
attributes:
|
20
|
+
body:
|
21
|
+
double_posted: é um comentário duplicado.
|
15
22
|
models:
|
16
23
|
commontator/comment:
|
17
24
|
one: comentário
|
@@ -38,14 +45,14 @@ pt-BR:
|
|
38
45
|
errors:
|
39
46
|
already_deleted: Este comentário já foi removido.
|
40
47
|
create: "Este comentário não pôde ser postado porque:"
|
41
|
-
double_posted: é um comentário duplicado.
|
42
48
|
not_deleted: Este comentário não foi removido.
|
43
49
|
update: "Este comentário não pôde ser editado porque:"
|
44
50
|
status:
|
45
51
|
created_at: Postado em %{created_at}.
|
46
52
|
deleted_by: Comentário removido por %{deleter_name}.
|
47
53
|
updated_at: Editado por %{editor_name} em %{updated_at}.
|
48
|
-
|
54
|
+
replying: Respondendo a %{creator_name}
|
55
|
+
reply_pages: "Páginas de respostas:"
|
49
56
|
email:
|
50
57
|
comment_created:
|
51
58
|
body: "%{creator_name} comentou em %{commontable_name}:"
|
@@ -75,6 +82,7 @@ pt-BR:
|
|
75
82
|
cannot_post: Não é possível postar novos comentários.
|
76
83
|
closed: Comentários (Fechado por %{closer_name})
|
77
84
|
open: Comentários
|
85
|
+
pages: "Páginas de comentários:"
|
78
86
|
time:
|
79
87
|
formats:
|
80
88
|
commontator: "%d de %B de %Y às %H:%M %Z"
|
data/config/locales/ru.yml
CHANGED
@@ -7,11 +7,18 @@ ru:
|
|
7
7
|
creator: Создал
|
8
8
|
editor: Редактировал
|
9
9
|
thread: Обсуждение
|
10
|
+
parent: Родительский Комментарий
|
10
11
|
commontator/subscription:
|
11
12
|
subscriber: Подписчик
|
12
13
|
thread: Обсуждение
|
13
14
|
commontator/thread:
|
14
15
|
commontable: Комментируем
|
16
|
+
errors:
|
17
|
+
models:
|
18
|
+
commontator/comment:
|
19
|
+
attributes:
|
20
|
+
body:
|
21
|
+
double_posted: этот комментарий уже есть.
|
15
22
|
models:
|
16
23
|
commontator/comment:
|
17
24
|
one: комментарий
|
@@ -41,14 +48,14 @@ ru:
|
|
41
48
|
errors:
|
42
49
|
already_deleted: Этот комментарий был удален.
|
43
50
|
create: Комментарий нельзя оставить потому что
|
44
|
-
double_posted: этот комментарий уже есть.
|
45
51
|
not_deleted: Этот комментарий не удален.
|
46
52
|
update: Этот комментарий нельзя изменить потому что
|
47
53
|
status:
|
48
54
|
created_at: Создан %{created_at}.
|
49
55
|
deleted_by: Комментарий был удален %{deleter_name}.
|
50
56
|
updated_at: Редактировал %{editor_name}, %{updated_at}.
|
51
|
-
|
57
|
+
replying: Отвечая %{creator_name}
|
58
|
+
reply_pages: "Страницы ответов:"
|
52
59
|
email:
|
53
60
|
comment_created:
|
54
61
|
body: "%{creator_name} комментировал %{commontable_name}:"
|
@@ -78,6 +85,7 @@ ru:
|
|
78
85
|
cannot_post: Новый комментарии нельзя разместить в данный момент.
|
79
86
|
closed: Комментарии (Закрыты %{closer_name})
|
80
87
|
open: Комментарии
|
88
|
+
pages: "Страницы комментариев:"
|
81
89
|
time:
|
82
90
|
formats:
|
83
91
|
commontator: "%d %b %Y в %H:%M %Z"
|
data/config/locales/zh.yml
CHANGED
@@ -7,11 +7,18 @@ zh: &zh
|
|
7
7
|
creator: 留言者
|
8
8
|
editor: 編輯
|
9
9
|
thread: 討論
|
10
|
+
parent: 家长留言
|
10
11
|
commontator/subscription:
|
11
12
|
subscriber: 訂閱者
|
12
13
|
thread: 討論
|
13
14
|
commontator/thread:
|
14
15
|
commontable: 可以留言
|
16
|
+
errors:
|
17
|
+
models:
|
18
|
+
commontator/comment:
|
19
|
+
attributes:
|
20
|
+
body:
|
21
|
+
double_posted: 已經有一筆相同的留言。
|
15
22
|
models:
|
16
23
|
commontator/comment:
|
17
24
|
one: 留言
|
@@ -37,15 +44,15 @@ zh: &zh
|
|
37
44
|
reply: 回复评论
|
38
45
|
errors:
|
39
46
|
already_deleted: 此留言已經被刪除了
|
40
|
-
create:
|
41
|
-
double_posted: 已經有一筆相同的留言。
|
47
|
+
create: 此留言無法發佈因為:
|
42
48
|
not_deleted: 此留言未被刪除
|
43
|
-
update:
|
49
|
+
update: 此留言無法被修改因為:
|
44
50
|
status:
|
45
51
|
created_at: 於%{created_at}發佈
|
46
52
|
deleted_by: 被%{deleter_name}刪除
|
47
53
|
updated_at: 最在於%{updated_at}被%{editor_name}修改
|
48
|
-
|
54
|
+
replying: 回复%{creator_name}
|
55
|
+
reply_pages: 回复页面:
|
49
56
|
email:
|
50
57
|
comment_created:
|
51
58
|
body: "%{creator_name}留言於%{commontable_name}"
|
@@ -75,6 +82,7 @@ zh: &zh
|
|
75
82
|
cannot_post: 現在還不能發佈
|
76
83
|
closed: 留言已經被%{closer_name}關閉
|
77
84
|
open: 留言
|
85
|
+
pages: 留言页面:
|
78
86
|
time:
|
79
87
|
formats:
|
80
88
|
commontator: "%Y年%m月%d日 於 %H:%M %Z"
|
data/config/routes.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
Commontator::Engine.routes.draw do
|
2
|
-
resources :threads, only: [:show] do
|
3
|
-
resources :comments, except: [:index, :destroy], shallow: true do
|
2
|
+
resources :threads, only: [ :show ] do
|
3
|
+
resources :comments, except: [ :index, :destroy ], shallow: true do
|
4
4
|
member do
|
5
|
-
put 'delete'
|
6
|
-
put 'undelete'
|
7
|
-
|
8
5
|
put 'upvote'
|
9
6
|
put 'downvote'
|
10
7
|
put 'unvote'
|
8
|
+
|
9
|
+
put 'delete'
|
10
|
+
put 'undelete'
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
member do
|
15
15
|
get 'mentions' if Commontator.mentions_enabled
|
16
16
|
|
17
|
-
put 'close'
|
18
|
-
put 'reopen'
|
19
|
-
|
20
17
|
put 'subscribe', to: 'subscriptions#subscribe'
|
21
18
|
put 'unsubscribe', to: 'subscriptions#unsubscribe'
|
19
|
+
|
20
|
+
put 'close'
|
21
|
+
put 'reopen'
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -3,7 +3,5 @@ class AddReplyingToComments < ActiveRecord::Migration[5.2]
|
|
3
3
|
add_reference :commontator_comments, :parent, foreign_key: {
|
4
4
|
to_table: :commontator_comments, on_update: :restrict, on_delete: :cascade
|
5
5
|
}
|
6
|
-
add_column :commontator_comments, :ancestor_ids, :text
|
7
|
-
add_column :commontator_comments, :descendant_ids, :text
|
8
6
|
end
|
9
7
|
end
|
data/lib/commontator.rb
CHANGED
@@ -5,9 +5,14 @@ class Commontator::CommontableConfig
|
|
5
5
|
attr_accessor attribute
|
6
6
|
end
|
7
7
|
|
8
|
+
# For backwards-compatibility with Integer comments_per_page
|
9
|
+
def comments_per_page=(cpp)
|
10
|
+
@comments_per_page = [ cpp ].flatten
|
11
|
+
end
|
12
|
+
|
8
13
|
def initialize(options = {})
|
9
14
|
Commontator::Config::COMMONTABLE_ATTRIBUTES.each do |attribute|
|
10
|
-
|
15
|
+
send "#{attribute}=", options[attribute] || Commontator.send(attribute)
|
11
16
|
end
|
12
17
|
end
|
13
18
|
end
|
@@ -7,7 +7,7 @@ class Commontator::CommontatorConfig
|
|
7
7
|
|
8
8
|
def initialize(options = {})
|
9
9
|
Commontator::Config::COMMONTATOR_ATTRIBUTES.each do |attribute|
|
10
|
-
|
10
|
+
send "#{attribute}=", options[attribute] || Commontator.send(attribute)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/commontator/config.rb
CHANGED
@@ -27,13 +27,13 @@ module Commontator::Config
|
|
27
27
|
:comment_voting,
|
28
28
|
:vote_count_proc,
|
29
29
|
:comment_order,
|
30
|
-
:new_comment_style,
|
31
|
-
:comments_per_page,
|
32
30
|
:thread_subscription,
|
33
31
|
:email_from_proc,
|
34
32
|
:commontable_name_proc,
|
35
33
|
:comment_url_proc,
|
34
|
+
:new_comment_style,
|
36
35
|
:comment_reply_style,
|
36
|
+
:comments_per_page,
|
37
37
|
:mentions_enabled
|
38
38
|
]
|
39
39
|
|
@@ -8,21 +8,15 @@ module Commontator::Controllers
|
|
8
8
|
def commontator_set_thread_variables
|
9
9
|
return if @commontator_thread.nil? || !@commontator_thread.can_be_read_by?(@commontator_user)
|
10
10
|
|
11
|
-
@
|
12
|
-
@commontator_per_page = @commontator_thread.config.comments_per_page \
|
13
|
-
if @commontator_per_page.blank?
|
14
|
-
@commontator_page = params[:page]
|
15
|
-
@commontator_page = 1 if @commontator_page.blank?
|
11
|
+
@commontator_page = [params[:page].to_i, 1].max
|
16
12
|
@commontator_show_all = !params[:show_all].blank? &&
|
17
13
|
@commontator_thread.can_be_edited_by?(@commontator_user)
|
18
|
-
|
19
|
-
commontator_set_new_comment
|
20
14
|
end
|
21
15
|
|
22
16
|
def commontator_set_new_comment
|
23
17
|
return unless @commontator_thread.config.new_comment_style == :t
|
24
18
|
|
25
|
-
new_comment = Commontator::Comment.new(
|
19
|
+
new_comment = Commontator::Comment.new(creator: @commontator_user, thread: @commontator_thread)
|
26
20
|
@commontator_new_comment = new_comment if new_comment.can_be_created_by?(@commontator_user)
|
27
21
|
end
|
28
22
|
|
@@ -30,6 +24,7 @@ module Commontator::Controllers
|
|
30
24
|
commontator_set_user
|
31
25
|
commontator_set_thread(commontable)
|
32
26
|
commontator_set_thread_variables
|
27
|
+
commontator_set_new_comment
|
33
28
|
|
34
29
|
@commontator_thread_show = true
|
35
30
|
@commontator_thread.mark_as_read_for(@commontator_user)
|
data/lib/commontator/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
COMMONTATOR_VERSION = '6.0.0.pre.
|
1
|
+
COMMONTATOR_VERSION = '6.0.0.pre.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commontator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0.pre.
|
4
|
+
version: 6.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dante Soares
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,13 +25,13 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: will_paginate
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: jquery-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: rails
|
56
|
+
name: sassc-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rails-i18n
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rails
|
84
|
+
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rails-controller-testing
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: listen
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -179,22 +179,23 @@ files:
|
|
179
179
|
- app/helpers/commontator/application_helper.rb
|
180
180
|
- app/helpers/commontator/link_renderer.rb
|
181
181
|
- app/mailers/commontator/subscriptions_mailer.rb
|
182
|
+
- app/models/commontator/collection.rb
|
182
183
|
- app/models/commontator/comment.rb
|
183
184
|
- app/models/commontator/json_array_coder.rb
|
184
185
|
- app/models/commontator/subscription.rb
|
185
186
|
- app/models/commontator/thread.rb
|
186
|
-
- app/views/commontator/comments/_actions.html.erb
|
187
187
|
- app/views/commontator/comments/_body.html.erb
|
188
188
|
- app/views/commontator/comments/_form.html.erb
|
189
189
|
- app/views/commontator/comments/_list.html.erb
|
190
|
-
- app/views/commontator/comments/_reply.html.erb
|
191
190
|
- app/views/commontator/comments/_show.html.erb
|
191
|
+
- app/views/commontator/comments/_show.js.erb
|
192
192
|
- app/views/commontator/comments/_votes.html.erb
|
193
193
|
- app/views/commontator/comments/cancel.js.erb
|
194
194
|
- app/views/commontator/comments/create.js.erb
|
195
195
|
- app/views/commontator/comments/delete.js.erb
|
196
196
|
- app/views/commontator/comments/edit.js.erb
|
197
197
|
- app/views/commontator/comments/new.js.erb
|
198
|
+
- app/views/commontator/comments/show.js.erb
|
198
199
|
- app/views/commontator/comments/update.js.erb
|
199
200
|
- app/views/commontator/comments/vote.js.erb
|
200
201
|
- app/views/commontator/shared/_thread.html.erb
|