think_feel_do_engine 3.10.9 → 3.10.10
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 +4 -4
- data/README.md +8 -2
- data/app/assets/javascripts/think_feel_do_engine/activities/your_activities.js +3 -3
- data/app/controllers/think_feel_do_engine/application_controller.rb +6 -2
- data/app/controllers/think_feel_do_engine/bit_maker/content_modules_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/bit_maker/content_providers_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/bit_maker/slides_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/bit_maker/slideshow_anchors_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/bit_maker/slideshows_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/group_dashboard_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/memberships_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/messages_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/patient_dashboards_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/phq_assessments_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/received_messages_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/sent_messages_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach/site_messages_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/coach_dashboard_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/keep_alive_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/lesson_slides_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/lessons_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/manage/groups_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/manage/tasks_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/memberships_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/navigator_controller.rb +1 -0
- data/app/controllers/think_feel_do_engine/participant_data_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/activities_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/assessments_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/lessons_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/media_access_events_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/public_slides_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/task_status_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/participants/thoughts_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/password_entropy_bits_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/privacy_policies_controller.rb +2 -0
- data/app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb +2 -0
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260af006064a8d3f4c26190f294125f61d59bda7
|
4
|
+
data.tar.gz: 8e2d0651076729f5961ad5cd01567c5cb143f113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd10b328f4c820c2d7f6952e870a4e81ed05233aba03d76fe95475be1b273997788c706e8a2f4348f459800a4c4a1ee624df6b9fe85e7a9871c4814e5db847c
|
7
|
+
data.tar.gz: ce2c68f6dcf8b7507294c8ab623f113683ae31a4115921d11217a06ab46058523448dafec67ea030d1eb9f87b1924bafbd771e4b81120227d49caaea76ec78cf
|
data/README.md
CHANGED
@@ -53,12 +53,18 @@ run the specs
|
|
53
53
|
|
54
54
|
./bin/rake
|
55
55
|
|
56
|
-
|
56
|
+
## Publishing to RubyGems
|
57
|
+
|
58
|
+
Build the `think_feel_do_engine` gem
|
57
59
|
|
58
60
|
```console
|
59
61
|
gem build think_feel_do_engine.gemspec
|
60
62
|
```
|
61
63
|
|
64
|
+
Publish to [rubygems.org](https://rubygems.org)
|
65
|
+
|
62
66
|
```console
|
63
67
|
gem push think_feel_do_engine-x.x.x.gem
|
64
|
-
```
|
68
|
+
```
|
69
|
+
|
70
|
+
View the published `think_feel_do_engine` gem [here](https://rubygems.org/gems/think_feel_do_engine)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
sc.attachCollapsableIcons = function(idPrex, openPanelsOnPageLoadArray) {
|
4
|
-
$('[href^=' + idPrex + ']').each(function(index, value, list) {
|
4
|
+
$('[href^="' + idPrex + '"]').each(function(index, value, list) {
|
5
5
|
sc.collapsableIcon(value.hash);
|
6
6
|
});
|
7
7
|
(openPanelsOnPageLoadArray || []).forEach(function(value) {
|
@@ -19,10 +19,10 @@ sc.collapsableIcon = function(anchorTag) {
|
|
19
19
|
sc.openOnDefault(POUND_SIGN + event.currentTarget.id);
|
20
20
|
});
|
21
21
|
$(anchorTag).on('hide.bs.collapse', function(event) {
|
22
|
-
$('[href^=' + POUND_SIGN + event.currentTarget.id + ']').find('.fa-caret-down').addClass('fa-caret-right').removeClass('fa-caret-down');
|
22
|
+
$('[href^="' + POUND_SIGN + event.currentTarget.id + '"]').find('.fa-caret-down').addClass('fa-caret-right').removeClass('fa-caret-down');
|
23
23
|
});
|
24
24
|
};
|
25
25
|
|
26
26
|
sc.openOnDefault = function(id) {
|
27
|
-
$('[href^=' + id + ']').find('.fa-caret-right').addClass('fa-caret-down').removeClass('fa-caret-right');
|
27
|
+
$('[href^="' + id + '"]').find('.fa-caret-right').addClass('fa-caret-down').removeClass('fa-caret-right');
|
28
28
|
};
|
@@ -2,9 +2,12 @@ require "cancan"
|
|
2
2
|
|
3
3
|
module ThinkFeelDoEngine
|
4
4
|
# Site-wide controller superclass.
|
5
|
+
# Inherits from host's ApplicationController.
|
5
6
|
class ApplicationController < ::ApplicationController
|
6
7
|
include ThinkFeelDoEngine::Concerns::BrowserDetective
|
7
8
|
|
9
|
+
CSRF_COOKIE_NAME = "XSRF-TOKEN"
|
10
|
+
CSRF_HEADER_NAME = "X-XSRF-TOKEN"
|
8
11
|
ROOT_URI = "/"
|
9
12
|
INACTIVE_MESSAGE = "We're sorry, but you can't sign in yet "\
|
10
13
|
"because you are not assigned to an active group."
|
@@ -56,7 +59,8 @@ module ThinkFeelDoEngine
|
|
56
59
|
protected
|
57
60
|
|
58
61
|
def verified_request?
|
59
|
-
super ||
|
62
|
+
super ||
|
63
|
+
valid_authenticity_token?(session, request.headers[CSRF_HEADER_NAME])
|
60
64
|
end
|
61
65
|
|
62
66
|
private
|
@@ -71,7 +75,7 @@ module ThinkFeelDoEngine
|
|
71
75
|
|
72
76
|
def set_csrf_cookie_for_ng
|
73
77
|
return unless protect_against_forgery?
|
74
|
-
cookies[
|
78
|
+
cookies[CSRF_COOKIE_NAME] = form_authenticity_token
|
75
79
|
end
|
76
80
|
end
|
77
81
|
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.10.
|
4
|
+
version: 3.10.10
|
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-01-
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails-observers
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|