wedge 0.0.8 → 0.0.9

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: a65b562e3fedf944f4c422e008d57dff2e1a9723
4
- data.tar.gz: 75d60b5e36809044416e58ff34e8d90ae939299e
3
+ metadata.gz: d62dd5b3067bf262e99e9b85580f10c6f69053a0
4
+ data.tar.gz: 39b1045a8fd84f04692be637f9ad8316596fdb3b
5
5
  SHA512:
6
- metadata.gz: f2818a3fa982794972c949eee0a0a3232528256d34504427f847d6c5e15ee79ff3743de4c39243d7e2371d7f56cdd7f0384d4b74ac0f9cbc37e578d42a2dd4a5
7
- data.tar.gz: 94842d609f72d0c6ab070ace619e7f64813f88bdba32ea9724c1bf19e56ff348032f940338d830df62a547fec808525615cd59ff4bad1eef8688abf207319fea
6
+ metadata.gz: 74e631d8f30318eba1c883e2f3419c00e3a94d75ad9fff551abd1186e039d8671efe6c098ff915a67ebb0443cab72e622333e5c0137fa5973c14c099ee3b6b75
7
+ data.tar.gz: 14311787e2080870c0b1a5281d4d18a52ddba761a688d94a2261ae5188e13e9172cb02aa3edfe6daeb7449d0820bf5873653dba971d09ec062cba0f710fbfd4d
@@ -64,11 +64,16 @@ class Roda
64
64
  end
65
65
 
66
66
  data = data.indifferent
67
- name = data.delete(:name)
68
- method_called = data.delete(:method_called)
69
- method_args = data.delete(:method_args)
67
+ name = data.delete(:wedge_name)
68
+ method_called = data.delete(:wedge_method_called)
69
+ method_args = data.delete(:wedge_method_args)
70
70
 
71
- res = scope.wedge(name, data).send(method_called, *method_args) || ''
71
+ if method_args == 'wedge_data' && data
72
+ method_args = [data]
73
+ res = scope.wedge(name).send(method_called, *method_args) || ''
74
+ else
75
+ res = scope.wedge(name, data).send(method_called, *method_args) || ''
76
+ end
72
77
 
73
78
  scope.response.headers["BIO-CSRF-TOKEN"] = scope.csrf_token if scope.methods.include? :csrf_token
74
79
 
@@ -199,8 +199,9 @@ module Wedge
199
199
  payload = client_wedge_opts.reject do |k, _|
200
200
  %w(html tmpl requires plugins object_events js_loaded).include? k
201
201
  end
202
- payload[:method_called] = meth
203
- payload[:method_args] = args
202
+ payload[:wedge_name] = payload[:name]
203
+ payload[:wedge_method_called] = meth
204
+ payload[:wedge_method_args] = args
204
205
 
205
206
  HTTP.post("#{Wedge.assets_url}/#{path_name}.call",
206
207
  headers: {
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wedge
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj