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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5312b64e2723c118144234d436fb708a506a5c1d
4
- data.tar.gz: 3a06ba0b5a3b6e0b1400c3543e4c00768dff0ea7
3
+ metadata.gz: 328e4ad154ab2a888d936229c9fb631519cbe555
4
+ data.tar.gz: ff722227a564d523c29062a4220032b6bc882e5b
5
5
  SHA512:
6
- metadata.gz: 3a089d63790ced15f68f37dcd0ec3d8fd6e2dde8b0540e72a22053710b253caa0272b3329c700bff54ff01cafc2c8c9fb21f584813b45cc67663eb4fef4034f5
7
- data.tar.gz: ee766740562733256a0b476adccbf98401fac397a1a2203167b613018964a9359578aa37313d9594a508e6b5a3af239bd68aaefddc158c237ae5a3ea895e946a
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
 
@@ -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).to_s)
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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.57'
2
+ VERSION = '0.1.58'
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.57
4
+ version: 0.1.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj