fastentry 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/fastentry/cache_controller.rb +1 -1
- data/app/controllers/fastentry/dashboard_controller.rb +9 -9
- data/app/controllers/fastentry/stats_controller.rb +1 -1
- data/app/views/layouts/fastentry/application.html.erb +1 -1
- data/lib/fastentry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140aa4a24b917d6ea3606101cf4a05558c2a02d7c76e53005c0cb20731ead079
|
4
|
+
data.tar.gz: 1130e8c02447b5dee763ceacd84c39f0bca2e149e0a68f81973bc1b068746bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b34b9fca1a73edb59eefaceed0c8e0d2466cb133e193f249c4c65ba600c22169d824ce70fe7317b2e591dbab400b3749846449fd87185987935e14a6a3d4386d
|
7
|
+
data.tar.gz: 3d27170aecafb5f42b0a2b11597c745352ab78baec018ceb7da324d4ce5f99223be209330bf026a06f799b57e9ba56f714888b36b3509756a4e87355cd0071d7
|
@@ -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
|
-
#
|
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
|
-
|
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
|
|
@@ -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="
|
16
|
+
<a class="navbar-item" href="<%= root_path %>">
|
17
17
|
<%= image_tag("fastentry/logo.png") %>
|
18
18
|
</a>
|
19
19
|
|
data/lib/fastentry/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|