Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bug on rake package

fix missing change on page model about scope on all pages instead of no draft
  • Loading branch information...
commit 997098850eb792cc76d5a317a591539191d89105 1 parent 74341a9
@yaf yaf authored
Showing with 3 additions and 4 deletions.
  1. +1 −2  app/models/page.rb
  2. +2 −2 lib/tasks/release.rake
View
3  app/models/page.rb
@@ -32,11 +32,10 @@ def self.default_order
end
def self.search_paginate(search_hash, paginate_hash)
- list_function = ["Page"] + function_search_no_draft(search_hash)
+ list_function = ["Page"] + function_search_all_posts(search_hash)
paginate_hash[:order] = 'title ASC'
list_function << "page(paginate_hash[:page])"
list_function << "per(paginate_hash[:per_page])"
-
eval(list_function.join('.'))
end
View
4 lib/tasks/release.rake
@@ -1,5 +1,5 @@
# coding: utf-8
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
PKG_VERSION = "6.1.0"
PKG_NAME = "typo"
@@ -30,7 +30,7 @@ spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
end
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.need_tar = true
p.need_zip = true
end
Please sign in to comment.
Something went wrong with that request. Please try again.