cortex-snippets-client-ruby 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/lib/cortex/snippets/client.rb +1 -1
- data/lib/cortex/snippets/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d520798634e851bdd9092690e706566fa63a97c7
|
4
|
+
data.tar.gz: 7a79e84b1a7cf0f4fee8ce86415bf143a04373c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8c5e68de5d8608710521cb8de5023337344754845ab9edb04e8fb4bcf86cf6a51ecbee939e51a314b89f3c92b010fa67b5439588410131a1444e48ae840518
|
7
|
+
data.tar.gz: 2e104d34cb459be68ec5fe6dee983980dddb6cd979cd57537b92e7dcaec908e969722336677cd2dfa20c2d60255e17fd5c3d6fdd93df7d9ce957632ba45382b4
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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:
|
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
|