thecore_auth_commons 2.1.8 → 2.1.9

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: 9d1e9922e75a19cea7c0b3eb696a433de55942ec039762d039670fb5c4854e4b
4
- data.tar.gz: 8d2e8f7d0e896e8dba97a2959232ca5f7d9d0a250a70b09fad84aa04b56146b3
3
+ metadata.gz: ef7e450ac1f8017e5aa14651fd8e5f1165a265bbd6ee555c3a18253dfa24c129
4
+ data.tar.gz: fb7186b53bf7e7e38650d63f6a25fe3e7f85e82da25786b01d32165512892d49
5
5
  SHA512:
6
- metadata.gz: 6a9c98f5e45ceb721b1256db32388ca7d3c0f508257ae8dee1ae0956c71fce5686ca977a212c7006d4c3543e984f9573497272f36e3b293303f4ec14e939ac7d
7
- data.tar.gz: 6750472f46005368d4f3dfd82ea7d885367960759b280fcf7b7f079fa00b15c312aead61c8571bf07b2cb5c5fc490e21d284b7c6beeeb038ddb1da66e5ef5b94
6
+ metadata.gz: 84aa7f8d45e8b5a34cef6117e1c6b1598a185d6f000e7c92da60d89dc94d83bd59f7654855e6f79910971c7b22100ce0c19e1ed2a0425e53da7c932f0a706950
7
+ data.tar.gz: 2a1cb1f9a9b19a472b699da1e9881c1fcb32a6b427853f1de9bd06c712c8ae2211b693c2f48ffe2df5da9534fef731039fa4e14e3c6fbc6f9af04d3c55b4502a
@@ -1,7 +1,10 @@
1
+ require 'thecore_auth_commons_actioncontroller_concerns'
2
+
1
3
  Rails.application.configure do
2
4
  config.after_initialize do
3
5
  # In development be sure to load all the namespaces
4
6
  # in order to have working reflection and meta-programming.
7
+ #
5
8
  if Rails.env.development?
6
9
  Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
7
10
  Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
@@ -3,6 +3,7 @@ require "thecore_auth_commons/engine"
3
3
  require 'devise'
4
4
  require 'cancancan'
5
5
  require 'kaminari'
6
+ require 'http_accept_language'
6
7
 
7
8
  module ThecoreAuthCommons
8
9
  # Your code goes here...
@@ -1,3 +1,3 @@
1
1
  module ThecoreAuthCommons
2
- VERSION = '2.1.8'.freeze
2
+ VERSION = '2.1.9'.freeze
3
3
  end
@@ -0,0 +1,7 @@
1
+ module ThecoreAuthCommonsActioncontrollerConcerns
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ include HttpAcceptLanguage::AutoLocale
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_auth_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '1.1'
75
+ - !ruby/object:Gem::Dependency
76
+ name: http_accept_language
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.1'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.1'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: sqlite3
77
91
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +131,7 @@ files:
117
131
  - lib/thecore_auth_commons.rb
118
132
  - lib/thecore_auth_commons/engine.rb
119
133
  - lib/thecore_auth_commons/version.rb
134
+ - lib/thecore_auth_commons_actioncontroller_concerns.rb
120
135
  homepage: https://github.com/gabrieletassoni/thecore_auth_commons
121
136
  licenses:
122
137
  - MIT