urbanopt-core 0.9.0 → 0.10.0
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/.github/workflows/nightly_build.yml +5 -12
- data/CHANGELOG.md +7 -0
- data/Gemfile +5 -0
- data/LICENSE.md +15 -11
- data/README.md +1 -0
- data/Rakefile +2 -37
- data/doc_templates/LICENSE.md +15 -11
- data/doc_templates/copyright_erb.txt +23 -17
- data/doc_templates/copyright_js.txt +2 -2
- data/doc_templates/copyright_ruby.txt +2 -37
- data/lib/urbanopt/core/extension.rb +2 -37
- data/lib/urbanopt/core/feature.rb +2 -37
- data/lib/urbanopt/core/feature_file.rb +2 -37
- data/lib/urbanopt/core/version.rb +3 -38
- data/lib/urbanopt/core.rb +2 -37
- data/urbanopt-core-gem.gemspec +2 -2
- metadata +8 -9
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0109646e0976bbe44dd2058f9df4de72caf8e7fd48af527539dde9f66aeccb32'
|
|
4
|
+
data.tar.gz: d5df588b0c061bfbbc09c220d1d9dfae89c739a0b8f1ddab29d6b547946d2594
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: baf9fce97f0ccd376d6ca0f97f543b16d7bf21a53905a48c12ba8ebefca184a36d389d0f77742f371c462bf655ac0907e6c341cd1e6c4efd90cf79c6cce7bd7a
|
|
7
|
+
data.tar.gz: 5713603d6916c4203536b277c317d3f3690c89274b8675e039a2e980ee6fe71d5db3bf2f1175ed37d22a08329309199a01b8db16867b0e793d232f04f02f9f26
|
|
@@ -7,12 +7,6 @@ on:
|
|
|
7
7
|
# 5 am UTC (11pm MDT the day before) every weekday night in MDT
|
|
8
8
|
- cron: '25 5 * * 2-6'
|
|
9
9
|
|
|
10
|
-
# Cancels an existing job (of the same workflow) if it is still running
|
|
11
|
-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
|
|
12
|
-
# concurrency:
|
|
13
|
-
# group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
-
# cancel-in-progress: true
|
|
15
|
-
|
|
16
10
|
env:
|
|
17
11
|
# This env var should enforce develop branch of all dependencies
|
|
18
12
|
FAVOR_LOCAL_GEMS: true
|
|
@@ -20,14 +14,13 @@ env:
|
|
|
20
14
|
|
|
21
15
|
jobs:
|
|
22
16
|
weeknight-tests:
|
|
23
|
-
#
|
|
24
|
-
# https://github.com/
|
|
25
|
-
runs-on: ubuntu-
|
|
17
|
+
# ubuntu-latest works since https://github.com/rbenv/ruby-build/releases/tag/v20220710 (July 10, 2022)
|
|
18
|
+
# https://github.com/rbenv/ruby-build/discussions/1940
|
|
19
|
+
runs-on: ubuntu-latest
|
|
26
20
|
container:
|
|
27
|
-
image: docker://nrel/openstudio:3.
|
|
21
|
+
image: docker://nrel/openstudio:3.6.1
|
|
28
22
|
steps:
|
|
29
|
-
-
|
|
30
|
-
uses: actions/checkout@v3
|
|
23
|
+
- uses: actions/checkout@v3
|
|
31
24
|
- name: Update gems
|
|
32
25
|
run: bundle update
|
|
33
26
|
- name: Run Rspec
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# URBANopt Core Gem
|
|
2
2
|
|
|
3
|
+
## Version 0.10.0
|
|
4
|
+
Date Range: 12/12/22 - 07/19/23
|
|
5
|
+
|
|
6
|
+
- Update dependencies for OpenStudio 3.6.0
|
|
7
|
+
- Update license and references to the license file
|
|
8
|
+
- Remove outdated Travis CI config file
|
|
9
|
+
|
|
3
10
|
## Version 0.9.0
|
|
4
11
|
Date Range: 04/22/22 - 12/12/22
|
|
5
12
|
|
data/Gemfile
CHANGED
|
@@ -11,6 +11,11 @@ gemspec
|
|
|
11
11
|
# checkout the latest version (develop) from github.
|
|
12
12
|
allow_local = ENV['FAVOR_LOCAL_GEMS']
|
|
13
13
|
|
|
14
|
+
# pin this dependency to avoid unicode_normalize error
|
|
15
|
+
gem 'addressable', '2.8.1'
|
|
16
|
+
# pin this dependency to avoid using racc dependency (which has native extensions)
|
|
17
|
+
gem 'parser', '3.2.2.2'
|
|
18
|
+
|
|
14
19
|
# if allow_local && File.exist?('../OpenStudio-extension-gem')
|
|
15
20
|
# gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
|
|
16
21
|
# elsif allow_local
|
data/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
URBANopt
|
|
1
|
+
URBANopt (tm), Copyright (c) 2019-2023, Alliance for Sustainable Energy, LLC, and other
|
|
2
2
|
contributors. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification,
|
|
@@ -25,14 +25,18 @@ refer to any modified version of this software or any modified version of the
|
|
|
25
25
|
underlying software originally provided by Alliance without the prior written
|
|
26
26
|
consent of Alliance.
|
|
27
27
|
|
|
28
|
+
The name of the copyright holder(s), any contributors, the United States Government,
|
|
29
|
+
the United States Department of Energy, or any of their employees may not be used to
|
|
30
|
+
endorse or promote products derived from this software without specific prior written
|
|
31
|
+
permission from the respective party.
|
|
28
32
|
|
|
29
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
|
|
30
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
37
|
-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
38
|
-
OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
|
|
34
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
36
|
+
THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES
|
|
37
|
+
DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
38
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
39
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
40
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
41
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
42
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# URBANopt Core
|
|
2
2
|
|
|
3
3
|
[](https://coveralls.io/github/urbanopt/urbanopt-core-gem?branch=develop)
|
|
4
|
+
[](https://github.com/urbanopt/urbanopt-core-gem/actions/workflows/nightly_build.yml)
|
|
4
5
|
|
|
5
6
|
URBANopt<sup>TM</sup> core libraries and measures.
|
|
6
7
|
|
data/Rakefile
CHANGED
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt™, Copyright
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt™, Copyright © Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
require 'bundler/gem_tasks'
|
data/doc_templates/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
URBANopt
|
|
1
|
+
URBANopt (tm), Copyright (c) 2019-2023, Alliance for Sustainable Energy, LLC, and other
|
|
2
2
|
contributors. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification,
|
|
@@ -25,14 +25,18 @@ refer to any modified version of this software or any modified version of the
|
|
|
25
25
|
underlying software originally provided by Alliance without the prior written
|
|
26
26
|
consent of Alliance.
|
|
27
27
|
|
|
28
|
+
The name of the copyright holder(s), any contributors, the United States Government,
|
|
29
|
+
the United States Department of Energy, or any of their employees may not be used to
|
|
30
|
+
endorse or promote products derived from this software without specific prior written
|
|
31
|
+
permission from the respective party.
|
|
28
32
|
|
|
29
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
|
|
30
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
37
|
-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
38
|
-
OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
|
|
34
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
36
|
+
THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES
|
|
37
|
+
DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
38
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
39
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
40
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
41
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
42
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<%
|
|
2
2
|
# *********************************************************************************
|
|
3
|
-
# URBANopt
|
|
3
|
+
# URBANopt (tm), Copyright (c) 2019-2023, Alliance for Sustainable Energy, LLC, and other
|
|
4
4
|
# contributors. All rights reserved.
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
# Redistribution and use in source and binary forms, with or without modification,
|
|
7
7
|
# are permitted provided that the following conditions are met:
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
# Redistributions of source code must retain the above copyright notice, this list
|
|
10
10
|
# of conditions and the following disclaimer.
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
13
13
|
# list of conditions and the following disclaimer in the documentation and/or other
|
|
14
14
|
# materials provided with the distribution.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
17
17
|
# used to endorse or promote products derived from this software without specific
|
|
18
18
|
# prior written permission.
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
# Redistribution of this software, without modification, must refer to the software
|
|
21
21
|
# by the same designation. Redistribution of a modified version of this software
|
|
22
22
|
# (i) may not refer to the modified version by the same designation, or by any
|
|
@@ -26,16 +26,22 @@
|
|
|
26
26
|
# refer to any modified version of this software or any modified version of the
|
|
27
27
|
# underlying software originally provided by Alliance without the prior written
|
|
28
28
|
# consent of Alliance.
|
|
29
|
-
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
# OF
|
|
29
|
+
|
|
30
|
+
# The name of the copyright holder(s), any contributors, the United States Government,
|
|
31
|
+
# the United States Department of Energy, or any of their employees may not be used to
|
|
32
|
+
# endorse or promote products derived from this software without specific prior written
|
|
33
|
+
# permission from the respective party.
|
|
34
|
+
|
|
35
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
|
|
36
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
37
|
+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
38
|
+
# THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES
|
|
39
|
+
# DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
40
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
41
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
42
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
43
|
+
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
44
|
+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45
|
+
|
|
40
46
|
# *********************************************************************************
|
|
41
47
|
%>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* URBANopt
|
|
3
|
-
*
|
|
2
|
+
* URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
* See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
4
4
|
*/
|
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
require 'openstudio/extension'
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
module URBANopt
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
module URBANopt
|
|
@@ -1,45 +1,10 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
module URBANopt
|
|
42
7
|
module Core
|
|
43
|
-
VERSION = '0.
|
|
8
|
+
VERSION = '0.10.0'.freeze
|
|
44
9
|
end
|
|
45
10
|
end
|
data/lib/urbanopt/core.rb
CHANGED
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
# *********************************************************************************
|
|
2
|
-
# URBANopt
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
-
# are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# Redistributions of source code must retain the above copyright notice, this list
|
|
9
|
-
# of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# Redistributions in binary form must reproduce the above copyright notice, this
|
|
12
|
-
# list of conditions and the following disclaimer in the documentation and/or other
|
|
13
|
-
# materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# Neither the name of the copyright holder nor the names of its contributors may be
|
|
16
|
-
# used to endorse or promote products derived from this software without specific
|
|
17
|
-
# prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# Redistribution of this software, without modification, must refer to the software
|
|
20
|
-
# by the same designation. Redistribution of a modified version of this software
|
|
21
|
-
# (i) may not refer to the modified version by the same designation, or by any
|
|
22
|
-
# confusingly similar designation, and (ii) must refer to the underlying software
|
|
23
|
-
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
|
24
|
-
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
|
25
|
-
# refer to any modified version of this software or any modified version of the
|
|
26
|
-
# underlying software originally provided by Alliance without the prior written
|
|
27
|
-
# consent of Alliance.
|
|
28
|
-
#
|
|
29
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
32
|
-
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
33
|
-
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
34
|
-
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
36
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
37
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
38
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2
|
+
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
|
|
3
|
+
# See also https://github.com/urbanopt/urbanopt-core-gem/blob/develop/LICENSE.md
|
|
39
4
|
# *********************************************************************************
|
|
40
5
|
|
|
41
6
|
require 'urbanopt/core/extension'
|
data/urbanopt-core-gem.gemspec
CHANGED
|
@@ -21,11 +21,11 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.require_paths = ['lib']
|
|
22
22
|
spec.required_ruby_version = '~> 2.7.0'
|
|
23
23
|
|
|
24
|
-
spec.add_development_dependency 'bundler', '
|
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
|
25
25
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
|
27
27
|
spec.add_development_dependency 'simplecov', '~> 0.18.2'
|
|
28
28
|
spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
|
|
29
29
|
|
|
30
|
-
spec.add_dependency 'openstudio-extension', '~> 0.6.
|
|
30
|
+
spec.add_dependency 'openstudio-extension', '~> 0.6.1'
|
|
31
31
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: urbanopt-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Macumber
|
|
@@ -9,22 +9,22 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- - "
|
|
18
|
+
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 2.1
|
|
20
|
+
version: '2.1'
|
|
21
21
|
type: :development
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- - "
|
|
25
|
+
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 2.1
|
|
27
|
+
version: '2.1'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rake
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,14 +87,14 @@ dependencies:
|
|
|
87
87
|
requirements:
|
|
88
88
|
- - "~>"
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 0.6.
|
|
90
|
+
version: 0.6.1
|
|
91
91
|
type: :runtime
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - "~>"
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: 0.6.
|
|
97
|
+
version: 0.6.1
|
|
98
98
|
description: URBANopt core library and measures
|
|
99
99
|
email:
|
|
100
100
|
- nicholas.long@nrel.gov
|
|
@@ -106,7 +106,6 @@ files:
|
|
|
106
106
|
- ".gitignore"
|
|
107
107
|
- ".rspec"
|
|
108
108
|
- ".rubocop.yml"
|
|
109
|
-
- ".travis.yml"
|
|
110
109
|
- CHANGELOG.md
|
|
111
110
|
- CONTRIBUTING.md
|
|
112
111
|
- Gemfile
|
data/.travis.yml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sudo: false
|
|
3
|
-
language: ruby
|
|
4
|
-
#cache: bundler
|
|
5
|
-
rvm:
|
|
6
|
-
- 2.2.4
|
|
7
|
-
matrix:
|
|
8
|
-
include:
|
|
9
|
-
- env: OPENSTUDIO_VERSION=2.8.1 && OPENSTUDIO_SHA=6914d4f590 && RUBYLIB=/usr/local/openstudio-2.8.1/Ruby:/usr/Ruby
|
|
10
|
-
before_install:
|
|
11
|
-
- gem install bundler -v '1.17'
|
|
12
|
-
- gem install bundler -v '~> 1.17'
|
|
13
|
-
install:
|
|
14
|
-
- bundle install
|
|
15
|
-
before_script:
|
|
16
|
-
# Update the install_openstudio when updating to OpenStudio 3.x or move to Jenkins
|
|
17
|
-
- curl -sLO https://raw.githubusercontent.com/NREL/OpenStudio-server/2.9.X-LTS/docker/deployment/scripts/install_openstudio.sh
|
|
18
|
-
- chmod +x install_openstudio.sh
|
|
19
|
-
- sudo ./install_openstudio.sh $OPENSTUDIO_VERSION $OPENSTUDIO_SHA
|
|
20
|
-
script:
|
|
21
|
-
- bundle exec rake
|
|
22
|
-
# - bundle exec rake openstudio:list_measures
|
|
23
|
-
# - bundle exec rake openstudio:update_measures
|
|
24
|
-
# - bundle exec rake openstudio:test_with_openstudio
|