muck-comments 3.0.0 → 3.0.1
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/views/comments/{_comment_title.html.erb → _comment_title.erb} +0 -0
- data/app/views/comments/{_form.html.erb → _form.erb} +1 -1
- data/app/views/comments/{_simple_comment.html.erb → _simple_comment.erb} +0 -0
- data/app/views/comments/{_tiny_mce_form.html.erb → _tiny_mce_form.erb} +1 -1
- data/lib/muck_comments/models/comment.rb +1 -0
- data/muck-comments.gemspec +9 -9
- data/test/rails_test/app/controllers/application_controller.rb +1 -9
- data/test/rails_test/spec/controllers/comments_controller_spec.rb +2 -0
- metadata +9 -9
data/Rakefile
CHANGED
@@ -47,7 +47,7 @@ begin
|
|
47
47
|
gemspec.authors = ["Justin Ball", "Joel Duffin"]
|
48
48
|
gemspec.rubyforge_project = 'muck-comments'
|
49
49
|
gemspec.add_dependency "sanitize"
|
50
|
-
gemspec.add_dependency "
|
50
|
+
gemspec.add_dependency "nested_set"
|
51
51
|
gemspec.add_dependency "muck-engine"
|
52
52
|
gemspec.add_dependency "muck-users"
|
53
53
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="<%= parent.dom_id %>_new_comment" class="comment-form-wrapper">
|
2
|
-
|
2
|
+
<%= form_for(:comment, :url => new_comment_path_with_parent(parent), :html => { :id => "#{parent.dom_id}_comment_form", :class => "comment-form"} ) do |f| -%>
|
3
3
|
<%= f.text_area :body, :class => 'min' %>
|
4
4
|
<%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
|
5
5
|
<%= hidden_field_tag :render_new, render_new -%>
|
File without changes
|
@@ -10,7 +10,7 @@ muck_comment_message_id = "#{@project.dom_id}_message"
|
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
<div id="<%= parent.dom_id %>_new_comment" class="comment-form-wrapper">
|
13
|
-
|
13
|
+
<%= form_for(:comment, :url => new_comment_path_with_parent(parent), :html => { :id => muck_comment_form_id, :class => "comment-form"} ) do |f| -%>
|
14
14
|
<%= f.text_area :body, :class => 'mceEditor min', :id => muck_comment_mce_id %>
|
15
15
|
<%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
|
16
16
|
<%= hidden_field_tag :render_new, render_new -%>
|
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 = "3.0.
|
8
|
+
s.version = "3.0.1"
|
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", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-08}
|
13
13
|
s.description = %q{The comment engine for the muck system.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,10 +28,10 @@ Gem::Specification.new do |s|
|
|
28
28
|
"app/views/comment_mailer/new_comment.html.erb",
|
29
29
|
"app/views/comment_mailer/new_comment.text.erb",
|
30
30
|
"app/views/comments/_comment.erb",
|
31
|
-
"app/views/comments/_comment_title.
|
32
|
-
"app/views/comments/_form.
|
33
|
-
"app/views/comments/_simple_comment.
|
34
|
-
"app/views/comments/_tiny_mce_form.
|
31
|
+
"app/views/comments/_comment_title.erb",
|
32
|
+
"app/views/comments/_form.erb",
|
33
|
+
"app/views/comments/_simple_comment.erb",
|
34
|
+
"app/views/comments/_tiny_mce_form.erb",
|
35
35
|
"app/views/comments/index.html.erb",
|
36
36
|
"app/views/comments/new.html.erb",
|
37
37
|
"app/views/comments/permission_denied.js.erb",
|
@@ -817,18 +817,18 @@ Gem::Specification.new do |s|
|
|
817
817
|
|
818
818
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
819
819
|
s.add_runtime_dependency(%q<sanitize>, [">= 0"])
|
820
|
-
s.add_runtime_dependency(%q<
|
820
|
+
s.add_runtime_dependency(%q<nested_set>, [">= 0"])
|
821
821
|
s.add_runtime_dependency(%q<muck-engine>, [">= 0"])
|
822
822
|
s.add_runtime_dependency(%q<muck-users>, [">= 0"])
|
823
823
|
else
|
824
824
|
s.add_dependency(%q<sanitize>, [">= 0"])
|
825
|
-
s.add_dependency(%q<
|
825
|
+
s.add_dependency(%q<nested_set>, [">= 0"])
|
826
826
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
827
827
|
s.add_dependency(%q<muck-users>, [">= 0"])
|
828
828
|
end
|
829
829
|
else
|
830
830
|
s.add_dependency(%q<sanitize>, [">= 0"])
|
831
|
-
s.add_dependency(%q<
|
831
|
+
s.add_dependency(%q<nested_set>, [">= 0"])
|
832
832
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
833
833
|
s.add_dependency(%q<muck-users>, [">= 0"])
|
834
834
|
end
|
@@ -9,13 +9,5 @@ class ApplicationController < ActionController::Base
|
|
9
9
|
def admin_access?
|
10
10
|
admin?
|
11
11
|
end
|
12
|
-
|
13
|
-
# only require ssl if we are in production
|
14
|
-
def ssl_required?
|
15
|
-
return ENV['SSL'] == 'on' ? true : false if defined? ENV['SSL']
|
16
|
-
return false if local_request?
|
17
|
-
return false if RAILS_ENV == 'test'
|
18
|
-
((self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)) && (RAILS_ENV == 'production' || RAILS_ENV == 'staging')
|
19
|
-
end
|
20
|
-
|
12
|
+
|
21
13
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-08 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: nested_set
|
38
38
|
prerelease: false
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
@@ -96,10 +96,10 @@ files:
|
|
96
96
|
- app/views/comment_mailer/new_comment.html.erb
|
97
97
|
- app/views/comment_mailer/new_comment.text.erb
|
98
98
|
- app/views/comments/_comment.erb
|
99
|
-
- app/views/comments/_comment_title.
|
100
|
-
- app/views/comments/_form.
|
101
|
-
- app/views/comments/_simple_comment.
|
102
|
-
- app/views/comments/_tiny_mce_form.
|
99
|
+
- app/views/comments/_comment_title.erb
|
100
|
+
- app/views/comments/_form.erb
|
101
|
+
- app/views/comments/_simple_comment.erb
|
102
|
+
- app/views/comments/_tiny_mce_form.erb
|
103
103
|
- app/views/comments/index.html.erb
|
104
104
|
- app/views/comments/new.html.erb
|
105
105
|
- app/views/comments/permission_denied.js.erb
|