Skip to content

Review of changes made from 0.9.1 (clean) to current#220

Open
jmarrec wants to merge 25 commits intoclean_masterfrom
master
Open

Review of changes made from 0.9.1 (clean) to current#220
jmarrec wants to merge 25 commits intoclean_masterfrom
master

Conversation

@jmarrec
Copy link
Copy Markdown
Contributor

@jmarrec jmarrec commented Dec 4, 2025

No description provided.

anchapin and others added 22 commits July 30, 2025 14:28
update copyright year in LICENSE file
* update copyright year in LICENSE file

* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor gemspec to define version within OpenStudio::Extension module

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management
* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management
* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management
* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor gemspec to define version within OpenStudio::Extension module

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management

* Remove comment about circular dependency in gemspec
* Feature/version 0.9.2 updates (#206)

* update copyright year in LICENSE file

* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor gemspec to define version within OpenStudio::Extension module

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management

* Bump version to 0.9.3, update changelog, and remove rubocop-performance from Gemfile (#207)

* Merge conflicts resolved (#210)

* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management

* Add local develop commits (#211)

* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management

* Version management and cleanup improvements (#212)

* Update version to 0.9.2, enhance changelog, and improve code formatting

* Refactor gemspec to define version within OpenStudio::Extension module

* Refactor Gemfile and gemspec to improve dependency management and remove unnecessary comments

* Update changelog, fix rubocop offenses, and enhance gemspec for version management

* Remove comment about circular dependency in gemspec

* Update CHANGELOG.md

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
modify runner to install gems only - no updates
* Bump version to 0.9.5 and prepare release

- Update version to 0.9.5

- Update CHANGELOG.md and README.md

- Add rubocop-performance to gemspec

* prep version 0.9.4

* fix: update rubygems source to HTTPS and add gemspec file listing fallback.

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>
Comment on lines +23 to +29
files = `git ls-files -z`.split("\x0")
if files.empty?
files = Dir.glob('**/*', File::FNM_DOTMATCH).select do |f|
File.file?(f) && !f.match(%r{^(\.git|\.bundle|pkg|coverage|doc|_yardoc|\.yardoc)/}) && !f.match(%r{^Gemfile\.lock$})
end
end
spec.files = files.reject do |f|
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

was something not working before?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't remember any specific reason for this change and upon further review I'm in favor of reverting it back.

Comment on lines +45 to +47
spec.add_dependency 'addressable', '>= 2.8.1'
spec.add_dependency 'parallel', '~> 1.19.1'
spec.add_dependency 'regexp_parser', '2.9.0'
spec.add_dependency 'addressable', '2.8.1'
spec.add_dependency 'regexp_parser', '>= 2.9.0'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

revert

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@anchapin, as mentioned before these dependencies are VERY tricky and should not be updated without considering the implications across the openstudio, openstudio measure gems, and urbanopt gems ecosystems. Let me know if you have any questions before making dependency changes. I agree with @jmarrec, please revert.

spec.add_development_dependency 'rubocop', '1.50'
spec.add_development_dependency 'rspec', '~> 3.9'
spec.add_development_dependency 'rubocop', '>= 1.50.0'
spec.add_development_dependency 'rubocop-performance'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We add it in #204, #206 then, remove it in #207 then it gets readded in #210, it's re-deleted in #211; and its readded in #217

I'm lost. Do we or don't we want rubocop-performance?!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't have a preference but it seems like removing it is likely best.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Haha, oh rubocop! Rubocop related dependencies are ok as "DEVELOPMENT" dependency only. Please don't add them as "regular" dependencies. thanks!

Comment on lines +145 to +147
# KAF: we are no longer updating dependencies here; we are installing instead. If a user already has their
# gems installed, it shouldn't download anything new and should save us from some unwanted dependency updates
run_command('bundle install', get_clean_env)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok.

require 'open3'
require 'openstudio'
require 'yaml'
require 'fileutils'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, fileutils is already required on Line 7

attr_accessor :name, :measures_dir, :core_dir, :doc_templates_dir, :files_dir

def initialize(*args, &task_block)
super
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

dunno if that's wanted or not. Did rubocop do that?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I can't remember if that was from rubocop or not, but I researched it now and it isn't needed since calling super just calls Ruby's default empty initializer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +3 to +4
## Version 0.9.5
* Updated to OpenStudio 3.11 and relaxed dependencies
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

and re-added rubocop-performance apparently

source 'http://rubygems.org'

# Specify your gem's dependencies in openstudio-extension.gemspec
source 'https://rubygems.org'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well, so I don't know if this is good or not. I have no issue.

See this commit 7 years ago: 761524f

Dan at the time wrote:

Https source does not work for me even on dev vpn

anchapin and others added 2 commits December 15, 2025 01:14
* Bump version to 0.9.5 and prepare release (#217)

* Bump version to 0.9.5 and prepare release

- Update version to 0.9.5

- Update CHANGELOG.md and README.md

- Add rubocop-performance to gemspec

* prep version 0.9.4

* fix: update rubygems source to HTTPS and add gemspec file listing fallback.

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>

* Bump to 0.9.6 and undo broken changes (#221)

* Bump to 0.9.6 and undo broken changes

cf https://github.com/NREL/openstudio-extension-gem/pull/220/files

* Fix CI issues related to bundle install

* Run bundle commands in unbundled environment to avoid nested bundler conflicts

* Add parser dependency to avoid test_with_openstudio errors

---------

Co-authored-by: Alex Chapin <achapin@nrel.gov>

* Fix Gemfile source URL and update Jenkinsfile library reference (#222)

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>
Co-authored-by: Julien Marrec <julien.marrec@gmail.com>
* Hard code rubocop version to 1.50.0

* Remove rubocop performance
* Bump version to 0.9.5 and prepare release (#217)

* Bump version to 0.9.5 and prepare release

- Update version to 0.9.5

- Update CHANGELOG.md and README.md

- Add rubocop-performance to gemspec

* prep version 0.9.4

* fix: update rubygems source to HTTPS and add gemspec file listing fallback.

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>

* Bump to 0.9.6 and undo broken changes (#221)

* Bump to 0.9.6 and undo broken changes

cf https://github.com/NREL/openstudio-extension-gem/pull/220/files

* Fix CI issues related to bundle install

* Run bundle commands in unbundled environment to avoid nested bundler conflicts

* Add parser dependency to avoid test_with_openstudio errors

---------

Co-authored-by: Alex Chapin <achapin@nrel.gov>

* Fix Gemfile source URL and update Jenkinsfile library reference (#222)

* Remove parser dependency and prep for 0.9.7 (#226)

* Bump version to 0.9.5 and prepare release (#217) (#219)

* Bump version to 0.9.5 and prepare release

- Update version to 0.9.5

- Update CHANGELOG.md and README.md

- Add rubocop-performance to gemspec

* prep version 0.9.4

* fix: update rubygems source to HTTPS and add gemspec file listing fallback.

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>

* Release v0.9.6 (#223)

* Bump version to 0.9.5 and prepare release (#217)

* Bump version to 0.9.5 and prepare release

- Update version to 0.9.5

- Update CHANGELOG.md and README.md

- Add rubocop-performance to gemspec

* prep version 0.9.4

* fix: update rubygems source to HTTPS and add gemspec file listing fallback.

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>

* Bump to 0.9.6 and undo broken changes (#221)

* Bump to 0.9.6 and undo broken changes

cf https://github.com/NREL/openstudio-extension-gem/pull/220/files

* Fix CI issues related to bundle install

* Run bundle commands in unbundled environment to avoid nested bundler conflicts

* Add parser dependency to avoid test_with_openstudio errors

---------

Co-authored-by: Alex Chapin <achapin@nrel.gov>

* Fix Gemfile source URL and update Jenkinsfile library reference (#222)

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>
Co-authored-by: Julien Marrec <julien.marrec@gmail.com>

* Rubocop fixes (#224)

* Hard code rubocop version to 1.50.0

* Remove rubocop performance

* Refactor gemspec to streamline file listing and remove unused parser dependency

* Update gemspec to use Dir.glob for file listing and remove unused git command

* Prep for 0.9.7 release

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>
Co-authored-by: Julien Marrec <julien.marrec@gmail.com>

* Revert "Remove parser dependency and prep for 0.9.7 (#226)"

This reverts commit a64c11c.

* Remove parser and prep for v0.9.7 (#227)

* Refactor gemspec to streamline file listing and remove unused parser dependency

* Update gemspec to use Dir.glob for file listing and remove unused git command

* Prep for 0.9.7 release

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Assistant Bot <assistant@example.com>
Co-authored-by: Julien Marrec <julien.marrec@gmail.com>
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