think_feel_do_engine 3.22.6 → 3.22.7

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: 3cc18dda2e33d1bc41a9c39c3c230bd24aa99acc
4
- data.tar.gz: 868fad56f2417c9d9e397c4afc4af9519adf0891
3
+ metadata.gz: c76fcf5d08fa7146bb8abb321f1109ea70102751
4
+ data.tar.gz: c632c6bdc6adc6bd566492341f7c165b7f991d4b
5
5
  SHA512:
6
- metadata.gz: 850b1c5090b80484ac3862a59dba1b2c6571fe03fa8e337dc97193642aff23272d696de1a3a24faab7119437020d5c283d1d2f028a7c312f6819de90c4683550
7
- data.tar.gz: 1c156da8b9a449141ecc2ec93c60a4908303150fa50535fe61d54121c2e032b380fb67fcc374224aa586b887846a7aae2662b0aaed8bcc2c343cf014f6cc38d8
6
+ metadata.gz: 1fda4b8ab9f2b39497a29042c87d4ee5d053db136641b94cee1768cf026ee5a13dc37b5e2d7a0a3e1577c01d9421aa6607201fca82fa1149349fb71ad0104eea
7
+ data.tar.gz: 3789fdce7d10d2407946fd2b8e4442af22370f921ba59785439be0b9c3e5b5c9234cc19afd985981cf0621d195b8d559722e34522f75e5556a8f0792323a9a87
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ module ThinkFeelDoEngine
3
+ module Reports
4
+ # Collect metadata for all Participant Mood Ratings.
5
+ class MoodRating
6
+ def self.columns
7
+ %w( participant_id rating created_at )
8
+ end
9
+
10
+ def self.all
11
+ Participant.not_moderator.select(:id, :study_id).map do |participant|
12
+ participant.moods.map do |mood|
13
+ {
14
+ participant_id: participant.study_id,
15
+ rating: mood.rating,
16
+ created_at: mood.created_at.iso8601
17
+ }
18
+ end
19
+ end.flatten
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # nodoc
3
3
  module ThinkFeelDoEngine
4
- VERSION = "3.22.6"
4
+ VERSION = "3.22.7"
5
5
  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.22.6
4
+ version: 3.22.7
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-12-21 00:00:00.000000000 Z
11
+ date: 2017-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -556,6 +556,7 @@ files:
556
556
  - app/models/think_feel_do_engine/reports/messaging.rb
557
557
  - app/models/think_feel_do_engine/reports/module_page_view.rb
558
558
  - app/models/think_feel_do_engine/reports/module_session.rb
559
+ - app/models/think_feel_do_engine/reports/mood_rating.rb
559
560
  - app/models/think_feel_do_engine/reports/patient_activity.rb
560
561
  - app/models/think_feel_do_engine/reports/patient_thought.rb
561
562
  - app/models/think_feel_do_engine/reports/phq_assessment.rb
@@ -1009,7 +1010,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1009
1010
  version: '0'
1010
1011
  requirements: []
1011
1012
  rubyforge_project:
1012
- rubygems_version: 2.6.7
1013
+ rubygems_version: 2.5.1
1013
1014
  signing_key:
1014
1015
  specification_version: 4
1015
1016
  summary: Summary of ThinkFeelDoEngine.