Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heredoc in energyplus.rb #152

Merged
merged 7 commits into from
Apr 19, 2024
Merged

Conversation

kbenne
Copy link
Contributor

@kbenne kbenne commented Apr 19, 2024

@kbenne kbenne requested a review from jmarrec April 19, 2024 03:26
@kbenne kbenne self-assigned this Apr 19, 2024
@jmarrec
Copy link
Contributor

jmarrec commented Apr 19, 2024

jmarrec added a commit to NREL/openstudio-gems that referenced this pull request Apr 19, 2024
jmarrec added a commit to NREL/openstudio-gems that referenced this pull request Apr 19, 2024
@jmarrec
Copy link
Contributor

jmarrec commented Apr 19, 2024

Cursory look, the repo has a ton of issues with respect to run on Ruby 3.

This is why you need CI to, you know, work.

Seems like the Jenkins script uses Ubuntu 18.04 (which we don't support anymore mind you), and a docker openstudio at 3.2.1. Hasn't been touched in more than 3 years.

Comment on lines +8 to +9
gem 'openstudio_measure_tester', '~> 0.4.0', :github => 'NREL/OpenStudio-measure-tester-gem', :ref => '1baa9e70254a0cdb6740ccf14052baada8cf9e1c'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Necessary to run tests

@@ -382,7 +382,7 @@ def apply_measure(registry, step, options = {}, energyplus_output_requests = fal
else
skip_measure = true
end
elsif argument_value.class == Fixnum
elsif argument_value.class == Integer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixnum and Bignum are deprecated since Ruby 2.4, unified by Integer. And now it's gone in 3.x

@@ -23,7 +23,7 @@ Gem::Specification.new do |s|

s.add_development_dependency 'builder', '~> 3.2.4'
s.add_development_dependency 'bundler', '>= 2.5.5'
s.add_development_dependency 'ci_reporter', '~> 2.0.0'
s.add_development_dependency 'ci_reporter', '~> 2.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses File.exists? (not File.exist) and was from 2014

Comment on lines +132 to +138
msgpack_flag = false
csv_flag = false
if output_format == "MessagePack" || output_format == "Both"
msgpack_flag = TRUE
msgpack_flag = true
end
if output_format == "CSV" || output_format == "Both"
csv_flag = TRUE
csv_flag = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FALSE, TRUE, NIL deprecated since Ruby 2.4, gone in 3.x

@jmarrec
Copy link
Contributor

jmarrec commented Apr 19, 2024

@kbenne Can confirm that I can run the workflow from here using system ruby connected to my build of 3.8.0-beta.

There are a few tests failing (not my concern) but most of them are ok

@kflemin kflemin merged commit 0c8de59 into develop Apr 19, 2024
1 check failed
@kflemin kflemin deleted the openstudio-issue-5157-heredoc branch April 19, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants