fastentry 0.1.6 → 0.1.7

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: bac38097e2b637725b05a9125bc6e169ac8710873d593967a7ff2aba625f1933
4
- data.tar.gz: 5e4971f0d79695d092c6836e1c2dec95dd8c932e76ad71aebdd657d886dd4c9a
3
+ metadata.gz: 140aa4a24b917d6ea3606101cf4a05558c2a02d7c76e53005c0cb20731ead079
4
+ data.tar.gz: 1130e8c02447b5dee763ceacd84c39f0bca2e149e0a68f81973bc1b068746bf2
5
5
  SHA512:
6
- metadata.gz: 54e2144667572fd50d2e1752fdf78dc7708c821fb8d3383babfa7085e63439dcd5b26d7927c82353c4e0a9bdbebe0f10058e0713f115326eaad6184d1234e731
7
- data.tar.gz: 440fd5f942be48816c87bf232f42035f4c89814ca8cc565167299ff8784fe1bcdd3c8eaa119bead719d478242c0faacb0cc04d10332b72f5a251383b9335a841
6
+ metadata.gz: b34b9fca1a73edb59eefaceed0c8e0d2466cb133e193f249c4c65ba600c22169d824ce70fe7317b2e591dbab400b3749846449fd87185987935e14a6a3d4386d
7
+ data.tar.gz: 3d27170aecafb5f42b0a2b11597c745352ab78baec018ceb7da324d4ce5f99223be209330bf026a06f799b57e9ba56f714888b36b3509756a4e87355cd0071d7
@@ -1,5 +1,5 @@
1
1
  module Fastentry
2
- class CacheController < ApplicationController
2
+ class CacheController < Fastentry::ApplicationController
3
3
  def show
4
4
  @key = params[:key]
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Fastentry
2
- class DashboardController < ApplicationController
2
+ class DashboardController < Fastentry::ApplicationController
3
3
  before_action :set_page, only: [:index]
4
4
 
5
5
  def index
@@ -22,18 +22,18 @@ module Fastentry
22
22
  expiration_date = nil
23
23
  end
24
24
 
25
- # Only include keys that rails can read
25
+ # Prevent from crashing if can't read key
26
26
  begin
27
27
  value = Rails.cache.read(key)
28
-
29
- @cached << {
30
- cache_key: key,
31
- cache_value: value,
32
- expiration: (Time.at(expiration_date) if expiration_date.present?)
33
- }
34
28
  rescue
35
- next
29
+ value = nil
36
30
  end
31
+
32
+ @cached << {
33
+ cache_key: key,
34
+ cache_value: value,
35
+ expiration: (Time.at(expiration_date) if expiration_date.present?)
36
+ }
37
37
  end
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  module Fastentry
2
- class StatsController < ApplicationController
2
+ class StatsController < Fastentry::ApplicationController
3
3
  def index
4
4
  @number_of_keys = Rails.cache.instance_variable_get(:@data).keys.count
5
5
  end
@@ -13,7 +13,7 @@
13
13
  <nav class="navbar" role="navigation" aria-label="main navigation">
14
14
  <div class="container">
15
15
  <div class="navbar-brand">
16
- <a class="navbar-item" href="/fastentry">
16
+ <a class="navbar-item" href="<%= root_path %>">
17
17
  <%= image_tag("fastentry/logo.png") %>
18
18
  </a>
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Fastentry
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Alves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails