openstudio-extension 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/openstudio/extension/runner.rb +15 -6
- data/lib/openstudio/extension/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a83259f47fe24c36e89ee7fd01cd1f776949e5a5a4e48777315e3d6ac188d2c
|
4
|
+
data.tar.gz: 404ebaab857a00a4ecb3ccc2a09c2b4e22a436c34a170f0d9bfd834264f2c0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a69ed15632f76aaba2506a1d7f14be462599ef31943c821e21b69d25daeac7735729629bda207b5d7c501db777e9796a70d6f4746264a2ed201239d94a514c8b
|
7
|
+
data.tar.gz: f36b878200be79b9b73b0dabaa84656a227dd0bc66908518e66b22a6742ae5d3a0d06f79ea1be7e9edd198889aa3f7e4f7b723fdeb0b11d1c96d4137069e673e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# OpenStudio Extension Gem
|
2
2
|
|
3
|
+
## Version 0.2.6
|
4
|
+
|
5
|
+
- Check that `failed.job` doesn't exist and `finished.job` does exist.
|
6
|
+
|
7
|
+
- Fixed [#98](https://github.com/NREL/openstudio-extension-gem/issues/98)
|
3
8
|
## Version 0.2.5
|
4
9
|
|
5
10
|
* Support runner options for bundle_install_path and gemfile_path
|
@@ -77,16 +77,16 @@ module OpenStudio
|
|
77
77
|
# use the default values overriden with runner.conf values
|
78
78
|
@options = @options.merge(runner_config.options)
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
# use the passed values or defaults overriden by passed options
|
82
82
|
@options = @options.merge(options)
|
83
|
-
|
83
|
+
|
84
84
|
puts "Initializing runner with dirname: '#{dirname}' and options: #{@options}"
|
85
85
|
@dirname = File.absolute_path(dirname)
|
86
|
-
|
86
|
+
|
87
87
|
# use passed options, otherwise assume @dirname
|
88
|
-
@gemfile_path =
|
89
|
-
@bundle_install_path =
|
88
|
+
@gemfile_path = !@options.key?(:gemfile_path) || @options[:gemfile_path] === '' ? File.join(@dirname, 'Gemfile') : @options[:gemfile_path]
|
89
|
+
@bundle_install_path = !@options.key?(:bundle_install_path) || @options[:bundle_install_path] === '' ? File.join(@dirname, '.bundle/install/') : @options[:bundle_install_path]
|
90
90
|
@original_dir = Dir.pwd
|
91
91
|
# puts "DIRNAME: #{@dirname}"
|
92
92
|
# puts "@gemfile_path set to: #{@gemfile_path}"
|
@@ -656,7 +656,16 @@ module OpenStudio
|
|
656
656
|
puts 'simulations are not performed, since to the @options[:run_simulations] is set to false'
|
657
657
|
end
|
658
658
|
|
659
|
-
|
659
|
+
if @options[:run_simulations]
|
660
|
+
# Additional checks for failed CLI
|
661
|
+
if File.exist?(File.join(run_dir, 'failed.job'))
|
662
|
+
result = false
|
663
|
+
end
|
664
|
+
|
665
|
+
if !File.exist?(File.join(run_dir, 'finished.job'))
|
666
|
+
result = false
|
667
|
+
end
|
668
|
+
end
|
660
669
|
|
661
670
|
return result
|
662
671
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstudio-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katherine Fleming
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bcl
|
@@ -218,7 +218,7 @@ licenses: []
|
|
218
218
|
metadata:
|
219
219
|
bug_tracker_uri: https://github.com/NREL/openstudio-extension-gem/issues
|
220
220
|
changelog_uri: https://github.com/NREL/openstudio-extension-gem/blob/develop/CHANGELOG.md
|
221
|
-
source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.2.
|
221
|
+
source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.2.6
|
222
222
|
post_install_message:
|
223
223
|
rdoc_options: []
|
224
224
|
require_paths:
|
@@ -234,7 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
|
237
|
+
rubyforge_project:
|
238
|
+
rubygems_version: 2.7.6.2
|
238
239
|
signing_key:
|
239
240
|
specification_version: 4
|
240
241
|
summary: openstudio base gem for creating generic extensions with encapsulated data
|