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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d8fcf8df9343f4bf2780c7136d6e1ed7e795eae
4
- data.tar.gz: 2a37a2a766a8ebc9d14026c894a3d1ce42d78ba8
3
+ metadata.gz: c595180fe4779866c4b837eb1dc505179e0a656c
4
+ data.tar.gz: 9cc3cfb837591e92e95865db5c1c8d3827edb1c5
5
5
  SHA512:
6
- metadata.gz: bc8e34727a3f08963e90f45f0de4577a179de8fe921d76254c0bb4ffd048143adffc37cc9300cf8eaa14373e27a4eef25d34e87e7c74e61a5e7bf0b9a7801b1c
7
- data.tar.gz: 899d603ef3777ab2c0ac79e2786a28c9d73f8f126093aecbca6ec394dffde648bfd264e8c01b16ca688aa24970ab474cfb74e8892facb5664fcd54852fa84528
6
+ metadata.gz: 2340bf5a135a4f23f7eeeaae825bede9883c66dc098c60c6bbb96e7510e9da566cb4b4342a976c4712767344736cf8a59f5ae56a0fee8c444b34ee7683cd5239
7
+ data.tar.gz: 253595b22f6cfb1089f4df27ba75dd2fde8246b1bb040c3407adf76a0422425e51d1806124ea41dedaad88ce3f169e78f09ec701133eb5c8afc7d878f4da5a25
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.70'
2
+ VERSION = '0.1.71'
3
3
  end
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.70
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-14 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal-wedge