aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 21:13:51 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 21:13:51 +1200
commitaa0b978a06d41a8ac5c47daff91bfd79d7a86cd0 (patch)
tree2f068d8e92bb36e3751a52a7e977a14a9031e574
parent54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45 (diff)
downloadrefinerycms-blog-aa0b978a06d41a8ac5c47daff91bfd79d7a86cd0.tar.gz
refinerycms-blog-aa0b978a06d41a8ac5c47daff91bfd79d7a86cd0.tar.bz2
refinerycms-blog-aa0b978a06d41a8ac5c47daff91bfd79d7a86cd0.zip
Add gemspec abilities and gemspec. Set initial version at 0.9.8
-rw-r--r--lib/gemspec.rb30
-rw-r--r--lib/refinerycms-blog.rb9
-rw-r--r--refinerycms-blog.gemspec64
3 files changed, 103 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
diff --git a/refinerycms-blog.gemspec b/refinerycms-blog.gemspec
new file mode 100644
index 0000000..af2831f
--- /dev/null
+++ b/refinerycms-blog.gemspec
@@ -0,0 +1,64 @@
+Gem::Specification.new do |s|
+ s.name = %q{refinerycms-blog}
+ s.version = %q{0.9.8}
+ s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
+ s.date = %q{2010-08-09}
+ 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(
+ app
+ app/controllers
+ app/controllers/admin
+ app/controllers/admin/blog
+ app/controllers/admin/blog/categories_controller.rb
+ app/controllers/admin/blog/comments_controller.rb
+ app/controllers/admin/blog/posts_controller.rb
+ app/controllers/admin/blog/settings_controller.rb
+ app/controllers/blog_posts_controller.rb
+ app/helpers
+ app/models
+ app/models/blog_category.rb
+ app/models/blog_comment.rb
+ app/models/blog_post.rb
+ app/views
+ app/views/admin
+ app/views/admin/blog
+ app/views/admin/blog/_submenu.html.erb
+ app/views/admin/blog/categories
+ app/views/admin/blog/comments
+ app/views/admin/blog/comments/index.html.erb
+ app/views/admin/blog/posts
+ app/views/admin/blog/posts/_form.html.erb
+ app/views/admin/blog/posts/_post.html.erb
+ app/views/admin/blog/posts/_sortable_list.html.erb
+ app/views/admin/blog/posts/edit.html.erb
+ app/views/admin/blog/posts/index.html.erb
+ app/views/admin/blog/posts/new.html.erb
+ app/views/blog_posts
+ app/views/blog_posts/index.html.erb
+ app/views/blog_posts/show.html.erb
+ config
+ config/locales
+ config/locales/en.yml
+ config/locales/nb.yml
+ config/locales/nl.yml
+ config/routes.rb
+ generators
+ generators/refinery_blog
+ generators/refinery_blog/refinery_blog_generator.rb
+ generators/refinery_blog/templates
+ generators/refinery_blog/templates/migration.rb
+ generators/refinery_blog/templates/seed.rb
+ lib
+ lib/gemspec.rb
+ lib/refinerycms-blog.rb
+ rails
+ rails/init.rb
+ readme.md
+ )
+
+end