aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gemspec.rb30
-rw-r--r--lib/refinerycms-blog.rb9
2 files changed, 39 insertions, 0 deletions
diff --git a/lib/gemspec.rb b/lib/gemspec.rb
new file mode 100644
index 0000000..d37925e
--- /dev/null
+++ b/lib/gemspec.rb
@@ -0,0 +1,30 @@
+#!/usr/bin/env ruby
+require File.expand_path('../refinerycms-blog.rb', __FILE__)
+version = ::Refinery::Blog.version
+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
+
+gemspec = <<EOF
+Gem::Specification.new do |s|
+ s.name = %q{refinerycms-blog}
+ s.version = %q{#{version}}
+ s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
+ s.date = %q{#{Time.now.strftime('%Y-%m-%d')}}
+ 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.files = %w(
+ #{files.join("\n ")}
+ )
+ #{"s.test_files = %w(
+ #{Dir.glob("test/**/*.rb").join("\n ")}
+ )" if File.directory?("test")}
+end
+EOF
+
+File.open(File.expand_path("../../refinerycms-blog.gemspec", __FILE__), 'w').puts(gemspec) \ No newline at end of file
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
new file mode 100644
index 0000000..5ee61bc
--- /dev/null
+++ b/lib/refinerycms-blog.rb
@@ -0,0 +1,9 @@
+module Refinery
+ module Blog
+ class << self
+ def version
+ %q{0.9.8}
+ end
+ end
+ end
+end \ No newline at end of file