spud_core 1.0.0.rc1.1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1096b5f64c240350c7b084f05f2ef7f15d1611dd
4
- data.tar.gz: f82658ddc3c0b78ea41c92f2d193369cf8fe6912
3
+ metadata.gz: b7435afd5d18b2fab9a122e572872216224c4947
4
+ data.tar.gz: 78deb1e17aa6843c3780c23fe8f74efba5daffec
5
5
  SHA512:
6
- metadata.gz: 149f6e15b3c198b782d76c64f1e7d339357e9e020c7c04265f81aec6699642eb1456d0facb3b85f668308fc8ae8874a62a2892a4484c48f7babbda14dee49efd
7
- data.tar.gz: 1f726825a30c49fbdd1aa2650c006470f9b9e5fad1b84afbecb42d48c776b63b1707a64485728aa13e9c22b0c4057543aa6ec240d0106996c4eb1e3240de82b7
6
+ metadata.gz: 1d7c921373bc11113dcad3a78195b1bbbe884f769ca7318952194c3c1a54e0f4490bbc53f08b3d212f3f8b33d228070366d53a2d836ea3398eec0b7c22d907a1
7
+ data.tar.gz: 2a940d619e03a726e183bf552dffccc63f29a2302850db7641881fb5bbbacd1198728171e2faeee684dbf7784b7d546f69092980f8a1d019a305b7226b8f80a0
@@ -28,7 +28,7 @@ class Spud::ApplicationController < ActionController::Base
28
28
 
29
29
  def current_user_permissions
30
30
  return @current_user_permissions if defined?(@current_user_permissions)
31
- @current_user_permissions = current_user.spud_admin_permissions.where(:access => true).all
31
+ @current_user_permissions = current_user.spud_admin_permissions.where(:access => true).load
32
32
  end
33
33
 
34
34
  def require_user
@@ -1,10 +1,11 @@
1
1
  module Concerns
2
- module SpudAuthentication
3
- extend ActiveSupport::Concern
4
- included do
5
- acts_as_authentic do |c|
6
- # c.my_config_option = my_value # for available options see documentation in: Authlogic::ActsAsAuthentic
7
- end # block optional
2
+ module SpudAuthentication
3
+ extend ActiveSupport::Concern
4
+ included do
5
+ acts_as_authentic do |c|
6
+ c.crypto_provider = Authlogic::CryptoProviders::Sha512
7
+ # c.my_config_option = my_value # for available options see documentation in: Authlogic::ActsAsAuthentic
8
+ end # block optional
9
+ end
8
10
  end
9
- end
10
- end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Core
3
- VERSION = "1.0.0.rc1.1"
3
+ VERSION = "1.0.0.rc2"
4
4
  end
5
5
  end
@@ -9,51 +9,51 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120329174000) do
14
+ ActiveRecord::Schema.define(version: 20120329174000) do
15
15
 
16
- create_table "spud_admin_permissions", :force => true do |t|
16
+ create_table "spud_admin_permissions", force: true do |t|
17
17
  t.integer "user_id"
18
18
  t.string "name"
19
19
  t.boolean "access"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
22
  t.string "scope"
23
23
  end
24
24
 
25
- create_table "spud_user_settings", :force => true do |t|
25
+ create_table "spud_user_settings", force: true do |t|
26
26
  t.integer "spud_user_id"
27
27
  t.string "key"
28
28
  t.string "value"
29
- t.datetime "created_at", :null => false
30
- t.datetime "updated_at", :null => false
29
+ t.datetime "created_at"
30
+ t.datetime "updated_at"
31
31
  end
32
32
 
33
- create_table "spud_users", :force => true do |t|
33
+ create_table "spud_users", force: true do |t|
34
34
  t.string "first_name"
35
35
  t.string "last_name"
36
36
  t.boolean "super_admin"
37
- t.string "login", :null => false
38
- t.string "email", :null => false
39
- t.string "crypted_password", :null => false
40
- t.string "password_salt", :null => false
41
- t.string "persistence_token", :null => false
42
- t.string "single_access_token", :null => false
43
- t.string "perishable_token", :null => false
44
- t.integer "login_count", :default => 0, :null => false
45
- t.integer "failed_login_count", :default => 0, :null => false
37
+ t.string "login", null: false
38
+ t.string "email", null: false
39
+ t.string "crypted_password", null: false
40
+ t.string "password_salt", null: false
41
+ t.string "persistence_token", null: false
42
+ t.string "single_access_token", null: false
43
+ t.string "perishable_token", null: false
44
+ t.integer "login_count", default: 0, null: false
45
+ t.integer "failed_login_count", default: 0, null: false
46
46
  t.datetime "last_request_at"
47
47
  t.datetime "current_login_at"
48
48
  t.datetime "last_login_at"
49
49
  t.string "current_login_ip"
50
50
  t.string "last_login_ip"
51
- t.datetime "created_at", :null => false
52
- t.datetime "updated_at", :null => false
51
+ t.datetime "created_at"
52
+ t.datetime "updated_at"
53
53
  t.string "time_zone"
54
54
  end
55
55
 
56
- add_index "spud_users", ["email"], :name => "index_spud_users_on_email"
57
- add_index "spud_users", ["login"], :name => "index_spud_users_on_login"
56
+ add_index "spud_users", ["email"], name: "index_spud_users_on_email", using: :btree
57
+ add_index "spud_users", ["login"], name: "index_spud_users_on_login", using: :btree
58
58
 
59
59
  end
@@ -1,17 +1,46 @@
1
- Connecting to database specified by database.yml
2
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
3
-  (22.6ms) DROP DATABASE IF EXISTS `spud_core_test`
4
-  (0.3ms) CREATE DATABASE `spud_core_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
5
-  (23.9ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
6
-  (20.2ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
7
-  (9.2ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
8
-  (13.0ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
9
-  (11.9ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
10
-  (10.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
11
-  (15.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
12
-  (0.1ms) SELECT version FROM `schema_migrations`
13
-  (1.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329174000')
14
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111214161011')
15
-  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20111214161146')
16
-  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120327124229')
17
-  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120328235431')
1
+  (9.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
2
+  (13.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
4
+ Migrating to CreateSpudAdminPermissions (20111214161011)
5
+  (8.8ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
6
+  (0.1ms) BEGIN
7
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20111214161011')
8
+  (0.3ms) COMMIT
9
+ Migrating to CreateSpudUsers (20111214161146)
10
+  (8.2ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
11
+  (9.5ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`) 
12
+  (8.4ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
13
+  (0.1ms) BEGIN
14
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20111214161146')
15
+  (0.2ms) COMMIT
16
+ Migrating to AddTimeZoneToSpudUser (20120327124229)
17
+  (13.2ms) ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
18
+  (0.1ms) BEGIN
19
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120327124229')
20
+  (0.5ms) COMMIT
21
+ Migrating to AddScopeToSpudAdminPermissions (20120328235431)
22
+  (10.5ms) ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
23
+  (0.1ms) BEGIN
24
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120328235431')
25
+  (0.2ms) COMMIT
26
+ Migrating to CreateSpudUserSettings (20120329174000)
27
+  (8.3ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
28
+  (0.1ms) BEGIN
29
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329174000')
30
+  (0.2ms) COMMIT
31
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
32
+  (6.6ms) DROP DATABASE IF EXISTS `spud_core_test`
33
+  (0.4ms) CREATE DATABASE `spud_core_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
34
+  (8.2ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime, `updated_at` datetime, `scope` varchar(255)) ENGINE=InnoDB
35
+  (8.5ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
36
+  (6.7ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime, `updated_at` datetime, `time_zone` varchar(255)) ENGINE=InnoDB
37
+  (8.7ms) CREATE INDEX `index_spud_users_on_email` USING btree ON `spud_users` (`email`)
38
+  (9.7ms) CREATE INDEX `index_spud_users_on_login` USING btree ON `spud_users` (`login`) 
39
+  (8.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
40
+  (10.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 
41
+  (0.2ms) SELECT version FROM `schema_migrations`
42
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329174000')
43
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111214161011')
44
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20111214161146')
45
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120327124229')
46
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120328235431')