onotole 1.1.20 → 1.1.21

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
  SHA1:
3
- metadata.gz: 5cf845092ae766e3ae81bb698685c0b4a66562db
4
- data.tar.gz: c97a7baec05f0c24d632f2414d19fb93dd961653
3
+ metadata.gz: 8f94643204e7f258863146131d37189559478b7d
4
+ data.tar.gz: 3fd249dbd56ae6804139e806d6d7722442b15466
5
5
  SHA512:
6
- metadata.gz: 858607400ac7ee89fa5e7fb8949af46b2e576ebffe70406bb1a4069fdabb82b98d8a87429de1047fd03149a5d1360194b1dd4dc99f313fff2eb7aa269634a7a4
7
- data.tar.gz: 94dc0d042fd9a6a8d06042add450d5ed52a19f2c42f326cc3b886473b3fe1db2e15f273233b4db90bf6cfc5e3d6e5984e68acf9689e0d362a14567d3a2c6edc8
6
+ metadata.gz: 81fc447f2e8f0fb2071499a7e8109ec093134adfb15e86f3bd9239ddc51fad7f52a87b07057708fcbc8542208feabedfe82462e0126cbaac20087ebdf7681753
7
+ data.tar.gz: fc74b38b32a89097265b9f0ea9996ca7ea6afc05a82eccab09b472c3312f2dc8a1b59e53d99b4612a1a44449036eb057ec34d8ef84031c81b5307f05a4ff6383
@@ -19,7 +19,10 @@ module Onotole
19
19
  config = <<-RUBY
20
20
 
21
21
  # Enable deflate / gzip compression of controller-generated responses
22
+ # more info https://robots.thoughtbot.com/content-compression-with-rack-deflater
23
+ # rack-mini-profiler does not work with this option
22
24
  config.middleware.use Rack::Deflater
25
+
23
26
  RUBY
24
27
 
25
28
  inject_into_file(
@@ -54,7 +54,7 @@ module Onotole
54
54
  end
55
55
 
56
56
  def serve_static_files_line
57
- "config.serve_static_files = ENV.fetch('#{app_name.upcase}_RAILS_SERVE_STATIC_FILES',false)\n"
57
+ "config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?\n"
58
58
  end
59
59
 
60
60
  def add_gems_from_args
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.1.20'
5
+ VERSION = '1.1.21'
6
6
  end
@@ -2,9 +2,7 @@
2
2
  <%= "#{app_name.upcase}_ASSET_HOST=localhost:3000" %>
3
3
  <%= "#{app_name.upcase}_APPLICATION_HOST=localhost:3000" %>
4
4
  <%= "#{app_name.upcase}_PORT=3000" %>
5
- RACK_ENV=development
6
5
  <%= "#{app_name.upcase}_SECRET_KEY_BASE=development_secret" %>
7
- EXECJS_RUNTIME=Node
8
6
  <%= "#{app_name.upcase}_SMTP_ADDRESS=smtp.example.com" %>
9
7
  <%= "#{app_name.upcase}_SMTP_DOMAIN=example.com" %>
10
8
  <%= "#{app_name.upcase}_SMTP_PORT=587" %>
@@ -12,6 +10,8 @@ EXECJS_RUNTIME=Node
12
10
  <%= "#{app_name.upcase}_SMTP_USERNAME=username" %>
13
11
  <%= "#{app_name.upcase}_WEB_CONCURRENCY=1" %>
14
12
  <%= "#{app_name.upcase}_MAX_THREADS=16" %>
15
- <%= "#{app_name.upcase}_RAILS_SERVE_STATIC_FILES=true" %>
16
- <%= "#{app_name.upcase}_COVERAGE=false" %>
17
- DEFER_GC=1
13
+ <%= "#{app_name.upcase}_COVERAGE=false" %> # simplecov flag
14
+ RACK_ENV=development
15
+ EXECJS_RUNTIME=Node
16
+ RAILS_SERVE_STATIC_FILES=true
17
+ DEFER_GC=1 # Garbage collector flag. Used in RSpec
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onotole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.20
4
+ version: 1.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka