radiant-comments-extension 0.0.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/HELP_admin.markdown CHANGED
@@ -33,6 +33,12 @@ set the public and private key pair in the Radiant::Config.
33
33
  If both services are configured, this plugin will use the Akismet service. Unset the akismet_key if you
34
34
  want to use Mollom.
35
35
 
36
+ To automatically approve comments set
37
+
38
+ Radiant::Config['comments.auto_approve'] = "true"
39
+
40
+ Or to review each comment first, set the value to "false"
41
+
36
42
  ## Exporting Data
37
43
 
38
44
  To customize the CSV fields you can add an initializer like this:
data/README.rdoc CHANGED
@@ -11,27 +11,27 @@ If you want to contribute features or fixes please write your specs and code and
11
11
 
12
12
  == Dependencies
13
13
 
14
- * Requires Radiant 0.7.1 or greater.
15
- * Requires will_paginate Rails plugin (http://github.com/mislav/will_paginate/tree/master)
16
- * Requires fastercsv 1.2.3 or greater.
17
- * Requires sanitize 1.0.8 or greater.
18
- * Requires mollom 0.2.2 or greater.
14
+ Version 1.x requires Radiant 1.x or greater. Older gem releases work with older Radiant releases.
19
15
 
20
- == Installation
16
+ There are also git tags which match the Radiant version the tag is known to work with.
17
+ Users of pre 1.x versions will also need to manually install the fastercsv, mollom and sanitize gems.
21
18
 
22
- To install Comments, run:
19
+ == Installation
23
20
 
24
- rake radiant:extensions:comments:install
21
+ Add `gem "radiant-comments-extension", "~> 1.0"` to your Gemfile then run:
22
+
23
+ bundle install
24
+ bundle exec rake radiant:extensions:comments:install
25
25
 
26
26
  This _WILL_ delete any snippets named 'comment', 'comments' and 'comment_form' if these exist.
27
27
 
28
28
  If you are upgrading from a previous version with out the sanitizer run:
29
29
 
30
- rake radiant:extensions:comments:initialize
30
+ bundle exec rake radiant:extensions:comments:initialize
31
31
 
32
32
  or if you want to clean up your initializer for the sanitize gem run:
33
33
 
34
- rake radiant:extensions:comments:forced_initialize
34
+ bundle exec rake radiant:extensions:comments:forced_initialize
35
35
 
36
36
  == More Help
37
37
 
@@ -55,8 +55,8 @@ See the included HELP docs here or read them in your Radiant interface with the
55
55
  * Sean Cribbs, partly sponsored by http://opscode.com/
56
56
  * Ryan Heneise
57
57
 
58
- If you contribute, go ahead and add your name to the list!
58
+ If you contribute, go ahead and add your name to the list!
59
59
 
60
60
  == Credits
61
61
 
62
- Included icons come from the FamFamFam Silk icon set. http://famfamfam.com
62
+ Included icons come from the FamFamFam Silk icon set. http://famfamfam.com
@@ -1,13 +1,10 @@
1
+ require "mollom"
2
+ require "sanitize"
1
3
  require File.expand_path("../lib/radiant-comments-extension/version", __FILE__)
2
4
  class CommentsExtension < Radiant::Extension
3
5
  version RadiantCommentsExtension::VERSION
4
6
  description "Adds blog-like comments and comment functionality to pages."
5
7
  url "http://github.com/saturnflyer/radiant-comments"
6
-
7
- extension_config do |config|
8
- config.gem 'sanitize'
9
- config.gem 'mollom'
10
- end
11
8
 
12
9
  def activate
13
10
  Dir["#{File.dirname(__FILE__)}/app/models/*_filter.rb"].each do |file|
@@ -1,3 +1,3 @@
1
1
  module RadiantCommentsExtension
2
- VERSION = '0.0.8'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -20,5 +20,9 @@ Gem::Specification.new do |s|
20
20
  s.rdoc_options = ["--charset=UTF-8"]
21
21
  s.require_paths = ["lib"]
22
22
  s.test_files = `git ls-files spec test`.split("\n")
23
+
24
+ s.add_dependency "fastercsv", "~> 1.5.4"
25
+ s.add_dependency "mollom", "~> 0.2.3"
26
+ s.add_dependency "sanitize", "~> 2.0.3"
23
27
  end
24
28
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-comments-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 8
10
- version: 0.0.8
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Gay
@@ -29,10 +29,57 @@ autorequire:
29
29
  bindir: bin
30
30
  cert_chain: []
31
31
 
32
- date: 2010-10-11 00:00:00 -04:00
32
+ date: 2010-10-11 00:00:00 -05:00
33
33
  default_executable:
34
- dependencies: []
35
-
34
+ dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: fastercsv
37
+ prerelease: false
38
+ requirement: &id001 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ hash: 11
44
+ segments:
45
+ - 1
46
+ - 5
47
+ - 4
48
+ version: 1.5.4
49
+ type: :runtime
50
+ version_requirements: *id001
51
+ - !ruby/object:Gem::Dependency
52
+ name: mollom
53
+ prerelease: false
54
+ requirement: &id002 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ hash: 17
60
+ segments:
61
+ - 0
62
+ - 2
63
+ - 3
64
+ version: 0.2.3
65
+ type: :runtime
66
+ version_requirements: *id002
67
+ - !ruby/object:Gem::Dependency
68
+ name: sanitize
69
+ prerelease: false
70
+ requirement: &id003 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ hash: 9
76
+ segments:
77
+ - 2
78
+ - 0
79
+ - 3
80
+ version: 2.0.3
81
+ type: :runtime
82
+ version_requirements: *id003
36
83
  description: Adds blog-like comment functionality to Radiant.
37
84
  email: jim@saturnflyer.com
38
85
  executables: []
@@ -152,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
199
  requirements: []
153
200
 
154
201
  rubyforge_project:
155
- rubygems_version: 1.3.7
202
+ rubygems_version: 1.3.9.3
156
203
  signing_key:
157
204
  specification_version: 3
158
205
  summary: Comments Extension for Radiant CMS