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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f36f8950b9b539f55965ae74ee6f02ebcf4768eb185cdbd100c517cee577ddb
4
- data.tar.gz: 7afd29f47a0b52a097834cbc26a4aa563ac381ade57e8e73e32386266060a63e
3
+ metadata.gz: db9122f08319c04ac5b369965004710158895525de8b4cd5318a217e6ffaebb8
4
+ data.tar.gz: 71e3290a92de20a8b7fa7def761759b9d706a400e06238f3d4e252a43c323277
5
5
  SHA512:
6
- metadata.gz: 848c6e2839ebe4cf6ff68e6ca72e4c54a4db5de4c1c5baab5a6053dc839d35b5bb13692213b86b6e83aab5b22907e95512e543e6678dae76328f563e46ce60da
7
- data.tar.gz: 1c5eb6a5c9c32b73d0c0592220429c836edf252ef25809b406d97d844a5d3758b17dd8595f0da9ae132d36dee1aef5ad3b3fbb8ab77997668badb8c22d9f9e95
6
+ metadata.gz: ef39b27f0398e92ce27544077907575070f096e283dc27187c3461a6ce3a7350f7dc8a5a285b792d0354d427bea053949a13c5ec9afcb821a5b3ac227cc1c00d
7
+ data.tar.gz: 07ab2b7fea19fe05454fbb521719fcde95d4039a48be01f43bdc480176630ee88671c057e006e581529d6050ac15e8ce065379617d45d7da66ca6d869fbad1cf
@@ -47,7 +47,7 @@ module Birdel
47
47
  end
48
48
  end
49
49
 
50
- p " "
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
- p " "
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] if 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Birdel
4
- VERSION = "2.3.6"
4
+ VERSION = "3.1.0"
5
5
  end
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: 2.3.6
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-04 00:00:00.000000000 Z
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.