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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cf354557754a3ea8deae8c82f76862d7624daf5
4
- data.tar.gz: 9a36b8b974a5bac6d91f8cb14cbff4f7f8574111
3
+ metadata.gz: 982126d7b4bff6dd0a06db8fad9a2979e68aa315
4
+ data.tar.gz: d32bc442d6eec60a33f28929af7dda910890fbde
5
5
  SHA512:
6
- metadata.gz: 2bc730efcf42ee247b465ac2cddbfefc30d0e1ffb0fb7f62f1c4b7484cc4e3f9b5585a3610338631d9ff6e64912c2230231ed647ffe7b2b0abedabcf961f15b0
7
- data.tar.gz: fae4ea9ae8eccf3deb9a9179e621f0ff2853b33503a8060524db3a2774e26de86d1d08c7c1a179616890082f4fbd4d4cfd87852b97e3bb52c85756f8dfbfe7e5
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 :assets_prefix, '/assets' # URL
169
- app.set :digest_assets, false
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
@@ -26,3 +26,4 @@ module Snails
26
26
  end
27
27
 
28
28
  require 'snails/app'
29
+ puts "Loaded #{Snails.env} environment."
data/snails.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "snails"
6
- s.version = '0.1.5'
6
+ s.version = '0.1.6'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Tomás Pollak']
9
9
  s.email = ['tomas@forkhq.com']
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.5
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: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler