tbd 3.4.4 → 3.5.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.
data/v291_MacOS.md CHANGED
@@ -1,15 +1,14 @@
1
1
  _We reiterate that building professionals and energy modellers can download the latest TBD version directly from the Guide itself, or under [releases](https://github.com/rd2/tbd/releases), or via NREL's [BCL](https://bcl.nrel.gov) (search for "bridging" or "rd2"). Those instead interested in exploring/tweaking the source code (cloned or forked versions of TBD) can follow the Windows or MacOS Ruby setup described in TBD's [README](https://github.com/rd2/tbd#readme)._
2
2
 
3
- _The MacOS instructions below specifically target (older) Ruby v2.2.5 environments, needed for developing OpenStudio [v2.9.1](https://github.com/NREL/OpenStudio/releases/tag/v2.9.1) measures - the most up-to-date version that remains [compatible](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix) with [SketchUp Make 2017](https://help.sketchup.com/en/downloading-older-versions). More recent OpenStudio versions (e.g. v3.6.1) can - to a large degree - safely translate older .osm files. Although TBD (and Topolys) are systematically tested against updated OpenStudio versions (v2.9.1 onwards), the following Ruby v2.2.5 setup is no longer tested or maintained. Nonetheless, it may be of some help for the more adventurous of you._
3
+ _The MacOS instructions below specifically target (older) Ruby v2.2.5 environments, needed for developing OpenStudio [v2.9.1](https://github.com/NREL/OpenStudio/releases/tag/v2.9.1) measures - the most up-to-date version that remains [compatible](https://github.com/NREL/OpenStudio/wiki/OpenStudio-SDK-Version-Compatibility-Matrix) with [SketchUp Make 2017](https://help.sketchup.com/en/downloading-older-versions). More recent OpenStudio versions (e.g. v3.8.0) can - to a large degree - safely translate older .osm files. Although TBD (and Topolys) are systematically tested against updated OpenStudio versions (v2.9.1 onwards), the following Ruby v2.2.5 setup is no longer tested or maintained. Nonetheless, it may be of some help for the more adventurous of you._
4
4
 
5
5
 
6
6
  ## v2.9.1 MacOS Instructions
7
7
  _tested Catalina 10.15.4 up to Big Sur 11.4_
8
8
 
9
- OpenStudio v2.9.1 measures require Ruby v2.2.5, which is several iterations behind the default Ruby v2.6 version available on any recently-purchased Mac. Although it is common to develop/test using more than one Ruby version, some effort is nonetheless required for older vintages: v2.2.5 is no longer officially supported, it requires the deprecated OpenSSL-1.0 (not 1.1), etc. To help Mac users (and potentially Linux users as well), the following steps are recommended (although architecture-specific tweaks may be required).
9
+ OpenStudio v2.9.1 measures require Ruby v2.2.5, which is several iterations behind the default Ruby v2.6 version available on any recently-purchased Mac. Although it is common to develop/test using more than one Ruby version, some effort is nonetheless required for older vintages: v2.2.5 is way past its shelf-life, it requires the deprecated OpenSSL-1.0 (not 1.1), etc. To help Mac users (and potentially Linux users as well), the following steps are recommended (although architecture-specific tweaks may be required).
10
10
 
11
11
  From a Terminal, install [Homebrew](https://brew.sh/index) - nice for package distribution and management. With a few tweaks, it will handle most package downloads, dependencies, etc. Using Homebrew, install OpenSSL-1.0, and then _rbenv_ (which allows users to manage multiple Ruby versions). One way of doing it:
12
-
13
12
  ```
14
13
  brew install rbenv/tap/openssl@1.0
15
14
  ```
@@ -17,7 +16,6 @@ brew install rbenv/tap/openssl@1.0
17
16
  By _tapping_, Homebrew provides a way to access third-party repositories that are no longer officially supported by Homebrew, like Ruby v2.2.5 and OpenSSL-1.0. The above instruction tells Homebrew to install compatible versions of OpenSSL-1.0 with _rbenv_ (e.g. 1.0.2t, 1.0.2u).
18
17
 
19
18
  Next, ensure that Homebrew and _rbenv_ use OpenSSL-1.0 for future, local Ruby development. Edit (or create) a user’s local _~/.zshrc_ file (instructions here are provided for _zsh_, the default macOS Terminal shell interface - _bash_ users: adapt!), by pasting-in the following:
20
-
21
19
  ```
22
20
  eval "$(rbenv init - zsh)"
23
21
  export PATH="/usr/local/opt/openssl@1.0/bin:$PATH"
@@ -28,48 +26,29 @@ export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)"
28
26
  ```
29
27
 
30
28
  There’s probably more there than necessary, but it should do the trick for the next few steps, and/or for future work. Quit the Terminal and start a new one, or simply _source_ the zshrc file:
31
-
32
29
  ```
33
30
  source ~/.zshrc
34
31
  ```
35
32
 
36
33
  Make sure the right OpenSSL version is recognized, and then instruct Homebrew to switch over to it:
37
-
38
34
  ```
39
35
  openssl version
40
36
  brew switch openssl 1.0.2t
41
37
  ```
42
38
 
43
39
  … or whatever Openssl 1.0 version was installed, e.g. 1.0.2u. Then install _ruby-build_, _rbenv_ and finally Ruby v2.2.5:
44
-
45
40
  ```
46
41
  brew install ruby-build
47
42
  brew install rbenv
48
43
  rbenv install 2.2.5
49
44
  ```
50
45
 
51
- Install a compatible version of [bundler](https://bundler.io), great for managing Ruby gems and dependencies:
52
-
53
- ```
54
- gem install bundler -v 1.17.3
55
- ```
56
- In some cases, (temporarily) switching over to an insecure ```http``` connection to rubygems.org (instead of the default ```https```) may be required:
57
- ```
58
- gem source -r https://rubygems.org/
59
- gem source -a http://rubygems.org/
60
- gem install bundler -v 1.17.3
61
- gem source -r http://rubygems.org/
62
- gem source -a https://rubygems.org/
63
- ```
64
-
65
46
  In the Terminal, check the Ruby version:
66
-
67
47
  ```
68
48
  ruby -v
69
49
  ```
70
50
 
71
51
  ... should still report the current Ruby version used by macOS (e.g. ```system``` or ```2.6```). To ensure Ruby v2.2.5 is used for developing OpenStudio v2.9.1-compatible measures, instruct _rbenv_ to use Ruby v2.2.5 _locally_ within a user’s chosen directory (e.g. "sandbox291"):
72
-
73
52
  ```
74
53
  mkdir ~/Documents/sandbox291
75
54
  cd ~/Documents/sandbox291
@@ -78,7 +57,6 @@ ruby -v
78
57
  ```
79
58
 
80
59
  … should now report ```2.2.5``` as the local Ruby version, to be used by default for anything under the "sandbox291" directory tree. To ensure both Ruby versions are operational and safe, run the following checkup twice - once from a user’s _home_ (or ~/), then from within e.g., "sandbox291":
81
-
82
60
  ```
83
61
  cd ~/
84
62
  ruby -ropen-uri -e 'eval open("https://git.io/vQhWq").read'
@@ -88,21 +66,34 @@ ruby -ropen-uri -e 'eval open("https://git.io/vQhWq").read'
88
66
 
89
67
  If successful, one should get a ```Hooray!``` from both Ruby versions confirming valid communication with [Rubygems](https://rubygems.org/), yet with their specific RubyGems and OpenSSL versions, as well as their own SSL certificates.
90
68
 
91
- Install OpenStudio [v2.9.1](https://github.com/NREL/OpenStudio/releases/tag/v2.9.1).
69
+ [Bundler](https://bundler.io) is also required for managing Ruby gems and dependencies. With _rbenv_, the right _Bundler_ version should have been installed. If for whatever reason it wasn't installed:
70
+ ```
71
+ bundler -v
72
+ gem install bundler -v 1.17.3
73
+ ```
74
+
75
+ In some cases, (temporarily) switching over to an insecure ```http``` connection to rubygems.org (instead of the default ```https```) may be required:
76
+ ```
77
+ gem source -r https://rubygems.org/
78
+ gem source -a http://rubygems.org/
79
+ gem install bundler -v 1.17.3
80
+ gem source -r http://rubygems.org/
81
+ gem source -a https://rubygems.org/
82
+ ```
92
83
 
93
- Then create the file _~/.rbenv/versions/2.2.5/lib/ruby/site_ruby/openstudio.rb_, and edit it so it _points_ to your new OpenStudio installation:
84
+ Install OpenStudio [v2.9.1](https://github.com/NREL/OpenStudio/releases/tag/v2.9.1).
94
85
 
86
+ Create a new file ```~/.rbenv/versions/2.2.5/lib/ruby/site_ruby/openstudio.rb``` (path may be different depending on the environment), and edit it so it _points_ to your new OpenStudio installation:
95
87
  ```
96
88
  require '/Applications/OpenStudio-2.9.1/Ruby/openstudio.rb'
97
89
  ```
98
90
 
99
91
  Verify your local OpenStudio and Ruby configuration:
100
-
101
92
  ```
102
93
  cd ~/Documents/sandbox291
103
94
  ruby -e "require 'openstudio'" -e "puts OpenStudio::Model::Model.new"
104
95
  ```
105
96
 
106
- Install the latest version of _git_ (e.g. through Homebrew), and ```git clone``` the TBD measure under e.g., "sandbox291".
97
+ Make sure you have latest version of _git_ (e.g. through Homebrew), then ```git clone``` the TBD measure under e.g., "sandbox291".
107
98
 
108
99
  Run the basic [tests](https://github.com/rd2/tbd#complete-list-of-test-commands) to ensure the measure operates as expected.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.4
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Bourgeois & Dan Macumber
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2025-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: topolys
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.8.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.8.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json-schema
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +166,7 @@ licenses:
166
166
  - MIT
167
167
  metadata:
168
168
  homepage_uri: https://github.com/rd2/tbd
169
- source_code_uri: https://github.com/rd2/tbd/tree/v3.4.4
169
+ source_code_uri: https://github.com/rd2/tbd/tree/v3.5.0
170
170
  bug_tracker_uri: https://github.com/rd2/tbd/issues
171
171
  post_install_message:
172
172
  rdoc_options: []