Skip to content
Browse files

Prep for bcms 3.3 upgrade.

  • Loading branch information...
1 parent 340ae85 commit d3961fa082dca35a10dae160cf4ef2a42ee2e70c @peakpg peakpg committed Mar 17, 2011
Showing with 63 additions and 105 deletions.
  1. +0 −34 Rakefile
  2. +54 −67 bcms_blog.gemspec
  3. +4 −4 lib/bcms_blog/routes.rb
  4. +5 −0 lib/tasks/build_gem.rake
View
34 Rakefile
@@ -8,37 +8,3 @@ require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "bcms_blog"
- gemspec.rubyforge_project = "browsercms"
- gemspec.summary = "The Blog Module for BrowserCMS"
- gemspec.email = "github@browsermedia.com"
- gemspec.homepage = "http://browsercms.org"
- gemspec.description = "The Blog Module for BrowserCMS"
- gemspec.authors = ["BrowserMedia"]
- gemspec.files = []
- gemspec.files += Dir["app/**/*"]
- gemspec.files += Dir["doc/**/*"]
- gemspec.files += Dir["db/migrate/[0-9]*.rb"].reject {|f| f =~ /_browsercms|_load_seed/ }
- gemspec.files += Dir["lib/bcms_blog.rb"]
- gemspec.files += Dir["lib/bcms_blog/*"]
- gemspec.files += Dir["rails/init.rb"]
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
-end
-
-# These are new tasks
-begin
- require 'rake/contrib/sshpublisher'
- namespace :rubyforge do
- desc "Release gem and RDoc documentation to RubyForge"
- task :release => ["rubyforge:release:gem"]
- end
-rescue LoadError
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
-end
-
View
121 bcms_blog.gemspec
@@ -1,8 +1,4 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE
-# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
-# -*- encoding: utf-8 -*-
-
+# Editted directly
Gem::Specification.new do |s|
s.name = %q{bcms_blog}
s.version = "1.1.0"
@@ -16,72 +12,63 @@ Gem::Specification.new do |s|
"LICENSE.txt",
"README.markdown"
]
- s.files = [
- "app/controllers/application_controller.rb",
- "app/controllers/cms/blog_comments_controller.rb",
- "app/controllers/cms/blog_posts_controller.rb",
- "app/controllers/cms/blogs_controller.rb",
- "app/helpers/application_helper.rb",
- "app/helpers/cms/blog_helper.rb",
- "app/models/blog.rb",
- "app/models/blog_comment.rb",
- "app/models/blog_group_membership.rb",
- "app/models/blog_post.rb",
- "app/portlets/blog_post_portlet.rb",
- "app/portlets/blog_posts_portlet.rb",
- "app/views/cms/blog_comments/_form.html.erb",
- "app/views/cms/blog_comments/render.html.erb",
- "app/views/cms/blog_posts/_form.html.erb",
- "app/views/cms/blog_posts/no_access.html.erb",
- "app/views/cms/blog_posts/render.html.erb",
- "app/views/cms/blogs/_form.html.erb",
- "app/views/cms/blogs/admin_only.html.erb",
- "app/views/cms/blogs/render.html.erb",
- "app/views/partials/_blog_post.html.erb",
- "app/views/partials/_blog_post.html.haml",
- "app/views/portlets/blog_post/_form.html.erb",
- "app/views/portlets/blog_post/render.html.erb",
- "app/views/portlets/blog_posts/_form.html.erb",
- "app/views/portlets/blog_posts/render.html.haml",
- "db/migrate/20090415000000_create_blogs.rb",
- "db/migrate/20090415000001_create_blog_posts.rb",
- "db/migrate/20090415000002_create_blog_comments.rb",
- "db/migrate/20090415000003_add_attachment_to_blog_posts.rb",
- "db/migrate/20100521042244_add_moderate_comments_to_blog.rb",
- "doc/README_FOR_APP",
- "doc/migrate_to_20100427.rb",
- "doc/release_notes.txt",
- "lib/bcms_blog.rb",
- "lib/bcms_blog/routes.rb",
- "rails/init.rb"
- ]
+ s.name = "bcms_blog"
+ s.rubyforge_project = "browsercms"
+ s.summary = "The Blog Module for BrowserCMS"
+ s.email = "github@browsermedia.com"
+ s.homepage = "http://www.github.com/browsermedia/bcms_blog"
+ s.description = "The Blog Module for BrowserCMS"
+ s.authors = ["BrowserMedia"]
+ s.files += Dir["app/**/*"]
+ s.files += Dir["doc/**/*"]
+ s.files += Dir["db/migrate/[0-9]*.rb"].reject {|f| f =~ /_browsercms|_load_seed/ }
+ s.files += Dir["lib/bcms_blog.rb"]
+ s.files += Dir["lib/bcms_blog/*"]
+ s.files += Dir["rails/init.rb"]
+ # s.files = [
+ # "app/controllers/application_controller.rb",
+ # "app/controllers/cms/blog_comments_controller.rb",
+ # "app/controllers/cms/blog_posts_controller.rb",
+ # "app/controllers/cms/blogs_controller.rb",
+ # "app/helpers/application_helper.rb",
+ # "app/helpers/cms/blog_helper.rb",
+ # "app/models/blog.rb",
+ # "app/models/blog_comment.rb",
+ # "app/models/blog_group_membership.rb",
+ # "app/models/blog_post.rb",
+ # "app/portlets/blog_post_portlet.rb",
+ # "app/portlets/blog_posts_portlet.rb",
+ # "app/views/cms/blog_comments/_form.html.erb",
+ # "app/views/cms/blog_comments/render.html.erb",
+ # "app/views/cms/blog_posts/_form.html.erb",
+ # "app/views/cms/blog_posts/no_access.html.erb",
+ # "app/views/cms/blog_posts/render.html.erb",
+ # "app/views/cms/blogs/_form.html.erb",
+ # "app/views/cms/blogs/admin_only.html.erb",
+ # "app/views/cms/blogs/render.html.erb",
+ # "app/views/partials/_blog_post.html.erb",
+ # "app/views/partials/_blog_post.html.haml",
+ # "app/views/portlets/blog_post/_form.html.erb",
+ # "app/views/portlets/blog_post/render.html.erb",
+ # "app/views/portlets/blog_posts/_form.html.erb",
+ # "app/views/portlets/blog_posts/render.html.haml",
+ # "db/migrate/20090415000000_create_blogs.rb",
+ # "db/migrate/20090415000001_create_blog_posts.rb",
+ # "db/migrate/20090415000002_create_blog_comments.rb",
+ # "db/migrate/20090415000003_add_attachment_to_blog_posts.rb",
+ # "db/migrate/20100521042244_add_moderate_comments_to_blog.rb",
+ # "doc/README_FOR_APP",
+ # "doc/migrate_to_20100427.rb",
+ # "doc/release_notes.txt",
+ # "lib/bcms_blog.rb",
+ # "lib/bcms_blog/routes.rb",
+ # "rails/init.rb"
+ # ]
s.homepage = %q{http://browsercms.org}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{browsercms}
s.rubygems_version = %q{1.3.6}
s.summary = %q{The Blog Module for BrowserCMS}
- s.test_files = [
- "test/factories.rb",
- "test/functional/blog_post_test.rb",
- "test/functional/blog_test.rb",
- "test/functional/cms/blog_posts_controller_test.rb",
- "test/functional/cms/blogs_controller_test.rb",
- "test/performance/browsing_test.rb",
- "test/test_helper.rb",
- "test/test_logging.rb",
- "test/unit/blog_comment_test.rb",
- "test/unit/blog_post_test.rb",
- "test/unit/blog_test.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ s.add_dependency('browsercms', '3.3.0')
end
View
8 lib/bcms_blog/routes.rb
@@ -1,9 +1,9 @@
module Cms::Routes
def routes_for_bcms_blog
- namespace(:cms) do |cms|
- cms.content_blocks :blogs
- cms.content_blocks :blog_posts
- cms.content_blocks :blog_comments
+ namespace(:cms) do
+ content_blocks :blogs
+ content_blocks :blog_posts
+ content_blocks :blog_comments
end
end
end
View
5 lib/tasks/build_gem.rake
@@ -0,0 +1,5 @@
+# Add any tasks from your Rake file here (if you were using, say, Jeweler to build gems)
+
+# Otherwise, this enabled Bundler to build your gem
+require 'bundler'
+Bundler::GemHelper.install_tasks

0 comments on commit d3961fa

Please sign in to comment.
Something went wrong with that request. Please try again.