aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gemspec.rb6
-rw-r--r--lib/refinery/blog/version.rb2
-rw-r--r--lib/refinerycms-blog.rb16
3 files changed, 3 insertions, 21 deletions
diff --git a/lib/gemspec.rb b/lib/gemspec.rb
index 25f9157..3562315 100644
--- a/lib/gemspec.rb
+++ b/lib/gemspec.rb
@@ -2,9 +2,7 @@
require File.expand_path('../refinery/blog/version', __FILE__)
version = ::Refinery::Blog::Version.to_s
raise "Could not get version so gemspec can not be built" if version.nil?
-files = Dir.glob("**/*").flatten.reject do |file|
- file =~ /\.gem(spec)?$/
-end
+files = Dir.glob("**/*").flatten.reject{|f| f =~ %r{.gem$}}
gemspec = <<EOF
Gem::Specification.new do |s|
@@ -19,7 +17,7 @@ Gem::Specification.new do |s|
s.require_paths = %w(lib)
# Runtime dependencies
- s.add_dependency 'refinerycms-core', '~> 1.0.0'
+ s.add_dependency 'refinerycms-core', '~> 1.0.3'
s.add_dependency 'filters_spam', '~> 0.2'
s.add_dependency 'acts-as-taggable-on'
s.add_dependency 'seo_meta', '~> 1.1.0'
diff --git a/lib/refinery/blog/version.rb b/lib/refinery/blog/version.rb
index 62e3490..0390414 100644
--- a/lib/refinery/blog/version.rb
+++ b/lib/refinery/blog/version.rb
@@ -3,7 +3,7 @@ module Refinery
class Version
@major = 1
@minor = 6
- @tiny = 1
+ @tiny = 2
class << self
attr_reader :major, :minor, :tiny
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index 752cba3..7100c99 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -34,22 +34,6 @@ module Refinery
:class => BlogPost
}
end
-
- # refinery 0.9.8 had a bug that we later found through using this engine.
- # the bug was that the plugin urls were not :controller => '/admin/whatever'
- if Refinery.version == '0.9.8'
- ::Refinery::Plugin.class_eval do
- alias_method :old_url, :url
-
- def url
- if (plugin_url = self.old_url).is_a?(Hash) and plugin_url[:controller] =~ %r{^admin}
- plugin_url[:controller] = "/#{plugin_url[:controller]}"
- end
-
- plugin_url
- end
- end
- end
end
end if defined?(Rails::Engine)
end