Skip to content

Commit

Permalink
Use new version of reporting-gem (#271) (#272)
Browse files Browse the repository at this point in the history
* point to reopt-v3 branch of reporting-gem

* point to develop now that reporting has merged

* use released version 0.10.0 of reporting-gem

* bump to v0.12.0

* enable manually running CI (once merged to develop)

* update changelog for v0.12.0

* rubocop clean up test expectation
  • Loading branch information
vtnate committed May 6, 2024
1 parent 30554e1 commit 3f3b456
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly_ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Scenario-gem CI

on:
workflow_dispatch:
# push:
schedule:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# URBANopt Scenario Gem

## Version 0.12.0
Date Range: 01/10/24 - 05/06/24
* Use new version of reporting-gem by @vtnate in https://github.com/urbanopt/urbanopt-scenario-gem/pull/271

**Full Changelog**: https://github.com/urbanopt/urbanopt-scenario-gem/compare/v0.11.0...v0.12.0

## Version 0.11.0
Date Range: 07/06/23 - 01/10/24

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
# if allow_local && File.exist?('../urbanopt-reporting-gem')
# gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
# elsif allow_local
# gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'dependency-patch'
# gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
# end

# if allow_local && File.exist?('../openstudio-load-flexibility-measures-gem')
Expand Down
2 changes: 1 addition & 1 deletion lib/urbanopt/scenario/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

module URBANopt
module Scenario
VERSION = '0.11.0'.freeze
VERSION = '0.12.0'.freeze
end
end
2 changes: 1 addition & 1 deletion spec/urbanopt/urbanopt_scenario_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
expect(data['scenario_report']['program']['maximum_roof_height_ft']).to eq(data['feature_reports'].map { |h| h['program']['maximum_roof_height_ft'] }.max) if data['scenario_report']['program']['maximum_roof_height_ft']
expect(data['scenario_report']['program']['maximum_number_of_stories']).to eq(data['feature_reports'].map { |h| h['program']['maximum_number_of_stories'] }.max) if data['scenario_report']['program']['maximum_number_of_stories']
expect(data['scenario_report']['program']['maximum_number_of_stories_above_ground']).to eq(data['feature_reports'].map { |h| h['program']['maximum_number_of_stories_above_ground'] }.max) if data['scenario_report']['program']['maximum_number_of_stories_above_ground']
expect(data['scenario_report']['program']['parking_area_sqft']).to eq(data['feature_reports'].map { |h| h['program']['parking_area_sqft'] }.reduce(:+)) if data['scenario_report']['program']['parking_area_sqft'] && data['scenario_report']['program']['parking_area_sqft']
expect(data['scenario_report']['program']['parking_area_sqft']).to eq(data['feature_reports'].map { |h| h['program']['parking_area_sqft'] }.reduce(:+)) if data['scenario_report']['program']['parking_area_sqft']
expect(data['scenario_report']['program']['number_of_parking_spaces']).to eq(data['feature_reports'].map { |h| h['program']['number_of_parking_spaces'] }.reduce(:+)) if data['scenario_report']['program']['number_of_parking_spaces']
expect(data['scenario_report']['program']['number_of_parking_spaces_charging']).to eq(data['feature_reports'].map { |h| h['program']['number_of_parking_spaces_charging'] }.reduce(:+)) if data['scenario_report']['program']['number_of_parking_spaces_charging']
expect(data['scenario_report']['program']['parking_footprint_area_sqft']).to eq(data['feature_reports'].map { |h| h['program']['parking_footprint_area_sqft'] }.reduce(:+)) if data['scenario_report']['program']['parking_footprint_area_sqft']
Expand Down
2 changes: 1 addition & 1 deletion urbanopt-scenario-gem.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
spec.add_runtime_dependency 'sqlite3', '~> 1.6.0'
spec.add_runtime_dependency 'urbanopt-core', '~> 0.11.0'
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.9.1'
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.10.0'
end

0 comments on commit 3f3b456

Please sign in to comment.