snails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/snails.rb +4 -3
  3. data/snails.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb169efa64f0924773fdb6ecb80d4ee3d97eedf7
4
- data.tar.gz: 55a634a3eca80533eb19ff052cfde946bff87ee4
3
+ metadata.gz: 286f1509b89a45e70f1c4523c6947b875e7f11b6
4
+ data.tar.gz: 238f0d6ec150397fe246f9233a8bd473d2cc1efa
5
5
  SHA512:
6
- metadata.gz: 44dd9f9eb766b6f422f7ba845d38a4f447461787d4eb4beaf5799d7db6c04eb90b34a59e75e6ae39c7741d3bce80dd3022d6002c49aca7da58733da8b98f0685
7
- data.tar.gz: 74f232515e3c4f7c3e8d787cf09c54100fdefab6eab84e113941b0729d23ab71c1877439cdfdbeedad96a4ea8910c88a2dce37c9a6e414cc535e87ef8a42006d
6
+ metadata.gz: f5d7d89233a44f8f6695e16330c762e5c326c07e1d4cad52c8f7f53a3901d36f6b0bbd7295197c21c60338d4f1c8270473af1fecd03a4429ad8cc35f146a68df
7
+ data.tar.gz: 377774fce2d1803f5bb100c800fd310625b3ce8183cc49fee07953676eda44bd89ffb1a1e8406b83473500dcbc644ab4111ff78f677de7c109c40d20eb2bdb2e
data/lib/snails.rb CHANGED
@@ -173,10 +173,11 @@ module Snails
173
173
  cwd = Pathname.new(Dir.pwd)
174
174
  app.set :sprockets, Sprockets::Environment.new(cwd)
175
175
  app.set :assets_prefix, '/assets' # URL
176
- app.set :digest_assets, false
176
+ # app.set :digest_assets, false
177
177
  app.set :assets_public_path, -> { cwd.join('public', 'assets') } # output dir
178
178
  app.set :assets_paths, %w(assets) # source files
179
179
  app.set :assets_precompile, %w(js/main.js css/main.css)
180
+ app.set :remove_digests, false
180
181
 
181
182
  app.configure do
182
183
  app.assets_paths.each do |path|
@@ -238,11 +239,11 @@ module Snails
238
239
  manifest = ::Sprockets::Manifest.new(environment.index, app.assets_public_path)
239
240
  manifest.compile(app.assets_precompile)
240
241
 
241
- # unless app.development?
242
+ if app.remove_digests?
242
243
  # files = Dir[app.assets_public_path.to_s + '/*/*']
243
244
  files = `find #{app.assets_public_path}`.split("\n").select { |f| f[/\.(js|css)/] }
244
245
  remove_digests(files)
245
- # end
246
+ end
246
247
  end
247
248
 
248
249
  private
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.0.1'
6
+ s.version = '0.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Tomás Pollak']
9
9
  s.email = ['tomas@forkhq.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak