aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/gemspec.rb8
-rw-r--r--lib/refinery/blog/version.rb17
-rw-r--r--lib/refinerycms-blog.rb13
-rw-r--r--refinerycms-blog.gemspec18
4 files changed, 42 insertions, 14 deletions
diff --git a/lib/gemspec.rb b/lib/gemspec.rb
index d112795..dfd4213 100644
--- a/lib/gemspec.rb
+++ b/lib/gemspec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.expand_path('../refinerycms-blog.rb', __FILE__)
-version = ::Refinery::Blog.version
+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)?$/
@@ -18,10 +18,14 @@ Gem::Specification.new do |s|
s.authors = ['Resolve Digital', 'Neoteric Design']
s.require_paths = %w(lib)
+ # Runtime dependencies
s.add_dependency 'refinerycms-core', '>= 0.9.9.1'
s.add_dependency 'filters_spam', '~> 0.2'
s.add_dependency 'acts-as-taggable-on'
+ # Development dependencies
+ s.add_development_dependency 'factory_girl'
+
s.files = %w(
#{files.join("\n ")}
)
diff --git a/lib/refinery/blog/version.rb b/lib/refinery/blog/version.rb
new file mode 100644
index 0000000..6365f94
--- /dev/null
+++ b/lib/refinery/blog/version.rb
@@ -0,0 +1,17 @@
+module Refinery
+ module Blog
+ class Version
+ @major = 1
+ @minor = 4
+ @tiny = 0
+
+ class << self
+ attr_reader :major, :minor, :tiny
+
+ def to_s
+ [@major, @minor, @tiny].compact.join('.')
+ end
+ end
+ end
+ end
+end \ No newline at end of file
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index 60c9bfa..312ee9b 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -3,6 +3,13 @@ require 'filters_spam'
module Refinery
module Blog
+ autoload :Version, File.expand_path('../refinery/blog/version', __FILE__)
+ class << self
+ def version
+ ::Refinery::Blog::Version.to_s
+ end
+ end
+
class Engine < Rails::Engine
initializer 'blog serves assets' do |app|
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
@@ -35,11 +42,5 @@ module Refinery
end
end
end if defined?(Rails::Engine)
-
- class << self
- def version
- %q{1.4}
- end
- end
end
end
diff --git a/refinerycms-blog.gemspec b/refinerycms-blog.gemspec
index 346e694..6030428 100644
--- a/refinerycms-blog.gemspec
+++ b/refinerycms-blog.gemspec
@@ -1,18 +1,21 @@
Gem::Specification.new do |s|
s.name = %q{refinerycms-blog}
- s.version = %q{1.4}
+ s.version = %q{1.4.0}
s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
- s.date = %q{2011-04-03}
+ s.date = %q{2011-04-25}
s.summary = %q{Ruby on Rails blogging engine for RefineryCMS.}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com/blog}
s.authors = ['Resolve Digital', 'Neoteric Design']
s.require_paths = %w(lib)
- s.add_dependency 'refinerycms-core', '>= 0.9.9.1'
- s.add_dependency 'filters_spam', '~> 0.2'
- s.add_dependency 'acts-as-taggable-on'
- s.add_development_dependency 'factory_girl'
+ # Runtime dependencies
+ s.add_dependency 'refinerycms-core', '>= 0.9.9.1'
+ s.add_dependency 'filters_spam', '~> 0.2'
+ s.add_dependency 'acts-as-taggable-on'
+
+ # Development dependencies
+ s.add_development_dependency 'factory_girl'
s.files = %w(
app
@@ -127,6 +130,9 @@ Gem::Specification.new do |s|
lib/gemspec.rb
lib/generators
lib/generators/refinerycms_blog_generator.rb
+ lib/refinery
+ lib/refinery/blog
+ lib/refinery/blog/version.rb
lib/refinerycms-blog.rb
public
public/images