wedge 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/wedge.rb +1 -1
- data/lib/wedge/component.rb +1 -1
- data/lib/wedge/version.rb +1 -1
- data/lib/wedge.rb +6 -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: de8579ae1dfb224cca702f0d1d49731b3bb30c19
|
4
|
+
data.tar.gz: d257a9c6c4abc09de23f7b17a6eb386339522bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7363f752b9b60234eb6e2fbb162deeecd452596241a0110ad5587941081c762b5d1e92e44f64e54d0a7a1d5d015e500ba43c20705ac77e58ddc6db55b985582f
|
7
|
+
data.tar.gz: 126e63a1af92d926cdc2fd456aabe786e4d9f945c78e3cdbecef319cbfc74f6025e7d30b95ef1f05e273923dcbd03f609667e844549961ec9109f3561efe66c4
|
data/lib/roda/plugins/wedge.rb
CHANGED
data/lib/wedge/component.rb
CHANGED
@@ -203,7 +203,7 @@ module Wedge
|
|
203
203
|
payload[:wedge_method_called] = meth
|
204
204
|
payload[:wedge_method_args] = args
|
205
205
|
|
206
|
-
call_url = "#{Wedge.assets_url}/#{path_name}.call"
|
206
|
+
call_url = "#{Wedge.assets_url}/#{path_name}.call"
|
207
207
|
|
208
208
|
HTTP.post("/#{call_url}",
|
209
209
|
headers: {
|
data/lib/wedge/version.rb
CHANGED
data/lib/wedge.rb
CHANGED
@@ -29,6 +29,11 @@ module Wedge
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def assets_url
|
32
|
+
url = opts.assets_url.gsub(%r{^(http(|s)://[^\/]*\/|\/)}, '/')
|
33
|
+
"#{url}#{opts.cache_assets ? "/#{opts.assets_key}" : ''}"
|
34
|
+
end
|
35
|
+
|
36
|
+
def assets_url_with_host
|
32
37
|
"#{opts.assets_url}#{opts.cache_assets ? "/#{opts.assets_key}" : ''}"
|
33
38
|
end
|
34
39
|
|
@@ -203,7 +208,7 @@ module Wedge
|
|
203
208
|
|
204
209
|
def load_comp options = {}, promise = Promise.new
|
205
210
|
path_name = options[:path_name]
|
206
|
-
assets_url = Wedge.
|
211
|
+
assets_url = Wedge.assets_url_with_host
|
207
212
|
|
208
213
|
# fix: this could give people unwanted behaviour, change getScript to just
|
209
214
|
# use ajax.
|