muck-comments 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +8 -1
- data/VERSION +1 -1
- data/app/helpers/muck_comments_helper.rb +3 -2
- data/app/models/comment_mailer.rb +29 -0
- data/app/views/comment_mailer/new_comment.text.html.erb +6 -0
- data/app/views/comment_mailer/new_comment.text.plain.erb +7 -0
- data/app/views/comments/_form.html.erb +1 -1
- data/lib/active_record/acts/muck_comment.rb +7 -2
- data/locales/ar.yml +9 -7
- data/locales/bg.yml +7 -5
- data/locales/ca.yml +7 -5
- data/locales/cs.yml +8 -6
- data/locales/da.yml +6 -4
- data/locales/de.yml +8 -6
- data/locales/el.yml +10 -8
- data/locales/en.yml +2 -0
- data/locales/es.yml +8 -6
- data/locales/et.yml +5 -3
- data/locales/fa.yml +7 -5
- data/locales/fi.yml +8 -6
- data/locales/fr.yml +8 -6
- data/locales/gl.yml +6 -4
- data/locales/hi.yml +7 -5
- data/locales/hr.yml +7 -5
- data/locales/hu.yml +12 -10
- data/locales/id.yml +7 -5
- data/locales/it.yml +6 -4
- data/locales/iw.yml +10 -8
- data/locales/ja.yml +8 -6
- data/locales/ko.yml +12 -10
- data/locales/lt.yml +4 -2
- data/locales/lv.yml +8 -6
- data/locales/mt.yml +9 -7
- data/locales/nl.yml +9 -7
- data/locales/no.yml +5 -3
- data/locales/pl.yml +9 -7
- data/locales/pt-PT.yml +8 -6
- data/locales/ro.yml +9 -7
- data/locales/ru.yml +7 -5
- data/locales/sk.yml +9 -7
- data/locales/sl.yml +8 -6
- data/locales/sq.yml +9 -7
- data/locales/sr.yml +10 -8
- data/locales/sv.yml +9 -7
- data/locales/th.yml +8 -6
- data/locales/tl.yml +6 -4
- data/locales/tr.yml +8 -6
- data/locales/uk.yml +7 -5
- data/locales/vi.yml +12 -10
- data/locales/zh-CN.yml +6 -4
- data/locales/zh-TW.yml +6 -4
- data/locales/zh.yml +6 -4
- data/muck-comments.gemspec +9 -5
- data/test/rails_root/config/global_config.yml +3 -0
- data/test/rails_root/test/unit/comment_mailer_test.rb +26 -0
- metadata +11 -4
data/locales/th.yml
CHANGED
|
@@ -6,11 +6,13 @@ th:
|
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: ความคิดเห็น
|
|
8
8
|
add_comment_button: เพิ่มความคิดเห็น
|
|
9
|
-
|
|
9
|
+
anonymous: ไม่ระบุชื่อ
|
|
10
|
+
cant_delete_comment: คุณไม่ได้รับสิทธิ์ในการลบความคิดเห็นที่
|
|
10
11
|
comment_removed: ความคิดเห็นสำเร็จลบ.
|
|
11
|
-
create_error: "
|
|
12
|
-
create_success:
|
|
13
|
-
missing_comment_template_error: "
|
|
12
|
+
create_error: "ไม่สามารถสร้าง {{errors}} ความคิดเห็น"
|
|
13
|
+
create_success: สำเร็จเพิ่มความคิดเห็น
|
|
14
|
+
missing_comment_template_error: "ไม่พบ {{partial}}. ชื่อบางส่วนโปรดสร้างความคิดเห็นบางส่วนและลองอีกครั้ง."
|
|
15
|
+
new_comment_email_subject: "ความคิดเห็นใหม่จาก {{name}} ใน {{application_name}}"
|
|
14
16
|
new_comment_no_title: เพิ่มความคิดเห็นใหม่
|
|
15
|
-
new_comment_with_title: "
|
|
16
|
-
problem_adding_comment:
|
|
17
|
+
new_comment_with_title: "เพิ่มความคิดเห็นใหม่ {{title}}"
|
|
18
|
+
problem_adding_comment: มีปัญหาการเพิ่มข้อคิดเห็นของคุณได้
|
data/locales/tl.yml
CHANGED
|
@@ -5,12 +5,14 @@ tl:
|
|
|
5
5
|
comment: Comments
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: Comment
|
|
8
|
-
add_comment_button: "
|
|
9
|
-
|
|
8
|
+
add_comment_button: "Add Comment"
|
|
9
|
+
anonymous: di-kilala
|
|
10
|
+
cant_delete_comment: "Ikaw ay walang pahintulot na tanggalin na ang comment"
|
|
10
11
|
comment_removed: "Comment matagumpay na natanggal."
|
|
11
|
-
create_error: "Hindi
|
|
12
|
-
create_success: "Matagumpay na
|
|
12
|
+
create_error: "Hindi gumawa ng puna {{errors}}"
|
|
13
|
+
create_success: "Matagumpay na naidagdag puna"
|
|
13
14
|
missing_comment_template_error: "Hindi makahanap ng isang bahagyang pinangalanan {{partial}}. Mangyaring gumawa ng isang puna bahagyang at subukan muli."
|
|
15
|
+
new_comment_email_subject: "Bagong puna mula sa {{name}} sa {{application_name}}"
|
|
14
16
|
new_comment_no_title: "Magdagdag ng isang bagong puna"
|
|
15
17
|
new_comment_with_title: "Magdagdag ng isang bagong puna sa {{title}}"
|
|
16
18
|
problem_adding_comment: "Nagkaroon ng problema sa pagdagdag ng iyong puna"
|
data/locales/tr.yml
CHANGED
|
@@ -5,12 +5,14 @@ tr:
|
|
|
5
5
|
comment: Yorumlar
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: Yorum
|
|
8
|
-
add_comment_button: "Yorum
|
|
9
|
-
|
|
8
|
+
add_comment_button: "Yorum ekle"
|
|
9
|
+
anonymous: anonim
|
|
10
|
+
cant_delete_comment: "Izniniz Bu yorumu silmek zorunda değilsiniz"
|
|
10
11
|
comment_removed: "Yorum başarıyla kaldırıldı."
|
|
11
|
-
create_error: "Yorum {{errors}}
|
|
12
|
-
create_success: "
|
|
13
|
-
missing_comment_template_error: "Kısmi adlı {{partial}}. bulunamadı Lütfen bir yorum kısmi ve
|
|
12
|
+
create_error: "Yorum {{errors}} oluşturulamadı"
|
|
13
|
+
create_success: "Yorum başarıyla eklendi"
|
|
14
|
+
missing_comment_template_error: "Kısmi adlı {{partial}}. bulunamadı Lütfen bir yorum kısmi ve yeniden deneyin oluşturun."
|
|
15
|
+
new_comment_email_subject: "{{name}} Doğum {{application_name}} New Yorum"
|
|
14
16
|
new_comment_no_title: "Yeni bir yorum ekle"
|
|
15
|
-
new_comment_with_title: "{{title}} Yeni
|
|
17
|
+
new_comment_with_title: "{{title}} Yeni yorum ekle"
|
|
16
18
|
problem_adding_comment: "Bir sorun yorum ekleme oldu"
|
data/locales/uk.yml
CHANGED
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
uk:
|
|
3
3
|
muck:
|
|
4
4
|
activity_templates:
|
|
5
|
-
comment:
|
|
5
|
+
comment: Коментарів
|
|
6
6
|
comments:
|
|
7
|
-
add_comment:
|
|
7
|
+
add_comment: Коментарі
|
|
8
8
|
add_comment_button: "Додати коментар"
|
|
9
|
+
anonymous: анонімно
|
|
9
10
|
cant_delete_comment: "У вас немає дозволу на видалення, що коментар"
|
|
10
|
-
comment_removed: "
|
|
11
|
+
comment_removed: "Коментарі успішно вилучено."
|
|
11
12
|
create_error: "Не вдалося створити свій коментар {{errors}}"
|
|
12
|
-
create_success: "Успішно
|
|
13
|
-
missing_comment_template_error: "Не
|
|
13
|
+
create_success: "Успішно доданий коментар"
|
|
14
|
+
missing_comment_template_error: "Не знайшов часткове їм {{partial}}. Будь ласка, створіть коментар часткової і спробуйте знову."
|
|
15
|
+
new_comment_email_subject: "Новий коментар від {{name}} на {{application_name}}"
|
|
14
16
|
new_comment_no_title: "Додати новий коментар"
|
|
15
17
|
new_comment_with_title: "Додати новий коментар до {{title}}"
|
|
16
18
|
problem_adding_comment: "Був проблема додати свій коментар"
|
data/locales/vi.yml
CHANGED
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
vi:
|
|
3
3
|
muck:
|
|
4
4
|
activity_templates:
|
|
5
|
-
comment: "
|
|
5
|
+
comment: "Ý kiến"
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: "Thảo luận"
|
|
8
|
-
add_comment_button: "Thêm
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
add_comment_button: "Thêm bình luận"
|
|
9
|
+
anonymous: "vô danh"
|
|
10
|
+
cant_delete_comment: "Bạn không có quyền xóa mà bình luận"
|
|
11
|
+
comment_removed: "Thảo luận thành công gỡ bỏ."
|
|
12
|
+
create_error: "Không thể tạo {{errors}} bình luận"
|
|
13
|
+
create_success: "Thêm thành công luận"
|
|
14
|
+
missing_comment_template_error: "Không thể tìm thấy một {{partial}}. tên là một phần Xin vui lòng tạo một bình luận một phần và thử lại."
|
|
15
|
+
new_comment_email_subject: "Mới bình luận từ {{name}} ngày {{application_name}}"
|
|
16
|
+
new_comment_no_title: "Thêm một comment mới"
|
|
17
|
+
new_comment_with_title: "Thêm một comment mới để {{title}}"
|
|
18
|
+
problem_adding_comment: "Có vấn đề thêm bình luận của bạn"
|
data/locales/zh-CN.yml
CHANGED
|
@@ -6,11 +6,13 @@ zh-CN:
|
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: 评论
|
|
8
8
|
add_comment_button: 新增评论
|
|
9
|
+
anonymous: 匿名
|
|
9
10
|
cant_delete_comment: 您没有权限删除该评论
|
|
10
11
|
comment_removed: 评论成功删除。
|
|
11
|
-
create_error: "
|
|
12
|
+
create_error: "无法创建的评论{{errors}}"
|
|
12
13
|
create_success: 成功添加评论
|
|
13
|
-
missing_comment_template_error: "
|
|
14
|
+
missing_comment_template_error: "找不到部分名为{{partial}}.请建立一个注释部分,然后再试一次。"
|
|
15
|
+
new_comment_email_subject: "从{{name}}新的评论对{{application_name}}"
|
|
14
16
|
new_comment_no_title: 添加新评论
|
|
15
|
-
new_comment_with_title: "
|
|
16
|
-
problem_adding_comment:
|
|
17
|
+
new_comment_with_title: "添加对{{title}}新评论"
|
|
18
|
+
problem_adding_comment: 有一个问题,加入您的评论
|
data/locales/zh-TW.yml
CHANGED
|
@@ -6,11 +6,13 @@ zh-TW:
|
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: 評論
|
|
8
8
|
add_comment_button: 新增評論
|
|
9
|
+
anonymous: 匿名
|
|
9
10
|
cant_delete_comment: 您沒有權限刪除該評論
|
|
10
11
|
comment_removed: 評論成功刪除。
|
|
11
|
-
create_error: "
|
|
12
|
+
create_error: "無法創建的評論{{errors}}"
|
|
12
13
|
create_success: 成功添加評論
|
|
13
|
-
missing_comment_template_error: "
|
|
14
|
+
missing_comment_template_error: "找不到部分名為{{partial}}.請建立一個註釋部分,然後再試一次。"
|
|
15
|
+
new_comment_email_subject: "從{{name}}新的評論對{{application_name}}"
|
|
14
16
|
new_comment_no_title: 添加新評論
|
|
15
|
-
new_comment_with_title: "
|
|
16
|
-
problem_adding_comment:
|
|
17
|
+
new_comment_with_title: "添加新的評論,{{title}}"
|
|
18
|
+
problem_adding_comment: 有一個問題,加入您的評論
|
data/locales/zh.yml
CHANGED
|
@@ -6,11 +6,13 @@ zh:
|
|
|
6
6
|
comments:
|
|
7
7
|
add_comment: 评论
|
|
8
8
|
add_comment_button: 新增评论
|
|
9
|
+
anonymous: 匿名
|
|
9
10
|
cant_delete_comment: 您没有权限删除该评论
|
|
10
11
|
comment_removed: 评论成功删除。
|
|
11
|
-
create_error: "
|
|
12
|
+
create_error: "无法创建的评论{{errors}}"
|
|
12
13
|
create_success: 成功添加评论
|
|
13
|
-
missing_comment_template_error: "
|
|
14
|
+
missing_comment_template_error: "找不到部分名为{{partial}}.请建立一个注释部分,然后再试一次。"
|
|
15
|
+
new_comment_email_subject: "从{{name}}新的评论对{{application_name}}"
|
|
14
16
|
new_comment_no_title: 添加新评论
|
|
15
|
-
new_comment_with_title: "
|
|
16
|
-
problem_adding_comment:
|
|
17
|
+
new_comment_with_title: "添加对{{title}}新评论"
|
|
18
|
+
problem_adding_comment: 有一个问题,加入您的评论
|
data/muck-comments.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{muck-comments}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.10"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Justin Ball"]
|
|
12
|
-
s.date = %q{2009-
|
|
12
|
+
s.date = %q{2009-09-10}
|
|
13
13
|
s.description = %q{The comment engine for the muck system.}
|
|
14
14
|
s.email = %q{justinball@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -23,7 +23,10 @@ Gem::Specification.new do |s|
|
|
|
23
23
|
"VERSION",
|
|
24
24
|
"app/controllers/muck/comments_controller.rb",
|
|
25
25
|
"app/helpers/muck_comments_helper.rb",
|
|
26
|
+
"app/models/comment_mailer.rb",
|
|
26
27
|
"app/views/activity_templates/_comment.html.erb",
|
|
28
|
+
"app/views/comment_mailer/new_comment.text.html.erb",
|
|
29
|
+
"app/views/comment_mailer/new_comment.text.plain.erb",
|
|
27
30
|
"app/views/comments/_comment.html.erb",
|
|
28
31
|
"app/views/comments/_comment_title.html.erb",
|
|
29
32
|
"app/views/comments/_form.html.erb",
|
|
@@ -319,6 +322,7 @@ Gem::Specification.new do |s|
|
|
|
319
322
|
"test/rails_root/test/shoulda_macros/plugins.rb",
|
|
320
323
|
"test/rails_root/test/test_helper.rb",
|
|
321
324
|
"test/rails_root/test/unit/.keep",
|
|
325
|
+
"test/rails_root/test/unit/comment_mailer_test.rb",
|
|
322
326
|
"test/rails_root/test/unit/comment_test.rb",
|
|
323
327
|
"test/rails_root/test/unit/user_test.rb",
|
|
324
328
|
"test/rails_root/vendor/plugins/ssl_requirement/README",
|
|
@@ -335,12 +339,11 @@ Gem::Specification.new do |s|
|
|
|
335
339
|
"test/rails_root/vendor/plugins/validation_reflection/test/validation_reflection_test.rb",
|
|
336
340
|
"uninstall.rb"
|
|
337
341
|
]
|
|
338
|
-
s.has_rdoc = true
|
|
339
342
|
s.homepage = %q{http://github.com/jbasdf/muck_comments}
|
|
340
343
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
341
344
|
s.require_paths = ["lib"]
|
|
342
345
|
s.rubyforge_project = %q{muck-comments}
|
|
343
|
-
s.rubygems_version = %q{1.3.
|
|
346
|
+
s.rubygems_version = %q{1.3.5}
|
|
344
347
|
s.summary = %q{The comment engine for the muck system}
|
|
345
348
|
s.test_files = [
|
|
346
349
|
"test/rails_root/app/controllers/application_controller.rb",
|
|
@@ -389,6 +392,7 @@ Gem::Specification.new do |s|
|
|
|
389
392
|
"test/rails_root/test/shoulda_macros/pagination.rb",
|
|
390
393
|
"test/rails_root/test/shoulda_macros/plugins.rb",
|
|
391
394
|
"test/rails_root/test/test_helper.rb",
|
|
395
|
+
"test/rails_root/test/unit/comment_mailer_test.rb",
|
|
392
396
|
"test/rails_root/test/unit/comment_test.rb",
|
|
393
397
|
"test/rails_root/test/unit/user_test.rb",
|
|
394
398
|
"test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb",
|
|
@@ -401,7 +405,7 @@ Gem::Specification.new do |s|
|
|
|
401
405
|
|
|
402
406
|
if s.respond_to? :specification_version then
|
|
403
407
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
404
|
-
s.specification_version =
|
|
408
|
+
s.specification_version = 3
|
|
405
409
|
|
|
406
410
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
407
411
|
s.add_runtime_dependency(%q<muck-engine>, [">= 0"])
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
require 'comment_mailer'
|
|
3
|
+
|
|
4
|
+
class CommentMailerTest < ActiveSupport::TestCase
|
|
5
|
+
|
|
6
|
+
context "deliver emails" do
|
|
7
|
+
|
|
8
|
+
def setup
|
|
9
|
+
ActionMailer::Base.delivery_method = :test
|
|
10
|
+
ActionMailer::Base.perform_deliveries = true
|
|
11
|
+
ActionMailer::Base.deliveries = []
|
|
12
|
+
@expected = TMail::Mail.new
|
|
13
|
+
@expected.set_content_type "text", "plain", { "charset" => 'utf-8' }
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
should "send new comment email" do
|
|
17
|
+
comment = Factory(:comment)
|
|
18
|
+
response = CommentMailer.deliver_new_comment(comment)
|
|
19
|
+
assert !ActionMailer::Base.deliveries.empty?, "No email was sent"
|
|
20
|
+
email = ActionMailer::Base.deliveries.last
|
|
21
|
+
assert_equal [comment.user.email], email.to
|
|
22
|
+
assert_equal [GlobalConfig.from_email], email.from
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
end
|
|
26
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muck-comments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Ball
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-09-10 00:00:00 -06:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -48,7 +48,10 @@ files:
|
|
|
48
48
|
- VERSION
|
|
49
49
|
- app/controllers/muck/comments_controller.rb
|
|
50
50
|
- app/helpers/muck_comments_helper.rb
|
|
51
|
+
- app/models/comment_mailer.rb
|
|
51
52
|
- app/views/activity_templates/_comment.html.erb
|
|
53
|
+
- app/views/comment_mailer/new_comment.text.html.erb
|
|
54
|
+
- app/views/comment_mailer/new_comment.text.plain.erb
|
|
52
55
|
- app/views/comments/_comment.html.erb
|
|
53
56
|
- app/views/comments/_comment_title.html.erb
|
|
54
57
|
- app/views/comments/_form.html.erb
|
|
@@ -344,6 +347,7 @@ files:
|
|
|
344
347
|
- test/rails_root/test/shoulda_macros/plugins.rb
|
|
345
348
|
- test/rails_root/test/test_helper.rb
|
|
346
349
|
- test/rails_root/test/unit/.keep
|
|
350
|
+
- test/rails_root/test/unit/comment_mailer_test.rb
|
|
347
351
|
- test/rails_root/test/unit/comment_test.rb
|
|
348
352
|
- test/rails_root/test/unit/user_test.rb
|
|
349
353
|
- test/rails_root/vendor/plugins/ssl_requirement/README
|
|
@@ -361,6 +365,8 @@ files:
|
|
|
361
365
|
- uninstall.rb
|
|
362
366
|
has_rdoc: true
|
|
363
367
|
homepage: http://github.com/jbasdf/muck_comments
|
|
368
|
+
licenses: []
|
|
369
|
+
|
|
364
370
|
post_install_message:
|
|
365
371
|
rdoc_options:
|
|
366
372
|
- --charset=UTF-8
|
|
@@ -381,9 +387,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
381
387
|
requirements: []
|
|
382
388
|
|
|
383
389
|
rubyforge_project: muck-comments
|
|
384
|
-
rubygems_version: 1.3.
|
|
390
|
+
rubygems_version: 1.3.5
|
|
385
391
|
signing_key:
|
|
386
|
-
specification_version:
|
|
392
|
+
specification_version: 3
|
|
387
393
|
summary: The comment engine for the muck system
|
|
388
394
|
test_files:
|
|
389
395
|
- test/rails_root/app/controllers/application_controller.rb
|
|
@@ -432,6 +438,7 @@ test_files:
|
|
|
432
438
|
- test/rails_root/test/shoulda_macros/pagination.rb
|
|
433
439
|
- test/rails_root/test/shoulda_macros/plugins.rb
|
|
434
440
|
- test/rails_root/test/test_helper.rb
|
|
441
|
+
- test/rails_root/test/unit/comment_mailer_test.rb
|
|
435
442
|
- test/rails_root/test/unit/comment_test.rb
|
|
436
443
|
- test/rails_root/test/unit/user_test.rb
|
|
437
444
|
- test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb
|