epb_view_models 2.2.21 → 2.4.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.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +8 -0
  3. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  4. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  5. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  11. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  12. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  13. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  20. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  21. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  22. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +53 -0
  23. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-Certificate.xsd +213 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-CollectedData.xsd +445 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HIP-Reports.xsd +203 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/Property.xsd +73 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/UserManagement.xsd +252 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/BaseDataTypes.xsd +177 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/EPC-Domains.xsd +68 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SAP-Domains.xsd +1101 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SharedDomains.xsd +596 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  61. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  62. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  63. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  64. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  65. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  80. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  81. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  82. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  83. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  84. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  85. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  91. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  92. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  93. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  94. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  95. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  96. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  102. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  103. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  104. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  105. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  106. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  107. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  111. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  112. data/lib/epb_view_models/version.rb +5 -0
  113. data/lib/epb_view_models.rb +1 -3
  114. data/lib/helper/rrn_helper.rb +4 -4
  115. data/lib/view_model/cs63/common_schema.rb +18 -18
  116. data/lib/view_model/factory.rb +2 -0
  117. data/lib/view_model/rd_sap_schema_s_120/common_schema.rb +547 -0
  118. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  119. data/lib/view_model/rd_sap_wrapper.rb +4 -0
  120. metadata +47 -13
  121. data/.buildspec.yml +0 -13
  122. data/.gitignore +0 -19
  123. data/.rspec +0 -2
  124. data/.rubocop.yml +0 -8
  125. data/.ruby-version +0 -1
  126. data/Gemfile +0 -15
  127. data/Gemfile.lock +0 -122
  128. data/Makefile +0 -17
  129. data/Rakefile +0 -12
  130. data/epb_view_models.gemspec +0 -27
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- inherit_gem:
2
- rubocop-govuk:
3
- - config/default.yml
4
- - config/rspec.yml
5
-
6
- inherit_mode:
7
- merge:
8
- - Exclude
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.4.9
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ruby "3.4.9"
4
-
5
- source "https://rubygems.org"
6
-
7
- group :test do
8
- gem "rake", "~> 13.0.6"
9
- gem "rspec", "~> 3.0"
10
- gem "rubocop-govuk", "~> 5.0", require: false
11
- end
12
-
13
- gem "nokogiri", ">= 1.18.8"
14
- gem "rexml", ">= 3.3.9"
15
- gem "zeitwerk", "~> 2.6"
data/Gemfile.lock DELETED
@@ -1,122 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activesupport (8.1.3)
5
- base64
6
- bigdecimal
7
- concurrent-ruby (~> 1.0, >= 1.3.1)
8
- connection_pool (>= 2.2.5)
9
- drb
10
- i18n (>= 1.6, < 2)
11
- json
12
- logger (>= 1.4.2)
13
- minitest (>= 5.1)
14
- securerandom (>= 0.3)
15
- tzinfo (~> 2.0, >= 2.0.5)
16
- uri (>= 0.13.1)
17
- ast (2.4.3)
18
- base64 (0.3.0)
19
- bigdecimal (4.1.2)
20
- concurrent-ruby (1.3.8)
21
- connection_pool (3.0.2)
22
- diff-lcs (1.6.2)
23
- drb (2.2.3)
24
- i18n (1.15.2)
25
- concurrent-ruby (~> 1.0)
26
- json (2.21.1)
27
- language_server-protocol (3.17.0.6)
28
- lint_roller (1.1.0)
29
- logger (1.7.0)
30
- mini_portile2 (2.8.9)
31
- minitest (6.0.6)
32
- drb (~> 2.0)
33
- prism (~> 1.5)
34
- nokogiri (1.19.4)
35
- mini_portile2 (~> 2.8.2)
36
- racc (~> 1.4)
37
- parallel (1.28.0)
38
- parser (3.3.12.0)
39
- ast (~> 2.4.1)
40
- racc
41
- prism (1.9.0)
42
- racc (1.8.1)
43
- rack (3.2.6)
44
- rainbow (3.1.1)
45
- rake (13.0.6)
46
- regexp_parser (2.12.0)
47
- rexml (3.4.4)
48
- rspec (3.13.2)
49
- rspec-core (~> 3.13.0)
50
- rspec-expectations (~> 3.13.0)
51
- rspec-mocks (~> 3.13.0)
52
- rspec-core (3.13.6)
53
- rspec-support (~> 3.13.0)
54
- rspec-expectations (3.13.5)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.13.0)
57
- rspec-mocks (3.13.8)
58
- diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.13.0)
60
- rspec-support (3.13.7)
61
- rubocop (1.86.0)
62
- json (~> 2.3)
63
- language_server-protocol (~> 3.17.0.2)
64
- lint_roller (~> 1.1.0)
65
- parallel (~> 1.10)
66
- parser (>= 3.3.0.2)
67
- rainbow (>= 2.2.2, < 4.0)
68
- regexp_parser (>= 2.9.3, < 3.0)
69
- rubocop-ast (>= 1.49.0, < 2.0)
70
- ruby-progressbar (~> 1.7)
71
- unicode-display_width (>= 2.4.0, < 4.0)
72
- rubocop-ast (1.49.1)
73
- parser (>= 3.3.7.2)
74
- prism (~> 1.7)
75
- rubocop-capybara (2.22.1)
76
- lint_roller (~> 1.1)
77
- rubocop (~> 1.72, >= 1.72.1)
78
- rubocop-govuk (5.2.1)
79
- rubocop (= 1.86.0)
80
- rubocop-ast (= 1.49.1)
81
- rubocop-capybara (= 2.22.1)
82
- rubocop-rails (= 2.34.3)
83
- rubocop-rake (= 0.7.1)
84
- rubocop-rspec (= 3.9.0)
85
- rubocop-rails (2.34.3)
86
- activesupport (>= 4.2.0)
87
- lint_roller (~> 1.1)
88
- rack (>= 1.1)
89
- rubocop (>= 1.75.0, < 2.0)
90
- rubocop-ast (>= 1.44.0, < 2.0)
91
- rubocop-rake (0.7.1)
92
- lint_roller (~> 1.1)
93
- rubocop (>= 1.72.1)
94
- rubocop-rspec (3.9.0)
95
- lint_roller (~> 1.1)
96
- rubocop (~> 1.81)
97
- ruby-progressbar (1.13.0)
98
- securerandom (0.4.1)
99
- tzinfo (2.0.6)
100
- concurrent-ruby (~> 1.0)
101
- unicode-display_width (3.2.0)
102
- unicode-emoji (~> 4.1)
103
- unicode-emoji (4.2.0)
104
- uri (1.1.1)
105
- zeitwerk (2.8.2)
106
-
107
- PLATFORMS
108
- ruby
109
-
110
- DEPENDENCIES
111
- nokogiri (>= 1.18.8)
112
- rake (~> 13.0.6)
113
- rexml (>= 3.3.9)
114
- rspec (~> 3.0)
115
- rubocop-govuk (~> 5.0)
116
- zeitwerk (~> 2.6)
117
-
118
- RUBY VERSION
119
- ruby 3.4.9p82
120
-
121
- BUNDLED WITH
122
- 2.3.15
data/Makefile DELETED
@@ -1,17 +0,0 @@
1
- .DEFAULT_GOAL := help
2
- SHELL := /bin/bash
3
-
4
- .PHONY: help install test format
5
-
6
- help: ## Print help documentation
7
- @echo -e "Makefile Help for epb-view-models"
8
- @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
9
-
10
- install: ## Install required libraries and setup
11
- @bundle install
12
-
13
- test: ## Run all tests
14
- @bundle exec rake spec
15
-
16
- format: ## Runs Rubocop with the GOV.UK rules
17
- @bundle exec rake rubocop:autocorrect
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/epb_view_models"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "epb_view_models"
7
- spec.version = EpbViewModels::VERSION
8
- spec.authors = ["MHCLG Energy Performance of Buildings"]
9
- spec.email = ["mhclg.digital-services@levellingup.gov.uk"]
10
- spec.summary = "Library used to parse Energy Performance Certificates (EPC)"
11
- spec.homepage = "https://github.com/communitiesuk/epb-view-models"
12
- spec.license = "MIT"
13
- spec.required_ruby_version = ">= 3.4"
14
-
15
- # Specify which files should be added to the gem when it is released.
16
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
18
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
19
- end
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
22
- spec.require_paths = %w[lib]
23
-
24
- spec.add_dependency "nokogiri", "~> 1.18"
25
- spec.add_dependency "rexml", "~> 3.3"
26
- spec.add_dependency "zeitwerk", "~> 2.6"
27
- end