think_feel_do_engine 3.10.9 → 3.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -2
  3. data/app/assets/javascripts/think_feel_do_engine/activities/your_activities.js +3 -3
  4. data/app/controllers/think_feel_do_engine/application_controller.rb +6 -2
  5. data/app/controllers/think_feel_do_engine/bit_maker/content_modules_controller.rb +2 -0
  6. data/app/controllers/think_feel_do_engine/bit_maker/content_providers_controller.rb +2 -0
  7. data/app/controllers/think_feel_do_engine/bit_maker/slides_controller.rb +2 -0
  8. data/app/controllers/think_feel_do_engine/bit_maker/slideshow_anchors_controller.rb +2 -0
  9. data/app/controllers/think_feel_do_engine/bit_maker/slideshows_controller.rb +2 -0
  10. data/app/controllers/think_feel_do_engine/coach/group_dashboard_controller.rb +2 -0
  11. data/app/controllers/think_feel_do_engine/coach/memberships_controller.rb +2 -0
  12. data/app/controllers/think_feel_do_engine/coach/messages_controller.rb +2 -0
  13. data/app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb +2 -0
  14. data/app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb +2 -0
  15. data/app/controllers/think_feel_do_engine/coach/patient_dashboards_controller.rb +2 -0
  16. data/app/controllers/think_feel_do_engine/coach/phq_assessments_controller.rb +2 -0
  17. data/app/controllers/think_feel_do_engine/coach/received_messages_controller.rb +2 -0
  18. data/app/controllers/think_feel_do_engine/coach/sent_messages_controller.rb +2 -0
  19. data/app/controllers/think_feel_do_engine/coach/site_messages_controller.rb +2 -0
  20. data/app/controllers/think_feel_do_engine/coach_dashboard_controller.rb +2 -0
  21. data/app/controllers/think_feel_do_engine/keep_alive_controller.rb +2 -0
  22. data/app/controllers/think_feel_do_engine/lesson_slides_controller.rb +2 -0
  23. data/app/controllers/think_feel_do_engine/lessons_controller.rb +2 -0
  24. data/app/controllers/think_feel_do_engine/manage/groups_controller.rb +2 -0
  25. data/app/controllers/think_feel_do_engine/manage/tasks_controller.rb +2 -0
  26. data/app/controllers/think_feel_do_engine/memberships_controller.rb +2 -0
  27. data/app/controllers/think_feel_do_engine/navigator_controller.rb +1 -0
  28. data/app/controllers/think_feel_do_engine/participant_data_controller.rb +2 -0
  29. data/app/controllers/think_feel_do_engine/participants/activities_controller.rb +2 -0
  30. data/app/controllers/think_feel_do_engine/participants/assessments_controller.rb +2 -0
  31. data/app/controllers/think_feel_do_engine/participants/lessons_controller.rb +2 -0
  32. data/app/controllers/think_feel_do_engine/participants/media_access_events_controller.rb +2 -0
  33. data/app/controllers/think_feel_do_engine/participants/public_slides_controller.rb +2 -0
  34. data/app/controllers/think_feel_do_engine/participants/task_status_controller.rb +2 -0
  35. data/app/controllers/think_feel_do_engine/participants/thoughts_controller.rb +2 -0
  36. data/app/controllers/think_feel_do_engine/password_entropy_bits_controller.rb +2 -0
  37. data/app/controllers/think_feel_do_engine/privacy_policies_controller.rb +2 -0
  38. data/app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb +2 -0
  39. data/lib/think_feel_do_engine/version.rb +1 -1
  40. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91eba79f3d56649e383d2e76ab0ea215b66eb9e6
4
- data.tar.gz: df4f2174974f17506c9b85fb8e4226272087e5d6
3
+ metadata.gz: 260af006064a8d3f4c26190f294125f61d59bda7
4
+ data.tar.gz: 8e2d0651076729f5961ad5cd01567c5cb143f113
5
5
  SHA512:
6
- metadata.gz: 13bd56a451dafec68ef481b13b8ff78f2fe880f6880aa01bf7758cae363d129dfd755fa4ebc24f57837d40be4560d57df6fb3b0cd4025c125e0db20b127a605f
7
- data.tar.gz: 9ed6cde49fac3ba8cdb3ff4ff6769d5f763de2af3eb288b51a7d05a6348a0cb2fd2b6975c5dc9cf71bd40eab2a7ecbc546a6bc0d040faf028f12baa61b6821ce
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
- #3 Publishing to RubyGems
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 || form_authenticity_token == request.headers["X-XSRF-TOKEN"]
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["XSRF-TOKEN"] = form_authenticity_token
78
+ cookies[CSRF_COOKIE_NAME] = form_authenticity_token
75
79
  end
76
80
  end
77
81
  end
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module BitMaker
3
5
  # Enables users to create, update, and delete modules
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module BitMaker
3
5
  # Enables Admins to create, update, and delete content providers
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module BitMaker
3
5
  # Enables admin to create, update, destroy, and reorder (sort) slides
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module BitMaker
3
5
  # Enables creation and deletion of SlideshowAnchors.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module BitMaker
3
5
  # Enables Admins to create, update, delete, and view the slideshow content
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Manages the Group dashboard for Coaches.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Manage Participant Activities.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Manages coach message handling.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Present Participant Activities Visualization to the Coach.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Present Participant Thoughts Visualization to the Coach.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Manages the Participant dashboard for Coaches.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Allows a Coach to manage Participants' phq assessments.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Enables viewing of messages sent to coaches.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Enables viewing of an individual message sent by coaches.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Coach
3
5
  # Manage messages from the site to Participants.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Enables Coaches to interact with patients via groups
3
5
  # by sending messages and composing individual emails.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Authenticate user
3
5
  class KeepAliveController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Enables slide CRUD functionality.
3
5
  class LessonSlidesController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Enables Lesson CRUD functionality.
3
5
  class LessonsController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Manage
3
5
  # Users can view groups to CRUD and assign slideshows
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Manage
3
5
  # User manages task creation, destruction, and assignment for groups
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Allows a clinician to END a participant's study
3
5
  class MembershipsController < ApplicationController
@@ -1,4 +1,5 @@
1
1
  require "devise"
2
+ require_dependency "think_feel_do_engine/application_controller"
2
3
 
3
4
  module ThinkFeelDoEngine
4
5
  # Uses the Navigator to direct a participant"s flow through the site.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Provides generic create and update methods for a participant's resources.
3
5
  class ParticipantDataController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Manage Participant Activities.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Authorizes and manages Assessment administration.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Read Lesson content.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Captures participant use of media.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Enables Participants to access Slideshows directly.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Updates the completion of assigned tasks for a participant
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  module Participants
3
5
  # Manage Participant Thoughts.
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Calculate the bits of entropy in a password.
3
5
  class PasswordEntropyBitsController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Provides the static privacy policy page.
3
5
  class PrivacyPoliciesController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require_dependency "think_feel_do_engine/application_controller"
2
+
1
3
  module ThinkFeelDoEngine
2
4
  # Used ONLY in development to speed up manual logins.
3
5
  class QuickSignInsController < ApplicationController
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.10.9"
3
+ VERSION = "3.10.10"
4
4
  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.9
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-26 00:00:00.000000000 Z
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.1'
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.1'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails-observers
29
29
  requirement: !ruby/object:Gem::Requirement