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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30f59d26df1bd25928ccbc4f6ffed978bf3d3fc9387928d100ad3dbb21c419ae
4
- data.tar.gz: 21e246723e17aa247f0c263018ad81864f65bb5184419f1f8d2ad2d27db80f5c
3
+ metadata.gz: ab9e3dd1d0d0df1183688e146ebce87a369d4c7b13430169af4fe3e58c9a1deb
4
+ data.tar.gz: 8d1811d2f5967a0ffb4de011b1422a9a3cadb8c27595a8f69108a4cacc2b5053
5
5
  SHA512:
6
- metadata.gz: 678240c6a339075aeab896c6eb08f1193581cd667d034a996d1041be4462a064d2d4a87179bb78bd5533cf1deaf4499acb04d5a1c4727602f03822a392f0243e
7
- data.tar.gz: 491dccc27711788d533a81aeee63edbb4ee619575d6f9c52c76f251b8f96cff0e8488afaa8251461ab2533abf426aba0f17a2e8db905420a8e6bd042f78260a8
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
- "\tassets.append_path Eucalypt.path 'app', 'assets', 'blog'\n",
43
+ " assets.append_path Eucalypt.path 'app', 'assets', 'blog'\n",
44
44
  after: "set :assets, Sprockets::Environment.new\n"
45
45
  )
46
46
  else
@@ -1,3 +1,4 @@
1
+ require 'sinatra'
1
2
  class ApplicationController < Sinatra::Base
2
3
  LOGGER = if (settings.logging == !!settings.logging)
3
4
  Lumberjack::Logger.new $stdout
@@ -0,0 +1,4 @@
1
+ require 'sinatra'
2
+ class ApplicationController < Sinatra::Base
3
+ get('*') { redirect '/maintenance.html' } if settings.maintenance
4
+ end
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ <title>Under maintenance...</title>
4
+ </head>
5
+ <body>
6
+ <h1>We're closed!</h1>
7
+ </body>
8
+ </html>
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Eucalypt
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
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.1
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/.empty_directory
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