think_feel_do_engine 3.16.1 → 3.16.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e308974cb4979a222f727e41d6062a4b86bc5e6
4
- data.tar.gz: 2895792fceb855da1f73847482a891c8dbc3d455
3
+ metadata.gz: 099d2b9246441035ead8b54604571f1195ff4e32
4
+ data.tar.gz: 77a684b0110078d7669fa9bb9a3451de11993dea
5
5
  SHA512:
6
- metadata.gz: 06444b2d8dd2bf8d257f66ba8e9b2ce9086f99a3802875453058c77502c0ab275f033625a17b5bf46c13dd2afd69a887202c7de4637c9f9b0f2f0914fb00428a
7
- data.tar.gz: 4a6e5eef52330c2069ec22399e3abfe9c7075b5a28791833f516003a11625bd9d0995168366041d05dd8d61f422e580705ba14d8840765b0d56aa713e6cdfa15
6
+ metadata.gz: 2843e95cdf48a0d09042e5c2f97e0b7d3ea0d82a5b8222b9cbc9cbc1d5ce1aa01df677b52ebfbabc6a49d109ac98792eca124e94fe7dcc52a753603015e958d2
7
+ data.tar.gz: ffc57f373f55c169858c6a70d62f675b3d4f86f2bcd8dacef0bbe3ebe647424d91e1d51467ea30b1a75974bd4bb9217726d23c986a1b1d251ea170af45b33ab6
@@ -25,16 +25,26 @@ class MessageSmsNotification
25
25
  Rails.env
26
26
  end
27
27
 
28
+ def status_callback_url
29
+ config.try(:status_callback_url)
30
+ end
31
+
28
32
  def from_telephone_number
29
33
  config.try(:twilio_account_telephone_number)
30
34
  end
31
35
 
32
36
  def message
33
- {
37
+ params = {
34
38
  to: "+1#{ phone_number }",
35
39
  from: from_telephone_number,
36
40
  body: body
37
41
  }
42
+
43
+ if status_callback_url
44
+ params[:status_callback] = status_callback_url
45
+ end
46
+
47
+ params
38
48
  end
39
49
 
40
50
  def sms_client
@@ -14,6 +14,8 @@
14
14
  <table class="table table-hover generic-data-table data-table" id="phq_assessments">
15
15
  <thead>
16
16
  <tr>
17
+ <th class="not-displayed"></th>
18
+ <th class="not-displayed"></th>
17
19
  <th>Release Date</th>
18
20
  <th>Created Date</th>
19
21
  <th>Assessment Score</th>
@@ -42,6 +44,23 @@
42
44
 
43
45
  <script type="text/javascript">
44
46
  $(function() {
45
- return $('.generic-data-table').dataTable();
47
+ return $('#phq_assessments').dataTable({
48
+ order: [[0, 'desc']],
49
+ columnDefs: [
50
+ {
51
+ targets: [0],
52
+ visible: false
53
+ },{
54
+ targets: [1],
55
+ visible: false
56
+ },{
57
+ targets: [2],
58
+ orderData: [0]
59
+ },{
60
+ targets: [3],
61
+ orderData: [1]
62
+ }
63
+ ]
64
+ });
46
65
  });
47
66
  </script>
@@ -1,4 +1,6 @@
1
1
  <tr class="<%= 'danger' if phq_assessment.suicidal? %>">
2
+ <td class="not-displayed"><%= phq_assessment.release_date.to_i %></td>
3
+ <td class="not-displayed"><%= phq_assessment.created_at.to_i %></td>
2
4
  <td>Released <%= phq_assessment.release_date.to_s(:user_date) %></td>
3
5
  <td>Created <%= phq_assessment.created_at.to_s(:user_date) %></td>
4
6
  <td><%= phq_assessment.score %></td>
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.16.1"
3
+ VERSION = "3.16.2"
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.16.1
4
+ version: 3.16.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-02 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails