eucalypt 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eucalypt/blog/namespaces/blog/cli/blog.rb +1 -1
- data/lib/eucalypt/core/helpers/logging.rb +1 -0
- data/lib/eucalypt/core/helpers/maintenance.rb +4 -0
- data/lib/eucalypt/core/templates/eucalypt/app/static/maintenance.html +8 -0
- data/lib/eucalypt/core/templates/eucalypt/app.rb +4 -0
- data/lib/eucalypt/version.rb +1 -1
- metadata +3 -2
- data/lib/eucalypt/core/templates/eucalypt/app/static/.empty_directory +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab9e3dd1d0d0df1183688e146ebce87a369d4c7b13430169af4fe3e58c9a1deb
|
4
|
+
data.tar.gz: 8d1811d2f5967a0ffb4de011b1422a9a3cadb8c27595a8f69108a4cacc2b5053
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da21a8de24eae9a10d4319dc9543687b5c34cb966d0ce72b47832d005e5b08b79f024166881e8a135166fd07b9c2ec9d76d279bfb0770942f0bc76c1190c692e
|
7
|
+
data.tar.gz: bbfd6801e3066443bbd0cce2059de11158ff6d96d7efad5adeddb1217527b573ae44a991ced17518a4be060d76d2d8b6d97b51bddcddec96d3b4cc206f4b7e17
|
@@ -40,7 +40,7 @@ module Eucalypt
|
|
40
40
|
|
41
41
|
insert_into_file(
|
42
42
|
asset_pipeline_file,
|
43
|
-
"
|
43
|
+
" assets.append_path Eucalypt.path 'app', 'assets', 'blog'\n",
|
44
44
|
after: "set :assets, Sprockets::Environment.new\n"
|
45
45
|
)
|
46
46
|
else
|
@@ -27,6 +27,10 @@ class ApplicationController < Sinatra::Base
|
|
27
27
|
# Set default ERB template
|
28
28
|
set :erb, layout: :'layouts/main'
|
29
29
|
|
30
|
+
# Toggle maintenance mode
|
31
|
+
disable :maintenance
|
32
|
+
require 'eucalypt/core/helpers/maintenance'
|
33
|
+
|
30
34
|
# Set Hanami HTML and asset helpers
|
31
35
|
helpers Hanami::Helpers, Hanami::Assets::Helpers
|
32
36
|
end
|
data/lib/eucalypt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eucalypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edwin Onuonga
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- lib/eucalypt/core/cli/test.rb
|
235
235
|
- lib/eucalypt/core/cli/version.rb
|
236
236
|
- lib/eucalypt/core/helpers/logging.rb
|
237
|
+
- lib/eucalypt/core/helpers/maintenance.rb
|
237
238
|
- lib/eucalypt/core/helpers/manifest.rb
|
238
239
|
- lib/eucalypt/core/helpers/partial.rb
|
239
240
|
- lib/eucalypt/core/templates/Gemfile.tt
|
@@ -251,7 +252,7 @@ files:
|
|
251
252
|
- lib/eucalypt/core/templates/eucalypt/app/controllers/application_controller.rb
|
252
253
|
- lib/eucalypt/core/templates/eucalypt/app/helpers/application_helper.rb
|
253
254
|
- lib/eucalypt/core/templates/eucalypt/app/models/.empty_directory
|
254
|
-
- lib/eucalypt/core/templates/eucalypt/app/static
|
255
|
+
- lib/eucalypt/core/templates/eucalypt/app/static/maintenance.html
|
255
256
|
- lib/eucalypt/core/templates/eucalypt/app/views/index.erb
|
256
257
|
- lib/eucalypt/core/templates/eucalypt/app/views/layouts/main.erb
|
257
258
|
- lib/eucalypt/core/templates/eucalypt/app/views/partials/.empty_directory
|
File without changes
|