snails 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/snails/app.rb +4 -4
- data/snails.gemspec +1 -1
- 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: 1a432e07bb2d207181fda80eb531d2841378e3f9063ab24576e95ab4da35492d
|
|
4
|
+
data.tar.gz: d83a6714e05afb6901b06ec5d03624e1c62388b2d1940bb2380045bd8e98a5f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 308fa3566dafbf1baf1f8dafa6125ff9f608200d945056c03e1ba565224b3b177a73915a2dd85962f4c13df2b6eb887b9fb17c73351b0f7b160ef93c485a4ed5
|
|
7
|
+
data.tar.gz: 726e88eb43e04da8f49ee1790dd9b5a348187e5304d28836c88189ebc82d28fc2eb2dce2ee3dde44ff6a6707cc59410c6f5072be7aa0dd4d39ce004366062526
|
data/lib/snails/app.rb
CHANGED
|
@@ -102,9 +102,9 @@ module Snails
|
|
|
102
102
|
app.set :digest_assets, false
|
|
103
103
|
app.set :assets_prefix, app.setting(:assets_prefix, '/assets') # URL
|
|
104
104
|
app.set :assets_paths, app.setting(:assets_paths, %w(assets)) # source files
|
|
105
|
-
app.set :assets_public_path,
|
|
106
|
-
app.set :assets_precompile, %w(js/main.js css/main.css)
|
|
107
|
-
app.set :assets_remove_digests, false
|
|
105
|
+
app.set :assets_public_path, app.setting(:assets_public_path, cwd.join('public', 'assets')) # output dir
|
|
106
|
+
app.set :assets_precompile, app.setting(:assets_precompile, %w(js/main.js css/main.css))
|
|
107
|
+
app.set :assets_remove_digests, app.setting(:assets_remove_digests, false)
|
|
108
108
|
|
|
109
109
|
app.configure do
|
|
110
110
|
app.assets_paths.each do |path|
|
|
@@ -401,7 +401,7 @@ module Snails
|
|
|
401
401
|
end
|
|
402
402
|
|
|
403
403
|
def self.setting(key, default)
|
|
404
|
-
respond_to?(key) ? public_send(key) : default
|
|
404
|
+
respond_to?(key) ? public_send(key) : default
|
|
405
405
|
end
|
|
406
406
|
|
|
407
407
|
set :protection, except: :frame_options
|
data/snails.gemspec
CHANGED