think_feel_do_engine 3.14.3 → 3.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/accessibility.rb +1 -32
- data/app/models/task_status.rb +3 -1
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5940e0066d83f969fdcd434baeae9580c5f12168
|
4
|
+
data.tar.gz: c2d1eb6206d633fe3a1d198f40bd8eb0168f3cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba48a876b2d94fc46545684ac2cb493ba89c122b628d846257f6b7020515eab8394c8244bfdf7ca601e19874127c26ab8c5393e88c903889e5138f4b54f06a87
|
7
|
+
data.tar.gz: 0e6c44ab7e0426cd3e67af398305b132e5089368b473ef7768e46cb769c858310735dcfb42e0c8f7bb3cbc4c8596c60bbef383ad719f74a443b034e813613ac2
|
@@ -6,38 +6,7 @@ module Concerns
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def available_for_learning_on
|
9
|
-
membership.start_date +
|
10
|
-
end
|
11
|
-
|
12
|
-
def completed?
|
13
|
-
completed_at.present?
|
14
|
-
end
|
15
|
-
|
16
|
-
def previous_completed?
|
17
|
-
return false unless learning_task_status_index
|
18
|
-
return true if learning_task_status_first?
|
19
|
-
self
|
20
|
-
.class
|
21
|
-
.find_by_id(learning_task_statuses.ids[learning_task_status_index - 1])
|
22
|
-
.completed?
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def learning_task_status_first?
|
28
|
-
learning_task_status_index.zero?
|
29
|
-
end
|
30
|
-
|
31
|
-
def learning_task_status_index
|
32
|
-
learning_task_statuses
|
33
|
-
.ids
|
34
|
-
.find_index(id)
|
35
|
-
end
|
36
|
-
|
37
|
-
def learning_task_statuses
|
38
|
-
membership
|
39
|
-
.ordered_task_statuses
|
40
|
-
.for_learning
|
9
|
+
membership.start_date + start_day - 1
|
41
10
|
end
|
42
11
|
end
|
43
12
|
end
|
data/app/models/task_status.rb
CHANGED
@@ -36,7 +36,9 @@ class TaskStatus < ActiveRecord::Base
|
|
36
36
|
|
37
37
|
scope :for_learning, lambda {
|
38
38
|
joins(:task, task: :bit_core_content_module)
|
39
|
-
.where(
|
39
|
+
.where(
|
40
|
+
Arel::Table.new(:bit_core_content_modules)[:type]
|
41
|
+
.eq(LESSON_MODULE_TYPE))
|
40
42
|
}
|
41
43
|
|
42
44
|
scope :available_by_day, lambda { |day_in_study|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: think_feel_do_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.14.
|
4
|
+
version: 3.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
@@ -168,16 +168,22 @@ dependencies:
|
|
168
168
|
name: redcarpet
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 3.3.2
|
174
|
+
- - "<"
|
172
175
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
176
|
+
version: '3.4'
|
174
177
|
type: :runtime
|
175
178
|
prerelease: false
|
176
179
|
version_requirements: !ruby/object:Gem::Requirement
|
177
180
|
requirements:
|
178
|
-
- - "
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 3.3.2
|
184
|
+
- - "<"
|
179
185
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
186
|
+
version: '3.4'
|
181
187
|
- !ruby/object:Gem::Dependency
|
182
188
|
name: twilio-ruby
|
183
189
|
requirement: !ruby/object:Gem::Requirement
|