wedge 0.0.14 → 0.0.15

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: 3e2ab28002c252d5bf4d37c6880077e153919c37
4
- data.tar.gz: 92fb234282aaadb7066d0ab8735f2c4192e8c996
3
+ metadata.gz: ce2676bdcde4fd10da925a2913e364cb22464880
4
+ data.tar.gz: 52de2ad75c872dc63072ed9c87c1e207a16ffbd2
5
5
  SHA512:
6
- metadata.gz: 2ad2627f7028a5f1486ea9ec7a205af716d831c594d8c25a876677403c6087f4e33d6158fc30dcd0862a9fc78bc7cf9a7898e27df6f012f936b2b810566d35fa
7
- data.tar.gz: f6cf2bf451b65c70b7e26beb9a2c02d55f808dfd46470ade873e5740c11d1614e107a555857c23aac85354be5891251962de372320204b22d308b12b7f198f87
6
+ metadata.gz: b7b765660ba7d941bc04c6e51622a6f26d2b731d5f9348a72e59417242021d7e03f2cd7918614a6ef268c5eb5bd2ec3dfd75d891b343c1b33c807884159b73d1
7
+ data.tar.gz: 268e5d3ade33214b815a1e4c60c10cb90a57838e217021a7904b0f091e2c05bdad4c09bf4a8536e42c36ad0bf34ef55e21261aa04e28eb247ca9872d3a1e3df4
@@ -203,7 +203,9 @@ module Wedge
203
203
  payload[:wedge_method_called] = meth
204
204
  payload[:wedge_method_args] = args
205
205
 
206
- HTTP.post("#{Wedge.assets_url}/#{path_name}.call",
206
+ call_url = "#{Wedge.assets_url}/#{path_name}.call".gsub(%r{^(http(|s)://[^\/]*\/|\/)}, '')
207
+
208
+ HTTP.post("/#{call_url}",
207
209
  headers: {
208
210
  'X-CSRF-TOKEN' => Element.find('meta[name=_csrf]').attr('content'),
209
211
  'X-WEDGE-METHOD-REQUEST' => true
@@ -298,7 +300,7 @@ module Wedge
298
300
  block.$$s = null;
299
301
  result = block.apply(self, a);
300
302
  block.$$s = bs;
301
-
303
+
302
304
  return result;
303
305
  }
304
306
  end
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wedge
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
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.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.2.2
221
+ rubygems_version: 2.4.3
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Components for the Browser and Server
@@ -235,4 +235,3 @@ test_files:
235
235
  - test/test_basic_component.rb
236
236
  - test/test_browserio.rb
237
237
  - test/test_helper.rb
238
- has_rdoc: