cortex-snippets-client-ruby 0.5.0 → 0.5.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: 658d9c6e13da576bf96579154111e317484235b8
4
- data.tar.gz: 9dd435e240feff3a30f943fd907a28baffda1af2
3
+ metadata.gz: d520798634e851bdd9092690e706566fa63a97c7
4
+ data.tar.gz: 7a79e84b1a7cf0f4fee8ce86415bf143a04373c4
5
5
  SHA512:
6
- metadata.gz: 6804bad23b04cf563059415db5bb70fba149391d4eaedfe04946244befb9db8ab456e3cc5402d77df3bb47a70ef7bf9245ab1ded84625119ffcae7e1b96da701
7
- data.tar.gz: a824953d79ef9714539883851e48c8f1e4622f52c68631340a7f86ec24ea3cf3fcbca546f7cd22b168f51389ebedc1190953f71f2f473804f6264a04e49d6048
6
+ metadata.gz: 9c8c5e68de5d8608710521cb8de5023337344754845ab9edb04e8fb4bcf86cf6a51ecbee939e51a314b89f3c92b010fa67b5439588410131a1444e48ae840518
7
+ data.tar.gz: 2e104d34cb459be68ec5fe6dee983980dddb6cd979cd57537b92e7dcaec908e969722336677cd2dfa20c2d60255e17fd5c3d6fdd93df7d9ce957632ba45382b4
@@ -3,4 +3,5 @@ Version History
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
5
 
6
- * 0.5.0 - Auto-inject Client Helper into Views/Controllers. Pass through to Snippet tag entire set of HTML attributes. Implement new namespacing and support Bundler.require.
6
+ * 0.5.1 - Set Webpage feed cache to never expire
7
+ * 0.5.0 - Auto-inject Client Helper into Views/Controllers. Add 10s race condition resolution to Rails cache fetch. Pass through to Snippet tag entire set of HTML attributes. Implement new namespacing and support Bundler.require.
@@ -18,7 +18,7 @@ module Cortex
18
18
 
19
19
  def current_webpage(request)
20
20
  if defined?(Rails)
21
- Rails.cache.fetch("webpages/#{request_url(request)}", expires_in: 30.minutes, race_condition_ttl: 10) do
21
+ Rails.cache.fetch("webpages/#{request_url(request)}", expires_in: 0, race_condition_ttl: 10) do
22
22
  cortex_client.webpages.get_feed(request_url(request)).contents
23
23
  end
24
24
  else
@@ -1,7 +1,7 @@
1
1
  module Cortex
2
2
  module Snippets
3
3
  module Client
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-snippets-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CB Content Enablement