think_feel_do_engine 3.17.1 → 3.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20160516143153_remove_gratitude_recording.rb +6 -0
- data/db/migrate/20160516143322_remove_experience.rb +6 -0
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +5 -17
- data/app/models/content_providers/current_modules/index_provider.rb +0 -56
- data/app/models/content_providers/experiences/index_provider.rb +0 -18
- data/app/models/content_providers/experiences/new_provider.rb +0 -35
- data/app/models/content_providers/gratitude_recordings/index_provider.rb +0 -18
- data/app/models/content_providers/gratitude_recordings/new_provider.rb +0 -27
- data/app/models/experience.rb +0 -5
- data/app/models/gratitude_recording.rb +0 -5
- data/app/models/tools/experiences.rb +0 -5
- data/app/models/tools/gratitude_recordings.rb +0 -6
- data/app/views/think_feel_do_engine/current_modules/index.html.erb +0 -19
- data/app/views/think_feel_do_engine/experiences/index_provider.html.erb +0 -35
- data/app/views/think_feel_do_engine/experiences/new_provider.html.erb +0 -62
- data/app/views/think_feel_do_engine/gratitude_recordings/index_provider.html.erb +0 -16
- data/app/views/think_feel_do_engine/gratitude_recordings/new_provider.html.erb +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5a174dc3e190c93463eac43b6c0e3421c541cf3
|
4
|
+
data.tar.gz: 3d945de61e14aa35446c16b30593f1c1fa53f118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac05c42703dc7cf0bb411fc6bc09486184e6b2779c1463860b79311d04c55edbce62568d927b448e78afdc3853a2b453c94fba88682f4c99b0f68319c9e4e43
|
7
|
+
data.tar.gz: e76b60425459ce2f536c49048d4a305aac9932561edc1892aa8647bc51a44c583c1a2706a23348aeefdc9e07200dfb380975d98c820a678a0efe55daef3f7b0f
|
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.17.
|
4
|
+
version: 3.17.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-05-
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -462,14 +462,9 @@ files:
|
|
462
462
|
- app/models/content_providers/augmented_thoughts_table_provider.rb
|
463
463
|
- app/models/content_providers/awake_period_form.rb
|
464
464
|
- app/models/content_providers/create_activity.rb
|
465
|
-
- app/models/content_providers/current_modules/index_provider.rb
|
466
465
|
- app/models/content_providers/edit_past_feel_provider.rb
|
467
466
|
- app/models/content_providers/evaluate_thoughts_provider.rb
|
468
|
-
- app/models/content_providers/experiences/index_provider.rb
|
469
|
-
- app/models/content_providers/experiences/new_provider.rb
|
470
467
|
- app/models/content_providers/fun_activity_checklist.rb
|
471
|
-
- app/models/content_providers/gratitude_recordings/index_provider.rb
|
472
|
-
- app/models/content_providers/gratitude_recordings/new_provider.rb
|
473
468
|
- app/models/content_providers/harmful_thoughts_edit_form_provider.rb
|
474
469
|
- app/models/content_providers/helpful_thoughts_index_provider.rb
|
475
470
|
- app/models/content_providers/important_activity_checklist.rb
|
@@ -504,8 +499,6 @@ files:
|
|
504
499
|
- app/models/emotion.rb
|
505
500
|
- app/models/emotional_rating.rb
|
506
501
|
- app/models/engagement.rb
|
507
|
-
- app/models/experience.rb
|
508
|
-
- app/models/gratitude_recording.rb
|
509
502
|
- app/models/group.rb
|
510
503
|
- app/models/media_access_event.rb
|
511
504
|
- app/models/membership.rb
|
@@ -552,8 +545,6 @@ files:
|
|
552
545
|
- app/models/thought.rb
|
553
546
|
- app/models/thought_pattern.rb
|
554
547
|
- app/models/tool_nav_item.rb
|
555
|
-
- app/models/tools/experiences.rb
|
556
|
-
- app/models/tools/gratitude_recordings.rb
|
557
548
|
- app/models/tools/home.rb
|
558
549
|
- app/models/tools/learn.rb
|
559
550
|
- app/models/tools/messages.rb
|
@@ -680,15 +671,10 @@ files:
|
|
680
671
|
- app/views/think_feel_do_engine/coach/site_messages/index.html.erb
|
681
672
|
- app/views/think_feel_do_engine/coach/site_messages/new.html.erb
|
682
673
|
- app/views/think_feel_do_engine/coach/site_messages/show.html.erb
|
683
|
-
- app/views/think_feel_do_engine/current_modules/index.html.erb
|
684
674
|
- app/views/think_feel_do_engine/emotions/_emotion_coach_view.html.erb
|
685
675
|
- app/views/think_feel_do_engine/emotions/_form.html.erb
|
686
676
|
- app/views/think_feel_do_engine/emotions/index.html.erb
|
687
677
|
- app/views/think_feel_do_engine/emotions/new_current.html.erb
|
688
|
-
- app/views/think_feel_do_engine/experiences/index_provider.html.erb
|
689
|
-
- app/views/think_feel_do_engine/experiences/new_provider.html.erb
|
690
|
-
- app/views/think_feel_do_engine/gratitude_recordings/index_provider.html.erb
|
691
|
-
- app/views/think_feel_do_engine/gratitude_recordings/new_provider.html.erb
|
692
678
|
- app/views/think_feel_do_engine/learn/_completion_data.html.erb
|
693
679
|
- app/views/think_feel_do_engine/learn/lessons_index.html.erb
|
694
680
|
- app/views/think_feel_do_engine/lesson_notification_mailer/lesson_notification_email.html.erb
|
@@ -947,6 +933,8 @@ files:
|
|
947
933
|
- db/migrate/20160209225643_add_emotions_thoughts_body_feelings_to_experience.rb
|
948
934
|
- db/migrate/20160404195642_change_show_next_nav_column_default.bit_core.rb
|
949
935
|
- db/migrate/20160408185958_add_event_composite_index_participant_kind.rb
|
936
|
+
- db/migrate/20160516143153_remove_gratitude_recording.rb
|
937
|
+
- db/migrate/20160516143322_remove_experience.rb
|
950
938
|
- lib/tasks/lesson_notifications.rake
|
951
939
|
- lib/tasks/seed.rake
|
952
940
|
- lib/tasks/think_feel_do_engine_tasks.rake
|
@@ -987,7 +975,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
987
975
|
version: '0'
|
988
976
|
requirements: []
|
989
977
|
rubyforge_project:
|
990
|
-
rubygems_version: 2.
|
978
|
+
rubygems_version: 2.5.1
|
991
979
|
signing_key:
|
992
980
|
specification_version: 4
|
993
981
|
summary: Summary of ThinkFeelDoEngine.
|
@@ -1,56 +0,0 @@
|
|
1
|
-
module ContentProviders
|
2
|
-
module CurrentModules
|
3
|
-
# Provides a set of links to other ContentProviders.
|
4
|
-
class IndexProvider < BitCore::ContentProvider
|
5
|
-
def render_current(options)
|
6
|
-
participant = options.participant
|
7
|
-
context = options.view_context
|
8
|
-
|
9
|
-
context.render(
|
10
|
-
template: "think_feel_do_engine/current_modules/index",
|
11
|
-
locals: {
|
12
|
-
content_modules: content_modules(options),
|
13
|
-
current_practice_modules: current_practice_modules(options),
|
14
|
-
past_practice_modules: past_practice_modules(options),
|
15
|
-
membership: context
|
16
|
-
.view_membership(participant, participant.active_group)
|
17
|
-
})
|
18
|
-
end
|
19
|
-
|
20
|
-
def show_nav_link?
|
21
|
-
false
|
22
|
-
end
|
23
|
-
|
24
|
-
private
|
25
|
-
|
26
|
-
def content_modules(options)
|
27
|
-
participant = options.participant
|
28
|
-
arm_id = participant.active_group.arm_id
|
29
|
-
tool = BitCore::Tool
|
30
|
-
.find_by_arm_id_and_title(arm_id, options.app_context)
|
31
|
-
|
32
|
-
@content_modules ||=
|
33
|
-
AvailableContentModule
|
34
|
-
.for_participant(participant)
|
35
|
-
.for_tool(tool)
|
36
|
-
.available_by(Date.current)
|
37
|
-
.excludes_module(bit_core_content_module_id)
|
38
|
-
.latest_duplicate
|
39
|
-
end
|
40
|
-
|
41
|
-
def current_practice_modules(options)
|
42
|
-
participant = options.participant
|
43
|
-
|
44
|
-
content_modules(options)
|
45
|
-
.for_current_week(participant.active_membership)
|
46
|
-
end
|
47
|
-
|
48
|
-
def past_practice_modules(options)
|
49
|
-
participant = options.participant
|
50
|
-
|
51
|
-
content_modules(options)
|
52
|
-
.for_past_weeks(participant.active_membership)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module ContentProviders
|
2
|
-
module Experiences
|
3
|
-
# Allows participants view past positive experiences/events
|
4
|
-
class IndexProvider < BitCore::ContentProvider
|
5
|
-
def render_current(options)
|
6
|
-
view_context = options.view_context
|
7
|
-
|
8
|
-
view_context.render(
|
9
|
-
template: "think_feel_do_engine/experiences/index_provider",
|
10
|
-
locals: {
|
11
|
-
experiences: view_context
|
12
|
-
.current_participant
|
13
|
-
.experiences
|
14
|
-
})
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module ContentProviders
|
2
|
-
module Experiences
|
3
|
-
# Allows participants to record a positive experiences/events
|
4
|
-
class NewProvider < BitCore::ContentProvider
|
5
|
-
def data_attributes
|
6
|
-
[
|
7
|
-
:body_feelings,
|
8
|
-
:challenging_amplification,
|
9
|
-
:description,
|
10
|
-
:emotions,
|
11
|
-
:thoughts
|
12
|
-
]
|
13
|
-
end
|
14
|
-
|
15
|
-
def data_class_name
|
16
|
-
"Experience"
|
17
|
-
end
|
18
|
-
|
19
|
-
def render_current(options)
|
20
|
-
view_context = options.view_context
|
21
|
-
|
22
|
-
options.view_context.render(
|
23
|
-
template: "think_feel_do_engine/experiences/new_provider",
|
24
|
-
locals: {
|
25
|
-
create_path: view_context.participant_data_path,
|
26
|
-
participant: view_context.current_participant
|
27
|
-
})
|
28
|
-
end
|
29
|
-
|
30
|
-
def show_nav_link?
|
31
|
-
false
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module ContentProviders
|
2
|
-
module GratitudeRecordings
|
3
|
-
# Allows participants to record a new gratitude recording
|
4
|
-
class IndexProvider < BitCore::ContentProvider
|
5
|
-
def render_current(options)
|
6
|
-
view_context = options.view_context
|
7
|
-
|
8
|
-
view_context.render(
|
9
|
-
template: "think_feel_do_engine/gratitude_recordings/index_provider",
|
10
|
-
locals: {
|
11
|
-
gratitude_recordings: view_context
|
12
|
-
.current_participant
|
13
|
-
.gratitude_recordings
|
14
|
-
})
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module ContentProviders
|
2
|
-
module GratitudeRecordings
|
3
|
-
# Allows participants to record a new gratitude
|
4
|
-
class NewProvider < BitCore::ContentProvider
|
5
|
-
def data_attributes
|
6
|
-
[:description]
|
7
|
-
end
|
8
|
-
|
9
|
-
def data_class_name
|
10
|
-
"GratitudeRecording"
|
11
|
-
end
|
12
|
-
|
13
|
-
def render_current(options)
|
14
|
-
options.view_context.render(
|
15
|
-
template: "think_feel_do_engine/gratitude_recordings/new_provider",
|
16
|
-
locals: {
|
17
|
-
create_path: options.view_context.participant_data_path,
|
18
|
-
participant: options.view_context.current_participant
|
19
|
-
})
|
20
|
-
end
|
21
|
-
|
22
|
-
def show_nav_link?
|
23
|
-
false
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/app/models/experience.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<% if (description = content_modules.first.try(:bit_core_tool).try(:description)) %>
|
2
|
-
<% content_for(:tool_description) { sanitize(description).gsub(/\n/, "<br><br>").html_safe } %>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<% content_for :left do %>
|
6
|
-
<div class="list-group left">
|
7
|
-
<% current_practice_modules.each do |m| %>
|
8
|
-
<%= task_status_link(available_module: m, icon: "", membership: membership) %>
|
9
|
-
<% end %>
|
10
|
-
</div>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<% content_for :right do %>
|
14
|
-
<div class="list-group right">
|
15
|
-
<% past_practice_modules.each do |m| %>
|
16
|
-
<%= task_status_link(available_module: m, icon: "", membership: membership) %>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<h2>Experiences</h2>
|
2
|
-
|
3
|
-
<ul class="list-group">
|
4
|
-
<% experiences.each do |experience| %>
|
5
|
-
<li class="list-group-item">
|
6
|
-
<h4 class="list-group-item-heading">
|
7
|
-
<%= experience.description %>
|
8
|
-
</h4>
|
9
|
-
<% if experience.emotions.present? %>
|
10
|
-
<p class="list-group-item-text">
|
11
|
-
Your emotions during the experience: <%= experience.emotions %>
|
12
|
-
</p>
|
13
|
-
<% end %>
|
14
|
-
<% if experience.thoughts.present? %>
|
15
|
-
<p class="list-group-item-text">
|
16
|
-
Your thoughts during the experience: <%= experience.thoughts %>
|
17
|
-
</p>
|
18
|
-
<% end %>
|
19
|
-
<% if experience.body_feelings.present? %>
|
20
|
-
<p class="list-group-item-text">
|
21
|
-
How your body felt: <%= experience.body_feelings %>
|
22
|
-
</p>
|
23
|
-
<% end %>
|
24
|
-
<% if experience.challenging_amplification.present? %>
|
25
|
-
<p class="list-group-item-text">
|
26
|
-
How you amplifed/savored this experience: <%= experience.challenging_amplification %>
|
27
|
-
</p>
|
28
|
-
<% end %>
|
29
|
-
</li>
|
30
|
-
<% end %>
|
31
|
-
</ul>
|
32
|
-
|
33
|
-
<div class="btn-group pull-right">
|
34
|
-
<%= link_to t(:next), main_app.root_url, class: "btn btn-default" %>
|
35
|
-
</div>
|
@@ -1,62 +0,0 @@
|
|
1
|
-
<h2>New Positive Experience</h2>
|
2
|
-
|
3
|
-
<%= form_for(participant.experiences.build, url: create_path, html: { method: :post, role: :form }) do |f| %>
|
4
|
-
<div class="form-group">
|
5
|
-
<%= f.label :description, "Describe something good that happened in the past day.", class: "control-label" %>
|
6
|
-
<%= f.text_area :description, class: "form-control" %>
|
7
|
-
|
8
|
-
<a data-toggle="collapse" href="#collapse-experience-examples">see some examples</a>
|
9
|
-
|
10
|
-
<div class="collapse" id="collapse-experience-examples">
|
11
|
-
<div class="well">
|
12
|
-
<ul>
|
13
|
-
<li>Eating your favorite food</li>
|
14
|
-
<li>Hearing a song you like</li>
|
15
|
-
<li>Drinking coffee in the morning</li>
|
16
|
-
<li>Getting exercise or a good night's sleep</li>
|
17
|
-
<li>Playing video games or seeing something funny online</li>
|
18
|
-
<li>A friend or family member doing something nice for you (giving you a hug, doing a chore, bringing you a small gift)</li>
|
19
|
-
<li>Nice weather or scenery</li>
|
20
|
-
<li>... anything at all that went well (or better than you might have expected)</li>
|
21
|
-
</ul>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div class="form-group">
|
27
|
-
<%= f.label :emotions, "What feelings did you have while it was happening?", class: "control-label" %>
|
28
|
-
<%= f.text_field :emotions, class: "form-control" %>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div class="form-group">
|
32
|
-
<%= f.label :thoughts, "What thoughts did you have while it was happening?", class: "control-label" %>
|
33
|
-
<%= f.text_field :thoughts, class: "form-control" %>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div class="form-group">
|
37
|
-
<%= f.label :body_feelings, "How did your body feel?", class: "control-label" %>
|
38
|
-
<%= f.text_field :body_feelings, class: "form-control" %>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="form-group">
|
42
|
-
<%= f.label :challenging_amplification, "Did you do anything to amplify or savor it? You can also think of an opportunity to do something right now!", class: "control-label" %>
|
43
|
-
<%= f.text_area :challenging_amplification, class: "form-control" %>
|
44
|
-
|
45
|
-
<a data-toggle="collapse" href="#collapse-amplify-examples">see some examples for amplifying positive events</a>
|
46
|
-
|
47
|
-
<div class="collapse" id="collapse-amplify-examples">
|
48
|
-
<div class="well">
|
49
|
-
<ul>
|
50
|
-
<li>Telling a friend or loved one</li>
|
51
|
-
<li>Writing about it in a journal or online</li>
|
52
|
-
<li>Celebrating (cheering, pumping your fist, smiling)</li>
|
53
|
-
<li>Taking a minute to savor it</li>
|
54
|
-
<li>Stopping to appreciate it and make sure you don't get distracted</li>
|
55
|
-
</ul>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<%= link_to t(:skip), navigator_next_content_path, class: "btn btn-warning" %>
|
61
|
-
<%= f.submit t(:next), class: "btn btn-primary" %>
|
62
|
-
<% end %>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h2>Gratitude Recordings</h2>
|
2
|
-
|
3
|
-
<ul class="list-group">
|
4
|
-
<% gratitude_recordings.each do |gratitude_recording| %>
|
5
|
-
<li class="list-group-item clearfix">
|
6
|
-
<span class="text-muted pull-right">
|
7
|
-
<%= gratitude_recording.created_at.to_s(:participant_date) %>
|
8
|
-
</span>
|
9
|
-
<%= gratitude_recording.description %>
|
10
|
-
</li>
|
11
|
-
<% end %>
|
12
|
-
</ul>
|
13
|
-
|
14
|
-
<div class="btn-group pull-right">
|
15
|
-
<%= link_to t(:next), main_app.root_url, class: "btn btn-default" %>
|
16
|
-
</div>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<h2>New Gratitude Recording</h2>
|
2
|
-
|
3
|
-
<%= form_for(participant.gratitude_recordings.build, url: create_path, html: { method: :post, role: :form }) do |f| %>
|
4
|
-
<div class="form-group">
|
5
|
-
<%= f.label :description, "What were you grateful for today? Or, thinking back, what can you feel grateful for now?", class: "control-label" %>
|
6
|
-
<%= f.text_area :description, class: "form-control" %>
|
7
|
-
|
8
|
-
<a data-toggle="collapse" href="#collapse-gratitude-examples">see some examples</a>
|
9
|
-
|
10
|
-
<div class="collapse" id="collapse-gratitude-examples">
|
11
|
-
<div class="well">
|
12
|
-
<ul>
|
13
|
-
<li>A person who's done you a favor</li>
|
14
|
-
<li>Something you enjoy, like a song or TV show (you can be grateful for the show itself, and also to the people who made it.)</li>
|
15
|
-
<li>Things that make life easier or more pleasant - including really simple things, like a warm blanket.</li>
|
16
|
-
<li>A pet or friendly animal</li>
|
17
|
-
<li>A good friend or close family member, just for being there</li>
|
18
|
-
<li>God or a higher power</li>
|
19
|
-
<li>Nature in general, or a particular plant, flower, or tree</li>
|
20
|
-
<li>Anything else that your're glad to have or experience</li>
|
21
|
-
</ul>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<%= link_to t(:skip), navigator_next_content_path, class: "btn btn-warning" %>
|
27
|
-
<%= f.submit t(:next), class: "btn btn-primary" %>
|
28
|
-
<% end %>
|