bcl 0.7.0 → 0.8.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/CHANGELOG.md +13 -0
- data/Gemfile +1 -9
- data/LICENSE.md +27 -0
- data/Rakefile +40 -232
- data/bcl.gemspec +26 -17
- data/lib/bcl/base_xml.rb +4 -18
- data/lib/bcl/component.rb +4 -18
- data/lib/bcl/component_from_spreadsheet.rb +4 -18
- data/lib/bcl/component_methods.rb +63 -427
- data/lib/bcl/core_ext.rb +4 -18
- data/lib/bcl/tar_ball.rb +4 -52
- data/lib/bcl/version.rb +5 -19
- data/lib/bcl.rb +4 -18
- data/schemas/v3/measure_v3.xsd +1 -6
- metadata +63 -18
- data/License.txt +0 -65
data/lib/bcl/version.rb
CHANGED
@@ -1,22 +1,8 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
# This library is free software; you can redistribute it and/or
|
6
|
-
# modify it under the terms of the GNU Lesser General Public
|
7
|
-
# License as published by the Free Software Foundation; either
|
8
|
-
# version 2.1 of the License, or (at your option) any later version.
|
9
|
-
#
|
10
|
-
# This library is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
# Lesser General Public License for more details.
|
14
|
-
#
|
15
|
-
# You should have received a copy of the GNU Lesser General Public
|
16
|
-
# License along with this library; if not, write to the Free Software
|
17
|
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
-
######################################################################
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://openstudio.net/license
|
4
|
+
# *******************************************************************************
|
19
5
|
|
20
6
|
module BCL
|
21
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.8.0'.freeze
|
22
8
|
end
|
data/lib/bcl.rb
CHANGED
@@ -1,21 +1,7 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
# This library is free software; you can redistribute it and/or
|
6
|
-
# modify it under the terms of the GNU Lesser General Public
|
7
|
-
# License as published by the Free Software Foundation; either
|
8
|
-
# version 2.1 of the License, or (at your option) any later version.
|
9
|
-
#
|
10
|
-
# This library is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
# Lesser General Public License for more details.
|
14
|
-
#
|
15
|
-
# You should have received a copy of the GNU Lesser General Public
|
16
|
-
# License along with this library; if not, write to the Free Software
|
17
|
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
-
######################################################################
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://openstudio.net/license
|
4
|
+
# *******************************************************************************
|
19
5
|
|
20
6
|
require 'pathname'
|
21
7
|
require 'base64'
|
data/schemas/v3/measure_v3.xsd
CHANGED
@@ -145,11 +145,6 @@
|
|
145
145
|
<xs:documentation>maximum value</xs:documentation>
|
146
146
|
</xs:annotation>
|
147
147
|
</xs:element>
|
148
|
-
<xs:element name="model_dependent" type="xs:boolean" default="false">
|
149
|
-
<xs:annotation>
|
150
|
-
<xs:documentation>true if any of this argument's properties depend on the specific model used. default_value, choice_values, min_value, and max_value will not be populated for dynamic arguments</xs:documentation>
|
151
|
-
</xs:annotation>
|
152
|
-
</xs:element>
|
153
148
|
</xs:sequence>
|
154
149
|
</xs:complexType>
|
155
150
|
</xs:element>
|
@@ -444,11 +439,11 @@
|
|
444
439
|
<xs:element ref="description"/>
|
445
440
|
<xs:element ref="modeler_description"/>
|
446
441
|
<xs:element ref="arguments"/>
|
442
|
+
<xs:element ref="outputs"/>
|
447
443
|
<xs:element ref="provenances"/>
|
448
444
|
<xs:element ref="tags"/>
|
449
445
|
<xs:element ref="attributes"/>
|
450
446
|
<xs:element ref="files"/>
|
451
|
-
<xs:element ref="outputs"/>
|
452
447
|
</xs:sequence>
|
453
448
|
</xs:complexType>
|
454
449
|
</xs:element>
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bcl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Macumber
|
8
8
|
- Nicholas Long
|
9
9
|
- Andrew Parker
|
10
10
|
- Katherine Fleming
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: builder
|
@@ -61,56 +61,56 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
64
|
+
version: 0.4.0
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: 0.
|
71
|
+
version: 0.4.0
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: rexml
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
76
|
- - '='
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 3.2.
|
78
|
+
version: 3.2.5
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - '='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 3.2.
|
85
|
+
version: 3.2.5
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: rubyzip
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 2.3.
|
92
|
+
version: 2.3.2
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 2.3.
|
99
|
+
version: 2.3.2
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: spreadsheet
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - '='
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: 1.2.
|
106
|
+
version: 1.2.9
|
107
107
|
type: :runtime
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - '='
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: 1.2.
|
113
|
+
version: 1.2.9
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: uuid
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,6 +153,48 @@ dependencies:
|
|
153
153
|
- - '='
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: 0.0.5
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: bundler
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - '='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 2.4.10
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - '='
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 2.4.10
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: rake
|
172
|
+
requirement: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - "~>"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '13.0'
|
177
|
+
type: :development
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - "~>"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '13.0'
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: rspec
|
186
|
+
requirement: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - "~>"
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '3.9'
|
191
|
+
type: :development
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '3.9'
|
156
198
|
description: This gem contains helper methods for generating the Component XML file
|
157
199
|
needed to upload files to the Building Component Library. It also contains the classes
|
158
200
|
needed for logging in via the api and uploading generating components and measures.
|
@@ -165,7 +207,7 @@ files:
|
|
165
207
|
- ".rubocop.yml"
|
166
208
|
- CHANGELOG.md
|
167
209
|
- Gemfile
|
168
|
-
-
|
210
|
+
- LICENSE.md
|
169
211
|
- README.md
|
170
212
|
- Rakefile
|
171
213
|
- bcl.gemspec
|
@@ -187,9 +229,12 @@ files:
|
|
187
229
|
- schemas/v3/measure_v3.xsd
|
188
230
|
homepage: http://bcl.nrel.gov
|
189
231
|
licenses:
|
190
|
-
-
|
191
|
-
metadata:
|
192
|
-
|
232
|
+
- BSD
|
233
|
+
metadata:
|
234
|
+
bug_tracker_uri: https://github.com/NREL/bcl-gem/issues
|
235
|
+
changelog_uri: https://github.com/NREL/bcl-gem/blob/develop/CHANGELOG.md
|
236
|
+
source_code_uri: https://github.com/NREL/bcl-gem/tree/v0.8.0
|
237
|
+
post_install_message:
|
193
238
|
rdoc_options: []
|
194
239
|
require_paths:
|
195
240
|
- lib
|
@@ -197,15 +242,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
242
|
requirements:
|
198
243
|
- - "~>"
|
199
244
|
- !ruby/object:Gem::Version
|
200
|
-
version: 2.
|
245
|
+
version: 3.2.2
|
201
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
247
|
requirements:
|
203
248
|
- - ">="
|
204
249
|
- !ruby/object:Gem::Version
|
205
250
|
version: '0'
|
206
251
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
252
|
+
rubygems_version: 3.4.10
|
253
|
+
signing_key:
|
209
254
|
specification_version: 4
|
210
255
|
summary: Classes for creating component XML files and manageing measures for the BCL
|
211
256
|
test_files: []
|
data/License.txt
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
Copyright (c) 2008-2021, Alliance for Sustainable Energy.
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
NOTICE
|
5
|
-
|
6
|
-
This computer software (Software) is code in development prepared by the
|
7
|
-
Alliance for Sustainable Energy, (hereinafter the "Contractor"), under
|
8
|
-
Contract DE-AC36-08GO28308 (Contract) with the Department of Energy (DOE).
|
9
|
-
The United States Government has been granted for itself and others acting
|
10
|
-
on its behalf a paid-up, non-exclusive, irrevocable, worldwide license in
|
11
|
-
the Software to reproduce, prepare derivative works, and perform publicly
|
12
|
-
and display publicly. Beginning five (5) years after the date permission
|
13
|
-
to assert copyright is obtained from the DOE, and subject to any
|
14
|
-
subsequent five (5) year renewals, the United States Government is granted
|
15
|
-
for itself and others acting on its behalf a paid-up, non-exclusive,
|
16
|
-
irrevocable, worldwide license in the Software to reproduce, prepare
|
17
|
-
derivative works, distribute copies to the public, perform publicly and
|
18
|
-
display publicly, and to permit others to do so. If the Contractor ceases
|
19
|
-
to make this computer software available, it may be obtained from DOE's
|
20
|
-
Office of Scientific and Technical Information's Energy Science and
|
21
|
-
Technology Software Center (ESTSC) at P.O. Box 1020, Oak Ridge, TN 37831-
|
22
|
-
1020.
|
23
|
-
|
24
|
-
DISCLAIMER
|
25
|
-
|
26
|
-
THIS SOFTWARE IS PROVIDED BY THE CONTRACTOR "AS IS" AND ANY EXPRESS OR
|
27
|
-
IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
28
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
29
|
-
NO EVENT SHALL THE CONTRACTOR OR THE U.S. GOVERNMENT BE LIABLE FOR ANY
|
30
|
-
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER,
|
31
|
-
INCLUDING BUT NOT LIMITED TO CLAIMS ASSOCIATED WITH THE LOSS OF DATA OR
|
32
|
-
PROFITS, WHICH MAY RESULT FROM AN ACTION IN CONTRACT, NEGLIGENCE OR OTHER
|
33
|
-
TORTIOUS CLAIM THAT ARISES OUT OF OR IN CONNECTION WITH THE ACCESS, USE OR
|
34
|
-
PERFORMANCE OF THIS SOFTWARE.
|
35
|
-
|
36
|
-
YOU AGREE TO INDEMNIFY DOE/NREL/ALLIANCE, AND ITS SUBSIDIARIES,
|
37
|
-
AFFILIATES, OFFICERS, AGENTS, AND EMPLOYEES AGAINST ANY CLAIM OR DEMAND,
|
38
|
-
INCLUDING REASONABLE ATTORNEYS' FEES, RELATED TO YOUR USE OF THESE DATA.
|
39
|
-
|
40
|
-
DOE/NREL/Alliance is not obligated to provide the user with any support,
|
41
|
-
consulting, training or assistance of any kind with regard to the use of
|
42
|
-
these Data or to provide the user with any updates, revisions or new
|
43
|
-
versions of these Data.
|
44
|
-
|
45
|
-
The names DOE/NREL/Alliance may not be used in any advertising or
|
46
|
-
publicity to endorse or promote any products or commercial entities unless
|
47
|
-
specific written permission is obtained from DOE/NREL/Alliance.
|
48
|
-
|
49
|
-
|
50
|
-
OPEN SOURCE LICENSE
|
51
|
-
|
52
|
-
This library is free software; you can redistribute it and/or
|
53
|
-
modify it under the terms of the GNU Lesser General Public
|
54
|
-
License as published by the Free Software Foundation; either
|
55
|
-
version 2.1 of the License, or (at your option) any later version.
|
56
|
-
|
57
|
-
This library is distributed in the hope that it will be useful,
|
58
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
59
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
60
|
-
Lesser General Public License for more details here.
|
61
|
-
|
62
|
-
You should have received a copy of the GNU Lesser General Public
|
63
|
-
License along with this library; if not, write to the Free Software
|
64
|
-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
65
|
-
|