lockdown 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,10 @@ module Lockdown
10
10
  @permissions = Lockdown::System.get_permissions
11
11
  @user_groups = Lockdown::System.get_user_groups
12
12
 
13
+ unless ::Permission.table_exists? && Lockdown.user_group_class.table_exists?
14
+ puts ">> Lockdown tables not found. Skipping database sync."
15
+ return
16
+ end
13
17
  create_new_permissions
14
18
 
15
19
  delete_extinct_permissions
data/lib/lockdown.rb CHANGED
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), "lockdown", "helper")
3
3
  module Lockdown
4
4
  extend Lockdown::Helper
5
5
 
6
- VERSION = '1.2.0'
6
+ VERSION = '1.2.1'
7
7
 
8
8
  # Returns the version string for the library.
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-05 00:00:00 -04:00
12
+ date: 2009-08-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency