spark_engine 1.2.0 → 1.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4a50b3121a42fd8a2d448a2be099845eda417ba843030e3b08d1f9f75536202
|
|
4
|
+
data.tar.gz: 10a55d8c0c851aa4b9d19d8eea77332693835059e8013772774a761df2466cf9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/spark_engine/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sass
|