think_feel_do_engine 3.15.1 → 3.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/content_providers/experiences/index_provider.rb +6 -15
- data/app/models/think_feel_do_engine/reports/lesson_viewing.rb +6 -2
- data/app/views/think_feel_do_engine/experiences/index_provider.html.erb +0 -4
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e83ae6fd9a710a062c4abad4f5294fd8fa398be
|
4
|
+
data.tar.gz: 30db304fb47b40b0c49dfe62fe6ac93190f29d3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f37cee0fb9d4c0b54951d1e4df53cd2d6840c261dda81c2c20218ee27725db866c23c1f472a2d6489c638b24b74a19ae3fcea9106ad9cbe2e6ffd387939e6fe
|
7
|
+
data.tar.gz: 0d4676397eea5e1ce4a3873abe315adb4d49098c54177efd3cd7c063944f19e1c860fca8677ea197bdf185c593e31b09da45151d41f43ae47dde3f111c589442
|
@@ -3,25 +3,16 @@ module ContentProviders
|
|
3
3
|
# Allows participants view past positive experiences/events
|
4
4
|
class IndexProvider < BitCore::ContentProvider
|
5
5
|
def render_current(options)
|
6
|
-
options.view_context
|
6
|
+
view_context = options.view_context
|
7
|
+
|
8
|
+
view_context.render(
|
7
9
|
template: "think_feel_do_engine/experiences/index_provider",
|
8
10
|
locals: {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
provider_id: first_new_provider
|
13
|
-
.try(:id),
|
14
|
-
content_position: 1),
|
15
|
-
experiences: options
|
16
|
-
.view_context.current_participant.experiences
|
11
|
+
experiences: view_context
|
12
|
+
.current_participant
|
13
|
+
.experiences
|
17
14
|
})
|
18
15
|
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def first_new_provider
|
23
|
-
NewProvider.first
|
24
|
-
end
|
25
16
|
end
|
26
17
|
end
|
27
18
|
end
|
@@ -28,13 +28,17 @@ module ThinkFeelDoEngine
|
|
28
28
|
.to_a.select do |e|
|
29
29
|
lessons.keys.include?(e.current_url.gsub(URL_ROOT_RE, "")) ||
|
30
30
|
lessons_default
|
31
|
-
.keys.include?(e.current_url.gsub(URL_ROOT_RE, ""))
|
31
|
+
.keys.include?(e.current_url.gsub(URL_ROOT_RE, "")) ||
|
32
|
+
lessons_default
|
33
|
+
.keys.include?(e.current_url.gsub(URL_ROOT_RE, "")[0...-1])
|
32
34
|
end
|
33
35
|
|
34
36
|
lesson_select_events.map do |e|
|
35
37
|
lesson_id = lessons[e.current_url.gsub(URL_ROOT_RE, "")] ||
|
36
38
|
lessons_default[e.current_url
|
37
|
-
.gsub(URL_ROOT_RE, "")]
|
39
|
+
.gsub(URL_ROOT_RE, "")] ||
|
40
|
+
lessons_default[e.current_url
|
41
|
+
.gsub(URL_ROOT_RE, "")[0...-1]]
|
38
42
|
last_page_opened = last_page_opened(e, lesson_id)
|
39
43
|
event_hash(participant, lesson_id, e, last_page_opened)
|
40
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: think_feel_do_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.15.
|
4
|
+
version: 3.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|