caboose-cms 0.5.184 → 0.5.185

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2JmMTlhNjNlMDNmZThlYzhmODIwY2NhNjg0MTJlNTM0MGNkODM3NQ==
4
+ MmRlYWZiMTExNDAyMjk2MmU1YmQ1ZWU2MDhhOGVkM2M4YTAzNmFmNA==
5
5
  data.tar.gz: !binary |-
6
- YzBlMzdlZmM3ZmRmMWRkYTlmMjRjOTg0MDkxNTUxMGIwZjc2ZDhmMQ==
6
+ ZGQxYzYzYWUyNzZkMDlkMDY2MjI0YjAwNmU5NzE0Mjg3NDc1YmYxZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTJlMGIwZWZkOTE1MTI2OThhMzNmMzE0NTFhZDZkY2EwZDNlYTA5YzBjYTZj
10
- MmU2NDgxNDRkNWFiNmIwNTM2ZTJkNTM3YjIyNmFhYzUzMzVhYzczZTFkN2Nk
11
- YjVjNDgyOWRiYzI0YzQwMWQwYTljY2FjOWZkYmMwMWM1ODczZTU=
9
+ NWNiOGRlM2Y5MzMwZDRhZTBhODcwYjkzNWM0ZjRkMDY3NjE3MjZkYjljMWUy
10
+ Y2ZkODAzODU5NGU3MmVkNWFiM2UzNjZmOWVkYWUxZjY3ZjIyNzg1OWI3ZWY0
11
+ ZGE1ZmUxY2JiOWEyZTZlNjljYjdhZDE0YmJhMWFhNTNiZmYzNDU=
12
12
  data.tar.gz: !binary |-
13
- ZGEwNTVmY2MzOWNhYzc1NDFiYmU5MmJlZjU2ZDkzZWJiODIwNjhkMzQ3ZDc0
14
- ODEwZmE1NjBhNDdjNTg0MTEwODVkZGNjYmJkMTE2ZGNmNzg1M2MyYzNjZDZl
15
- NjQzZjIwZjc1MjY1MDA3Yjc1NDIwYWNiOTI5ODQ5YmZlNjc4Y2U=
13
+ ZjI0MTlhYzhjMDUzODRlOTJmMTJlNDQ2ZWI3YmE3ODEyMzU1YmMxYzNlYTNl
14
+ MmU1ZDA4OTk4YjRkNTQ2ZTQ4Y2U1MGUwN2YzNTUzNWQxYTAzNThhOTNjMjRl
15
+ NDRkNjE0MmNiMTYwNGJjZTJiNDA3NzIyZmYxOGVkNDczZmJhYzM=
@@ -50,7 +50,7 @@ module Caboose
50
50
  @site = Site.find(params[:id])
51
51
 
52
52
  # Create an admin user for the account
53
- if User.where(:username => 'admin', :site_id => @site.id).exists?
53
+ if !User.where(:username => 'admin', :site_id => @site.id).exists?
54
54
  admin_user = User.create(:username => 'admin', :site_id => @site.id, :password => Digest::SHA1.hexdigest(Caboose::salt + 'caboose'))
55
55
  admin_role = Role.where(:name => 'Admin').first
56
56
  if admin_role
@@ -101,7 +101,7 @@ module Caboose
101
101
  end
102
102
 
103
103
  # Create an admin user for the account
104
- if User.where(:username => 'admin', :site_id => site.id).exists?
104
+ if !User.where(:username => 'admin', :site_id => site.id).exists?
105
105
  admin_user = User.create(:username => 'admin', :site_id => site.id, :password => Digest::SHA1.hexdigest(Caboose::salt + 'caboose'))
106
106
  admin_role = Role.where(:name => 'Admin').first
107
107
  if admin_role
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.184'
2
+ VERSION = '0.5.185'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.184
4
+ version: 0.5.185
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry