bezel-app 0.0.18 → 0.1.0

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
  SHA1:
3
- metadata.gz: 7bd87768532b854cc0da9f2b64e944ae6a032a69
4
- data.tar.gz: ea06a3e7528a71466096f3f820df413e903d563f
3
+ metadata.gz: 32b18146e9cff0108404bc2284c5bc8bad61d6b4
4
+ data.tar.gz: 0a7b330b08d9236c68118542842ff28a4dc7bf01
5
5
  SHA512:
6
- metadata.gz: f0fb8cda24e98343d3be9fc7a8b6b67b41c5ceb997c2bb9bfff94dccd9a51932d93f69c72f80d62b49aa5430c079ee49427eaf3706048746392472150606ac1f
7
- data.tar.gz: 152ace989b1b3e9dd618079f6b204a5d2434ac9d0117ba92148eb75878fbfb5a7582a236f8715c6a887e81f7a1d4f701f6e274c29f42ec8a0205d54f3238b3d2
6
+ metadata.gz: a1aa894f80f75550ca3e6b57cd704c73da2bb393ba91253501dde1c8f81e1bb323fc226dd7affa61b8c684fe7388b6d87be0fc1e1f0281cf855dd18032438da3
7
+ data.tar.gz: 91388ddbeacfdefebd21cd4fb96396e02893ebc0fec571e1f507644a77e8e981193bf4808937a87725a5f3e201ad53691099497588e73ed44f00ef11f350010d
data/bezel-app.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'bezel-app'
8
- spec.version = '0.0.18'
8
+ spec.version = '0.1.0'
9
9
  spec.authors = ['Keith Thompson']
10
10
  spec.email = ['KeithM_Thompson@outlook.com']
11
11
 
data/lib/static_assets.rb CHANGED
@@ -6,17 +6,21 @@ module Bezel
6
6
 
7
7
  def call(env)
8
8
  file_path = "." + env['PATH_INFO']
9
- res = Rack::Response.new
10
- extension = /\.(\w*$)/.match(file_path)[1]
11
- begin
12
- res['Content-Type'] = set_content_type(extension)
13
- content = File.read(file_path)
14
- res.write(content)
15
- rescue
16
- res.status = 404
17
- end
9
+ if file_path =~ (/^app\/assets/)
10
+ res = Rack::Response.new
11
+ extension = /\.(\w*$)/.match(file_path)[1]
12
+ begin
13
+ res['Content-Type'] = set_content_type(extension)
14
+ content = File.read(file_path)
15
+ res.write(content)
16
+ rescue
17
+ res.status = 404
18
+ end
18
19
 
19
- res.finish
20
+ res.finish
21
+ else
22
+ @app.call(env)
23
+ end
20
24
  end
21
25
  end
22
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bezel-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Thompson