commontator 4.5.4 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/MIT-LICENSE +2 -1
- data/README.md +31 -34
- data/Rakefile +3 -2
- data/app/assets/stylesheets/commontator/application.css +1 -0
- data/app/assets/stylesheets/commontator/comments.css +1 -0
- data/app/assets/stylesheets/commontator/threads.css +13 -7
- data/{spec/dummy/tmp/cache/assets/test/sprockets/a473b3873e554893372a53d71f5e9879 → app/assets/stylesheets/commontator/threads.css~} +0 -0
- data/app/controllers/commontator/application_controller.rb +14 -14
- data/app/controllers/commontator/application_controller.rb~ +35 -0
- data/app/controllers/commontator/comments_controller.rb +8 -7
- data/app/controllers/commontator/comments_controller.rb~ +153 -0
- data/app/controllers/commontator/subscriptions_controller.rb +1 -0
- data/app/controllers/commontator/threads_controller.rb +7 -2
- data/app/helpers/commontator/application_helper.rb +1 -0
- data/app/mailers/commontator/subscriptions_mailer.rb +8 -10
- data/app/mailers/commontator/subscriptions_mailer.rb~ +44 -0
- data/app/models/commontator/comment.rb +14 -13
- data/app/models/commontator/comment.rb~ +119 -0
- data/app/models/commontator/subscription.rb +8 -4
- data/app/models/commontator/thread.rb +64 -43
- data/app/models/commontator/thread.rb~ +159 -0
- data/app/views/commontator/comments/_actions.html.erb +1 -0
- data/app/views/commontator/comments/_body.html.erb +2 -1
- data/app/views/commontator/comments/_form.html.erb +5 -1
- data/app/views/commontator/comments/_form.html.erb~ +39 -0
- data/app/views/commontator/comments/_list.html.erb +1 -1
- data/app/views/commontator/comments/_show.html.erb +5 -3
- data/app/views/commontator/comments/_show.html.erb~ +49 -0
- data/app/views/commontator/comments/_votes.html.erb +2 -1
- data/app/views/commontator/comments/_votes.html.erb~ +69 -0
- data/app/views/commontator/comments/cancel.js.erb +1 -0
- data/app/views/commontator/comments/create.js.erb +6 -4
- data/app/views/commontator/comments/create.js.erb~ +14 -0
- data/app/views/commontator/comments/delete.js.erb +1 -0
- data/app/views/commontator/comments/edit.js.erb +1 -0
- data/app/views/commontator/comments/new.js.erb +3 -1
- data/app/views/commontator/comments/new.js.erb~ +13 -0
- data/app/views/commontator/comments/update.js.erb +1 -0
- data/app/views/commontator/comments/vote.js.erb +1 -0
- data/app/views/commontator/shared/_thread.html.erb +4 -5
- data/app/views/commontator/subscriptions/_link.html.erb +2 -1
- data/app/views/commontator/subscriptions/_link.html.erb~ +16 -0
- data/app/views/commontator/subscriptions/subscribe.js.erb +1 -0
- data/app/views/commontator/subscriptions_mailer/comment_created.html.erb +1 -0
- data/app/views/commontator/threads/_reply.html.erb +4 -2
- data/app/views/commontator/threads/_reply.html.erb~ +19 -0
- data/app/views/commontator/threads/_show.html.erb +44 -9
- data/app/views/commontator/threads/_show.html.erb~ +95 -0
- data/app/views/commontator/threads/_show.js.erb +19 -0
- data/app/views/commontator/threads/show.js.erb +4 -4
- data/config/initializers/commontator.rb +169 -132
- data/config/initializers/commontator.rb~ +238 -0
- data/config/locales/commontator/en.yml +12 -3
- data/config/locales/commontator/en.yml~ +104 -0
- data/config/routes.rb +1 -0
- data/db/migrate/0_install_commontator.rb +9 -11
- data/db/migrate/0_install_commontator.rb~ +54 -0
- data/lib/commontator.rb +57 -16
- data/lib/commontator.rb~ +142 -0
- data/lib/commontator/acts_as_commontable.rb +12 -14
- data/lib/commontator/acts_as_commontator.rb +1 -16
- data/lib/commontator/commontable_config.rb +1 -0
- data/lib/commontator/commontator_config.rb +1 -0
- data/lib/commontator/controller_includes.rb +3 -3
- data/lib/commontator/engine.rb +1 -0
- data/lib/commontator/link_renderer.rb +29 -0
- data/lib/commontator/security_transgression.rb +1 -0
- data/lib/commontator/shared_helper.rb +7 -5
- data/lib/commontator/version.rb +2 -1
- data/lib/tasks/commontator_tasks.rake +1 -0
- data/spec/app/controllers/commontator/comments_controller_spec.rb +12 -11
- data/spec/app/controllers/commontator/subscriptions_controller_spec.rb +2 -1
- data/spec/app/controllers/commontator/threads_controller_spec.rb +2 -1
- data/spec/app/helpers/commontator/application_helper_spec.rb +2 -1
- data/spec/app/mailers/commontator/subscriptions_mailer_spec.rb +2 -1
- data/spec/app/models/commontator/comment_spec.rb +18 -11
- data/spec/app/models/commontator/comment_spec.rb~ +74 -0
- data/spec/app/models/commontator/subscription_spec.rb +18 -8
- data/spec/app/models/commontator/thread_spec.rb +28 -42
- data/spec/dummy/README.md +1 -0
- data/spec/dummy/Rakefile +1 -0
- data/spec/dummy/app/assets/javascripts/application.js +1 -0
- data/spec/dummy/app/assets/stylesheets/application.css +1 -0
- data/spec/dummy/app/controllers/application_controller.rb +1 -0
- data/spec/dummy/app/controllers/dummy_models_controller.rb +1 -0
- data/spec/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/models/dummy_model.rb +1 -0
- data/spec/dummy/app/models/dummy_user.rb +7 -2
- data/spec/dummy/app/models/dummy_user.rb~ +16 -0
- data/spec/dummy/app/views/dummy_model/show.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +1 -0
- data/spec/dummy/config.ru +1 -0
- data/spec/dummy/config/boot.rb +1 -0
- data/spec/dummy/config/database.yml +1 -0
- data/spec/dummy/config/environment.rb +1 -0
- data/spec/dummy/config/environments/development.rb +1 -0
- data/spec/dummy/config/environments/production.rb +1 -0
- data/spec/dummy/config/environments/test.rb +1 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/dummy/config/initializers/commontator.rb +6 -1
- data/spec/dummy/config/initializers/commontator.rb~ +15 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/dummy/config/initializers/inflections.rb +1 -0
- data/spec/dummy/config/initializers/mime_types.rb +1 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +1 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/1_create_dummy_models.rb +1 -0
- data/spec/dummy/db/migrate/2_create_dummy_users.rb +1 -0
- data/spec/dummy/db/migrate/3_acts_as_votable_migration.rb +1 -0
- data/spec/dummy/db/schema.rb +10 -13
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +1 -0
- data/spec/dummy/public/422.html +1 -0
- data/spec/dummy/public/500.html +1 -0
- data/spec/dummy/script/rails +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{72b63dddbc5c995f79af8e3c94904fd9 → 02d4b791eb831cf2057bf4703a1218d1} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{a77b1a9223d168112e1705c29220116f → 0f196a1a50363b0a076ec6e1ee5417f6} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a3fb9025f90ff05a6fd4afc7ded2692c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a41c8be5379abec3c0d0d98e2f0d5609 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c69ee3cc5796188d873574179290a6ef +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{f721383d531f067d82b071e14aed7a92 → e1f674c11941d62aac1764ef3a7134e4} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{d2244ccef8e05bb993f75715af0344cc → e85565206c3e5fdf9dfeb367c85557b1} +0 -0
- data/spec/lib/commontator/acts_as_commontable_spec.rb +3 -2
- data/spec/lib/commontator/acts_as_commontator_spec.rb +2 -5
- data/spec/lib/commontator/commontable_config_spec.rb +8 -5
- data/spec/lib/commontator/commontator_config_spec.rb +2 -1
- data/spec/lib/commontator/controller_includes_spec.rb +2 -1
- data/spec/lib/commontator/shared_helper_spec.rb +2 -1
- data/spec/lib/commontator_spec.rb +2 -1
- data/spec/{test_helper.rb → spec_helper.rb} +0 -0
- metadata +154 -135
- data/lib/commontator/remote_link_renderer.rb +0 -10
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/log/development.log +0 -36
- data/spec/dummy/log/test.log +0 -22683
- data/spec/dummy/tmp/cache/assets/test/sprockets/afa63eb365bdf4f42584b17ac9176b9d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/decb63cac838a5314aa0c22a979f5ac9 +0 -0
@@ -1,10 +1,15 @@
|
|
1
1
|
# Dummy application configuration file
|
2
2
|
Commontator.configure do |config|
|
3
|
-
config.javascript_proc = lambda { |
|
3
|
+
config.javascript_proc = lambda { |view| '// Some javascript' }
|
4
|
+
|
5
|
+
config.user_name_proc = lambda { |user| user.try(:name) || 'Anonymous' }
|
4
6
|
|
5
7
|
config.thread_read_proc = lambda { |thread, user| user && user.can_read }
|
6
8
|
|
7
9
|
config.thread_moderator_proc = lambda { |thread, user| user.is_admin || user.can_edit }
|
8
10
|
|
9
11
|
config.comment_voting = :ld
|
12
|
+
|
13
|
+
config.thread_subscription = :m
|
10
14
|
end
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Dummy application configuration file
|
2
|
+
Commontator.configure do |config|
|
3
|
+
config.javascript_proc = lambda { |view| '// Some javascript' }
|
4
|
+
|
5
|
+
config.user_name_proc = lambda { |user| user.try(:name) || }
|
6
|
+
|
7
|
+
config.thread_read_proc = lambda { |thread, user| user && user.can_read }
|
8
|
+
|
9
|
+
config.thread_moderator_proc = lambda { |thread, user| user.is_admin || user.can_edit }
|
10
|
+
|
11
|
+
config.comment_voting = :ld
|
12
|
+
|
13
|
+
config.thread_subscription = :m
|
14
|
+
end
|
15
|
+
|
data/spec/dummy/config/routes.rb
CHANGED
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -18,32 +18,29 @@ ActiveRecord::Schema.define(version: 3) do
|
|
18
18
|
t.integer "creator_id"
|
19
19
|
t.string "editor_type"
|
20
20
|
t.integer "editor_id"
|
21
|
-
t.integer "thread_id",
|
22
|
-
t.text "body",
|
21
|
+
t.integer "thread_id", null: false
|
22
|
+
t.text "body", null: false
|
23
23
|
t.datetime "deleted_at"
|
24
|
-
t.integer "
|
25
|
-
t.integer "
|
26
|
-
t.integer "cached_votes_down", default: 0
|
24
|
+
t.integer "cached_votes_up", default: 0
|
25
|
+
t.integer "cached_votes_down", default: 0
|
27
26
|
t.datetime "created_at"
|
28
27
|
t.datetime "updated_at"
|
29
28
|
end
|
30
29
|
|
31
30
|
add_index "commontator_comments", ["cached_votes_down"], name: "index_commontator_comments_on_cached_votes_down"
|
32
|
-
add_index "commontator_comments", ["cached_votes_total"], name: "index_commontator_comments_on_cached_votes_total"
|
33
31
|
add_index "commontator_comments", ["cached_votes_up"], name: "index_commontator_comments_on_cached_votes_up"
|
34
|
-
add_index "commontator_comments", ["creator_id", "creator_type", "thread_id"], name: "
|
32
|
+
add_index "commontator_comments", ["creator_id", "creator_type", "thread_id"], name: "index_commontator_comments_on_c_id_and_c_type_and_t_id"
|
35
33
|
add_index "commontator_comments", ["thread_id"], name: "index_commontator_comments_on_thread_id"
|
36
34
|
|
37
35
|
create_table "commontator_subscriptions", force: true do |t|
|
38
|
-
t.string "subscriber_type",
|
39
|
-
t.integer "subscriber_id",
|
40
|
-
t.integer "thread_id",
|
41
|
-
t.integer "unread", default: 0, null: false
|
36
|
+
t.string "subscriber_type", null: false
|
37
|
+
t.integer "subscriber_id", null: false
|
38
|
+
t.integer "thread_id", null: false
|
42
39
|
t.datetime "created_at"
|
43
40
|
t.datetime "updated_at"
|
44
41
|
end
|
45
42
|
|
46
|
-
add_index "commontator_subscriptions", ["subscriber_id", "subscriber_type", "thread_id"], name: "
|
43
|
+
add_index "commontator_subscriptions", ["subscriber_id", "subscriber_type", "thread_id"], name: "index_commontator_subscriptions_on_s_id_and_s_type_and_t_id", unique: true
|
47
44
|
add_index "commontator_subscriptions", ["thread_id"], name: "index_commontator_subscriptions_on_thread_id"
|
48
45
|
|
49
46
|
create_table "commontator_threads", force: true do |t|
|
@@ -56,7 +53,7 @@ ActiveRecord::Schema.define(version: 3) do
|
|
56
53
|
t.datetime "updated_at"
|
57
54
|
end
|
58
55
|
|
59
|
-
add_index "commontator_threads", ["commontable_id", "commontable_type"], name: "
|
56
|
+
add_index "commontator_threads", ["commontable_id", "commontable_type"], name: "index_commontator_threads_on_c_id_and_c_type", unique: true
|
60
57
|
|
61
58
|
create_table "dummy_models", force: true do |t|
|
62
59
|
t.datetime "created_at"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/public/404.html
CHANGED
data/spec/dummy/public/422.html
CHANGED
data/spec/dummy/public/500.html
CHANGED
data/spec/dummy/script/rails
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
module Commontator
|
4
4
|
describe ActsAsCommontable do
|
@@ -20,8 +20,9 @@ module Commontator
|
|
20
20
|
dummy.must_respond_to :comments
|
21
21
|
dummy.must_respond_to :subscriptions
|
22
22
|
dummy.must_respond_to :commontable_config
|
23
|
-
dummy.must_respond_to :
|
23
|
+
dummy.must_respond_to :relation_thread
|
24
24
|
dummy.commontable_config.must_be_instance_of CommontableConfig
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
module Commontator
|
4
4
|
describe ActsAsCommontator do
|
@@ -19,11 +19,8 @@ module Commontator
|
|
19
19
|
user.must_respond_to :comments
|
20
20
|
user.must_respond_to :subscriptions
|
21
21
|
user.must_respond_to :commontator_config
|
22
|
-
user.must_respond_to :commontator_name
|
23
|
-
user.must_respond_to :commontator_email
|
24
|
-
user.must_respond_to :commontator_link
|
25
|
-
user.must_respond_to :commontator_avatar
|
26
22
|
user.commontator_config.must_be_instance_of CommontatorConfig
|
27
23
|
end
|
28
24
|
end
|
29
25
|
end
|
26
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
module Commontator
|
4
4
|
describe CommontableConfig do
|
@@ -17,10 +17,13 @@ module Commontator
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'must be configurable' do
|
20
|
-
|
21
|
-
|
22
|
-
config = CommontableConfig.new(:
|
23
|
-
config.
|
20
|
+
proc = lambda { |thread| 'Some name' }
|
21
|
+
proc2 = lambda { |thread| 'Another name' }
|
22
|
+
config = CommontableConfig.new(:commontable_name_proc => proc)
|
23
|
+
(config.commontable_name_proc == proc).must_equal true
|
24
|
+
config = CommontableConfig.new(:commontable_name_proc => proc2)
|
25
|
+
(config.commontable_name_proc == proc2).must_equal true
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
29
|
+
|
File without changes
|
metadata
CHANGED
@@ -1,85 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commontator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dante Soares
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jquery-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: acts_as_votable
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
description: A Rails engine for comments.
|
84
84
|
email:
|
85
85
|
- dms3@rice.edu
|
@@ -87,130 +87,149 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
90
|
+
- app/controllers/commontator/application_controller.rb~
|
91
|
+
- app/controllers/commontator/threads_controller.rb
|
92
|
+
- app/controllers/commontator/application_controller.rb
|
93
|
+
- app/controllers/commontator/subscriptions_controller.rb
|
94
|
+
- app/controllers/commontator/comments_controller.rb~
|
95
|
+
- app/controllers/commontator/comments_controller.rb
|
96
|
+
- app/assets/stylesheets/commontator/application.css
|
97
|
+
- app/assets/stylesheets/commontator/threads.css~
|
98
|
+
- app/assets/stylesheets/commontator/comments.css
|
99
|
+
- app/assets/stylesheets/commontator/threads.css
|
100
|
+
- app/assets/images/commontator/upvote_disabled.png
|
93
101
|
- app/assets/images/commontator/downvote.png
|
94
102
|
- app/assets/images/commontator/downvote_active.png
|
95
|
-
- app/assets/images/commontator/
|
103
|
+
- app/assets/images/commontator/upvote_hover.png
|
96
104
|
- app/assets/images/commontator/downvote_hover.png
|
97
105
|
- app/assets/images/commontator/upvote.png
|
106
|
+
- app/assets/images/commontator/downvote_disabled.png
|
98
107
|
- app/assets/images/commontator/upvote_active.png
|
99
|
-
- app/
|
100
|
-
- app/assets/images/commontator/upvote_hover.png
|
101
|
-
- app/assets/stylesheets/commontator/application.css
|
102
|
-
- app/assets/stylesheets/commontator/comments.css
|
103
|
-
- app/assets/stylesheets/commontator/threads.css
|
104
|
-
- app/controllers/commontator/application_controller.rb
|
105
|
-
- app/controllers/commontator/comments_controller.rb
|
106
|
-
- app/controllers/commontator/subscriptions_controller.rb
|
107
|
-
- app/controllers/commontator/threads_controller.rb
|
108
|
-
- app/helpers/commontator/application_helper.rb
|
109
|
-
- app/mailers/commontator/subscriptions_mailer.rb
|
110
|
-
- app/models/commontator/comment.rb
|
108
|
+
- app/models/commontator/thread.rb~
|
111
109
|
- app/models/commontator/subscription.rb
|
112
110
|
- app/models/commontator/thread.rb
|
113
|
-
- app/
|
114
|
-
- app/
|
115
|
-
- app/
|
111
|
+
- app/models/commontator/comment.rb
|
112
|
+
- app/models/commontator/comment.rb~
|
113
|
+
- app/helpers/commontator/application_helper.rb
|
114
|
+
- app/views/commontator/subscriptions/_link.html.erb~
|
115
|
+
- app/views/commontator/subscriptions/subscribe.js.erb
|
116
|
+
- app/views/commontator/subscriptions/_link.html.erb
|
117
|
+
- app/views/commontator/subscriptions_mailer/comment_created.html.erb
|
118
|
+
- app/views/commontator/threads/_show.html.erb
|
119
|
+
- app/views/commontator/threads/show.js.erb
|
120
|
+
- app/views/commontator/threads/_show.html.erb~
|
121
|
+
- app/views/commontator/threads/_reply.html.erb
|
122
|
+
- app/views/commontator/threads/_reply.html.erb~
|
123
|
+
- app/views/commontator/threads/_show.js.erb
|
124
|
+
- app/views/commontator/shared/_thread.html.erb
|
125
|
+
- app/views/commontator/comments/_votes.html.erb
|
126
|
+
- app/views/commontator/comments/create.js.erb
|
116
127
|
- app/views/commontator/comments/_list.html.erb
|
117
128
|
- app/views/commontator/comments/_show.html.erb
|
118
|
-
- app/views/commontator/comments/
|
129
|
+
- app/views/commontator/comments/_actions.html.erb
|
130
|
+
- app/views/commontator/comments/_show.html.erb~
|
131
|
+
- app/views/commontator/comments/update.js.erb
|
119
132
|
- app/views/commontator/comments/cancel.js.erb
|
120
|
-
- app/views/commontator/comments/create.js.erb
|
121
133
|
- app/views/commontator/comments/delete.js.erb
|
122
|
-
- app/views/commontator/comments/edit.js.erb
|
123
134
|
- app/views/commontator/comments/new.js.erb
|
124
|
-
- app/views/commontator/comments/
|
135
|
+
- app/views/commontator/comments/_body.html.erb
|
136
|
+
- app/views/commontator/comments/create.js.erb~
|
137
|
+
- app/views/commontator/comments/edit.js.erb
|
138
|
+
- app/views/commontator/comments/_votes.html.erb~
|
125
139
|
- app/views/commontator/comments/vote.js.erb
|
126
|
-
- app/views/commontator/
|
127
|
-
- app/views/commontator/
|
128
|
-
- app/views/commontator/
|
129
|
-
- app/
|
130
|
-
- app/
|
131
|
-
- app/views/commontator/threads/_show.html.erb
|
132
|
-
- app/views/commontator/threads/show.js.erb
|
133
|
-
- config/initializers/commontator.rb
|
140
|
+
- app/views/commontator/comments/new.js.erb~
|
141
|
+
- app/views/commontator/comments/_form.html.erb
|
142
|
+
- app/views/commontator/comments/_form.html.erb~
|
143
|
+
- app/mailers/commontator/subscriptions_mailer.rb
|
144
|
+
- app/mailers/commontator/subscriptions_mailer.rb~
|
134
145
|
- config/locales/commontator/en.yml
|
146
|
+
- config/locales/commontator/en.yml~
|
135
147
|
- config/routes.rb
|
148
|
+
- config/initializers/commontator.rb~
|
149
|
+
- config/initializers/commontator.rb
|
136
150
|
- db/migrate/0_install_commontator.rb
|
137
|
-
-
|
138
|
-
- lib/commontator
|
139
|
-
- lib/commontator/acts_as_commontator.rb
|
151
|
+
- db/migrate/0_install_commontator.rb~
|
152
|
+
- lib/commontator.rb~
|
140
153
|
- lib/commontator/commontable_config.rb
|
154
|
+
- lib/commontator/acts_as_commontator.rb
|
141
155
|
- lib/commontator/commontator_config.rb
|
156
|
+
- lib/commontator/acts_as_commontable.rb
|
142
157
|
- lib/commontator/controller_includes.rb
|
143
158
|
- lib/commontator/engine.rb
|
144
|
-
- lib/commontator/
|
145
|
-
- lib/commontator/security_transgression.rb
|
159
|
+
- lib/commontator/link_renderer.rb
|
146
160
|
- lib/commontator/shared_helper.rb
|
147
161
|
- lib/commontator/version.rb
|
162
|
+
- lib/commontator/security_transgression.rb
|
163
|
+
- lib/commontator.rb
|
148
164
|
- lib/tasks/commontator_tasks.rake
|
165
|
+
- MIT-LICENSE
|
166
|
+
- Rakefile
|
167
|
+
- README.md
|
168
|
+
- spec/app/controllers/commontator/threads_controller_spec.rb
|
149
169
|
- spec/app/controllers/commontator/comments_controller_spec.rb
|
150
170
|
- spec/app/controllers/commontator/subscriptions_controller_spec.rb
|
151
|
-
- spec/app/controllers/commontator/threads_controller_spec.rb
|
152
|
-
- spec/app/helpers/commontator/application_helper_spec.rb
|
153
|
-
- spec/app/mailers/commontator/subscriptions_mailer_spec.rb
|
154
171
|
- spec/app/models/commontator/comment_spec.rb
|
155
172
|
- spec/app/models/commontator/subscription_spec.rb
|
156
173
|
- spec/app/models/commontator/thread_spec.rb
|
157
|
-
- spec/
|
174
|
+
- spec/app/models/commontator/comment_spec.rb~
|
175
|
+
- spec/app/helpers/commontator/application_helper_spec.rb
|
176
|
+
- spec/app/mailers/commontator/subscriptions_mailer_spec.rb
|
177
|
+
- spec/spec_helper.rb
|
178
|
+
- spec/dummy/script/rails
|
158
179
|
- spec/dummy/Rakefile
|
159
|
-
- spec/dummy/app/assets/javascripts/application.js
|
160
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
161
180
|
- spec/dummy/app/controllers/application_controller.rb
|
162
181
|
- spec/dummy/app/controllers/dummy_models_controller.rb
|
163
|
-
- spec/dummy/app/
|
182
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
183
|
+
- spec/dummy/app/assets/javascripts/application.js
|
164
184
|
- spec/dummy/app/models/dummy_model.rb
|
165
185
|
- spec/dummy/app/models/dummy_user.rb
|
166
|
-
- spec/dummy/app/
|
186
|
+
- spec/dummy/app/models/dummy_user.rb~
|
187
|
+
- spec/dummy/app/helpers/application_helper.rb
|
167
188
|
- spec/dummy/app/views/layouts/application.html.erb
|
168
|
-
- spec/dummy/
|
169
|
-
- spec/dummy/
|
170
|
-
- spec/dummy/
|
171
|
-
- spec/dummy/
|
189
|
+
- spec/dummy/app/views/dummy_model/show.html.erb
|
190
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/02d4b791eb831cf2057bf4703a1218d1
|
191
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/e85565206c3e5fdf9dfeb367c85557b1
|
192
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/c69ee3cc5796188d873574179290a6ef
|
193
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a3fb9025f90ff05a6fd4afc7ded2692c
|
194
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/0f196a1a50363b0a076ec6e1ee5417f6
|
195
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/e1f674c11941d62aac1764ef3a7134e4
|
196
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a41c8be5379abec3c0d0d98e2f0d5609
|
172
197
|
- spec/dummy/config/environment.rb
|
173
|
-
- spec/dummy/config/
|
198
|
+
- spec/dummy/config/routes.rb
|
174
199
|
- spec/dummy/config/environments/production.rb
|
175
200
|
- spec/dummy/config/environments/test.rb
|
176
|
-
- spec/dummy/config/
|
177
|
-
- spec/dummy/config/initializers/
|
201
|
+
- spec/dummy/config/environments/development.rb
|
202
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
203
|
+
- spec/dummy/config/initializers/secret_token.rb
|
178
204
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
179
|
-
- spec/dummy/config/initializers/
|
205
|
+
- spec/dummy/config/initializers/commontator.rb~
|
180
206
|
- spec/dummy/config/initializers/mime_types.rb
|
181
|
-
- spec/dummy/config/initializers/secret_token.rb
|
182
207
|
- spec/dummy/config/initializers/session_store.rb
|
183
|
-
- spec/dummy/config/initializers/
|
184
|
-
- spec/dummy/config/
|
185
|
-
- spec/dummy/config/
|
208
|
+
- spec/dummy/config/initializers/commontator.rb
|
209
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
210
|
+
- spec/dummy/config/initializers/inflections.rb
|
211
|
+
- spec/dummy/config/boot.rb
|
212
|
+
- spec/dummy/config/application.rb
|
213
|
+
- spec/dummy/config/database.yml
|
214
|
+
- spec/dummy/README.md
|
215
|
+
- spec/dummy/public/500.html
|
216
|
+
- spec/dummy/public/422.html
|
217
|
+
- spec/dummy/public/favicon.ico
|
218
|
+
- spec/dummy/public/404.html
|
219
|
+
- spec/dummy/config.ru
|
220
|
+
- spec/dummy/db/schema.rb
|
186
221
|
- spec/dummy/db/development.sqlite3
|
187
|
-
- spec/dummy/db/migrate/1_create_dummy_models.rb
|
188
222
|
- spec/dummy/db/migrate/2_create_dummy_users.rb
|
223
|
+
- spec/dummy/db/migrate/1_create_dummy_models.rb
|
189
224
|
- spec/dummy/db/migrate/3_acts_as_votable_migration.rb
|
190
|
-
- spec/dummy/db/schema.rb
|
191
225
|
- spec/dummy/db/test.sqlite3
|
192
|
-
- spec/
|
193
|
-
- spec/dummy/log/test.log
|
194
|
-
- spec/dummy/public/404.html
|
195
|
-
- spec/dummy/public/422.html
|
196
|
-
- spec/dummy/public/500.html
|
197
|
-
- spec/dummy/public/favicon.ico
|
198
|
-
- spec/dummy/script/rails
|
199
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/72b63dddbc5c995f79af8e3c94904fd9
|
200
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/a473b3873e554893372a53d71f5e9879
|
201
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/a77b1a9223d168112e1705c29220116f
|
202
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/afa63eb365bdf4f42584b17ac9176b9d
|
203
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/d2244ccef8e05bb993f75715af0344cc
|
204
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/decb63cac838a5314aa0c22a979f5ac9
|
205
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/f721383d531f067d82b071e14aed7a92
|
206
|
-
- spec/lib/commontator/acts_as_commontable_spec.rb
|
226
|
+
- spec/lib/commontator_spec.rb
|
207
227
|
- spec/lib/commontator/acts_as_commontator_spec.rb
|
208
|
-
- spec/lib/commontator/commontable_config_spec.rb
|
209
|
-
- spec/lib/commontator/commontator_config_spec.rb
|
210
228
|
- spec/lib/commontator/controller_includes_spec.rb
|
211
229
|
- spec/lib/commontator/shared_helper_spec.rb
|
212
|
-
- spec/lib/
|
213
|
-
- spec/
|
230
|
+
- spec/lib/commontator/commontable_config_spec.rb
|
231
|
+
- spec/lib/commontator/commontator_config_spec.rb
|
232
|
+
- spec/lib/commontator/acts_as_commontable_spec.rb
|
214
233
|
homepage: http://github.com/lml/commontator
|
215
234
|
licenses:
|
216
235
|
- MIT
|
@@ -221,83 +240,83 @@ require_paths:
|
|
221
240
|
- lib
|
222
241
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
242
|
requirements:
|
224
|
-
- -
|
243
|
+
- - '>='
|
225
244
|
- !ruby/object:Gem::Version
|
226
245
|
version: '0'
|
227
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
247
|
requirements:
|
229
|
-
- -
|
248
|
+
- - '>='
|
230
249
|
- !ruby/object:Gem::Version
|
231
250
|
version: '0'
|
232
251
|
requirements: []
|
233
252
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.
|
253
|
+
rubygems_version: 2.0.3
|
235
254
|
signing_key:
|
236
255
|
specification_version: 4
|
237
256
|
summary: Allows users to comment on any model in your application.
|
238
257
|
test_files:
|
258
|
+
- spec/app/controllers/commontator/threads_controller_spec.rb
|
239
259
|
- spec/app/controllers/commontator/comments_controller_spec.rb
|
240
260
|
- spec/app/controllers/commontator/subscriptions_controller_spec.rb
|
241
|
-
- spec/app/controllers/commontator/threads_controller_spec.rb
|
242
|
-
- spec/app/helpers/commontator/application_helper_spec.rb
|
243
|
-
- spec/app/mailers/commontator/subscriptions_mailer_spec.rb
|
244
261
|
- spec/app/models/commontator/comment_spec.rb
|
245
262
|
- spec/app/models/commontator/subscription_spec.rb
|
246
263
|
- spec/app/models/commontator/thread_spec.rb
|
247
|
-
- spec/
|
248
|
-
- spec/
|
264
|
+
- spec/app/models/commontator/comment_spec.rb~
|
265
|
+
- spec/app/helpers/commontator/application_helper_spec.rb
|
266
|
+
- spec/app/mailers/commontator/subscriptions_mailer_spec.rb
|
267
|
+
- spec/spec_helper.rb
|
268
|
+
- spec/dummy/script/rails
|
269
|
+
- spec/dummy/Rakefile
|
249
270
|
- spec/dummy/app/controllers/application_controller.rb
|
250
271
|
- spec/dummy/app/controllers/dummy_models_controller.rb
|
251
|
-
- spec/dummy/app/
|
272
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
273
|
+
- spec/dummy/app/assets/javascripts/application.js
|
252
274
|
- spec/dummy/app/models/dummy_model.rb
|
253
275
|
- spec/dummy/app/models/dummy_user.rb
|
254
|
-
- spec/dummy/app/
|
276
|
+
- spec/dummy/app/models/dummy_user.rb~
|
277
|
+
- spec/dummy/app/helpers/application_helper.rb
|
255
278
|
- spec/dummy/app/views/layouts/application.html.erb
|
256
|
-
- spec/dummy/
|
257
|
-
- spec/dummy/
|
258
|
-
- spec/dummy/
|
279
|
+
- spec/dummy/app/views/dummy_model/show.html.erb
|
280
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/02d4b791eb831cf2057bf4703a1218d1
|
281
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/e85565206c3e5fdf9dfeb367c85557b1
|
282
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/c69ee3cc5796188d873574179290a6ef
|
283
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a3fb9025f90ff05a6fd4afc7ded2692c
|
284
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/0f196a1a50363b0a076ec6e1ee5417f6
|
285
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/e1f674c11941d62aac1764ef3a7134e4
|
286
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a41c8be5379abec3c0d0d98e2f0d5609
|
259
287
|
- spec/dummy/config/environment.rb
|
260
|
-
- spec/dummy/config/
|
288
|
+
- spec/dummy/config/routes.rb
|
261
289
|
- spec/dummy/config/environments/production.rb
|
262
290
|
- spec/dummy/config/environments/test.rb
|
263
|
-
- spec/dummy/config/
|
264
|
-
- spec/dummy/config/initializers/
|
291
|
+
- spec/dummy/config/environments/development.rb
|
292
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
293
|
+
- spec/dummy/config/initializers/secret_token.rb
|
265
294
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
266
|
-
- spec/dummy/config/initializers/
|
295
|
+
- spec/dummy/config/initializers/commontator.rb~
|
267
296
|
- spec/dummy/config/initializers/mime_types.rb
|
268
|
-
- spec/dummy/config/initializers/secret_token.rb
|
269
297
|
- spec/dummy/config/initializers/session_store.rb
|
270
|
-
- spec/dummy/config/initializers/
|
271
|
-
- spec/dummy/config/
|
272
|
-
- spec/dummy/config/
|
298
|
+
- spec/dummy/config/initializers/commontator.rb
|
299
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
300
|
+
- spec/dummy/config/initializers/inflections.rb
|
301
|
+
- spec/dummy/config/boot.rb
|
302
|
+
- spec/dummy/config/application.rb
|
303
|
+
- spec/dummy/config/database.yml
|
304
|
+
- spec/dummy/README.md
|
305
|
+
- spec/dummy/public/500.html
|
306
|
+
- spec/dummy/public/422.html
|
307
|
+
- spec/dummy/public/favicon.ico
|
308
|
+
- spec/dummy/public/404.html
|
273
309
|
- spec/dummy/config.ru
|
310
|
+
- spec/dummy/db/schema.rb
|
274
311
|
- spec/dummy/db/development.sqlite3
|
275
|
-
- spec/dummy/db/migrate/1_create_dummy_models.rb
|
276
312
|
- spec/dummy/db/migrate/2_create_dummy_users.rb
|
313
|
+
- spec/dummy/db/migrate/1_create_dummy_models.rb
|
277
314
|
- spec/dummy/db/migrate/3_acts_as_votable_migration.rb
|
278
|
-
- spec/dummy/db/schema.rb
|
279
315
|
- spec/dummy/db/test.sqlite3
|
280
|
-
- spec/
|
281
|
-
- spec/dummy/log/test.log
|
282
|
-
- spec/dummy/public/404.html
|
283
|
-
- spec/dummy/public/422.html
|
284
|
-
- spec/dummy/public/500.html
|
285
|
-
- spec/dummy/public/favicon.ico
|
286
|
-
- spec/dummy/Rakefile
|
287
|
-
- spec/dummy/README.md
|
288
|
-
- spec/dummy/script/rails
|
289
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/72b63dddbc5c995f79af8e3c94904fd9
|
290
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/a473b3873e554893372a53d71f5e9879
|
291
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/a77b1a9223d168112e1705c29220116f
|
292
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/afa63eb365bdf4f42584b17ac9176b9d
|
293
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/d2244ccef8e05bb993f75715af0344cc
|
294
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/decb63cac838a5314aa0c22a979f5ac9
|
295
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/f721383d531f067d82b071e14aed7a92
|
296
|
-
- spec/lib/commontator/acts_as_commontable_spec.rb
|
316
|
+
- spec/lib/commontator_spec.rb
|
297
317
|
- spec/lib/commontator/acts_as_commontator_spec.rb
|
298
|
-
- spec/lib/commontator/commontable_config_spec.rb
|
299
|
-
- spec/lib/commontator/commontator_config_spec.rb
|
300
318
|
- spec/lib/commontator/controller_includes_spec.rb
|
301
319
|
- spec/lib/commontator/shared_helper_spec.rb
|
302
|
-
- spec/lib/
|
303
|
-
- spec/
|
320
|
+
- spec/lib/commontator/commontable_config_spec.rb
|
321
|
+
- spec/lib/commontator/commontator_config_spec.rb
|
322
|
+
- spec/lib/commontator/acts_as_commontable_spec.rb
|