pinecall 0.11.35 → 0.11.36
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/CHANGELOG.md +11 -0
- data/lib/pinecall/serve/loading.rb +5 -1
- data/lib/pinecall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd663f2ac908de0654021d5dc138e4ad002ac230cf38ec009e54f584da87ae0f
|
|
4
|
+
data.tar.gz: 5d77bede0caff859918d216df2e720ba325b142ea628892a5f037c8738c677ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 711a9c4e364b402a33a775364259de49e34d5c9eca01b3c61a43399627c51ddcd9db315e84f76d2e6c77a3adc835354250ffcb50ae254ac950b0398692e6a510
|
|
7
|
+
data.tar.gz: 6fd47736a98e81f66cd08fd9cc76b525aa2706df94bb28cf373714f6bf2bc67316cec98571279e3a663855d7b6aa1f68c9efb66a416ff724b1d7cae487caed16
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ Every change a person using this gem would notice. The format is
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); version numbers and tags are the
|
|
5
5
|
maintainer's call.
|
|
6
6
|
|
|
7
|
+
## [0.11.36] — a Python app names its agents by slug, and Brightside Dental is an example in every language (2026-11-13)
|
|
8
|
+
|
|
9
|
+
- **A class is served as its folder's slug, whatever it is called.** `pinecall start` served a class
|
|
10
|
+
under its folder's name while the class went on naming itself by its own: `class FrontDesk` in
|
|
11
|
+
`agents/clinic-front-desk/` looked for `views/front-desk.erb`, found none, and answered every call
|
|
12
|
+
with no view and no word of it. The loader gives the class its folder's slug, as the Python one
|
|
13
|
+
does, so its view is `views/<slug>.erb` beside it.
|
|
14
|
+
- **Brightside Dental, the voice app on pinecall.io's editor, is an example**
|
|
15
|
+
(`examples/ruby/brightside_dental`): two agents, a team, a rule, a flow, and the clinic they
|
|
16
|
+
share, the same app as the TypeScript and Python ones.
|
|
17
|
+
|
|
7
18
|
## [0.11.35] — a judge reads what the platform said as the platform's (2026-11-13)
|
|
8
19
|
|
|
9
20
|
- Released with the runtime: nothing of this package changed.
|
|
@@ -48,7 +48,7 @@ module Pinecall
|
|
|
48
48
|
raise CannotServe, "--state #{field}: its value is not JSON"
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# The class the file defines, refused when its own `slug` says another
|
|
51
|
+
# The class the file defines, served as its folder's slug; refused when its own `slug` says another.
|
|
52
52
|
def load_served(served)
|
|
53
53
|
klass = load_agent(served.file)
|
|
54
54
|
declared = klass.declared_slug
|
|
@@ -56,6 +56,10 @@ module Pinecall
|
|
|
56
56
|
raise CannotServe, "#{served.file} says its slug is #{declared}, and it is served as #{served.slug}: the slug is its folder's name"
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
# The folder names it: its view is `views/<slug>.erb` beside it, whatever the class is called.
|
|
60
|
+
# Until 0.11.36 a class named otherwise than its folder looked for a view by its own name,
|
|
61
|
+
# found none and answered every call with no view.
|
|
62
|
+
klass.slug(served.slug)
|
|
59
63
|
klass
|
|
60
64
|
end
|
|
61
65
|
|
data/lib/pinecall/version.rb
CHANGED