openstudio-extension 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -0
  3. data/.rubocop.yml +9 -0
  4. data/Gemfile +3 -1
  5. data/Jenkinsfile +10 -0
  6. data/README.md +230 -12
  7. data/Rakefile +88 -3
  8. data/bin/console +3 -3
  9. data/doc_templates/LICENSE.md +27 -0
  10. data/doc_templates/README.md.erb +42 -0
  11. data/doc_templates/copyright_erb.txt +36 -0
  12. data/doc_templates/copyright_js.txt +4 -0
  13. data/doc_templates/copyright_ruby.txt +34 -0
  14. data/init_templates/README.md +37 -0
  15. data/init_templates/gemspec.txt +32 -0
  16. data/init_templates/openstudio_module.rb +50 -0
  17. data/init_templates/spec.rb +47 -0
  18. data/init_templates/spec_helper.rb +49 -0
  19. data/init_templates/template_gemfile.txt +17 -0
  20. data/init_templates/template_rakefile.txt +15 -0
  21. data/init_templates/version.rb +40 -0
  22. data/lib/files/openstudio-extension-gem-test.ddy +536 -0
  23. data/lib/files/openstudio-extension-gem-test.epw +8768 -0
  24. data/lib/files/openstudio-extension-gem-test.stat +554 -0
  25. data/lib/measures/openstudio_extension_test_measure/LICENSE.md +27 -0
  26. data/lib/measures/openstudio_extension_test_measure/README.md +26 -0
  27. data/lib/measures/openstudio_extension_test_measure/README.md.erb +42 -0
  28. data/lib/measures/openstudio_extension_test_measure/measure.rb +72 -0
  29. data/lib/measures/openstudio_extension_test_measure/measure.xml +83 -0
  30. data/lib/measures/openstudio_extension_test_measure/resources/os_lib_helper_methods.rb +399 -0
  31. data/lib/measures/openstudio_extension_test_measure/tests/OpenStudioExtensionTestMeasure_Test.rb +75 -0
  32. data/lib/openstudio/extension.rb +220 -0
  33. data/lib/openstudio/extension/core/CreateResults.rb +879 -0
  34. data/lib/openstudio/extension/core/check_air_sys_temps.rb +190 -0
  35. data/lib/openstudio/extension/core/check_calibration.rb +155 -0
  36. data/lib/openstudio/extension/core/check_cond_zns.rb +84 -0
  37. data/lib/openstudio/extension/core/check_domestic_hot_water.rb +334 -0
  38. data/lib/openstudio/extension/core/check_envelope_conductance.rb +453 -0
  39. data/lib/openstudio/extension/core/check_eui_by_end_use.rb +162 -0
  40. data/lib/openstudio/extension/core/check_eui_reasonableness.rb +135 -0
  41. data/lib/openstudio/extension/core/check_fan_pwr.rb +98 -0
  42. data/lib/openstudio/extension/core/check_internal_loads.rb +393 -0
  43. data/lib/openstudio/extension/core/check_mech_sys_capacity.rb +226 -0
  44. data/lib/openstudio/extension/core/check_mech_sys_efficiency.rb +326 -0
  45. data/lib/openstudio/extension/core/check_mech_sys_part_load_eff.rb +464 -0
  46. data/lib/openstudio/extension/core/check_mech_sys_type.rb +139 -0
  47. data/lib/openstudio/extension/core/check_part_loads.rb +451 -0
  48. data/lib/openstudio/extension/core/check_placeholder.rb +75 -0
  49. data/lib/openstudio/extension/core/check_plant_cap.rb +123 -0
  50. data/lib/openstudio/extension/core/check_plant_temps.rb +159 -0
  51. data/lib/openstudio/extension/core/check_plenum_loads.rb +87 -0
  52. data/lib/openstudio/extension/core/check_pump_pwr.rb +108 -0
  53. data/lib/openstudio/extension/core/check_sch_coord.rb +241 -0
  54. data/lib/openstudio/extension/core/check_schedules.rb +311 -0
  55. data/lib/openstudio/extension/core/check_simultaneous_heating_and_cooling.rb +158 -0
  56. data/lib/openstudio/extension/core/check_supply_air_and_thermostat_temp_difference.rb +148 -0
  57. data/lib/openstudio/extension/core/check_weather_files.rb +132 -0
  58. data/lib/openstudio/extension/core/deer_vintages.rb +311 -0
  59. data/lib/openstudio/extension/core/os_lib_aedg_measures.rb +491 -0
  60. data/lib/openstudio/extension/core/os_lib_cofee.rb +259 -0
  61. data/lib/openstudio/extension/core/os_lib_constructions.rb +378 -0
  62. data/lib/openstudio/extension/core/os_lib_geometry.rb +1022 -0
  63. data/lib/openstudio/extension/core/os_lib_helper_methods.rb +399 -0
  64. data/lib/openstudio/extension/core/os_lib_hvac.rb +2171 -0
  65. data/lib/openstudio/extension/core/os_lib_lighting_and_equipment.rb +214 -0
  66. data/lib/openstudio/extension/core/os_lib_model_generation.rb +817 -0
  67. data/lib/openstudio/extension/core/os_lib_model_simplification.rb +1049 -0
  68. data/lib/openstudio/extension/core/os_lib_outdoorair_and_infiltration.rb +165 -0
  69. data/lib/openstudio/extension/core/os_lib_reporting.rb +4652 -0
  70. data/lib/openstudio/extension/core/os_lib_reporting_qaqc.rb +200 -0
  71. data/lib/openstudio/extension/core/os_lib_schedules.rb +963 -0
  72. data/lib/openstudio/extension/rake_task.rb +149 -0
  73. data/lib/openstudio/extension/runner.rb +644 -0
  74. data/lib/openstudio/extension/version.rb +40 -0
  75. data/openstudio-extension.gemspec +20 -15
  76. metadata +150 -14
  77. data/.travis.yml +0 -7
  78. data/lib/OpenStudio/Extension/rake_task.rb +0 -84
  79. data/lib/OpenStudio/Extension/version.rb +0 -33
  80. data/lib/OpenStudio/extension.rb +0 -65
@@ -0,0 +1,40 @@
1
+ # *******************************************************************************
2
+ # OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
3
+ # All rights reserved.
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # (1) Redistributions of source code must retain the above copyright notice,
8
+ # this list of conditions and the following disclaimer.
9
+ #
10
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # (3) Neither the name of the copyright holder nor the names of any contributors
15
+ # may be used to endorse or promote products derived from this software without
16
+ # specific prior written permission from the respective party.
17
+ #
18
+ # (4) Other than as required in clauses (1) and (2), distributions in any form
19
+ # of modifications or other derivative works may not use the "OpenStudio"
20
+ # trademark, "OS", "os", or any other confusingly similar designation without
21
+ # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
+ #
23
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
+ # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
+ # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
+ # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
+ # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
+ # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
+ # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
+ # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
+ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ # *******************************************************************************
35
+
36
+ module OpenStudio
37
+ module Extension
38
+ VERSION = '0.1.1'.freeze
39
+ end
40
+ end
@@ -1,28 +1,33 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "openstudio/extension/version"
3
+ require 'openstudio/extension/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
- spec.name = "openstudio-extension"
6
+ spec.name = 'openstudio-extension'
8
7
  spec.version = OpenStudio::Extension::VERSION
9
- spec.authors = ["Nicholas Long", "Dan Macumber"]
10
- spec.email = ["nicholas.long@nrel.gov", "daniel.macumber@nrel.gov"]
8
+ spec.authors = ['Katherine Fleming', 'Nicholas Long', 'Dan Macumber']
9
+ spec.email = ['katherine.fleming@nrel.gov', 'nicholas.long@nrel.gov', 'daniel.macumber@nrel.gov']
10
+ spec.platform = Gem::Platform::RUBY
11
11
 
12
- spec.summary = "openstudio base gem for creating generic extensions with encapsulated data and measures."
13
- spec.description = "openstudio base gem for creating generic extensions with encapsulated data and measures."
14
- spec.homepage = "https://openstudio.net"
12
+ spec.summary = 'openstudio base gem for creating generic extensions with encapsulated data and measures.'
13
+ spec.description = 'openstudio base gem for creating generic extensions with encapsulated data and measures.'
14
+ spec.homepage = 'https://openstudio.net'
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
17
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
20
  end
21
- spec.bindir = "exe"
21
+ spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
23
+ spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.14"
26
- spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
25
+ spec.add_dependency 'bundler', '~> 1.9'
26
+ spec.add_development_dependency 'rake', '~> 12.3'
27
+ spec.add_development_dependency 'rspec', '~> 3.7'
28
+ spec.add_development_dependency 'rubocop', '~> 0.54.0'
29
+ spec.add_dependency 'json_pure'
30
+ spec.add_dependency 'openstudio-workflow'
31
+ spec.add_dependency 'openstudio_measure_tester', '~> 0.1.7'
32
+ spec.add_dependency 'parallel', '~> 1.12.0'
28
33
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
+ - Katherine Fleming
7
8
  - Nicholas Long
8
9
  - Dan Macumber
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2019-05-02 00:00:00.000000000 Z
13
+ date: 2019-05-23 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
@@ -17,45 +18,116 @@ dependencies:
17
18
  requirements:
18
19
  - - "~>"
19
20
  - !ruby/object:Gem::Version
20
- version: '1.14'
21
- type: :development
21
+ version: '1.9'
22
+ type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  requirements:
25
26
  - - "~>"
26
27
  - !ruby/object:Gem::Version
27
- version: '1.14'
28
+ version: '1.9'
28
29
  - !ruby/object:Gem::Dependency
29
30
  name: rake
30
31
  requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
33
  - - "~>"
33
34
  - !ruby/object:Gem::Version
34
- version: '10.0'
35
+ version: '12.3'
35
36
  type: :development
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - "~>"
40
41
  - !ruby/object:Gem::Version
41
- version: '10.0'
42
+ version: '12.3'
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: rspec
44
45
  requirement: !ruby/object:Gem::Requirement
45
46
  requirements:
46
47
  - - "~>"
47
48
  - !ruby/object:Gem::Version
48
- version: '3.0'
49
+ version: '3.7'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '3.7'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rubocop
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 0.54.0
49
64
  type: :development
50
65
  prerelease: false
51
66
  version_requirements: !ruby/object:Gem::Requirement
52
67
  requirements:
53
68
  - - "~>"
54
69
  - !ruby/object:Gem::Version
55
- version: '3.0'
70
+ version: 0.54.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: json_pure
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: openstudio-workflow
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ - !ruby/object:Gem::Dependency
100
+ name: openstudio_measure_tester
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: 0.1.7
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: 0.1.7
113
+ - !ruby/object:Gem::Dependency
114
+ name: parallel
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: 1.12.0
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: 1.12.0
56
127
  description: openstudio base gem for creating generic extensions with encapsulated
57
128
  data and measures.
58
129
  email:
130
+ - katherine.fleming@nrel.gov
59
131
  - nicholas.long@nrel.gov
60
132
  - daniel.macumber@nrel.gov
61
133
  executables: []
@@ -64,15 +136,79 @@ extra_rdoc_files: []
64
136
  files:
65
137
  - ".gitignore"
66
138
  - ".rspec"
67
- - ".travis.yml"
139
+ - ".rubocop.yml"
68
140
  - Gemfile
141
+ - Jenkinsfile
69
142
  - README.md
70
143
  - Rakefile
71
144
  - bin/console
72
145
  - bin/setup
73
- - lib/OpenStudio/Extension/rake_task.rb
74
- - lib/OpenStudio/Extension/version.rb
75
- - lib/OpenStudio/extension.rb
146
+ - doc_templates/LICENSE.md
147
+ - doc_templates/README.md.erb
148
+ - doc_templates/copyright_erb.txt
149
+ - doc_templates/copyright_js.txt
150
+ - doc_templates/copyright_ruby.txt
151
+ - init_templates/README.md
152
+ - init_templates/gemspec.txt
153
+ - init_templates/openstudio_module.rb
154
+ - init_templates/spec.rb
155
+ - init_templates/spec_helper.rb
156
+ - init_templates/template_gemfile.txt
157
+ - init_templates/template_rakefile.txt
158
+ - init_templates/version.rb
159
+ - lib/files/openstudio-extension-gem-test.ddy
160
+ - lib/files/openstudio-extension-gem-test.epw
161
+ - lib/files/openstudio-extension-gem-test.stat
162
+ - lib/measures/openstudio_extension_test_measure/LICENSE.md
163
+ - lib/measures/openstudio_extension_test_measure/README.md
164
+ - lib/measures/openstudio_extension_test_measure/README.md.erb
165
+ - lib/measures/openstudio_extension_test_measure/measure.rb
166
+ - lib/measures/openstudio_extension_test_measure/measure.xml
167
+ - lib/measures/openstudio_extension_test_measure/resources/os_lib_helper_methods.rb
168
+ - lib/measures/openstudio_extension_test_measure/tests/OpenStudioExtensionTestMeasure_Test.rb
169
+ - lib/openstudio/extension.rb
170
+ - lib/openstudio/extension/core/CreateResults.rb
171
+ - lib/openstudio/extension/core/check_air_sys_temps.rb
172
+ - lib/openstudio/extension/core/check_calibration.rb
173
+ - lib/openstudio/extension/core/check_cond_zns.rb
174
+ - lib/openstudio/extension/core/check_domestic_hot_water.rb
175
+ - lib/openstudio/extension/core/check_envelope_conductance.rb
176
+ - lib/openstudio/extension/core/check_eui_by_end_use.rb
177
+ - lib/openstudio/extension/core/check_eui_reasonableness.rb
178
+ - lib/openstudio/extension/core/check_fan_pwr.rb
179
+ - lib/openstudio/extension/core/check_internal_loads.rb
180
+ - lib/openstudio/extension/core/check_mech_sys_capacity.rb
181
+ - lib/openstudio/extension/core/check_mech_sys_efficiency.rb
182
+ - lib/openstudio/extension/core/check_mech_sys_part_load_eff.rb
183
+ - lib/openstudio/extension/core/check_mech_sys_type.rb
184
+ - lib/openstudio/extension/core/check_part_loads.rb
185
+ - lib/openstudio/extension/core/check_placeholder.rb
186
+ - lib/openstudio/extension/core/check_plant_cap.rb
187
+ - lib/openstudio/extension/core/check_plant_temps.rb
188
+ - lib/openstudio/extension/core/check_plenum_loads.rb
189
+ - lib/openstudio/extension/core/check_pump_pwr.rb
190
+ - lib/openstudio/extension/core/check_sch_coord.rb
191
+ - lib/openstudio/extension/core/check_schedules.rb
192
+ - lib/openstudio/extension/core/check_simultaneous_heating_and_cooling.rb
193
+ - lib/openstudio/extension/core/check_supply_air_and_thermostat_temp_difference.rb
194
+ - lib/openstudio/extension/core/check_weather_files.rb
195
+ - lib/openstudio/extension/core/deer_vintages.rb
196
+ - lib/openstudio/extension/core/os_lib_aedg_measures.rb
197
+ - lib/openstudio/extension/core/os_lib_cofee.rb
198
+ - lib/openstudio/extension/core/os_lib_constructions.rb
199
+ - lib/openstudio/extension/core/os_lib_geometry.rb
200
+ - lib/openstudio/extension/core/os_lib_helper_methods.rb
201
+ - lib/openstudio/extension/core/os_lib_hvac.rb
202
+ - lib/openstudio/extension/core/os_lib_lighting_and_equipment.rb
203
+ - lib/openstudio/extension/core/os_lib_model_generation.rb
204
+ - lib/openstudio/extension/core/os_lib_model_simplification.rb
205
+ - lib/openstudio/extension/core/os_lib_outdoorair_and_infiltration.rb
206
+ - lib/openstudio/extension/core/os_lib_reporting.rb
207
+ - lib/openstudio/extension/core/os_lib_reporting_qaqc.rb
208
+ - lib/openstudio/extension/core/os_lib_schedules.rb
209
+ - lib/openstudio/extension/rake_task.rb
210
+ - lib/openstudio/extension/runner.rb
211
+ - lib/openstudio/extension/version.rb
76
212
  - openstudio-extension.gemspec
77
213
  homepage: https://openstudio.net
78
214
  licenses: []
@@ -93,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
229
  version: '0'
94
230
  requirements: []
95
231
  rubyforge_project:
96
- rubygems_version: 2.4.5
232
+ rubygems_version: 2.6.11
97
233
  signing_key:
98
234
  specification_version: 4
99
235
  summary: openstudio base gem for creating generic extensions with encapsulated data
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.2.4
7
- before_install: gem install bundler -v 1.14
@@ -1,84 +0,0 @@
1
- ########################################################################################################################
2
- # OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. All rights reserved.
3
- #
4
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
5
- # following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
8
- # disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
11
- # following disclaimer in the documentation and/or other materials provided with the distribution.
12
- #
13
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
14
- # products derived from this software without specific prior written permission from the respective party.
15
- #
16
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
17
- # works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
18
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
19
- #
20
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
21
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
23
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
25
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
- ########################################################################################################################
28
-
29
- require 'rake'
30
- require 'rake/tasklib'
31
- require 'rake/testtask'
32
- require 'rubocop/rake_task'
33
-
34
- require_relative '../openstudio_measure_tester'
35
-
36
- module OpenStudio
37
- module Extension
38
- class RakeTask < Rake::TaskLib
39
- attr_accessor :name
40
-
41
- def initialize(*args, &task_block)
42
- @name = args.shift || :openstudio
43
-
44
- setup_subtasks(@name)
45
- end
46
-
47
- private
48
-
49
- def setup_subtasks(name)
50
- namespace name do
51
- desc 'Run the CLI task to check for measure updates'
52
- task :update_measures do
53
- puts 'updating measures...'
54
- exit 0
55
- end
56
-
57
- desc 'Use openstudio’s system ruby to run tests'
58
- task :test_with_openstudio do
59
- puts 'testing with openstudio'
60
- exit 0
61
- end
62
-
63
- desc 'Use openstudio docker image to run tests'
64
- task :test_with_docker do
65
- puts 'testing with docker'
66
- exit 0
67
- end
68
-
69
- desc 'Copy the measures to a location that can be uploaded to BCL'
70
- task :stage_bcl do
71
- puts 'Staging measures for BCL'
72
- exit 0
73
- end
74
-
75
- desc 'Upload measures from the specified location.'
76
- task :push_bcl do
77
- puts 'Push measures to BCL'
78
- exit 0
79
- end
80
- end
81
- end
82
- end
83
- end
84
- end
@@ -1,33 +0,0 @@
1
- ########################################################################################################################
2
- # openstudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. All rights reserved.
3
- #
4
- # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
5
- # following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
8
- # disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
11
- # following disclaimer in the documentation and/or other materials provided with the distribution.
12
- #
13
- # (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
14
- # products derived from this software without specific prior written permission from the respective party.
15
- #
16
- # (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
17
- # works may not use the "openstudio" trademark, "OS", "os", or any other confusingly similar designation without
18
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
19
- #
20
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
21
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
23
- # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
- # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
25
- # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
- ########################################################################################################################
28
-
29
- module OpenStudio
30
- module Extension
31
- VERSION = "0.1.0"
32
- end
33
- end