classiccms 0.6.9 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,10 @@ module Classiccms
7
7
  set :multi_views, [File.join(Classiccms::ROOT, 'views/admin'), File.join(Classiccms::ROOT, 'public')]
8
8
  set :root, Dir.pwd
9
9
  set :public_folder, Proc.new { File.join(Classiccms::ROOT, 'public/admin') }
10
+ before do
11
+ pass if @user != nil
12
+ redirect '/login'
13
+ end
10
14
 
11
15
  get '/' do
12
16
  show 'index'
@@ -1,3 +1,3 @@
1
1
  module Classiccms #:nodoc
2
- VERSION = "0.6.9"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classiccms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-02 00:00:00.000000000 Z
12
+ date: 2013-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec