openstudio-analysis 1.3.7 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e02ddfed034d22644f57f829611644aa06fb15122511288f2fa5657912c74b7
4
- data.tar.gz: dd20b2f87b2c3e09dbc02691958456b953f6a9076ac273ba392c5b7e4f6ef2ad
3
+ metadata.gz: b3a924d83d69de21676bcf3231cfb4dd1490bac543775d19ff2681b95c7c6629
4
+ data.tar.gz: b026ed470a103fd7211ecab29412b89fcbfef76dee7af2d21f5ccf66c431dbce
5
5
  SHA512:
6
- metadata.gz: 4db14ed5e381e1c4a0b3f22b8f866e219d263c0a3d7bde13a2eb8a080807baae23eb06383509fb8721fabbb1bb598a112f614ccd43465610684527b696024d50
7
- data.tar.gz: 6f72189583fa3b4c2057c383011e702273de5711df310fef3f7068952037f23bd4f092e049470899f90f35eef2af224aab034c7e824775b802fea542ab55c111
6
+ metadata.gz: 86df02da3bf13f5c2a7eabadae7f3b6fd6535895e1248701821a70ad33dbfd785421997bab1068771b9b813bdaa58adc083ad6a4d8a14c1bd60f92c75293fb1f
7
+ data.tar.gz: e21fd89b4861d5de4e96b1bef9be796a8555ba174d2bbfd6ac48d900ee37f489a5b75f69873ce31fa07210400c64f0429f03d1f93e1c6e36779df7c91bf724ae
@@ -13,7 +13,7 @@ jobs:
13
13
  shell: bash
14
14
  run: "sudo apt install -y ruby && ruby -v" # ruby anye tests here when ready
15
15
  ubuntu-2004: # ruby 2.7 workflow
16
- if: github.event.pull_request.base.ref != '1.1.X-LTS' # check target branch of pr
16
+ if: github.event.pull_request.base.ref == '1.3.X-LTS' # check target branch of pr
17
17
  runs-on: ubuntu-20.04
18
18
  steps:
19
19
  -
@@ -38,3 +38,28 @@ jobs:
38
38
  -v $(pwd):/var/simdata/openstudio \
39
39
  nrel/openstudio:3.7.0 \
40
40
  /bin/bash -c "bundle install && bundle exec rake"
41
+ ubuntu-2204: # ruby 3.2 workflow in 22.04
42
+ runs-on: ubuntu-22.04
43
+ steps:
44
+ - name: Check out repository
45
+ uses: actions/checkout@v4
46
+ - name: Install Ruby
47
+ uses: ruby/setup-ruby@v1
48
+ with:
49
+ ruby-version: '3.2'
50
+ - name: Display system info
51
+ run: |
52
+ ruby --version
53
+ docker --version
54
+ docker-compose --version
55
+ - name: Start OpenStudio for testing Server API
56
+ run: |
57
+ echo "Not yet implemented"
58
+ - name: Run tests in Docker
59
+ env:
60
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
61
+ run: |
62
+ docker run -e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \
63
+ -v $(pwd):/var/simdata/openstudio \
64
+ nrel/openstudio:develop \
65
+ /bin/bash -c "bundle install && bundle exec rake"
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  OpenStudio(R) Analysis Gem Change Log
2
2
  ==================================
3
3
 
4
+ Version 1.4.0
5
+ -------------
6
+ * Ruby 3.2 and OpenStudio 3.8.0
7
+
4
8
  Version 1.3.7
5
9
  -------------
6
10
  * Add move_measure_after()
@@ -605,7 +605,7 @@ module OpenStudio
605
605
  # check if weather file exists. use abs path. remove leading ./ from @weather_file path if there.
606
606
  # check if path is already absolute
607
607
  if @weather_file[:file]
608
- if File.exists?(@weather_file[:file])
608
+ if File.exist?(@weather_file[:file])
609
609
  puts " Adding #{@weather_file[:file]}"
610
610
  #zf.add("weather/#{File.basename(@weather_file[:file])}", @weather_file[:file])
611
611
  base_name = File.basename(@weather_file[:file], ".*")
@@ -622,7 +622,7 @@ module OpenStudio
622
622
  zf.add("weather/#{File.basename(file_path)}", file_path)
623
623
  end
624
624
  # make absolute path and check for file
625
- elsif File.exists?(File.join(osw_full_path,@weather_file[:file].sub(/^\.\//, '')))
625
+ elsif File.exist?(File.join(osw_full_path,@weather_file[:file].sub(/^\.\//, '')))
626
626
  puts " Adding: #{File.join(osw_full_path,@weather_file[:file].sub(/^\.\//, ''))}"
627
627
  #zf.add("weather/#{File.basename(@weather_file[:file])}", File.join(osw_full_path,@weather_file[:file].sub(/^\.\//, '')))
628
628
  base_name = File.basename(@weather_file[:file].sub(/^\.\//, ''), ".*")
@@ -647,7 +647,7 @@ module OpenStudio
647
647
  #check if seed file exists. use abs path. remove leading ./ from @seed_model path if there.
648
648
  #check if path is already absolute
649
649
  if @seed_model[:file]
650
- if File.exists?(@seed_model[:file])
650
+ if File.exist?(@seed_model[:file])
651
651
  puts " Adding #{@seed_model[:file]}"
652
652
  zf.add("seeds/#{File.basename(@seed_model[:file])}", @seed_model[:file])
653
653
  if all_seed_files
@@ -661,7 +661,7 @@ module OpenStudio
661
661
  end
662
662
  end
663
663
  #make absolute path and check for file
664
- elsif File.exists?(File.join(osw_full_path,@seed_model[:file].sub(/^\.\//, '')))
664
+ elsif File.exist?(File.join(osw_full_path,@seed_model[:file].sub(/^\.\//, '')))
665
665
  puts " Adding #{File.join(osw_full_path,@seed_model[:file].sub(/^\.\//, ''))}"
666
666
  zf.add("seeds/#{File.basename(@seed_model[:file])}", File.join(osw_full_path,@seed_model[:file].sub(/^\.\//, '')))
667
667
  if all_seed_files
@@ -7,6 +7,6 @@ module OpenStudio
7
7
  module Analysis
8
8
  # format should be ^.*\-{1}[a-z]+[0-9]+
9
9
  # for example: -rc1, -beta6, -customusecase0
10
- VERSION = '1.3.7'.freeze
10
+ VERSION = '1.4.0'.freeze
11
11
  end
12
12
  end
@@ -21,18 +21,18 @@ Gem::Specification.new do |s|
21
21
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
23
 
24
- s.required_ruby_version = '~> 2.7.0'
24
+ s.required_ruby_version = '~> 3.2.2'
25
25
 
26
- s.add_dependency 'bcl', '~> 0.7.1'
26
+ s.add_dependency 'bcl', '~> 0.8.0'
27
27
  s.add_dependency 'dencity', '~> 0.1.0'
28
28
  s.add_dependency 'faraday', '~> 1.0.1'
29
29
  s.add_dependency 'roo', '~> 2.8.3'
30
30
  s.add_dependency 'rubyzip', '~> 2.3.0'
31
31
  s.add_dependency 'semantic', '~> 1.4'
32
32
 
33
- s.add_development_dependency 'json-schema', '~> 2.8.0'
33
+ s.add_development_dependency 'json-schema', '~> 2.8.1'
34
34
  s.add_development_dependency 'rake', '~> 13.0'
35
- s.add_development_dependency 'rspec', '~> 3.9'
36
- s.add_development_dependency 'rubocop', '~> 1.15.0'
37
- s.add_development_dependency 'rubocop-checkstyle_formatter', '~> 0.4.0'
35
+ s.add_development_dependency 'rspec', '~> 3.10'
36
+ s.add_development_dependency 'rubocop', '1.50'
37
+ s.add_development_dependency 'rubocop-checkstyle_formatter', '0.6.0'
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcl
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.1
19
+ version: 0.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.1
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dencity
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.8.0
103
+ version: 2.8.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.8.0
110
+ version: 2.8.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,42 +128,42 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.9'
131
+ version: '3.10'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.9'
138
+ version: '3.10'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 1.15.0
145
+ version: '1.50'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 1.15.0
152
+ version: '1.50'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop-checkstyle_formatter
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.4.0
159
+ version: 0.6.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.4.0
166
+ version: 0.6.0
167
167
  description: Basic classes for generating the files needed for OpenStudio-Server
168
168
  email:
169
169
  - Nicholas.Long@nrel.gov
@@ -210,14 +210,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - "~>"
212
212
  - !ruby/object:Gem::Version
213
- version: 2.7.0
213
+ version: 3.2.2
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ">="
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubygems_version: 3.1.4
220
+ rubygems_version: 3.4.10
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: Create JSON, ZIP to communicate with OpenStudio Distributed Analysis in the