init_templates/template_gemfile.txt in openstudio-extension-0.1.3 vs init_templates/template_gemfile.txt in openstudio-extension-0.1.4
- old
+ new
@@ -1,17 +1,22 @@
-source "http://rubygems.org"
+source 'http://rubygems.org'
-# Specify your gem's dependencies
gemspec
-if File.exists?('../OpenStudio-extension-gem')
- # gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop'
+# Local gems are useful when developing and integrating the various dependencies.
+# To favor the use of local gems, set the following environment variable:
+# Mac: export FAVOR_LOCAL_GEMS=1
+# Windows: set FAVOR_LOCAL_GEMS=1
+# Note that if allow_local is true, but the gem is not found locally, then it will
+# checkout the latest version (develop) from github.
+allow_local = ENV['FAVOR_LOCAL_GEMS']
+
+if allow_local && File.exist?('../OpenStudio-extension-gem')
gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
-else
+elsif allow_local
gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop'
end
gem 'openstudio_measure_tester', '= 0.1.7' # This includes the dependencies for running unit tests, coverage, and rubocop
-#gem 'openstudio_measure_tester', :github => 'NREL/OpenStudio-measure-tester-gem', :ref => '273d1f1a5c739312688ea605ef4a5b6e7325332c'
-# simplecov has an unneccesary dependency on native json gem, use fork that does not require this
+# simplecov has an unnecessary dependency on native json gem, use fork that does not require this
gem 'simplecov', github: 'NREL/simplecov'