aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock9
-rw-r--r--lib/gemspec.rb3
-rw-r--r--lib/refinerycms-blog.rb2
-rw-r--r--rails/init.rb4
-rw-r--r--refinerycms-blog.gemspec7
6 files changed, 21 insertions, 5 deletions
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..e9e9109
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1 @@
+gem 'filters_spam', '~> 0.1' \ No newline at end of file
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..4fe5eb7
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,9 @@
+GEM
+ specs:
+ filters_spam (0.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ filters_spam (~> 0.1)
diff --git a/lib/gemspec.rb b/lib/gemspec.rb
index bb02bf8..ad1eff2 100644
--- a/lib/gemspec.rb
+++ b/lib/gemspec.rb
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
s.homepage = %q{http://refinerycms.com}
s.authors = %w(Resolve\\ Digital Neoteric\\ Design)
s.require_paths = %w(lib)
- s.add_dependency('refinerycms', '~> 0.9.7.12')
+ s.add_dependency 'refinerycms', '~> 0.9.7.13'
+ s.add_dependency 'filters_spam', '~> 0.1'
s.files = %w(
#{files.join("\n ")}
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index 30e0baf..461e75c 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -1,3 +1,5 @@
+require 'filters_spam' if defined?(Bundler)
+
module Refinery
module Blog
class << self
diff --git a/rails/init.rb b/rails/init.rb
index 13abf82..658936e 100644
--- a/rails/init.rb
+++ b/rails/init.rb
@@ -1,3 +1,5 @@
+require File.expand_path('../../lib/refinerycms-blog', __FILE__)
+
Refinery::Plugin.register do |plugin|
plugin.name = "refinerycms_blog"
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
@@ -5,6 +7,4 @@ Refinery::Plugin.register do |plugin|
plugin.activity = {
:class => BlogPost
}
-
- plugin.directory = directory # tell refinery where this plugin is located
end
diff --git a/refinerycms-blog.gemspec b/refinerycms-blog.gemspec
index b55f0e7..b185f93 100644
--- a/refinerycms-blog.gemspec
+++ b/refinerycms-blog.gemspec
@@ -2,13 +2,14 @@ Gem::Specification.new do |s|
s.name = %q{refinerycms-blog}
s.version = %q{0.9.8.0.rc1}
s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
- s.date = %q{2010-08-26}
+ s.date = %q{2010-08-28}
s.summary = %q{Ruby on Rails blogging engine for RefineryCMS.}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.authors = %w(Resolve\ Digital Neoteric\ Design)
s.require_paths = %w(lib)
- s.add_dependency('refinerycms', '~> 0.9.7.12')
+ s.add_dependency 'refinerycms', '~> 0.9.7.13'
+ s.add_dependency 'filters_spam', '~> 0.1'
s.files = %w(
app
@@ -57,6 +58,8 @@ Gem::Specification.new do |s|
config/locales/nb.yml
config/locales/nl.yml
config/routes.rb
+ Gemfile
+ Gemfile.lock
generators
generators/refinery_blog
generators/refinery_blog/refinery_blog_generator.rb