refinerycms 0.9.5.8 → 0.9.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,8 @@
2
2
  require 'fileutils'
3
3
  REFINERY_ROOT = File.expand_path(File.dirname(__FILE__) << "/..")
4
4
  unless (app_path = ARGV.shift).nil? or app_path.length == 0
5
- RAILS_ROOT = app_path =~ /(\.(\/)?)/ ? Dir.getwd : app_path
5
+ # if "" or "." or "./" is specified then get the current directory otherwise accept the specified app_path.
6
+ RAILS_ROOT = (app_path.length <= 2 and ((is_current_dir = app_path =~ /(\.(\/)?)/).nil? or is_current_dir < 2)) ? Dir.getwd : app_path
6
7
  if File.exists? RAILS_ROOT
7
8
  if ARGV.include?("--force")
8
9
  # remove the contents of the current directory
@@ -18,10 +18,10 @@ class PagesController < ApplicationController
18
18
  if @page.skip_to_first_child
19
19
  first_live_child = @page.children.find_by_draft(false, :order => "position ASC")
20
20
  redirect_to first_live_child.url unless first_live_child.nil?
21
- end
22
-
23
- respond_to do |wants|
24
- wants.html
21
+ else
22
+ respond_to do |wants|
23
+ wants.html
24
+ end
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.8
4
+ version: 0.9.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-16 00:00:00 +13:00
14
+ date: 2009-11-17 00:00:00 +13:00
15
15
  default_executable: refinery
16
16
  dependencies: []
17
17