mno-enterprise-core 3.1.3 → 3.1.4

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: 56551a50f2a0de91591b11a9c35efb6aa0cb1442
4
- data.tar.gz: c20c71352b14f77789bd49ceab30e76e29433f84
3
+ metadata.gz: 9b2136652697969f675be8a746722177281d2ddd
4
+ data.tar.gz: 364a904419110a78129648cbe3c96a550dfa2593
5
5
  SHA512:
6
- metadata.gz: ee6ba08ede9b00613194fcb16557da37abeccf1f2b5a6d6dbcc67f35f5071869359e167dc21d52ae54848afb76980c0a8b910ca5ce1e110a7b4618d837bf8646
7
- data.tar.gz: a230800f84830c77b36495444f1d0dd92b1a243b8ba8131d47f24c6e074929044fc6927e5558ec63f8c6fb2089414bf71e30292519df3b72f0b0092b69e8ec6b
6
+ metadata.gz: 7fbcaa5cc80fa061845fe612054fab9b203664a34ef781b154b127b17c93ecedbfad105d78c7c354f7593e4dbd3491fa243ed7c4151d5d4395c28844fc352bb6
7
+ data.tar.gz: 64e9c84dbf5b379182ea162b808a89b377a8f04d8052c48687c65b2b2981625eda367cc0d5f836ca9ec79d783a4fc494161a10f4ddd135ac5344f32512b3e1b4
@@ -1,5 +1,3 @@
1
- # Somehow the whole config/ folder is loaded twice
2
- # To investigate
3
1
  unless defined? AUDIT_LOG_CONFIG
4
2
  AUDIT_LOG_CONFIG = Rails.application.config_for('audit_log') rescue {}
5
3
  end
@@ -30,10 +30,6 @@ end
30
30
  # modules
31
31
  Devise.add_module :password_expirable, controller: :password_expirable, model: 'devise/models/password_expirable', route: :password_expired
32
32
 
33
- module DeviseExtension
34
- class Engine < ::Rails::Engine
35
- ActiveSupport.on_load(:action_controller) do
36
- include DeviseExtension::Controllers::Helpers
37
- end
38
- end
33
+ ActiveSupport.on_load(:action_controller) do
34
+ include DeviseExtension::Controllers::Helpers
39
35
  end
@@ -1,7 +1,7 @@
1
1
  module MnoEnterprise
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace MnoEnterprise
4
-
4
+
5
5
  # Autoload all files and sub-directories in
6
6
  # lib
7
7
  config.autoload_paths += Dir["#{config.root}/lib/**/"]
@@ -25,7 +25,7 @@ module MnoEnterprise
25
25
  g.test_framework :rspec, fixture: true
26
26
  g.fixture_replacement :factory_girl, :dir => 'spec/factories'
27
27
  end
28
-
28
+
29
29
  # Allow class overriding using decorator pattern
30
30
  # See: http://edgeguides.rubyonrails.org/engines.html#overriding-models-and-controllers
31
31
  config.to_prepare do
@@ -48,5 +48,10 @@ module MnoEnterprise
48
48
  config.before_initialize do
49
49
  Rails.application.config.action_controller.perform_caching = true
50
50
  end
51
+
52
+ # Make sure the MailAdapter is correctly configured
53
+ config.to_prepare do
54
+ MnoEnterprise::MailClient.adapter ||= MnoEnterprise.mail_adapter
55
+ end
51
56
  end
52
57
  end
@@ -1,3 +1,3 @@
1
1
  module MnoEnterprise
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-09 00:00:00.000000000 Z
12
+ date: 2017-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -587,7 +587,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
587
587
  version: '0'
588
588
  requirements: []
589
589
  rubyforge_project:
590
- rubygems_version: 2.5.1
590
+ rubygems_version: 2.4.8
591
591
  signing_key:
592
592
  specification_version: 4
593
593
  summary: Maestrano Enterprise - Core functionnality