alembic 0.2.0 → 0.4.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/app/assets/javascripts/alembic/one_page.js +39 -0
- data/app/controllers/alembic/application_controller.rb +2 -0
- data/app/controllers/alembic/flows_controller.rb +31 -0
- data/app/controllers/alembic/manage/base_controller.rb +9 -0
- data/app/controllers/alembic/manage/flows_controller.rb +37 -3
- data/app/controllers/alembic/manage/page_blocks_controller.rb +1 -1
- data/app/controllers/alembic/manage/pages_controller.rb +7 -0
- data/app/controllers/concerns/alembic/summarizes.rb +35 -2
- data/app/helpers/alembic/application_helper.rb +17 -2
- data/app/helpers/alembic/content_blocks_helper.rb +31 -0
- data/app/helpers/alembic/pages_helper.rb +7 -6
- data/app/helpers/alembic/result_blocks_helper.rb +57 -0
- data/app/models/alembic/flow/definition_summary.rb +2 -0
- data/app/models/alembic/flow/output_form.rb +74 -0
- data/app/models/alembic/flow/preview_values.rb +47 -0
- data/app/models/alembic/flow/summaries.rb +39 -0
- data/app/models/alembic/outputs/band.rb +1 -1
- data/app/models/alembic/outputs/lowest.rb +5 -3
- data/app/models/alembic/outputs/outcome.rb +33 -0
- data/app/models/alembic/page/content_blocks.rb +20 -0
- data/app/models/alembic/page/options.rb +14 -7
- data/app/models/alembic/page/preview.rb +15 -0
- data/app/models/alembic/result_blocks.rb +33 -0
- data/app/models/alembic/summary/report.rb +1 -1
- data/app/models/alembic/summary/result.rb +1 -1
- data/app/views/alembic/blocks/_answers.html.erb +11 -0
- data/app/views/alembic/blocks/_band.html.erb +6 -0
- data/app/views/alembic/blocks/_categories.html.erb +11 -0
- data/app/views/alembic/blocks/_code.html.erb +1 -0
- data/app/views/alembic/blocks/_facts.html.erb +5 -0
- data/app/views/alembic/blocks/_hero.html.erb +9 -0
- data/app/views/alembic/blocks/_lead.html.erb +15 -0
- data/app/views/alembic/blocks/_outcome_entry.html.erb +44 -0
- data/app/views/alembic/blocks/_outcomes.html.erb +10 -0
- data/app/views/alembic/blocks/_score.html.erb +7 -0
- data/app/views/alembic/blocks/_table.html.erb +20 -0
- data/app/views/alembic/blocks/_weakest.html.erb +12 -0
- data/app/views/alembic/flows/_question.html.erb +24 -0
- data/app/views/alembic/flows/complete.html.erb +9 -3
- data/app/views/alembic/flows/one_page.html.erb +35 -0
- data/app/views/alembic/flows/show.html.erb +16 -13
- data/app/views/alembic/flows/step.html.erb +47 -0
- data/app/views/alembic/flows/summary_page.html.erb +5 -0
- data/app/views/alembic/manage/flows/_outputs.html.erb +61 -0
- data/app/views/alembic/manage/flows/edit.html.erb +30 -0
- data/app/views/alembic/manage/pages/_block_content.html.erb +1 -1
- data/app/views/alembic/manage/pages/show.html.erb +10 -1
- data/config/routes.rb +1 -0
- data/db/migrate/20260930120000_add_summary_page_to_alembic_flow_definition_summaries.rb +6 -0
- data/db/migrate/20260930230000_add_shows_answer_values_to_alembic_flow_definition_summaries.rb +5 -0
- data/db/migrate/20260930233000_add_asks_on_one_page_to_alembic_flow_definition_summaries.rb +5 -0
- data/db/migrate/20261001120000_add_intro_page_to_alembic_flow_definition_summaries.rb +6 -0
- data/lib/alembic/engine.rb +10 -0
- data/lib/alembic/version.rb +1 -1
- data/lib/alembic.rb +5 -1
- metadata +33 -9
data/lib/alembic/engine.rb
CHANGED
|
@@ -28,6 +28,16 @@ module Alembic
|
|
|
28
28
|
Alembic::Outputs::Lowest.register
|
|
29
29
|
Alembic::Outputs::Tally.register
|
|
30
30
|
Alembic::Outputs::Band.register
|
|
31
|
+
Alembic::Outputs::Outcome.register
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
initializer "alembic.result_blocks" do |app|
|
|
36
|
+
app.config.to_prepare do
|
|
37
|
+
Alembic::Page::ContentBlocks.register
|
|
38
|
+
Alembic::ResultBlocks.register
|
|
39
|
+
Alembic::Page::Preview.provider = ->(page, choice) { Alembic::Flow::PreviewValues.values(page, choice) }
|
|
40
|
+
Alembic::Page::Preview.chooser = ->(page) { Alembic::Flow::PreviewValues.choices(page) }
|
|
31
41
|
end
|
|
32
42
|
end
|
|
33
43
|
end
|
data/lib/alembic/version.rb
CHANGED
data/lib/alembic.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Alembic
|
|
|
13
13
|
visitor_authorization_method refusal_method].freeze
|
|
14
14
|
|
|
15
15
|
class << self
|
|
16
|
-
attr_accessor :
|
|
16
|
+
attr_accessor :lead_address, :lead_fields_partial, :lead_note
|
|
17
17
|
attr_reader :admin_authentication_method, :visitor_authorization_method, :refusal_method
|
|
18
18
|
|
|
19
19
|
FLOW_HOST_SETTINGS.each do |name|
|
|
@@ -29,6 +29,10 @@ module Alembic
|
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
def lead_partial=(_partial)
|
|
33
|
+
warn "Alembic.lead_partial no longer exists and draws nothing. Set Alembic.lead_address to where the lead block posts."
|
|
34
|
+
end
|
|
35
|
+
|
|
32
36
|
def base_controller=(value)
|
|
33
37
|
@base_controller = value
|
|
34
38
|
EasyFlow.base_controller = value
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alembic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tylercschneider
|
|
@@ -57,20 +57,14 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0.
|
|
61
|
-
- - ">="
|
|
62
|
-
- !ruby/object:Gem::Version
|
|
63
|
-
version: 0.4.1
|
|
60
|
+
version: '0.6'
|
|
64
61
|
type: :runtime
|
|
65
62
|
prerelease: false
|
|
66
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
64
|
requirements:
|
|
68
65
|
- - "~>"
|
|
69
66
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: '0.
|
|
71
|
-
- - ">="
|
|
72
|
-
- !ruby/object:Gem::Version
|
|
73
|
-
version: 0.4.1
|
|
67
|
+
version: '0.6'
|
|
74
68
|
description: Alembic builds and runs data-driven interactive diagnostics — scored
|
|
75
69
|
assessments and branching guides — that place a visitor on an outcome and capture
|
|
76
70
|
the result. A runtime engine plus a UI builder.
|
|
@@ -85,6 +79,7 @@ files:
|
|
|
85
79
|
- Rakefile
|
|
86
80
|
- app/assets/builds/alembic/page_builder.css
|
|
87
81
|
- app/assets/builds/alembic/page_builder.js
|
|
82
|
+
- app/assets/javascripts/alembic/one_page.js
|
|
88
83
|
- app/assets/stylesheets/alembic/application.css
|
|
89
84
|
- app/controllers/alembic/application_controller.rb
|
|
90
85
|
- app/controllers/alembic/flows_controller.rb
|
|
@@ -97,34 +92,59 @@ files:
|
|
|
97
92
|
- app/controllers/concerns/alembic/manage/authenticates_admin.rb
|
|
98
93
|
- app/controllers/concerns/alembic/summarizes.rb
|
|
99
94
|
- app/helpers/alembic/application_helper.rb
|
|
95
|
+
- app/helpers/alembic/content_blocks_helper.rb
|
|
100
96
|
- app/helpers/alembic/pages_helper.rb
|
|
97
|
+
- app/helpers/alembic/result_blocks_helper.rb
|
|
101
98
|
- app/javascript/alembic/page_builder.jsx
|
|
102
99
|
- app/javascript/alembic/page_builder/PageBuilder.jsx
|
|
103
100
|
- app/jobs/alembic/application_job.rb
|
|
104
101
|
- app/mailers/alembic/application_mailer.rb
|
|
105
102
|
- app/models/alembic/application_record.rb
|
|
106
103
|
- app/models/alembic/flow/definition_summary.rb
|
|
104
|
+
- app/models/alembic/flow/output_form.rb
|
|
105
|
+
- app/models/alembic/flow/preview_values.rb
|
|
107
106
|
- app/models/alembic/flow/run_summary.rb
|
|
108
107
|
- app/models/alembic/flow/summaries.rb
|
|
109
108
|
- app/models/alembic/flow/summary_version.rb
|
|
110
109
|
- app/models/alembic/outputs/band.rb
|
|
111
110
|
- app/models/alembic/outputs/grouped.rb
|
|
112
111
|
- app/models/alembic/outputs/lowest.rb
|
|
112
|
+
- app/models/alembic/outputs/outcome.rb
|
|
113
113
|
- app/models/alembic/outputs/percentage.rb
|
|
114
114
|
- app/models/alembic/outputs/tally.rb
|
|
115
115
|
- app/models/alembic/outputs/weighted_sum.rb
|
|
116
116
|
- app/models/alembic/page.rb
|
|
117
|
+
- app/models/alembic/page/content_blocks.rb
|
|
117
118
|
- app/models/alembic/page/drawing.rb
|
|
118
119
|
- app/models/alembic/page/options.rb
|
|
120
|
+
- app/models/alembic/page/preview.rb
|
|
119
121
|
- app/models/alembic/page/version.rb
|
|
122
|
+
- app/models/alembic/result_blocks.rb
|
|
120
123
|
- app/models/alembic/summary.rb
|
|
121
124
|
- app/models/alembic/summary/output_type.rb
|
|
122
125
|
- app/models/alembic/summary/registry.rb
|
|
123
126
|
- app/models/alembic/summary/report.rb
|
|
124
127
|
- app/models/alembic/summary/result.rb
|
|
125
128
|
- app/models/alembic/summary/run.rb
|
|
129
|
+
- app/views/alembic/blocks/_answers.html.erb
|
|
130
|
+
- app/views/alembic/blocks/_band.html.erb
|
|
131
|
+
- app/views/alembic/blocks/_categories.html.erb
|
|
132
|
+
- app/views/alembic/blocks/_code.html.erb
|
|
133
|
+
- app/views/alembic/blocks/_facts.html.erb
|
|
134
|
+
- app/views/alembic/blocks/_hero.html.erb
|
|
135
|
+
- app/views/alembic/blocks/_lead.html.erb
|
|
136
|
+
- app/views/alembic/blocks/_outcome_entry.html.erb
|
|
137
|
+
- app/views/alembic/blocks/_outcomes.html.erb
|
|
138
|
+
- app/views/alembic/blocks/_score.html.erb
|
|
139
|
+
- app/views/alembic/blocks/_table.html.erb
|
|
140
|
+
- app/views/alembic/blocks/_weakest.html.erb
|
|
141
|
+
- app/views/alembic/flows/_question.html.erb
|
|
126
142
|
- app/views/alembic/flows/complete.html.erb
|
|
143
|
+
- app/views/alembic/flows/one_page.html.erb
|
|
127
144
|
- app/views/alembic/flows/show.html.erb
|
|
145
|
+
- app/views/alembic/flows/step.html.erb
|
|
146
|
+
- app/views/alembic/flows/summary_page.html.erb
|
|
147
|
+
- app/views/alembic/manage/flows/_outputs.html.erb
|
|
128
148
|
- app/views/alembic/manage/flows/edit.html.erb
|
|
129
149
|
- app/views/alembic/manage/pages/_block_content.html.erb
|
|
130
150
|
- app/views/alembic/manage/pages/index.html.erb
|
|
@@ -185,6 +205,10 @@ files:
|
|
|
185
205
|
- db/migrate/20260922120000_add_slug_to_alembic_pages.rb
|
|
186
206
|
- db/migrate/20260922130000_create_alembic_page_versions.rb
|
|
187
207
|
- db/migrate/20260924220000_move_flows_onto_easy_flow.rb
|
|
208
|
+
- db/migrate/20260930120000_add_summary_page_to_alembic_flow_definition_summaries.rb
|
|
209
|
+
- db/migrate/20260930230000_add_shows_answer_values_to_alembic_flow_definition_summaries.rb
|
|
210
|
+
- db/migrate/20260930233000_add_asks_on_one_page_to_alembic_flow_definition_summaries.rb
|
|
211
|
+
- db/migrate/20261001120000_add_intro_page_to_alembic_flow_definition_summaries.rb
|
|
188
212
|
- lib/alembic.rb
|
|
189
213
|
- lib/alembic/engine.rb
|
|
190
214
|
- lib/alembic/leftover_stylesheet.rb
|