commontator 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,8 +13,7 @@ There are 4 steps you must follow to install commontator:
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'commontator', '~> 0.5.0' or
17
- gem 'commontator', '~> 1.0.0' (not yet released)
16
+ gem 'commontator', '~> 1.0.0'
18
17
  ```
19
18
 
20
19
  And then execute:
@@ -13,7 +13,9 @@ Commontator.configure do |config|
13
13
  # access anything you normally could in a view template (by using, e.g. view.flash)
14
14
  # Should return a string containing JS to be appended to all Commontator JS responses
15
15
  # Default: lambda { |view| '$("#error_explanation").remove();' }
16
- config.javascript_proc = lambda { |view| '$("#error_explanation").remove();' }
16
+ config.javascript_proc = lambda { |view| '$("#attention").html("' + \
17
+ escape_javascript(render(:partial => 'shared/attention')) + \
18
+ '");' }
17
19
 
18
20
 
19
21
  # User (acts_as_commontator) Configuration
@@ -22,7 +24,8 @@ Commontator.configure do |config|
22
24
  # Default: 'Anonymous'
23
25
  config.user_missing_name = 'Anonymous'
24
26
 
25
- # Whether the user's name is clickable in the comment view
27
+ # Whether the comment creator's name is clickable in the comment view
28
+ # If enabled, the link will point to the comment creator's show page
26
29
  # Default: false
27
30
  config.user_name_clickable = false
28
31
 
@@ -121,7 +124,7 @@ Commontator.configure do |config|
121
124
  # Default: true
122
125
  config.deleted_comments_are_visible = true
123
126
 
124
- # The method which returns the commontable's id that is sent to users in email messages
127
+ # The method which returns the commontable's id, sent to users in email messages
125
128
  # Default: 'id'
126
129
  config.commontable_id_method = 'id'
127
130
 
@@ -148,10 +151,10 @@ Commontator.configure do |config|
148
151
  # Default:
149
152
  # lambda do |params|
150
153
  # "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
151
- # "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
154
+ # "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
152
155
  # end
153
156
  config.subscription_email_subject_proc = lambda do |params|
154
157
  "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
155
- "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
158
+ "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
156
159
  end
157
160
  end
@@ -13,7 +13,9 @@ Commontator.configure do |config|
13
13
  # access anything you normally could in a view template (by using, e.g. view.flash)
14
14
  # Should return a string containing JS to be appended to all Commontator JS responses
15
15
  # Default: lambda { |view| '$("#error_explanation").remove();' }
16
- config.javascript_proc = lambda { |view| '$("#error_explanation").remove();' }
16
+ config.javascript_proc = lambda { |view| '$("#attention").html("' + \
17
+ escape_javascript(render(:partial => 'shared/attention')) + \
18
+ '");' }
17
19
 
18
20
 
19
21
  # User (acts_as_commontator) Configuration
@@ -23,6 +25,7 @@ Commontator.configure do |config|
23
25
  config.user_missing_name = 'Anonymous'
24
26
 
25
27
  # Whether the user's name is clickable in the comment view
28
+ # If enabled, the link will point to the comment creator's show page
26
29
  # Default: false
27
30
  config.user_name_clickable = false
28
31
 
@@ -121,7 +124,7 @@ Commontator.configure do |config|
121
124
  # Default: true
122
125
  config.deleted_comments_are_visible = true
123
126
 
124
- # The method returns the commontable's id which is sent to users in email messages
127
+ # The method which returns the commontable's id, sent to users in email messages
125
128
  # Default: 'id'
126
129
  config.commontable_id_method = 'id'
127
130
 
@@ -148,10 +151,10 @@ Commontator.configure do |config|
148
151
  # Default:
149
152
  # lambda do |params|
150
153
  # "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
151
- # "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
154
+ # "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
152
155
  # end
153
156
  config.subscription_email_subject_proc = lambda do |params|
154
157
  "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
155
- "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
158
+ "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
156
159
  end
157
160
  end
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "0.6.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commontator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: