sinatra-hexacta 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/handlers/constants.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8db700323222cf195e1fc968c6ed3d0d69e2b8e988fb14a0ea05edfaa066efb
|
4
|
+
data.tar.gz: 648716c0e7d0adf003cc9d04a1fffc6cacb0c41789902af1217780e7df600bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dea149aa1379c39b280c0aad1946cfabea46fa798e90632a9f767adf71bc134eaf7a6980c65c8e772df01da3ee1b744db42f0cca9191a406cb12d9aae5e8a942
|
7
|
+
data.tar.gz: 9aafab704a4ff92c917082ab6ddd159b581cdf376073de7d21280c7504bde6d0af5561b159bcaeceaa39ba63f94e438c50286be05dbfff869a660534558c7ddb
|
@@ -5,6 +5,8 @@ module Sinatra
|
|
5
5
|
|
6
6
|
def enable_constants
|
7
7
|
p "Enabling constants..."
|
8
|
+
ConstantHandler.setup_dir("/app/views/#{Hexacta::GEM_FILE_DIR}/constants")
|
9
|
+
ConstantHandler.copy_all_files("/lib/sinatra/views/constants","/app/views/#{Hexacta::GEM_FILE_DIR}/constants")
|
8
10
|
|
9
11
|
before '/constant*' do
|
10
12
|
error(403) if authenticated(User).permissions.empty? && authenticated(User).recruiter.nil?
|