birdel 2.3.6 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/birdel/map/map_actor.rb +2 -2
- data/lib/birdel/rona/rona_actor.rb +1 -20
- data/lib/birdel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9122f08319c04ac5b369965004710158895525de8b4cd5318a217e6ffaebb8
|
4
|
+
data.tar.gz: 71e3290a92de20a8b7fa7def761759b9d706a400e06238f3d4e252a43c323277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef39b27f0398e92ce27544077907575070f096e283dc27187c3461a6ce3a7350f7dc8a5a285b792d0354d427bea053949a13c5ec9afcb821a5b3ac227cc1c00d
|
7
|
+
data.tar.gz: 07ab2b7fea19fe05454fbb521719fcde95d4039a48be01f43bdc480176630ee88671c057e006e581529d6050ac15e8ce065379617d45d7da66ca6d869fbad1cf
|
data/lib/birdel/map/map_actor.rb
CHANGED
@@ -47,7 +47,7 @@ module Birdel
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
|
50
|
+
puts ""
|
51
51
|
|
52
52
|
if full_js_entry_path.exist?
|
53
53
|
puts "Entry #{full_js_entry_path.relative_path_from(myapp_path)} already exists".red.bold
|
@@ -81,7 +81,7 @@ module Birdel
|
|
81
81
|
css_index_filename_without_extension = css_index_path.basename('.css').to_s
|
82
82
|
css_index_formatted_path = "#{css_index_directory_path}/#{css_index_filename_without_extension}"
|
83
83
|
|
84
|
-
|
84
|
+
puts ""
|
85
85
|
|
86
86
|
if full_layout_entry_path.exist?
|
87
87
|
puts "Entry #{full_layout_entry_path.relative_path_from(myapp_path)} already exists".red.bold
|
@@ -28,28 +28,9 @@ module Birdel
|
|
28
28
|
end
|
29
29
|
if callback
|
30
30
|
res[:callback] = callback
|
31
|
-
res[:callback][:resourceId] = method_res[:resource_id]
|
31
|
+
res[:callback][:resourceId] = method_res[:resource_id].present? ? method_res[:resource_id] : false
|
32
32
|
ActionCable.server.broadcast(self.first_stream, res)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
36
|
-
def actorDirect(data)
|
37
|
-
inputs = data.fetch("inputs")
|
38
|
-
callback = data.fetch("callback")
|
39
|
-
required_component = data.fetch("required_component")
|
40
|
-
component_name = required_component.split('--').map{|i| i.gsub("-", "_").camelize}.join('::') + '::' + required_component.split('--').last.gsub("-", "_").camelize
|
41
|
-
component = component_name.constantize.new(inputs: inputs)
|
42
|
-
res = {
|
43
|
-
"ok": true,
|
44
|
-
"message": "Actor Direct",
|
45
|
-
"data": {
|
46
|
-
"outputs": inputs,
|
47
|
-
"html": ApplicationController.render(component, layout: false)
|
48
|
-
}
|
49
|
-
}
|
50
|
-
res[:callback] = callback
|
51
|
-
res[:callback][:resourceId] = callback[:resource_id]
|
52
|
-
ActionCable.server.broadcast(self.first_stream, res)
|
53
|
-
end
|
54
35
|
end
|
55
36
|
end
|
data/lib/birdel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: birdel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serhii
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Send json messages to your actors and get view_components back! Now you
|
14
14
|
can be sure that your actors are processed correctly.
|