Skip to content

Commit

Permalink
Merge pull request #29 from urbanopt/prep-release
Browse files Browse the repository at this point in the history
prep release
  • Loading branch information
kflemin authored Dec 13, 2022
2 parents 4419d82 + 9f6a121 commit 4cfb161
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 0.5.0
Date Range 9/30/22 - 12/8/22

- Update dependencies for Extension Gem 0.6.0 and OpenStudio 3.5.0

## Version 0.4.0
Date Range 05/10/22 - 9/30/22

Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
# if allow_local && File.exists?('../urbanopt-geojson-gem')
# gem 'urbanopt-geojson', path: '../urbanopt-geojson-gem'
# elsif allow_local
gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'OS-3.5'
#end
# gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
# end

8 changes: 8 additions & 0 deletions lib/urbanopt/rnm/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def zip_input_files
end

if !missing_files.empty?
puts "RNM DIR: #{@rnm_dir}"
raise "Input Files missing in directory: #{missing_files.join(',')}"
end

Expand Down Expand Up @@ -281,6 +282,13 @@ def download_results(sim_id = nil)
# delete zip
File.delete(file_path)

# check if zip is empty
if Dir.empty? File.join(@rnm_dir, 'results')
msg = "Error in simulation: Results.zip empty"
@@logger.error(msg)
raise msg
end

else
msg = "Error retrieving results for #{the_sim_id}. error code: #{resp.status}. #{resp.body}"
@@logger.error(msg)
Expand Down
2 changes: 1 addition & 1 deletion lib/urbanopt/rnm/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@

module URBANopt
module RNM
VERSION = '0.4.0'.freeze
VERSION = '0.5.0'.freeze
end
end
2 changes: 1 addition & 1 deletion urbanopt-rnm-us-gem.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'faraday', '~> 1.0.1'
spec.add_dependency 'geoutm', '~> 1.0.2'
spec.add_dependency 'rubyzip', '~> 2.3.2'
#spec.add_dependency 'urbanopt-geojson', '~> 0.8.0'
spec.add_dependency 'urbanopt-geojson', '~> 0.9.0'

spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'rake', '~> 13.0'
Expand Down

0 comments on commit 4cfb161

Please sign in to comment.