Skip to content

Commit

Permalink
Merge pull request #117 from rd2/json
Browse files Browse the repository at this point in the history
Upgrades to v3.4.2. Merging, despite a (likely) circular dependency issue with OpenStudio & key gems (extended[ testing](rd2/tbd_tests#30)). Will see how this pans out for future releases.
  • Loading branch information
brgix authored May 23, 2024
2 parents 4f6df08 + 32fed6f commit 483dbdc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions lib/measures/tbd/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>tbd_measure</name>
<uid>8890787b-8c25-4dc8-8641-b6be1b6c2357</uid>
<version_id>60c77f3f-a199-4574-b946-d7261ed5ac05</version_id>
<version_modified>2024-05-22T13:48:21Z</version_modified>
<version_id>3ebf3217-230b-4420-b679-4bdf8cc51519</version_id>
<version_modified>2024-05-22T14:33:33Z</version_modified>
<xml_checksum>99772807</xml_checksum>
<class_name>TBDMeasure</class_name>
<display_name>Thermal Bridging and Derating - TBD</display_name>
Expand Down Expand Up @@ -523,7 +523,7 @@
<filename>psi.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>5ABDEC60</checksum>
<checksum>5ABDA733</checksum>
</file>
<file>
<filename>tbd.rb</filename>
Expand All @@ -541,7 +541,7 @@
<filename>ua.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>928C5E7B</checksum>
<checksum>4133AC61</checksum>
</file>
<file>
<filename>utils.rb</filename>
Expand Down
4 changes: 2 additions & 2 deletions lib/measures/tbd/resources/psi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3308,9 +3308,9 @@ def exit(runner = nil, argh = {})
match2 = /files/.match(file_paths[1].to_s.strip)
match = match1 || match2

if file_paths.size >= 2 && File.exists?(file_paths[1].to_s.strip) && match
if file_paths.size >= 2 && File.exist?(file_paths[1].to_s.strip) && match
out_dir = file_paths[1].to_s.strip
elsif !file_paths.empty? && File.exists?(file_paths.first.to_s.strip)
elsif !file_paths.empty? && File.exist?(file_paths.first.to_s.strip)
out_dir = file_paths.first.to_s.strip
end

Expand Down
2 changes: 1 addition & 1 deletion lib/measures/tbd/resources/ua.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def ua_md(ua = {}, lang = :en)
model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
model += " (v#{ua[:version]})" if ua.key?(:version)
report << model unless model.empty?
report << "* TBD : v3.4.0"
report << "* TBD : v3.4.2"
report << "* date : #{ua[:date]}"

if lang == :en
Expand Down
4 changes: 2 additions & 2 deletions lib/tbd/psi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3308,9 +3308,9 @@ def exit(runner = nil, argh = {})
match2 = /files/.match(file_paths[1].to_s.strip)
match = match1 || match2

if file_paths.size >= 2 && File.exists?(file_paths[1].to_s.strip) && match
if file_paths.size >= 2 && File.exist?(file_paths[1].to_s.strip) && match
out_dir = file_paths[1].to_s.strip
elsif !file_paths.empty? && File.exists?(file_paths.first.to_s.strip)
elsif !file_paths.empty? && File.exist?(file_paths.first.to_s.strip)
out_dir = file_paths.first.to_s.strip
end

Expand Down
2 changes: 1 addition & 1 deletion lib/tbd/ua.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def ua_md(ua = {}, lang = :en)
model = "* modèle : #{ua[:file]}" if ua.key?(:file) && lang == :fr
model += " (v#{ua[:version]})" if ua.key?(:version)
report << model unless model.empty?
report << "* TBD : v3.4.0"
report << "* TBD : v3.4.2"
report << "* date : #{ua[:date]}"

if lang == :en
Expand Down
2 changes: 1 addition & 1 deletion lib/tbd/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
# SOFTWARE.

module TBD
VERSION = "3.4.1".freeze # TBD release version
VERSION = "3.4.2".freeze # TBD release version
end

0 comments on commit 483dbdc

Please sign in to comment.