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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bca2e64476340a1c8632fa6c4a212cd3de372da
4
- data.tar.gz: 5664e7fc5f65bd4744831b9c7553dd29841ee77e
3
+ metadata.gz: 5940e0066d83f969fdcd434baeae9580c5f12168
4
+ data.tar.gz: c2d1eb6206d633fe3a1d198f40bd8eb0168f3cd5
5
5
  SHA512:
6
- metadata.gz: 4894f094a057e9f2162484cce3ab6ad261110660419cd49340a2aeb1b879175ab6d4077c469cee64db13c9e0cac6d6e3685672189f16bb8a7175945142984e14
7
- data.tar.gz: fcdd1ed0458bf361d666793e9c2215d19333d868a3b17ae0dee919fab02f87879c60f1dd14d79ecd36f7de5cb74c6a053c5b4c1bd68f13b1c4ff141a33b80c17
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 + release_day - 1
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
@@ -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("bit_core_content_modules.type = '#{LESSON_MODULE_TYPE}'")
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|
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.14.3"
3
+ VERSION = "3.14.4"
4
4
  end
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.3
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: '2.3'
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: '2.3'
186
+ version: '3.4'
181
187
  - !ruby/object:Gem::Dependency
182
188
  name: twilio-ruby
183
189
  requirement: !ruby/object:Gem::Requirement