electric_profile_ruby 1.0.3 → 1.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: 2e980460f5f5c529d838cc56084498fc147ba39e
4
- data.tar.gz: a8b96b4067438629acb69b2ad9b24ca2e277b7a3
3
+ metadata.gz: 4956676463381ee41f62519008d788b213b0f434
4
+ data.tar.gz: 034f48f8796a2046c4df265b3285b4f33bc57b08
5
5
  SHA512:
6
- metadata.gz: b97ac6425239110d12b59f5189c090e94ff03590388b133982de03a49ee927be52c597352be3a4b875e28290fcccff60ccecbb72b17516a95cb850f8c7872c44
7
- data.tar.gz: 173276bf09c6e3f335b6392cbe5e3c04136dc1ecbea86d9912c443460c6ad7dd5d120221bd66d524bff3fbef358fbb2085b6fbcfa685cb279066f673d73c40b8
6
+ metadata.gz: df8023daa509028fb493d0a0f3592e489f85a96e35b91b00293878edd33c5789eb8fd62b554f08f4a08dd7ff49739b4650f5775009aa26438aa917aeaa0259d2
7
+ data.tar.gz: 1283a891335320bdd8e74385f3f9be9c58887c8b12f058e536ff5e3d66dbe8f5117b59f97e7eb0d275468e2fa2f2e48a6175ba1e3f043fd6fa6a5c33b7e93f1d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- electric_profile_ruby (1.0.3)
4
+ electric_profile_ruby (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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] || "NO_ANSWERED"
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
@@ -1,3 +1,3 @@
1
1
  module ElectricProfile
2
- VERSION = "1.0.3"
2
+ VERSION = "1.2.0"
3
3
  end
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.3
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-03-23 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler