spark_engine 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: 6c1bf0bedeafc9f534690e08affcc35d2ba33c11dbf8915c367c4af4b3aaa938
4
- data.tar.gz: 87cbf4c2733d7929b16b778e7a36cb7814ae5dedad99ec693cdcceda73bc3af9
3
+ metadata.gz: d4a50b3121a42fd8a2d448a2be099845eda417ba843030e3b08d1f9f75536202
4
+ data.tar.gz: 10a55d8c0c851aa4b9d19d8eea77332693835059e8013772774a761df2466cf9
5
5
  SHA512:
6
- metadata.gz: fb3474519be01d0d2aaf032c5331bb96cb875632ecb3a9fe0ab09975bbba2a6f2015c9f08da37cb3d965cc170a6bb53818ac2c6222de3684d04c4a2a50f2a7e7
7
- data.tar.gz: 33b684c431fedfd6de80f2b047e97240a6f2b89604f2a6b989d15e02f27691ec1b8fbc6ac3299c3087f70f4eb444a2b3f5265bb878ca195a26d9f055716275d4
6
+ metadata.gz: d4d27c88dbb5646a224d8a99040c37c2a6f8aaf5cf18da89ea6d4821a424015b8f480b6964542025e8463fb1736f6f92a9f4d2c43472d4b6edca5a5e82df0ed9
7
+ data.tar.gz: 8304dd2fae76b3b3624f989fab939cb717667576eab5858070289d1e1ba4475365d47e1c8fe9d9613e5bea12588cfb254b8b2ee3faf86076bbc936dd1699534f
@@ -1,12 +1,6 @@
1
1
  require 'action_dispatch/middleware/static'
2
2
 
3
3
  module SparkEngine
4
- class Application < Rails::Application
5
- initializer "static assets" do |app|
6
- app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
7
- end
8
- end
9
-
10
4
  class StaticAssets
11
5
 
12
6
  def initialize(app, path, index: 'index', headers: {}, engine_name: nil)
@@ -93,7 +93,7 @@ module SparkEngine
93
93
  # If names are passed, look at the basename minus
94
94
  # the extension as build files may have
95
95
  # different extensions than sources
96
- names = [names].flatten.compact.map do |n|
96
+ names = [names].flatten.compact.uniq.map do |n|
97
97
  File.basename(n).sub(/(\..+)$/,'')
98
98
  end
99
99
 
@@ -13,6 +13,6 @@ Bundler.require(*Rails.groups)
13
13
  require '<%= @gem %>'
14
14
 
15
15
  module Site
16
- class Application < SparkEngine::Application
16
+ class Application < Rails::Application
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass