snails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snails/app.rb +4 -3
- data/lib/snails.rb +1 -0
- data/snails.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 982126d7b4bff6dd0a06db8fad9a2979e68aa315
|
4
|
+
data.tar.gz: d32bc442d6eec60a33f28929af7dda910890fbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ef4ef42b0dc867de881b3df64657eeafe48bcbe0ad83aadc1875e0592b4d5e9976ade5e3f8f1d80b2508bbcc565a02a7a661ac33f69cd8961a2990964d432a
|
7
|
+
data.tar.gz: 6f1cbc8265728f3b5c6a2df2bdb7bbcdba0642c6358658548d287e8ab01a259ccce213801174d46d5962ac8d1e307acf72338a069a415ca7fd51c153ffeb91fa
|
data/lib/snails/app.rb
CHANGED
@@ -59,6 +59,7 @@ module Snails
|
|
59
59
|
|
60
60
|
helpers do
|
61
61
|
include RequiredParams
|
62
|
+
include Snails::ViewHelpers
|
62
63
|
include Sinatra::ContentFor
|
63
64
|
def logger; Snails.logger; end
|
64
65
|
end
|
@@ -165,10 +166,10 @@ module Snails
|
|
165
166
|
|
166
167
|
cwd = Pathname.new(Dir.pwd)
|
167
168
|
app.set :sprockets, Sprockets::Environment.new(cwd)
|
168
|
-
app.set :
|
169
|
-
app.set :
|
169
|
+
app.set :digest_assets, false #
|
170
|
+
app.set :assets_prefix, app.assets_prefix || '/assets' # URL
|
171
|
+
app.set :assets_paths, app.assets_paths || %w(assets) # source files
|
170
172
|
app.set :assets_public_path, -> { cwd.join('public', 'assets') } # output dir
|
171
|
-
app.set :assets_paths, %w(assets) # source files
|
172
173
|
app.set :assets_precompile, %w(js/main.js css/main.css)
|
173
174
|
app.set :assets_remove_digests, false
|
174
175
|
|
data/lib/snails.rb
CHANGED
data/snails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|