defcon 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/defcon/admin_user.rb +3 -1
- data/db/migrate/20141008214632_add_index_to_defcon_admin_users.rb +1 -1
- data/db/migrate/20141009215910_add_email_to_defcon_admin_users.rb +1 -1
- data/lib/defcon/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +19 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1602a89c4a95e2c3e88fa987b7f6a8b5ca68f1b
|
4
|
+
data.tar.gz: 809cf2abe2a1eaaa683225ead302e37e8d84fd97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0942117ab5927d3ae8b0466c82a9085d0837fa6f5d28cf873baed4005baf35f306eea7b3442b970d23655f8d8b4e3c5c3656d49e1142d1de7cb23bb8d19a9875
|
7
|
+
data.tar.gz: c93672b916e16d23a2b666f625fb42bb747649d95550dde6cca0f27ba9cfd21418e3bf26da992761ca0f2750265391f13e902d2047714d45fcd918d66b4d5088
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Defcon
|
2
2
|
class AdminUser < ActiveRecord::Base
|
3
3
|
has_secure_password
|
4
|
-
|
4
|
+
|
5
|
+
validates :username, presence: true, :uniqueness => { :case_sensitive => false }
|
6
|
+
validates :email, :uniqueness => { :case_sensitive => false }
|
5
7
|
|
6
8
|
before_validation :set_defaults
|
7
9
|
|
data/lib/defcon/version.rb
CHANGED
Binary file
|
File without changes
|
@@ -2046,3 +2046,22 @@ Migrating to AddEmailToDefconAdminUsers (20141009215910)
|
|
2046
2046
|
FROM sqlite_temp_master
|
2047
2047
|
WHERE name='index_defcon_admin_users_on_username' AND type='index'
|
2048
2048
|
[0m
|
2049
|
+
[1m[36m (129.1ms)[0m [1mCREATE TABLE "defcon_admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password_digest" varchar(255), "read_only" boolean, "attempts" integer, "max_attempts" integer, "master" boolean, "priority" integer, "created_at" datetime, "updated_at" datetime, "email" varchar(255)) [0m
|
2050
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2051
|
+
[1m[36m (134.3ms)[0m [1mCREATE INDEX "index_defcon_admin_users_on_email" ON "defcon_admin_users" ("email")[0m
|
2052
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
2053
|
+
FROM sqlite_master
|
2054
|
+
WHERE name='index_defcon_admin_users_on_email' AND type='index'
|
2055
|
+
UNION ALL
|
2056
|
+
SELECT sql
|
2057
|
+
FROM sqlite_temp_master
|
2058
|
+
WHERE name='index_defcon_admin_users_on_email' AND type='index'
|
2059
|
+
|
2060
|
+
[1m[36m (154.3ms)[0m [1mCREATE INDEX "index_defcon_admin_users_on_username" ON "defcon_admin_users" ("username")[0m
|
2061
|
+
[1m[35m (150.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2062
|
+
[1m[36m (154.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2063
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
2064
|
+
[1m[36m (153.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141009215910')[0m
|
2065
|
+
[1m[35m (153.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141008173352')
|
2066
|
+
[1m[36m (177.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141008214632')[0m
|
2067
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cleophus Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- test/dummy/config/secrets.yml
|
116
116
|
- test/dummy/db/development.sqlite3
|
117
117
|
- test/dummy/db/schema.rb
|
118
|
+
- test/dummy/db/test.sqlite3
|
118
119
|
- test/dummy/log/development.log
|
119
120
|
- test/dummy/public/404.html
|
120
121
|
- test/dummy/public/422.html
|
@@ -200,6 +201,7 @@ test_files:
|
|
200
201
|
- test/dummy/config/environments/development.rb
|
201
202
|
- test/dummy/config/environments/production.rb
|
202
203
|
- test/dummy/config/secrets.yml
|
204
|
+
- test/dummy/db/test.sqlite3
|
203
205
|
- test/dummy/db/schema.rb
|
204
206
|
- test/dummy/db/development.sqlite3
|
205
207
|
- test/dummy/Rakefile
|