casino 4.1.0 → 4.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51eff1f39a70f787e2addb40bef646e6d3c5d280
4
- data.tar.gz: 79bff8cc8bd3f72da3474ff258b6f85c8ad0b4be
3
+ metadata.gz: aea38a541f37cf37f8106c82861e7b4bbcf08f57
4
+ data.tar.gz: a0501db8fd072f527c48cc28a0639293facd9a87
5
5
  SHA512:
6
- metadata.gz: eb885c575ed4c09c1aeb767994e05b6859c4a0682dbb5b3a84ae4a3479271b2447faaaf5cdb9641b7d5e1eed763e1d8e1af881c7ecb5bee0c90bc340cf60de21
7
- data.tar.gz: a4199bd96c19138bc07230598fcd80c36b4b2c2b3f4c9ae3e5d1a8fcc4a4eab4a3dbe9b02bcf03dfc2beab8212b7fa432ff85f4c7e1e5c610e777c69d2e97c5e
6
+ metadata.gz: e729f203027c107010a254817f0cdd4a662223936528fe3b4255b6f4da2735e5cab92e93d223d46ca95e3fc7a6e920125402a876bb56f42def10b2681e2d6571
7
+ data.tar.gz: d06fef0171fa04e73217f9fca0fe82f608c746254526f429fdb41f3ceed05e1f885cb2588ddc3ad36e933bc3116409e6ce4ec10bed57d8ca931379a5bbf09805
@@ -2,10 +2,4 @@ class CASino::LoginAttempt < ActiveRecord::Base
2
2
  include CASino::ModelConcern::BrowserInfo
3
3
 
4
4
  belongs_to :user
5
-
6
- def username=(username)
7
- super
8
-
9
- self.user = CASino::User.find_by_username(username)
10
- end
11
5
  end
@@ -0,0 +1,11 @@
1
+ class RemoveUsernameFromLoginAttempts < ActiveRecord::Migration
2
+ def up
3
+ remove_column :casino_login_attempts, :username
4
+ change_column_null :casino_login_attempts, :user_id, false
5
+ end
6
+
7
+ def down
8
+ add_column :casino_login_attempts, :username, :string
9
+ change_column_null :casino_login_attempts, :user_id, true
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module CASino
2
- VERSION = '4.1.0'
2
+ VERSION = '4.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casino
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Caspar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-24 00:00:00.000000000 Z
13
+ date: 2016-05-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -415,6 +415,7 @@ files:
415
415
  - db/migrate/20140831205255_create_auth_token_tickets.rb
416
416
  - db/migrate/20151022192752_add_user_ip_to_ticket_granting_ticket.rb
417
417
  - db/migrate/20160502074450_create_login_attempts.rb
418
+ - db/migrate/20160524121117_remove_username_from_login_attempts.rb
418
419
  - lib/assets/.gitkeep
419
420
  - lib/casino.rb
420
421
  - lib/casino/authenticator.rb