epb_view_models 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epb_view_models.rb +1 -1
- data/lib/helper/xml_enums_to_output.rb +5 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d79d9f281a39f02dbee9c2951c691175b3dfc89f0bf3e3f907aa3210e07e8a
|
4
|
+
data.tar.gz: 648c87f4d9ad0b4f23eaf859969665ec413b4a62fd7fc621d764cd2211231eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c679fd072c9fea3087edcfc7e04d289f1bf4c653c60cb2f1c25fb114aa3cbf9d4ef1d4a3ac9c17220bd6b3f876d133b29e8d58bda62acf642e6fa16eef9977
|
7
|
+
data.tar.gz: a754bf7fe7e9a8fb144ae351fa1e7af1591ee572370d384a23fb857f254133c5087a313951dd77757dea1b38baaffb45c973de651a971a0f2bb941f1027ac4c3
|
data/lib/epb_view_models.rb
CHANGED
@@ -163,7 +163,7 @@ module Helper
|
|
163
163
|
"6" => "mechanical extract, decentralised (MEV dc)",
|
164
164
|
"7" => "balanced without heat recovery (MV)",
|
165
165
|
"8" => "balanced with heat recovery (MVHR)",
|
166
|
-
"9" => "natural with intermittent extract fans and/or passive vents.
|
166
|
+
"9" => "natural with intermittent extract fans and/or passive vents. For backwards compatibility only, do not use.",
|
167
167
|
"10" => "natural with intermittent extract fans and passive vents",
|
168
168
|
}.freeze
|
169
169
|
CYLINDER_INSULATION_THICKNESS = {
|
@@ -306,7 +306,7 @@ module Helper
|
|
306
306
|
end
|
307
307
|
|
308
308
|
def self.transaction_type(value, report_type = "2", schema_type = "")
|
309
|
-
types_of_ni = %
|
309
|
+
types_of_ni = %i[
|
310
310
|
RdSAP-Schema-NI-20.0.0
|
311
311
|
RdSAP-Schema-NI-19.0
|
312
312
|
RdSAP-Schema-NI-18.0
|
@@ -464,14 +464,13 @@ module Helper
|
|
464
464
|
end
|
465
465
|
|
466
466
|
def self.mechanical_ventilation(value, schema_type, report_type)
|
467
|
-
types_of_sap_pre12 = %
|
467
|
+
types_of_sap_pre12 = %i[
|
468
468
|
SAP-Schema-11.2
|
469
469
|
SAP-Schema-11.0
|
470
470
|
SAP-Schema-10.2
|
471
471
|
SAP-Schema-NI-11.2
|
472
472
|
].freeze
|
473
|
-
|
474
|
-
if types_of_sap_pre12.include?(schema_type.to_s) && is_rdsap(report_type)
|
473
|
+
if types_of_sap_pre12.include?(schema_type) && is_rdsap(report_type)
|
475
474
|
return MECHANICAL_VENTILATION["#{value}-pre12.0"]
|
476
475
|
end
|
477
476
|
|
@@ -499,7 +498,7 @@ module Helper
|
|
499
498
|
end
|
500
499
|
|
501
500
|
def self.ventilation_type(value, schema_type = "")
|
502
|
-
ni_sap = %
|
501
|
+
ni_sap = %i[
|
503
502
|
SAP-Schema-NI-16.1
|
504
503
|
SAP-Schema-NI-16.0
|
505
504
|
SAP-Schema-NI-15.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epb_view_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MHCLG Energy Performance of Buildings
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|