|
1 | 1 | source 'http://rubygems.org' |
2 | 2 |
|
3 | | -# Specify your gem's dependencies in buildingsync.gemspec |
4 | 3 | gemspec |
5 | 4 |
|
6 | | -if File.exist?('../OpenStudio-extension-gem') |
7 | | - # gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop' |
8 | | - gem 'openstudio-extension', path: '../OpenStudio-extension-gem' |
9 | | -else |
10 | | - gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop' |
11 | | -end |
| 5 | +# Local gems are useful when developing and integrating the various dependencies. |
| 6 | +# To favor the use of local gems, set the following environment variable: |
| 7 | +# Mac: export FAVOR_LOCAL_GEMS=1 |
| 8 | +# Windows: set FAVOR_LOCAL_GEMS=1 |
| 9 | +# Note that if allow_local is true, but the gem is not found locally, then it will |
| 10 | +# checkout the latest version (develop) from github. |
| 11 | +allow_local = ENV['FAVOR_LOCAL_GEMS'] |
| 12 | + |
| 13 | +# Uncomment the extension and common measures gem if you need to test local development versions. Otherwise |
| 14 | +# these are included in the model articulation gem. |
| 15 | +# |
| 16 | +# if allow_local && File.exist?('../OpenStudio-extension-gem') |
| 17 | +# gem 'openstudio-extension', path: '../OpenStudio-extension-gem' |
| 18 | +# elsif allow_local |
| 19 | +# gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop' |
| 20 | +# end |
12 | 21 |
|
13 | | -if File.exist?('../openstudio-model-articulation-gem') |
14 | | - # gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop' |
| 22 | + if allow_local && File.exist?('../openstudio-common-measures-gem') |
| 23 | + gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem' |
| 24 | + elsif allow_local |
| 25 | + gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop' |
| 26 | + end |
| 27 | + |
| 28 | +if allow_local && File.exist?('../openstudio-model-articulation-gem') |
15 | 29 | gem 'openstudio-model-articulation', path: '../openstudio-model-articulation-gem' |
16 | 30 | else |
17 | | - gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'DA' |
| 31 | + gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop' |
18 | 32 | end |
19 | 33 |
|
20 | | -if File.exist?('../openstudio-common-measures-gem') |
21 | | - # gem 'openstudio-model-articulation', github: 'NREL/openstudio-common-measures-gem', branch: 'develop' |
22 | | - gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem' |
| 34 | +if allow_local && File.exist?('../openstudio-ee-gem') |
| 35 | + gem 'openstudio-ee', path: '../openstudio-ee-gem' |
23 | 36 | else |
24 | | - gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop' |
| 37 | + gem 'openstudio-ee', github: 'NREL/openstudio-ee-gem', branch: 'bldgsync_measures' |
25 | 38 | end |
26 | | - |
27 | | -# OpenStudio Measure Tester includes the dependencies for running unit tests, coverage, and rubocop |
28 | | -gem 'openstudio_measure_tester', '0.1.7' |
29 | | - |
30 | | -# simplecov has an unneccesary dependency on native json gem, use fork that does not require this |
31 | | -gem 'simplecov', github: 'NREL/simplecov' |
|
0 commit comments