cartoonist-blog 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,7 @@ class BlogController < ApplicationController
21
21
  @disabled_next = true
22
22
  @title = "Blog for #{Setting[:site_name]}"
23
23
  render :show
24
+ cache_page_as ".#{cache_type}.tmp.html" if Cartoonist::RootPath.current_key == :blog
24
25
  cache_page_as "blog.#{cache_type}.tmp.html"
25
26
  end
26
27
 
@@ -1,7 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = "cartoonist-blog"
3
2
  raise "Cannot find version file!" unless File.exists?(File.join(File.dirname(__FILE__), "../CARTOONIST_VERSION"))
4
- s.version = File.read File.join(File.dirname(__FILE__), "../CARTOONIST_VERSION")
3
+ cartoonist_version = File.read(File.join(File.dirname(__FILE__), "../CARTOONIST_VERSION")).strip
4
+ s.name = "cartoonist-blog"
5
+ s.version = cartoonist_version
5
6
  s.date = Time.now.strftime "%Y-%m-%d"
6
7
  s.summary = "Cartoonist Blog"
7
8
  s.description = "This core plugin for Cartoonist adds a simple blog."
@@ -10,4 +11,5 @@ Gem::Specification.new do |s|
10
11
  s.files = `git ls-files`.split("\n")
11
12
  s.require_paths = ["lib"]
12
13
  s.homepage = "http://reasonnumber.com/cartoonist"
14
+ s.add_dependency "cartoonist", cartoonist_version
13
15
  end
@@ -1,6 +1,7 @@
1
1
  module CartoonistBlog
2
2
  class Engine < ::Rails::Engine
3
3
  Cartoonist::Admin::Tab.add :blog, :url => "/blog_admin", :order => 1
4
+ Cartoonist::RootPath.add :blog, "blog#index"
4
5
  Cartoonist::Navigation::Link.add :url => "/blog", :preview_url => "/blog_admin/preview", :class => "blog", :label => "application.layout.navigation.blog", :order => 1
5
6
  Cartoonist::Migration.add_for self
6
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-16 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-04-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cartoonist
16
+ requirement: &11734040 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.5
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *11734040
14
25
  description: This core plugin for Cartoonist adds a simple blog.
15
26
  email: reasonnumber@gmail.com
16
27
  executables: []