alchemy-devise 4.3.0 → 4.3.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
  SHA256:
3
- metadata.gz: 16abe852531b458c5467ae7f0bc7215cd1f97aa1e0778f52175a1b446fc49f92
4
- data.tar.gz: cb08640f244c3622bc34e9796d3876f9b648765129a9d39f62c4be2281b9c679
3
+ metadata.gz: c8ff701dc927764bc7c9cf43cc470f882d35c50bf4ad9f9a29c828b33934200e
4
+ data.tar.gz: b78d425267af7117f47e525553c63a1a744a0ec19857b0b615a2f01c26daac24
5
5
  SHA512:
6
- metadata.gz: a7b5b4e45e51d231b83d50d279816869250d90c26cca96f701d627e075636f55476e198320037701c34cd33e0be4bdae6873060f09582bf439ce6d780fd20606
7
- data.tar.gz: 056c257c023881486a96e15176de2c8802dbac68ff3766dd3e10fe63c040e607d5358828fa277fa74d38115872f4fd5d760a473def8283f64a17ff4de4c6a9fa
6
+ metadata.gz: '0898ee0e43338c75145a93b7c7007ca86f60a1896688561f705a83fdc6f521f54eeb1ad31639416c2605f3028b62f517a3d6de2a53d07066bb57874383494f35'
7
+ data.tar.gz: 95f9ca999bc45d9ceaff08bde3369e296aa546714c029491f33b93e0228f0d44900a43cb4a70e1e28b1c2517a9006daa8f598e44d8c39dc26b34a283235c4142
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/alchemy-devise.svg)](http://badge.fury.io/rb/alchemy-devise) [![Test Coverage](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/badges/coverage.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/coverage) [![Code Climate](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/badges/gpa.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy-devise) [![security](https://hakiri.io/github/AlchemyCMS/alchemy-devise/master.svg)](https://hakiri.io/github/AlchemyCMS/alchemy-devise/master)
6
6
 
7
- AlchemyCMS has no authentication in its core. So it is possibly to bring your own authentication and use it to authorize users in AlchemyCMS. If you don't have your own authentication, you can use this gem.
7
+ AlchemyCMS has no authentication in its core. So it is possible to bring your own authentication and use it to authorize users in AlchemyCMS. If you don't have your own authentication, you can use this gem.
8
8
 
9
9
  ## Install
10
10
 
@@ -1,12 +1,18 @@
1
- Alchemy::BaseController.class_eval do
2
- before_action :store_user_request_time
1
+ module Alchemy
2
+ module BaseControllerExtension
3
+ def self.prepended(base)
4
+ base.before_action(:store_user_request_time)
5
+ end
3
6
 
4
- private
7
+ private
5
8
 
6
- # Stores the users request time.
7
- def store_user_request_time
8
- if alchemy_user_signed_in?
9
- current_alchemy_user.store_request_time!
9
+ # Stores the users request time.
10
+ def store_user_request_time
11
+ if alchemy_user_signed_in?
12
+ current_alchemy_user.store_request_time!
13
+ end
10
14
  end
11
15
  end
12
16
  end
17
+
18
+ Alchemy::BaseController.prepend Alchemy::BaseControllerExtension
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module Devise
3
- VERSION = "4.3.0"
3
+ VERSION = "4.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 4.6.0
39
+ version: 4.7.1
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4.99'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 4.6.0
49
+ version: 4.7.1
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4.99'