openstudio-analysis 1.0.5 → 1.0.6

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: 76642f1d452e8e46218af9c36e388da0033e43469ec2063d6c61f4e4cd9b99fd
4
- data.tar.gz: 40b243f4b0375a79e726bf4105913f75fc3ce65d09134aa27e5a927c36984b57
3
+ metadata.gz: 5f09590a10cf6967fb9842c05d8c38ad2be1b3dd534b0f251a9a1e239634fedd
4
+ data.tar.gz: 679f353d4f85adcbd51dc9df8b2e61edd4250126a7ae49fab72058f1840e18e4
5
5
  SHA512:
6
- metadata.gz: 5a9bbb7d5567cf1a7ecb6b243490e4eb3c50b0dd28cdad09fec821eaece6803fb45a3cb554ad975cca257e84644b8fe28630a5243ec4c62c4fc371583c01f638
7
- data.tar.gz: 5a245e5b8c151fe7f079cc26af188115da571e420fc7a8df0b02a2c859bbd72ca2b91bff0aacac675677e86c7cf0d553463980ecf75ddc78e926221471f3b418
6
+ metadata.gz: 39da086f21c02da1bcf3f00c371bb76f703ece1a8c3d2d1895f4585c0ac1d3ba8801858dbdeb69d922a067a733fbfe200375163b3e87917a4651a4a4f1969e3e
7
+ data.tar.gz: e834f1873b13b933444d2dfaade3dfc62b7b177063fb9dbf69b06a2e133603123b2cbf8e28707d61748065fa12634cb72ab715b54004fdae482857a60b43a4b4
@@ -1,6 +1,10 @@
1
1
  OpenStudio Analysis Gem Change Log
2
2
  ==================================
3
3
 
4
+ Version 1.0.6
5
+ -------------
6
+ * Always include ../lib to the file paths to search
7
+
4
8
  Version 1.0.5
5
9
  -------------
6
10
  * Upgrade to latest BCL (0.6.1)
@@ -65,6 +65,7 @@ module OpenStudio
65
65
  @osw_version = '0.0.1'
66
66
  @options = options
67
67
  @file_paths = options[:file_paths] ? options[:file_paths] : []
68
+ @file_paths << '../lib'
68
69
  @measure_paths = options[:measure_paths] ? options[:measure_paths] : []
69
70
 
70
71
  # Initialize static inputs from the OSA
@@ -35,6 +35,6 @@
35
35
 
36
36
  module OpenStudio
37
37
  module Analysis
38
- VERSION = '1.0.5'.freeze
38
+ VERSION = '1.0.6'.freeze
39
39
  end
40
40
  end
@@ -72,7 +72,7 @@ module OpenStudio
72
72
  if File.exist?(File.join(local_path_to_measure, 'measure.xml'))
73
73
  measure_hash = parse_measure_xml(File.join(local_path_to_measure, 'measure.xml'))
74
74
  else
75
- raise "Could not find measure.xml"
75
+ raise 'Could not find measure.xml'
76
76
  end
77
77
 
78
78
  add_measure(instance_name, instance_display_name, local_path_to_measure, measure_hash)
@@ -52,14 +52,13 @@ def parse_measure_xml(measure_xml_filename)
52
52
  measure_hash[:version_id] = xml_root.elements['//measure/version_id'].text
53
53
  measure_hash[:arguments] = []
54
54
 
55
- REXML::XPath.each(xml_root, '//measure/arguments/argument' ) do |arg|
56
-
55
+ REXML::XPath.each(xml_root, '//measure/arguments/argument') do |arg|
57
56
  measure_hash[:arguments] << {
58
- name: arg.elements['name'].text,
59
- display_name: arg.elements['display_name'].text,
60
- variable_type: arg.elements['type'].text.downcase,
61
- default_value: arg.elements['default_value'].text,
62
- units: arg.elements['units'] ? arg.elements['units'].text : ''
57
+ name: arg.elements['name'].text,
58
+ display_name: arg.elements['display_name'].text,
59
+ variable_type: arg.elements['type'].text.downcase,
60
+ default_value: arg.elements['default_value'].text,
61
+ units: arg.elements['units'] ? arg.elements['units'].text : ''
63
62
  }
64
63
  end
65
64
 
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.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcl