dmtd_vbmapp_data 1.2.0 → 1.2.1

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: 1cb2f3858110be2b70e2f4f2b3dd8d0f22ec5013
4
- data.tar.gz: 734c6b3c3b60ec11155ad34c2f1b0dccf9fdfe04
3
+ metadata.gz: 50dd243670d9f41fff63ca36ddae563e396a3c13
4
+ data.tar.gz: cd4725291ba05388c26e7cecee6e358523a74661
5
5
  SHA512:
6
- metadata.gz: 598f608e5cdb417831f10e20d920ec455eebc94565b6821f1723661bd6bb8872072f87bfdd69ec825101f05c872e95552ffce2776c79549ab8a695233053aba4
7
- data.tar.gz: 8d21b2b595ec690be51861543314d3d7697522d86bb393925867881a1b52f9f780d09054cd82303c7d9485e4e4661fac00a40df11f494e073da1f60a3905e0d0
6
+ metadata.gz: 06766f9c656810a036cee77bcf70666e2953c774206019b9ffa1a00a0825a8921afa058b80d3426547f72d2fdaf079bc1e4fbc25c35ef24ff0f7b994442371cc
7
+ data.tar.gz: 3a75ee30f2a21f8fb75ac31bbb75c1ab2015dc4367f11d9dbe461b031305bace64f12d3a7978ce2475b0061f8b94f7fa47944fdbe66d78d13089d18babb5ff77
data/CHANGELOG.md CHANGED
@@ -36,3 +36,7 @@
36
36
  ## 1.2.0
37
37
 
38
38
  * Completely refactored the API according to the updated VBM Content Server API update
39
+
40
+ ## 1.2.1
41
+
42
+ * Added support for level property on ProtocolAreaQuestion
@@ -45,6 +45,10 @@ module DmtdVbmappData
45
45
  # @return [String] a title to display at the top of a grid column
46
46
  attr_reader :title
47
47
 
48
+ # @!attribute [r] level
49
+ # @return [Integer] the level number of the question (only when area == :milestones)
50
+ attr_reader :level
51
+
48
52
  # Creates an accessor for the VB-MAPP Area Question on the VB-MAPP Data Server
49
53
  #
50
54
  # @note This method does *not* block, simply creates an accessor and returns
@@ -60,15 +64,14 @@ module DmtdVbmappData
60
64
  @group = opts.fetch(:group).to_sym
61
65
  question_json = opts.fetch(:question_json)
62
66
 
63
- guide_content_json = question_json[:guideContent] || {}
64
- @definition = guide_content_json[:definition] || ''
65
- @objective = guide_content_json[:objective] || ''
66
-
67
- @example = question_json[:example] || guide_content_json[:examples]
68
- @materials = question_json[:materials] || guide_content_json[:materials]
67
+ @definition = question_json[:definition]
68
+ @objective = question_json[:objective]
69
+ @example = question_json[:example]
70
+ @materials = question_json[:materials]
69
71
  @number = question_json[:number].to_i
70
72
  @text = question_json[:text]
71
- @title = question_json[:title] || guide_content_json[:title]
73
+ @title = question_json[:title]
74
+ @level = question_json[:level]
72
75
  @responses_json_array = question_json[:responses]
73
76
  end
74
77
 
@@ -1,3 +1,3 @@
1
1
  module DmtdVbmappData
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmtd_vbmapp_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hunt