wedge 0.1.70 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/component.rb +14 -0
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c595180fe4779866c4b837eb1dc505179e0a656c
|
4
|
+
data.tar.gz: 9cc3cfb837591e92e95865db5c1c8d3827edb1c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2340bf5a135a4f23f7eeeaae825bede9883c66dc098c60c6bbb96e7510e9da566cb4b4342a976c4712767344736cf8a59f5ae56a0fee8c444b34ee7683cd5239
|
7
|
+
data.tar.gz: 253595b22f6cfb1089f4df27ba75dd2fde8246b1bb040c3407adf76a0422425e51d1806124ea41dedaad88ce3f169e78f09ec701133eb5c8afc7d878f4da5a25
|
data/lib/wedge/component.rb
CHANGED
@@ -333,6 +333,20 @@ class Wedge
|
|
333
333
|
end
|
334
334
|
alias_method :function, :wedge_function
|
335
335
|
|
336
|
+
def wedge_method_url method, *args
|
337
|
+
call_url = "#{Wedge.config.assets_key.present?? Wedge.assets_url.sub("#{Wedge.config.assets_key}/",'') : Wedge.assets_url}/#{wedge_config.path}.call"
|
338
|
+
|
339
|
+
wedge_args = []
|
340
|
+
args.each do |arg|
|
341
|
+
wedge_args << "__wedge_args__[]=#{arg}"
|
342
|
+
end
|
343
|
+
|
344
|
+
wedge_args = (wedge_args.length > 0 ? "&#{wedge_args.join('&')}" : '')
|
345
|
+
|
346
|
+
"#{call_url}?__wedge_name__=#{wedge_config.name}&__wedge_method__=#{method}#{wedge_args}"
|
347
|
+
end
|
348
|
+
alias_method :method_url, :wedge_method_url
|
349
|
+
|
336
350
|
def wedge_from_server?
|
337
351
|
begin
|
338
352
|
!(wedge_method_called == caller_locations(1,1)[0].label)
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal-wedge
|