birdel 3.4.1 → 3.6.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/Gemfile.lock +1 -1
- data/README.md +10 -9
- data/lib/birdel/component/component_actor.rb +1 -1
- data/lib/birdel/rona/rona_actor.rb +1 -1
- data/lib/birdel/synth/synth_actor.rb +4 -3
- 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: 3f0e1f6ed63d219765fa3de0d984992060126c272a714fea2fc506d861019812
|
4
|
+
data.tar.gz: fea5d4f1bf20ad84cf2b327b04c58b422513de731260ade1e52624b75be7c188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d71dc9cdbe5de2259c940d5babdc0453e220d81a974d683b86338ac1651a9aae8efba0ed2af07c1bbfdeff6d0d5cacaaea38d25ac7cd43ba8035b5a866228c1
|
7
|
+
data.tar.gz: accbc46370f8b86504b9fbd731c2304f1eaa02053ef194359beb03cd594a5afbcb34d7afc4cbe7487c9fba1c2133cd779833aaf773ad2faf6ff7e09af49ff316
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -14,19 +14,20 @@ $ birdel synth
|
|
14
14
|
```
|
15
15
|
Send request
|
16
16
|
```js
|
17
|
-
window.Birdel.
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
window.Birdel.send({
|
18
|
+
actor: "ui__angry_cat_actor",
|
19
|
+
method: "get_article",
|
20
|
+
required_component: "ui--mix--article-component", // or false
|
21
|
+
inputs: {
|
21
22
|
articleId: 69
|
22
|
-
}
|
23
|
-
|
23
|
+
},
|
24
|
+
callback: {
|
24
25
|
"component": "ui--entries--home-component",
|
25
26
|
"actor": "home-component-actor",
|
26
27
|
"method": "showArticle",
|
27
|
-
"
|
28
|
-
}
|
29
|
-
|
28
|
+
"resourceId": false //or ID of your actor
|
29
|
+
} // or false
|
30
|
+
})
|
30
31
|
```
|
31
32
|
|
32
33
|
Full documentation is not ready and will be at https://digitalthing.io/docs/birdel, well, sorry😄
|
@@ -10,7 +10,7 @@ module Birdel
|
|
10
10
|
|
11
11
|
actor_string = actor_name.split("__").map{|e| e.camelize}.join("::")
|
12
12
|
res_name = actor_string << "::#{actor_string.split("::")[-1]}"
|
13
|
-
actor = if res_name.constantize.ancestors.include?(Birdel::BaseActor)
|
13
|
+
actor = if res_name.constantize.ancestors.include?(Birdel::Base::BaseActor)
|
14
14
|
res_name.constantize.new(current_user: self.current_user)
|
15
15
|
else
|
16
16
|
res_name.constantize.new
|
@@ -75,11 +75,12 @@ module Birdel
|
|
75
75
|
component_controller_path = components_folder_path.join("#{controller_from_components}.js")
|
76
76
|
if component_controller_path.exist?
|
77
77
|
component_path_dashed = component_path.tr("_", "-").gsub("/", "--")
|
78
|
-
camelized_component_name = component_name.split("_").map(&:capitalize).join
|
78
|
+
# camelized_component_name = component_name.split("_").map(&:capitalize).join
|
79
|
+
rand_name = "_#{rand(36**8).to_s(36)}"
|
79
80
|
controller_backpath = component_controller_path.relative_path_from(entry_folder_path)
|
80
81
|
controller_backpath_without_ext = controller_backpath.to_s.gsub(controller_backpath.extname, "")
|
81
|
-
file.puts "import #{
|
82
|
-
file.puts "application.register(\"#{component_path_dashed}\", #{
|
82
|
+
file.puts "import #{rand_name} from \"#{controller_backpath_without_ext}\";"
|
83
|
+
file.puts "application.register(\"#{component_path_dashed}\", #{rand_name});"
|
83
84
|
file.puts ""
|
84
85
|
puts "+ #{component_path_dashed}"
|
85
86
|
else
|
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: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@serhiijun"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|