wedge 0.1.48 → 0.1.49

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
  SHA1:
3
- metadata.gz: 46bbe594dc4d34672258a28ab0354d08bbabdf77
4
- data.tar.gz: 2af71b55df8e94b85ccca4d888edcfb9951c6163
3
+ metadata.gz: 7c65cbc380cbe818a15df34d340ce587b6596821
4
+ data.tar.gz: aa02221b07430f6783b0e5728a78162388aaf95a
5
5
  SHA512:
6
- metadata.gz: 75e9f523a17a824c275005a8d4abd361ef30e60b888072dee3bce60b5fdba9668ea873c162089b8591445573acbec541b12093f058a9679d60eff143791709f1
7
- data.tar.gz: fc6b5ad205d0bd782a03eaef9a329eefd67845bcefe0bd0d187f59af81c2a7685956fde6393601c0a382e20287356fbd305281b0d2d13e4789796196adb3170c
6
+ metadata.gz: e76f822f6f9cf1e7ac0d00823454fd255e9fbef89ea3e3969b2a6e035230f7f96c19b2ece2d0b3cd1572b97a69191526b8e50f25f8f06304c7d97ae1aada2ab2
7
+ data.tar.gz: 24d19497f515f3fb7dbc3c1d2d3efef86eb6891c1208873077633dc4c4f279b1120f31b316e1cbc7ac6d2ee78f451a4db899d2ad0a92071c727648791c075e8e
data/lib/wedge.rb CHANGED
@@ -51,7 +51,7 @@ class Wedge
51
51
  s.prefix = Wedge.assets_url
52
52
  s.debug = Wedge.config.debug
53
53
  s.headers = Wedge.config.assets_headers
54
- s.gzip = Wedge.config.gzip_headers
54
+ s.gzip = Wedge.config.gzip_assets
55
55
  }}
56
56
 
57
57
  if Wedge.config.debug
data/lib/wedge/opal.rb CHANGED
@@ -142,10 +142,11 @@ unless RUBY_ENGINE == 'opal'
142
142
 
143
143
  if server.gzip
144
144
  require 'zlib'
145
- Zlib::GzipWriter.open("#{path}.gz") do |gz|
146
- body = gz.write(content)
147
- end
145
+
146
+ headers['Content-Encoding'] = 'gzip'
147
+ body = Zlib::Deflate.deflate body
148
148
  end
149
+
149
150
  [status, headers.merge(@server.headers), [body]]
150
151
  else
151
152
  @app.call env
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.48'
2
+ VERSION = '0.1.49'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj