electric_profile_ruby 1.0.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/electric_profile_ruby/profiler.rb +1 -1
- data/lib/electric_profile_ruby/question.rb +12 -3
- data/lib/electric_profile_ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4956676463381ee41f62519008d788b213b0f434
|
4
|
+
data.tar.gz: 034f48f8796a2046c4df265b3285b4f33bc57b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8023daa509028fb493d0a0f3592e489f85a96e35b91b00293878edd33c5789eb8fd62b554f08f4a08dd7ff49739b4650f5775009aa26438aa917aeaa0259d2
|
7
|
+
data.tar.gz: 1283a891335320bdd8e74385f3f9be9c58887c8b12f058e536ff5e3d66dbe8f5117b59f97e7eb0d275468e2fa2f2e48a6175ba1e3f043fd6fa6a5c33b7e93f1d
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ module ElectricProfile
|
|
11
11
|
@listQuestionsId = atts[:listQuestionsId] || []
|
12
12
|
@introMessage = atts[:introMessage]
|
13
13
|
@exitMessage = atts[:exitMessage]
|
14
|
-
@hideAnsweredQuestions = atts[:hideAnsweredQuestions] ||
|
14
|
+
@hideAnsweredQuestions = atts[:hideAnsweredQuestions] || false
|
15
15
|
@callbackType = atts[:callbackType]
|
16
16
|
end
|
17
17
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ElectricProfile
|
2
2
|
|
3
3
|
class Question
|
4
|
-
attr_accessor :id, :customerId, :name, :prompt, :type, :answerOptions, :allowMultiple, :categories, :error
|
4
|
+
attr_accessor :id, :customerId, :name, :prompt, :type, :answerOptions, :allowMultiple, :categories, :error, :exclusiveAnswerOptions, :regExValidation, :regExValidationMessage
|
5
5
|
TYPES = ['multi_choice', 'number', 'short_text', 'long_text']
|
6
6
|
|
7
7
|
def initialize(atts)
|
@@ -14,6 +14,9 @@ module ElectricProfile
|
|
14
14
|
@answerOptions = atts[:answerOptions] || {}
|
15
15
|
@allowMultiple = atts[:allowMultiple] || false
|
16
16
|
@categories = atts[:categories] || []
|
17
|
+
@exclusiveAnswerOptions = atts[:exclusiveAnswerOptions]
|
18
|
+
@regExValidation = atts[:regExValidation]
|
19
|
+
@regExValidationMessage = atts[:regExValidationMessage]
|
17
20
|
end
|
18
21
|
|
19
22
|
def save
|
@@ -32,7 +35,10 @@ module ElectricProfile
|
|
32
35
|
type: @type,
|
33
36
|
answerOptions: @answerOptions,
|
34
37
|
allowMultiple: @allowMultiple,
|
35
|
-
categories: @categories
|
38
|
+
categories: @categories,
|
39
|
+
exclusiveAnswerOptions: @exclusiveAnswerOptions,
|
40
|
+
regExValidation: @regExValidation,
|
41
|
+
regExValidationMessage: @regExValidationMessage
|
36
42
|
}
|
37
43
|
if @client.create_question(attributes)
|
38
44
|
@id = @client.data["id"]
|
@@ -54,7 +60,10 @@ module ElectricProfile
|
|
54
60
|
type: @type,
|
55
61
|
answerOptions: @answerOptions,
|
56
62
|
allowMultiple: @allowMultiple,
|
57
|
-
categories: @categories
|
63
|
+
categories: @categories,
|
64
|
+
exclusiveAnswerOptions: @exclusiveAnswerOptions,
|
65
|
+
regExValidation: @regExValidation,
|
66
|
+
regExValidationMessage: @regExValidationMessage
|
58
67
|
}
|
59
68
|
if @client.update_question(attributes)
|
60
69
|
true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: electric_profile_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Alston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|