bht_survey 0.1.0 → 0.2.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5489830167b8c53332b96ddbe1ce28177463ae9
|
|
4
|
+
data.tar.gz: 96cb2ea70396e561435cd35368d922a085244be1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0419eb42a98681acfb110f552bd08ee6785b0c22f60d7f7937aaafd6886ac5c912804954f261a909de9c488392451484e396856632bd783d84e4c87946cf80ee'
|
|
7
|
+
data.tar.gz: 83d9094d6b53c19e6e1b01823d01c46fb8c14c9bbdbfdfbf3db9c58d4ed143387b7000d4ab3ddff7ca06aff9e2268f51e79fa5cd77d055ea132969657f71114b
|
|
@@ -9,14 +9,13 @@ module BhtSurvey
|
|
|
9
9
|
def index
|
|
10
10
|
participant_id = params["participant_id"]
|
|
11
11
|
survey_name = params["survey_name"]
|
|
12
|
+
process_link_clicked_event participant_id, survey_name
|
|
12
13
|
result = get_participant_link participant_id, survey_name
|
|
13
14
|
unique_link = result['unique_link']
|
|
14
|
-
puts 'Unique',unique_link
|
|
15
15
|
render json: {unique_link: unique_link}.to_json, status: 200
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def results
|
|
19
|
-
puts '-----------------seriously'
|
|
20
19
|
participant_id = params["participant_id"]
|
|
21
20
|
survey_name = params["survey_name"]
|
|
22
21
|
result = get_results participant_id, survey_name
|
data/bht_survey.gemspec
CHANGED
|
@@ -10,13 +10,15 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["jimway@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Shim for Faraday access to the APIs of Qualtrics Interface Service}
|
|
13
|
-
spec.description = %q{Requires a hash with three key values
|
|
14
|
-
|
|
13
|
+
spec.description = %q{#Requires a hash with three key values
|
|
14
|
+
#@workspace = {
|
|
15
15
|
'qualtrics_id' => ENV['qualtrics_id'],
|
|
16
16
|
'qualtrics_library' => ENV['qualtrics_library_id'],
|
|
17
17
|
'study_workspace_name' => 'Shuti-Example'
|
|
18
18
|
}
|
|
19
|
+
#Requires an API_URL to access the Qualtrics Interface Service
|
|
19
20
|
}
|
|
21
|
+
|
|
20
22
|
spec.homepage = "https://github.com/jfinucane/bht_survey.git"
|
|
21
23
|
spec.license = "MIT"
|
|
22
24
|
|
|
@@ -45,5 +45,8 @@ module QualtricsInterface
|
|
|
45
45
|
result['response']
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
def process_link_clicked_event participant_id, survey_name
|
|
49
|
+
puts "===>>>> REPLACEME this method in application controller to track link click (in progress state) for participant #{participant_id} accessing #{survey_name}"
|
|
50
|
+
end
|
|
48
51
|
end
|
|
49
52
|
|
data/lib/bht_survey/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bht_survey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jfinucane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -66,9 +66,10 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '5.0'
|
|
69
|
-
description: "Requires a hash with three key values
|
|
69
|
+
description: "#Requires a hash with three key values\n #@workspace = {\n 'qualtrics_id'
|
|
70
70
|
=> ENV['qualtrics_id'],\n 'qualtrics_library' => ENV['qualtrics_library_id'],\n
|
|
71
|
-
\ 'study_workspace_name' => 'Shuti-Example'\n }\n
|
|
71
|
+
\ 'study_workspace_name' => 'Shuti-Example'\n }\n #Requires an API_URL
|
|
72
|
+
to access the Qualtrics Interface Service\n "
|
|
72
73
|
email:
|
|
73
74
|
- jimway@gmail.com
|
|
74
75
|
executables: []
|