alembic 0.13.0 → 0.14.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: ae4f6fdd30b863971ed64168da8b19b238930a9d6983978e8fd80f5bad0ff206
4
- data.tar.gz: 54d74ca4152be0bee97e02a639b11c240f76bd595523d1a21577b43e062caee0
3
+ metadata.gz: 26fff39c56e3627fa327fc6ae59d02d9d034687db485abf2e7d991e19beac021
4
+ data.tar.gz: e8eb409d6bff630da792f4d084138e6c48d7d7b443a659e257a31f19b91e0627
5
5
  SHA512:
6
- metadata.gz: 7b507037a195cb807bccae95dbcfbb982a4325e535631fa4e53ba8f21316dca572904e9d2b92fc71b501407819ab1a4dc137718323730829911046af406363fe
7
- data.tar.gz: 0cfdcb1374201572a0fadbd1a9671f2dca43cbedddb8c8e480fa845d415399412883faf53f854bbbc9756b2173766e52f84392ecdf5e85ffed6a7f14c77c86dd
6
+ metadata.gz: 45395f01c87606d7a626341112ed4b99c27ba1e4b11b82cb8cc186a8e33f2b3279f9f7542c625f8f879b37327defa4a57ac7bbcfef3846f1b5053d02abf65076
7
+ data.tar.gz: 523ec9fda8a088f4843bcb3b5347bca4771a523fd42e7c9314ea128792f1279d97186418bcaf56b8b6c650b4f93b9a31f42f7c20789eb61d537f9b6afa123ae3
@@ -97,7 +97,7 @@ module Alembic
97
97
  end
98
98
 
99
99
  def answered_right?(step, value)
100
- (run&.flow || flow).scored? && Outputs::WeightedSum.weight_of(step_settings(step), value).positive?
100
+ Alembic.marks_right_answers && Outputs::WeightedSum.weight_of(step_settings(step), value).positive?
101
101
  end
102
102
 
103
103
  def step_settings(id)
@@ -130,7 +130,7 @@ class MoveFlowsOntoEasyFlow < ActiveRecord::Migration[8.1]
130
130
 
131
131
  def copy_flows
132
132
  OldFlow.order(:id).to_h do |flow|
133
- [ flow.id, Definition.create!(flow.attributes.slice(*FLOW_COLUMNS).merge("host" => HOST)).id ]
133
+ [ flow.id, Definition.create!(flow.attributes.slice(*FLOW_COLUMNS & Definition.column_names).merge("host" => HOST)).id ]
134
134
  end
135
135
  end
136
136
 
@@ -1,3 +1,3 @@
1
1
  module Alembic
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
data/lib/alembic.rb CHANGED
@@ -13,7 +13,7 @@ module Alembic
13
13
  visitor_authorization_method refusal_method owner_method].freeze
14
14
 
15
15
  class << self
16
- attr_accessor :lead_address, :lead_fields_partial, :lead_note, :start_over_address, :finish_link
16
+ attr_accessor :lead_address, :lead_fields_partial, :lead_note, :start_over_address, :finish_link, :marks_right_answers
17
17
  attr_reader :admin_authentication_method, :visitor_authorization_method, :refusal_method, :owner_method
18
18
  attr_writer :finish_title, :finish_subtitle, :finish_answers_heading
19
19
 
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.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider
@@ -57,14 +57,20 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.30'
60
+ version: '0.32'
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.32.1
61
64
  type: :runtime
62
65
  prerelease: false
63
66
  version_requirements: !ruby/object:Gem::Requirement
64
67
  requirements:
65
68
  - - "~>"
66
69
  - !ruby/object:Gem::Version
67
- version: '0.30'
70
+ version: '0.32'
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 0.32.1
68
74
  description: Alembic builds and runs data-driven interactive diagnostics — scored
69
75
  assessments and branching guides — that place a visitor on an outcome and capture
70
76
  the result. A runtime engine plus a UI builder.