flok 0.0.61 → 0.0.62
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/app/kern/controller.js +0 -6
- data/lib/flok/version.rb +1 -1
- data/spec/kern/controller_spec.rb +0 -12
- metadata +1 -3
- data/spec/kern/assets/choose_action_async.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49ad16aaf0fca2dc27529ae8cb71c1d99e2282ed
|
4
|
+
data.tar.gz: 95b619eb6df458626fe286555b6e5804768ba20e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8131bb471d419d201ce16aa42c2114277443cbb02a9075ce555c3da2af2a18ef1b973d949c541aadd67c91cf63c7ba8d49eaeb3d46065787d7095c4ec7c78488
|
7
|
+
data.tar.gz: 22b1c150cecfca9215bbabbf2e4038f9f390359070e6f268fca445300a29f7dbf6060709ed1cc31d03b098beca05f882cc68bfe8bb222b640d12f4e52f720364
|
data/app/kern/controller.js
CHANGED
@@ -93,12 +93,6 @@ function _embed(vc_name, sp, context, event_gw) {
|
|
93
93
|
//Call the on_entry function with the base address
|
94
94
|
cte.actions[info.action].on_entry(base);
|
95
95
|
|
96
|
-
<% if @debug %>
|
97
|
-
if (info.action === "choose_action") {
|
98
|
-
throw "choose_action did not specify a Goto";
|
99
|
-
}
|
100
|
-
<% end %>
|
101
|
-
|
102
96
|
return base;
|
103
97
|
}
|
104
98
|
|
data/lib/flok/version.rb
CHANGED
@@ -857,18 +857,6 @@ RSpec.describe "kern:controller_spec" do
|
|
857
857
|
}.to raise_exception
|
858
858
|
end
|
859
859
|
|
860
|
-
it "Calling an asynchronous request for the Goto in choose_action will result in an exception" do
|
861
|
-
ctx = flok_new_user File.read('./spec/kern/assets/choose_action_async.rb'), File.read("./spec/kern/assets/test_service/config0.rb")
|
862
|
-
expect {
|
863
|
-
ctx.evald %{
|
864
|
-
base = _embed("my_controller", 0, {}, null);
|
865
|
-
|
866
|
-
//Drain queue
|
867
|
-
int_dispatch([]);
|
868
|
-
}
|
869
|
-
}.to raise_error(/choose_action.*Goto/)
|
870
|
-
end
|
871
|
-
|
872
860
|
it "Does support using a macro that contains current_action" do
|
873
861
|
ctx = flok_new_user File.read('./spec/kern/assets/current_action_nav.rb')
|
874
862
|
dump = ctx.evald %{
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flok
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seo
|
@@ -1130,7 +1130,6 @@ files:
|
|
1130
1130
|
- spec/iface/kern/pipe_spec.rb
|
1131
1131
|
- spec/kern/assets/blank.rb
|
1132
1132
|
- spec/kern/assets/choose_action.rb
|
1133
|
-
- spec/kern/assets/choose_action_async.rb
|
1134
1133
|
- spec/kern/assets/choose_action_sync.rb
|
1135
1134
|
- spec/kern/assets/choose_action_sync_no_goto.rb
|
1136
1135
|
- spec/kern/assets/controller0.rb
|
@@ -2058,7 +2057,6 @@ test_files:
|
|
2058
2057
|
- spec/iface/kern/pipe_spec.rb
|
2059
2058
|
- spec/kern/assets/blank.rb
|
2060
2059
|
- spec/kern/assets/choose_action.rb
|
2061
|
-
- spec/kern/assets/choose_action_async.rb
|
2062
2060
|
- spec/kern/assets/choose_action_sync.rb
|
2063
2061
|
- spec/kern/assets/choose_action_sync_no_goto.rb
|
2064
2062
|
- spec/kern/assets/controller0.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
controller :my_controller do
|
2
|
-
spots "content"
|
3
|
-
services "test"
|
4
|
-
|
5
|
-
choose_action do
|
6
|
-
on_entry %{
|
7
|
-
var info = {foo: "bar"};
|
8
|
-
Request("test", "test_async", info);
|
9
|
-
}
|
10
|
-
|
11
|
-
#This is illegal, we are testing for an exception. All
|
12
|
-
#events received in choose_action must be synchronous
|
13
|
-
on "test_async_res", %{
|
14
|
-
Goto("index");
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
action "index" do
|
19
|
-
on_entry %{
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
action "alt" do
|
24
|
-
end
|
25
|
-
end
|