openstudio-geb 0.2.0 → 0.2.1
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 +4 -0
- data/Rakefile +1 -1
- data/lib/openstudio/geb/extension.rb +0 -18
- data/lib/openstudio/geb/version.rb +1 -1
- data/lib/openstudio/geb.rb +1 -19
- data/lib/openstudio-geb.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff676d424dd5339717693d56f2fea40d47644b9fe47d723e1414f2d507f97d71
|
|
4
|
+
data.tar.gz: 53f0ae3b92dbfdcc8e9c895a04fa1ed2aa15ca254fe8d089e4d5ea328455f011
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a4bf570faad102132a351d3ae5869bdf417664d336009fb0ece9eb945e6c0e69f7a0a81fbfcb5d6884678079f0a5b95a22595dfe16bc836b9160f99df2111b4
|
|
7
|
+
data.tar.gz: f943804c9baf9fd0ac4e3209e8b985ff237b3d9265001a2ce5cdfd5229b39f5a5d8987998079ad82d6d823207c9b62e8e54faa121cd7e83b27b686a179017812
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
|
@@ -10,6 +10,6 @@ RuboCop::RakeTask.new
|
|
|
10
10
|
require 'openstudio/extension/rake_task'
|
|
11
11
|
require 'openstudio/geb'
|
|
12
12
|
os_extension = OpenStudio::Extension::RakeTask.new
|
|
13
|
-
os_extension.set_extension_class(OpenStudio::Geb::
|
|
13
|
+
os_extension.set_extension_class(OpenStudio::Geb::Extension)
|
|
14
14
|
|
|
15
15
|
task default: :spec
|
|
@@ -45,24 +45,6 @@ module OpenStudio
|
|
|
45
45
|
@root_dir = File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
# Return the absolute path of the measures or nil if there is none, can be used when configuring OSWs
|
|
49
|
-
def measures_dir
|
|
50
|
-
return File.absolute_path(File.join(@root_dir, 'lib', 'measures'))
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Relevant files such as weather data, design days, etc.
|
|
54
|
-
# Return the absolute path of the files or nil if there is none, used when configuring OSWs
|
|
55
|
-
def files_dir
|
|
56
|
-
return File.absolute_path(File.join(@root_dir, 'lib', 'files'))
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Doc templates are common files like copyright files which are used to update measures and other code
|
|
60
|
-
# Doc templates will only be applied to measures in the current repository
|
|
61
|
-
# Return the absolute path of the doc templates dir or nil if there is none
|
|
62
|
-
def doc_templates_dir
|
|
63
|
-
return File.absolute_path(File.join(@root_dir, 'doc_templates'))
|
|
64
|
-
end
|
|
65
|
-
|
|
66
48
|
end
|
|
67
49
|
end
|
|
68
50
|
end
|
data/lib/openstudio/geb.rb
CHANGED
|
@@ -33,24 +33,6 @@
|
|
|
33
33
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
34
|
# *******************************************************************************
|
|
35
35
|
|
|
36
|
-
require 'openstudio/extension'
|
|
37
|
-
require 'openstudio-standards'
|
|
38
|
-
|
|
39
36
|
require 'openstudio/geb/version'
|
|
40
|
-
require 'openstudio/geb/run'
|
|
41
37
|
require 'openstudio/geb/extension'
|
|
42
|
-
require 'openstudio/geb/
|
|
43
|
-
require 'openstudio/geb/utilities'
|
|
44
|
-
|
|
45
|
-
module OpenStudio
|
|
46
|
-
module Geb
|
|
47
|
-
class Geb < OpenStudio::Extension::Extension
|
|
48
|
-
# Override parent class
|
|
49
|
-
def initialize
|
|
50
|
-
super
|
|
51
|
-
|
|
52
|
-
@root_dir = File.absolute_path(File.join(File.dirname(__FILE__), '..', '..'))
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
38
|
+
require 'openstudio/geb/run'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require_relative 'openstudio/geb'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstudio-geb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaiyu Sun
|
|
@@ -283,6 +283,7 @@ files:
|
|
|
283
283
|
- lib/measures/reduce_lpd_by_percentage_for_peak_hours/tests/example_model.osm
|
|
284
284
|
- lib/measures/reduce_lpd_by_percentage_for_peak_hours/tests/reduce_lpd_by_percentage_for_peak_hours_test.rb
|
|
285
285
|
- lib/measures/reduce_lpd_by_percentage_for_peak_hours/tests/test.osm
|
|
286
|
+
- lib/openstudio-geb.rb
|
|
286
287
|
- lib/openstudio/geb.rb
|
|
287
288
|
- lib/openstudio/geb/extension.rb
|
|
288
289
|
- lib/openstudio/geb/logging.rb
|
|
@@ -308,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
308
309
|
- !ruby/object:Gem::Version
|
|
309
310
|
version: '0'
|
|
310
311
|
requirements: []
|
|
311
|
-
rubygems_version: 3.
|
|
312
|
+
rubygems_version: 3.1.4
|
|
312
313
|
signing_key:
|
|
313
314
|
specification_version: 4
|
|
314
315
|
summary: OpenStudio measures for grid-interactive efficient buildings
|