foreman_memcache 0.1.0 → 0.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
  SHA256:
3
- metadata.gz: e8a796c9d17448bb4b4972042eb87876494d51d8c7cecb8888fe597c1861eb51
4
- data.tar.gz: 2fa2904413448f0900251ec200f7d6836066ccf50123a9eb9d38b6c36650e8c3
3
+ metadata.gz: a9121a15ab50262ffca5cb1add495e270791cf6a45a7b383ca4eac1b93dddcc3
4
+ data.tar.gz: 8f094c4ac1dbdab302c7ed3827177c923a9d7c575643999bcbfe379d8d1f7323
5
5
  SHA512:
6
- metadata.gz: 490df903983d2bc80e8606ac9d46d51b77076afceff83f87046e84e434ea173f75c78fc2c52ff384a1b38129c74711c31e7cfd5ae120ab774c5d6d3607826b2d
7
- data.tar.gz: 87fde077bf4042a61141788c66355806f90926bb2bf29b24ee46db71ca5c7e357fbbbf6ce17bc91f4108fa3559e0732b4cdc4aaf17d772c06469ef8f89ace6c6
6
+ metadata.gz: 11d71c494a8448c898560df0b7d5f9f0fd32bda5e6fcce8d34f8cc6ea54437a89068c176f67ca25992ce8a0debbb5e55fa780b8fd9238313447080e9f21ce2ad
7
+ data.tar.gz: 6370e2455aec6a04bbefaa9a2bd8ab62975f62e2e49af08101cf2ce42b90995e9130ecdb9fc7fc0ab133e90639550975f7ea01ccf6bc3b2981f8ec653ed3078b
@@ -6,13 +6,18 @@ module ForemanMemcache
6
6
  if (s = SETTINGS[:memcache])
7
7
  Array.wrap(s[:hosts]).each { |h| args << h }
8
8
  args << { :namespace => 'foreman' }.merge(s[:options] || {})
9
+
10
+ Rails.logger.info "memcached cache backend enabled: #{args}"
11
+ app.config.cache_store = args
12
+ else
13
+ Rails.logger.info "memcached cache backend disabled: no servers configured in SETTINGS"
9
14
  end
10
- Rails.logger.info "memcached cache backend enabled: #{args}"
11
- app.config.cache_store = args
12
15
  end
13
16
 
14
17
  initializer 'setup_memcache', :before => :build_middleware_stack do |app|
15
- app.config.middleware.swap ActionDispatch::Session::ActiveRecordStore, ActionDispatch::Session::CacheStore
18
+ if SETTINGS[:memcache]
19
+ app.config.middleware.swap ActionDispatch::Session::ActiveRecordStore, ActionDispatch::Session::CacheStore
20
+ end
16
21
  end
17
22
 
18
23
  initializer 'foreman_memcache.register_plugin', :before => :finisher_hook do |app|
@@ -1,3 +1,3 @@
1
1
  module ForemanMemcache
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_memcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ohad Levy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dalli
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: adds memcache support to foreman
69
+ description: Adds memcache support to foreman
70
70
  email:
71
71
  - ohadlevy@gmail.com
72
72
  executables: []
@@ -80,7 +80,7 @@ files:
80
80
  - lib/foreman_memcache.rb
81
81
  - lib/foreman_memcache/version.rb
82
82
  - lib/tasks/foreman_memcache_tasks.rake
83
- homepage: http://theforeman.org
83
+ homepage: https://github.com/theforeman/foreman_memcache
84
84
  licenses:
85
85
  - GPL-3
86
86
  metadata: {}
@@ -103,5 +103,5 @@ rubyforge_project:
103
103
  rubygems_version: 2.7.3
104
104
  signing_key:
105
105
  specification_version: 4
106
- summary: Adds memcache integeration to foreman
106
+ summary: Adds memcache integration to foreman
107
107
  test_files: []