commontator 4.5.4 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +5 -13
  2. data/MIT-LICENSE +2 -1
  3. data/README.md +31 -34
  4. data/Rakefile +3 -2
  5. data/app/assets/stylesheets/commontator/application.css +1 -0
  6. data/app/assets/stylesheets/commontator/comments.css +1 -0
  7. data/app/assets/stylesheets/commontator/threads.css +13 -7
  8. data/{spec/dummy/tmp/cache/assets/test/sprockets/a473b3873e554893372a53d71f5e9879 → app/assets/stylesheets/commontator/threads.css~} +0 -0
  9. data/app/controllers/commontator/application_controller.rb +14 -14
  10. data/app/controllers/commontator/application_controller.rb~ +35 -0
  11. data/app/controllers/commontator/comments_controller.rb +8 -7
  12. data/app/controllers/commontator/comments_controller.rb~ +153 -0
  13. data/app/controllers/commontator/subscriptions_controller.rb +1 -0
  14. data/app/controllers/commontator/threads_controller.rb +7 -2
  15. data/app/helpers/commontator/application_helper.rb +1 -0
  16. data/app/mailers/commontator/subscriptions_mailer.rb +8 -10
  17. data/app/mailers/commontator/subscriptions_mailer.rb~ +44 -0
  18. data/app/models/commontator/comment.rb +14 -13
  19. data/app/models/commontator/comment.rb~ +119 -0
  20. data/app/models/commontator/subscription.rb +8 -4
  21. data/app/models/commontator/thread.rb +64 -43
  22. data/app/models/commontator/thread.rb~ +159 -0
  23. data/app/views/commontator/comments/_actions.html.erb +1 -0
  24. data/app/views/commontator/comments/_body.html.erb +2 -1
  25. data/app/views/commontator/comments/_form.html.erb +5 -1
  26. data/app/views/commontator/comments/_form.html.erb~ +39 -0
  27. data/app/views/commontator/comments/_list.html.erb +1 -1
  28. data/app/views/commontator/comments/_show.html.erb +5 -3
  29. data/app/views/commontator/comments/_show.html.erb~ +49 -0
  30. data/app/views/commontator/comments/_votes.html.erb +2 -1
  31. data/app/views/commontator/comments/_votes.html.erb~ +69 -0
  32. data/app/views/commontator/comments/cancel.js.erb +1 -0
  33. data/app/views/commontator/comments/create.js.erb +6 -4
  34. data/app/views/commontator/comments/create.js.erb~ +14 -0
  35. data/app/views/commontator/comments/delete.js.erb +1 -0
  36. data/app/views/commontator/comments/edit.js.erb +1 -0
  37. data/app/views/commontator/comments/new.js.erb +3 -1
  38. data/app/views/commontator/comments/new.js.erb~ +13 -0
  39. data/app/views/commontator/comments/update.js.erb +1 -0
  40. data/app/views/commontator/comments/vote.js.erb +1 -0
  41. data/app/views/commontator/shared/_thread.html.erb +4 -5
  42. data/app/views/commontator/subscriptions/_link.html.erb +2 -1
  43. data/app/views/commontator/subscriptions/_link.html.erb~ +16 -0
  44. data/app/views/commontator/subscriptions/subscribe.js.erb +1 -0
  45. data/app/views/commontator/subscriptions_mailer/comment_created.html.erb +1 -0
  46. data/app/views/commontator/threads/_reply.html.erb +4 -2
  47. data/app/views/commontator/threads/_reply.html.erb~ +19 -0
  48. data/app/views/commontator/threads/_show.html.erb +44 -9
  49. data/app/views/commontator/threads/_show.html.erb~ +95 -0
  50. data/app/views/commontator/threads/_show.js.erb +19 -0
  51. data/app/views/commontator/threads/show.js.erb +4 -4
  52. data/config/initializers/commontator.rb +169 -132
  53. data/config/initializers/commontator.rb~ +238 -0
  54. data/config/locales/commontator/en.yml +12 -3
  55. data/config/locales/commontator/en.yml~ +104 -0
  56. data/config/routes.rb +1 -0
  57. data/db/migrate/0_install_commontator.rb +9 -11
  58. data/db/migrate/0_install_commontator.rb~ +54 -0
  59. data/lib/commontator.rb +57 -16
  60. data/lib/commontator.rb~ +142 -0
  61. data/lib/commontator/acts_as_commontable.rb +12 -14
  62. data/lib/commontator/acts_as_commontator.rb +1 -16
  63. data/lib/commontator/commontable_config.rb +1 -0
  64. data/lib/commontator/commontator_config.rb +1 -0
  65. data/lib/commontator/controller_includes.rb +3 -3
  66. data/lib/commontator/engine.rb +1 -0
  67. data/lib/commontator/link_renderer.rb +29 -0
  68. data/lib/commontator/security_transgression.rb +1 -0
  69. data/lib/commontator/shared_helper.rb +7 -5
  70. data/lib/commontator/version.rb +2 -1
  71. data/lib/tasks/commontator_tasks.rake +1 -0
  72. data/spec/app/controllers/commontator/comments_controller_spec.rb +12 -11
  73. data/spec/app/controllers/commontator/subscriptions_controller_spec.rb +2 -1
  74. data/spec/app/controllers/commontator/threads_controller_spec.rb +2 -1
  75. data/spec/app/helpers/commontator/application_helper_spec.rb +2 -1
  76. data/spec/app/mailers/commontator/subscriptions_mailer_spec.rb +2 -1
  77. data/spec/app/models/commontator/comment_spec.rb +18 -11
  78. data/spec/app/models/commontator/comment_spec.rb~ +74 -0
  79. data/spec/app/models/commontator/subscription_spec.rb +18 -8
  80. data/spec/app/models/commontator/thread_spec.rb +28 -42
  81. data/spec/dummy/README.md +1 -0
  82. data/spec/dummy/Rakefile +1 -0
  83. data/spec/dummy/app/assets/javascripts/application.js +1 -0
  84. data/spec/dummy/app/assets/stylesheets/application.css +1 -0
  85. data/spec/dummy/app/controllers/application_controller.rb +1 -0
  86. data/spec/dummy/app/controllers/dummy_models_controller.rb +1 -0
  87. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  88. data/spec/dummy/app/models/dummy_model.rb +1 -0
  89. data/spec/dummy/app/models/dummy_user.rb +7 -2
  90. data/spec/dummy/app/models/dummy_user.rb~ +16 -0
  91. data/spec/dummy/app/views/dummy_model/show.html.erb +1 -0
  92. data/spec/dummy/app/views/layouts/application.html.erb +1 -0
  93. data/spec/dummy/config.ru +1 -0
  94. data/spec/dummy/config/boot.rb +1 -0
  95. data/spec/dummy/config/database.yml +1 -0
  96. data/spec/dummy/config/environment.rb +1 -0
  97. data/spec/dummy/config/environments/development.rb +1 -0
  98. data/spec/dummy/config/environments/production.rb +1 -0
  99. data/spec/dummy/config/environments/test.rb +1 -0
  100. data/spec/dummy/config/initializers/backtrace_silencers.rb +1 -0
  101. data/spec/dummy/config/initializers/commontator.rb +6 -1
  102. data/spec/dummy/config/initializers/commontator.rb~ +15 -0
  103. data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -0
  104. data/spec/dummy/config/initializers/inflections.rb +1 -0
  105. data/spec/dummy/config/initializers/mime_types.rb +1 -0
  106. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  107. data/spec/dummy/config/initializers/session_store.rb +1 -0
  108. data/spec/dummy/config/initializers/wrap_parameters.rb +1 -0
  109. data/spec/dummy/config/routes.rb +1 -0
  110. data/spec/dummy/db/development.sqlite3 +0 -0
  111. data/spec/dummy/db/migrate/1_create_dummy_models.rb +1 -0
  112. data/spec/dummy/db/migrate/2_create_dummy_users.rb +1 -0
  113. data/spec/dummy/db/migrate/3_acts_as_votable_migration.rb +1 -0
  114. data/spec/dummy/db/schema.rb +10 -13
  115. data/spec/dummy/db/test.sqlite3 +0 -0
  116. data/spec/dummy/public/404.html +1 -0
  117. data/spec/dummy/public/422.html +1 -0
  118. data/spec/dummy/public/500.html +1 -0
  119. data/spec/dummy/script/rails +1 -0
  120. data/spec/dummy/tmp/cache/assets/test/sprockets/{72b63dddbc5c995f79af8e3c94904fd9 → 02d4b791eb831cf2057bf4703a1218d1} +0 -0
  121. data/spec/dummy/tmp/cache/assets/test/sprockets/{a77b1a9223d168112e1705c29220116f → 0f196a1a50363b0a076ec6e1ee5417f6} +0 -0
  122. data/spec/dummy/tmp/cache/assets/test/sprockets/a3fb9025f90ff05a6fd4afc7ded2692c +0 -0
  123. data/spec/dummy/tmp/cache/assets/test/sprockets/a41c8be5379abec3c0d0d98e2f0d5609 +0 -0
  124. data/spec/dummy/tmp/cache/assets/test/sprockets/c69ee3cc5796188d873574179290a6ef +0 -0
  125. data/spec/dummy/tmp/cache/assets/test/sprockets/{f721383d531f067d82b071e14aed7a92 → e1f674c11941d62aac1764ef3a7134e4} +0 -0
  126. data/spec/dummy/tmp/cache/assets/test/sprockets/{d2244ccef8e05bb993f75715af0344cc → e85565206c3e5fdf9dfeb367c85557b1} +0 -0
  127. data/spec/lib/commontator/acts_as_commontable_spec.rb +3 -2
  128. data/spec/lib/commontator/acts_as_commontator_spec.rb +2 -5
  129. data/spec/lib/commontator/commontable_config_spec.rb +8 -5
  130. data/spec/lib/commontator/commontator_config_spec.rb +2 -1
  131. data/spec/lib/commontator/controller_includes_spec.rb +2 -1
  132. data/spec/lib/commontator/shared_helper_spec.rb +2 -1
  133. data/spec/lib/commontator_spec.rb +2 -1
  134. data/spec/{test_helper.rb → spec_helper.rb} +0 -0
  135. metadata +154 -135
  136. data/lib/commontator/remote_link_renderer.rb +0 -10
  137. data/spec/dummy/config/locales/en.yml +0 -23
  138. data/spec/dummy/log/development.log +0 -36
  139. data/spec/dummy/log/test.log +0 -22683
  140. data/spec/dummy/tmp/cache/assets/test/sprockets/afa63eb365bdf4f42584b17ac9176b9d +0 -0
  141. data/spec/dummy/tmp/cache/assets/test/sprockets/decb63cac838a5314aa0c22a979f5ac9 +0 -0
@@ -5,3 +5,4 @@
5
5
 
6
6
  # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
7
  # Rails.backtrace_cleaner.remove_silencers!
8
+
@@ -1,10 +1,15 @@
1
1
  # Dummy application configuration file
2
2
  Commontator.configure do |config|
3
- config.javascript_proc = lambda { |view_context| '// Some javascript' }
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
+
@@ -2,3 +2,4 @@
2
2
 
3
3
  # Configure sensitive parameters which will be filtered from the log file.
4
4
  Rails.application.config.filter_parameters += [:password]
5
+
@@ -14,3 +14,4 @@
14
14
  # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
15
  # inflect.acronym 'RESTful'
16
16
  # end
17
+
@@ -3,3 +3,4 @@
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
5
  # Mime::Type.register_alias "text/html", :iphone
6
+
@@ -10,3 +10,4 @@
10
10
  # Make sure your secret_key_base is kept private
11
11
  # if you're sharing your code publicly.
12
12
  Dummy::Application.config.secret_key_base = 'dummy'
13
+
@@ -1,3 +1,4 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
3
  Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
@@ -12,3 +12,4 @@ end
12
12
  # ActiveSupport.on_load(:active_record) do
13
13
  # self.include_root_in_json = true
14
14
  # end
15
+
@@ -5,3 +5,4 @@ Rails.application.routes.draw do
5
5
 
6
6
  mount Commontator::Engine => "/commontator"
7
7
  end
8
+
@@ -5,3 +5,4 @@ class CreateDummyModels < ActiveRecord::Migration
5
5
  end
6
6
  end
7
7
  end
8
+
@@ -5,3 +5,4 @@ class CreateDummyUsers < ActiveRecord::Migration
5
5
  end
6
6
  end
7
7
  end
8
+
@@ -25,3 +25,4 @@ class ActsAsVotableMigration < ActiveRecord::Migration
25
25
  drop_table :votes
26
26
  end
27
27
  end
28
+
@@ -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", null: false
22
- t.text "body", null: false
21
+ t.integer "thread_id", null: false
22
+ t.text "body", null: false
23
23
  t.datetime "deleted_at"
24
- t.integer "cached_votes_total", default: 0
25
- t.integer "cached_votes_up", default: 0
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: "index_c_c_on_c_id_and_c_type_and_t_id"
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", null: false
39
- t.integer "subscriber_id", null: false
40
- t.integer "thread_id", null: false
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: "index_c_s_on_s_id_and_s_type_and_t_id", unique: true
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: "index_c_t_on_c_id_and_c_type", unique: true
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"
Binary file
@@ -24,3 +24,4 @@
24
24
  </div>
25
25
  </body>
26
26
  </html>
27
+
@@ -24,3 +24,4 @@
24
24
  </div>
25
25
  </body>
26
26
  </html>
27
+
@@ -23,3 +23,4 @@
23
23
  </div>
24
24
  </body>
25
25
  </html>
26
+
@@ -4,3 +4,4 @@
4
4
  APP_PATH = File.expand_path('../../config/application', __FILE__)
5
5
  require File.expand_path('../../config/boot', __FILE__)
6
6
  require 'rails/commands'
7
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
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 :commontable_name
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 'test_helper'
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 'test_helper'
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
- config = CommontableConfig.new(:moderators_can_edit_comments => true)
21
- config.moderators_can_edit_comments.must_equal true
22
- config = CommontableConfig.new(:moderators_can_edit_comments => false)
23
- config.moderators_can_edit_comments.must_equal false
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
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe CommontatorConfig do
@@ -26,3 +26,4 @@ module Commontator
26
26
  end
27
27
  end
28
28
  end
29
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe ControllerIncludes do
@@ -13,3 +13,4 @@ module Commontator
13
13
  end
14
14
  end
15
15
  end
16
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe SharedHelper do
@@ -14,3 +14,4 @@ module Commontator
14
14
  end
15
15
  end
16
16
  end
17
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe Commontator do
@@ -23,3 +23,4 @@ module Commontator
23
23
  end
24
24
  end
25
25
  end
26
+
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.5.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-17 00:00:00.000000000 Z
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.8.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.8.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
- - MIT-LICENSE
91
- - README.md
92
- - Rakefile
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/downvote_disabled.png
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/assets/images/commontator/upvote_disabled.png
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/views/commontator/comments/_actions.html.erb
114
- - app/views/commontator/comments/_body.html.erb
115
- - app/views/commontator/comments/_form.html.erb
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/_votes.html.erb
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/update.js.erb
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/shared/_thread.html.erb
127
- - app/views/commontator/subscriptions/_link.html.erb
128
- - app/views/commontator/subscriptions/subscribe.js.erb
129
- - app/views/commontator/subscriptions_mailer/comment_created.html.erb
130
- - app/views/commontator/threads/_reply.html.erb
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
- - lib/commontator.rb
138
- - lib/commontator/acts_as_commontable.rb
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/remote_link_renderer.rb
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/dummy/README.md
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/helpers/application_helper.rb
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/views/dummy_model/show.html.erb
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/config.ru
169
- - spec/dummy/config/application.rb
170
- - spec/dummy/config/boot.rb
171
- - spec/dummy/config/database.yml
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/environments/development.rb
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/initializers/backtrace_silencers.rb
177
- - spec/dummy/config/initializers/commontator.rb
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/inflections.rb
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/wrap_parameters.rb
184
- - spec/dummy/config/locales/en.yml
185
- - spec/dummy/config/routes.rb
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/dummy/log/development.log
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/commontator_spec.rb
213
- - spec/test_helper.rb
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.2.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/dummy/app/assets/javascripts/application.js
248
- - spec/dummy/app/assets/stylesheets/application.css
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/helpers/application_helper.rb
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/views/dummy_model/show.html.erb
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/config/application.rb
257
- - spec/dummy/config/boot.rb
258
- - spec/dummy/config/database.yml
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/environments/development.rb
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/initializers/backtrace_silencers.rb
264
- - spec/dummy/config/initializers/commontator.rb
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/inflections.rb
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/wrap_parameters.rb
271
- - spec/dummy/config/locales/en.yml
272
- - spec/dummy/config/routes.rb
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/dummy/log/development.log
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/commontator_spec.rb
303
- - spec/test_helper.rb
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