openstudio-standards 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: e1c16f368f65598007e7fa386a283bfb473944a4
4
- data.tar.gz: 84bf4b6af68b94a6fe02b5422663037837ff3953
3
+ metadata.gz: 12e7e575882f1774c5a15c1ba9fb265f16ee36f3
4
+ data.tar.gz: 6775ad97f23e10d443d7d7becc1ee3d570044b1b
5
5
  SHA512:
6
- metadata.gz: 143ecc8ded907f833a5ec8944c06c5582c8a01faa2c2da9628ac35928cab231f15e089f54b6d6b86ad0fdbe5dbdcca377fd4124bb43d85adae85a8f5f664664d
7
- data.tar.gz: d719cdc65b733287689331e600b4f216ac90e859a8702ab4bdccf8ad554cf23e2f72817f8a6f34b65b9a5b07b83f82319721ce4a87a9099a126cd61b11c3c5cd
6
+ metadata.gz: bebb2e7b514968c122b01fe416a6a0a01cac4d52f4139fe16c20f478f0677302908e0af68c3032e4301183f7a0e9d5bf74ae558494516f042a0af37a974d296d
7
+ data.tar.gz: 9121d766b0aad05f084b58b54aa731291eea614e0e7f3cd91bdb235fc7ef62a4cfef63348e74322255d757d61ce8dfadcae916570ac14a181846198f1d60e846
@@ -3019,7 +3019,12 @@ class OpenStudio::Model::Model
3019
3019
  standards_data_dir = "#{top_dir}/data/standards"
3020
3020
 
3021
3021
  # Load the legacy idf results JSON file into a ruby hash
3022
- temp = File.read("#{standards_data_dir}/legacy_idf_results.json")
3022
+ temp = ''
3023
+ begin
3024
+ temp = load_resource_relative("../../../data/standards/legacy_idf_results.json", 'r:UTF-8')
3025
+ rescue NoMethodError
3026
+ temp = File.read("#{standards_data_dir}/legacy_idf_results.json")
3027
+ end
3023
3028
  legacy_idf_results = JSON.parse(temp)
3024
3029
 
3025
3030
  # List of all fuel types
@@ -1,3 +1,3 @@
1
1
  module OpenstudioStandards
2
- VERSION = '0.1.12'.freeze
2
+ VERSION = '0.1.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Parker
@@ -21,7 +21,7 @@ authors:
21
21
  autorequire:
22
22
  bindir: bin
23
23
  cert_chain: []
24
- date: 2017-03-15 00:00:00.000000000 Z
24
+ date: 2017-03-24 00:00:00.000000000 Z
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: nokogiri