Skip to content

Commit 518160d

Browse files
committed
Update changelog, fix rubocop offenses, and enhance gemspec for version management
1 parent 2658de4 commit 518160d

File tree

6 files changed

+11
-20
lines changed

6 files changed

+11
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# OpenStudio(R) Extension Gem
22
## Version 0.9.2
33
* Updating LICENSE.md in doc_templates to use 2025 for the year
4+
* Fixed some rubocop offenses
45

56
## Version 0.9.1
67
* Updating faraday to 1.10.4 to remove deprecation notice

Gemfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ source 'http://rubygems.org'
33
# Specify your gem's dependencies in openstudio-extension.# gemspec commented out to avoid circular dependency during bundle install
44
# gemspec
55

6-
# Explicitly list dependencies from gemspec
7-
gem 'bcl', '~> 0.9.1'
8-
gem 'bundler', '2.4.10'
9-
gem 'octokit', '~> 4.18.0'
10-
gem 'openstudio_measure_tester', '~> 0.5.0'
11-
gem 'openstudio-workflow', '~> 2.5.0'
12-
gem 'addressable', '2.8.1'
13-
gem 'parallel', '~> 1.19.1'
14-
gem 'regexp_parser', '2.9.0'
15-
gem 'rake', '~> 13.0'
16-
gem 'rspec', '~> 3.9'
17-
gem 'rubocop', '1.50'
6+
# Specify your gem's dependencies in openstudio-extension.gemspec
187

198
# line below used for testing when need to test against branch instead of release of standards. Should be commented out prior to merge to develop
209
# gem 'openstudio-standards', github: 'NREL/openstudio-standards', branch: 'fix/901_2016_2019_properties' # for os_lib unit tests
10+
11+
gemspec
12+
2113
# gem 'openstudio-standards', '= 0.2.17.rc1', :github => 'NREL/openstudio-standards', :ref => '3.5.0_changes'
14+
15+
gem 'rubocop-performance', '~> 1.20'

lib/measures/openstudio_extension_test_measure/measure.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<checksum>A21A3ED2</checksum>
5959
</file>
6060
<file>
61-
<filename>open_studio_extension_test_measure_test.rb</filename>
61+
<filename>OpenStudioExtensionTestMeasure_Test.rb</filename>
6262
<filetype>rb</filetype>
6363
<usage_type>test</usage_type>
6464
<checksum>5F2C8B43</checksum>

lib/measures/openstudio_extension_test_measure/tests/open_studio_extension_test_measure_test.rb renamed to lib/measures/openstudio_extension_test_measure/tests/OpenStudioExtensionTestMeasure_Test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class OpenStudioExtensionTestMeasureTest < Minitest::Test
1616
# def teardown
1717
# end
1818

19-
def test_open_studio_extension_test_measure
19+
def test_OpenStudioExtensionTestMeasure
2020
# create an instance of the measure
2121
measure = OpenStudioExtensionTestMeasure.new
2222

openstudio-extension.gemspec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
lib = File.expand_path('lib', __dir__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33
# Define version directly to avoid circular dependency during gemspec evaluation
4-
module OpenStudio
5-
module Extension
6-
VERSION = '0.9.2'.freeze
7-
end
8-
end
4+
require 'openstudio/extension/version'
95

106
Gem::Specification.new do |spec|
117
spec.name = 'openstudio-extension'
@@ -31,7 +27,7 @@ Gem::Specification.new do |spec|
3127
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
3228
spec.require_paths = ['lib']
3329

34-
spec.required_ruby_version = '>= 3.2.2'
30+
spec.required_ruby_version = '~> 3.2.2'
3531

3632
spec.add_dependency 'bcl', '~> 0.9.1'
3733
# This only runs on the builders' machine

0 commit comments

Comments
 (0)