wedge 0.1.57 → 0.1.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge.rb +1 -1
- data/lib/wedge/middleware.rb +1 -1
- data/lib/wedge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 328e4ad154ab2a888d936229c9fb631519cbe555
|
4
|
+
data.tar.gz: ff722227a564d523c29062a4220032b6bc882e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0c1306a045d43f550e75c07c2da88ae3953cae67c532b9ea459c189385949fa3e9ea98ec12da083ce7fd8653a1055d453a2026bfb32214c0142375adc3d87d
|
7
|
+
data.tar.gz: a0aa638b30061caf309c83e166ebfa7cf129090fcfa635b9914362d24cb104a8367fdde7df420f94109d4e68b54ec0ce360b8413ad79c9919891eca61c1b688f
|
data/lib/wedge.rb
CHANGED
@@ -73,7 +73,7 @@ class Wedge
|
|
73
73
|
assets_url = ::Wedge.assets_url.gsub(%r{^\/}, '')
|
74
74
|
# # We also allow for no assets key so when we post server methods there
|
75
75
|
# # isn't an error if the key has been changed since a browser refresh.
|
76
|
-
%r{(?:#{assets_url}|#{assets_url.sub("#{::Wedge.config.assets_key}/", '')})/(.*)\.(.*)$}
|
76
|
+
%r{(?:/|)(?:#{assets_url}|#{assets_url.sub("#{::Wedge.config.assets_key}/", '')})/(.*)\.(.*)$}
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
data/lib/wedge/middleware.rb
CHANGED
@@ -119,7 +119,7 @@ class Wedge
|
|
119
119
|
|
120
120
|
wio = StringIO.new("")
|
121
121
|
w_gz = Zlib::GzipWriter.new(wio)
|
122
|
-
w_gz.write((body.instance_variable_get(:@body) || body.last
|
122
|
+
w_gz.write((body.instance_variable_get(:@body) || body).last.to_s)
|
123
123
|
w_gz.close
|
124
124
|
|
125
125
|
body = wio.string
|
data/lib/wedge/version.rb
CHANGED