spark_engine 1.2.1 → 1.2.2

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: d4a50b3121a42fd8a2d448a2be099845eda417ba843030e3b08d1f9f75536202
4
- data.tar.gz: 10a55d8c0c851aa4b9d19d8eea77332693835059e8013772774a761df2466cf9
3
+ metadata.gz: 647ee00f20e3d13661e4983708c8b2b8ff2ef17940717ada453d66d00aacedcc
4
+ data.tar.gz: 625beab3299b72120e49389110f52a116c08b6a60516fb4c1e53ebf089cce7f9
5
5
  SHA512:
6
- metadata.gz: d4d27c88dbb5646a224d8a99040c37c2a6f8aaf5cf18da89ea6d4821a424015b8f480b6964542025e8463fb1736f6f92a9f4d2c43472d4b6edca5a5e82df0ed9
7
- data.tar.gz: 8304dd2fae76b3b3624f989fab939cb717667576eab5858070289d1e1ba4475365d47e1c8fe9d9613e5bea12588cfb254b8b2ee3faf86076bbc936dd1699534f
6
+ metadata.gz: 2121b9e2b3dd60a99066c559ebe7d05ded392b51213adfb946693d45d39918545de0e26fefcb9ef9e89cc30e6080923a778589a3e3c31135a7d586ad7066a7de
7
+ data.tar.gz: 0b9c3310053e39b33156e8a3d1fd7c1e4001ea3e6ea0ea2df6b2c7aa4b8addc4c963b3705e6420c695dbbce5d4c3f4ccb4429d89d1ebfcd121a51efb8ad128ce
@@ -11,7 +11,7 @@ module SparkEngine
11
11
 
12
12
  def call(env)
13
13
  req = Rack::Request.new env
14
- prefix = File.join Application.config.assets.prefix, @engine_name
14
+ prefix = File.join Rails.application.config.assets.prefix, @engine_name
15
15
 
16
16
  if req.get? || req.head?
17
17
  path = req.path_info.chomp('/'.freeze)
@@ -26,7 +26,7 @@ module SparkEngine
26
26
 
27
27
  # Filter names based on asset file locations
28
28
  find_files.select do |f|
29
- names.include? File.basename(f).sub(/(\..+)$/,'')
29
+ names.include?(File.basename(f).sub(/(\..+)$/,''))
30
30
  end
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
data/lib/spark_engine.rb CHANGED
@@ -12,7 +12,6 @@ require "spark_engine/config_data"
12
12
  module SparkEngine
13
13
  extend self
14
14
  attr_accessor :plugin
15
- autoload :Application, "spark_engine/middleware"
16
15
 
17
16
  def production?
18
17
  ENV['CI'] || ENV['RAILS_ENV'] == 'production' || ( defined?(Command) && Command.production? )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis