honeybee-openstudio 2.16.1 → 2.16.2

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: bebaa07153272a1ce3f1489cfaa29e09b806d9487c7bf2633e79efa73bdd0478
4
- data.tar.gz: 33916d17e71bec4e0ba335215f5fb35e05f6419829f7e9f0e512a8967a2c7475
3
+ metadata.gz: d3f1e79e88096584d584ea3dffc280c57fc110bbc309dde1314e7a1b43fdc4a4
4
+ data.tar.gz: 1685ab3a10833c574596ebf773331fa3618ab99cb121f52564b18f86e348d91e
5
5
  SHA512:
6
- metadata.gz: d2420ded85a17f858b5251992ce9d06787957b5e28760f6f79091747dde619bdf63fc2b41e55f4ae0cec8b6269afbb0a977db714e791083ba7fa5177d0c6fba4
7
- data.tar.gz: 3701609f07e44434943d8bdb1e0f349aeb719ffa01c1a2a088860952d205a5fa8578cd7e2c24c13b255c63a28a884b81de71d104be51c2326ea74e6e7813b7d5
6
+ metadata.gz: 0ba099cce9cb4339d08a4fdb9e6238e44c8c05b33db76ca76643ebd489c4876738c8dd30ecdaf0bcb1c5849a2ecfcb909f42be8c73ac2d6dff5dda5943042fda
7
+ data.tar.gz: 644999cf2a5cdb030694434a7218da8fd5a5c65c546fbcb5b3698c8e5b3760d12c2751cbe1f65149d06634ae1eec5f5c1ad93e090e89712cce3ffa8e9ce05a82
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'honeybee-openstudio'
7
- spec.version = '2.16.1'
7
+ spec.version = '2.16.2'
8
8
  spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
9
9
  spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
10
10
 
@@ -71,7 +71,7 @@ module Honeybee
71
71
 
72
72
  construction = sub_surface.construction
73
73
  if !construction.empty?
74
- hash[:construction] = clean_identifier(construction.get.nameString)
74
+ hash[:construction] = construction.get.nameString
75
75
  end
76
76
 
77
77
  hash
@@ -71,7 +71,7 @@ module Honeybee
71
71
 
72
72
  construction = sub_surface.construction
73
73
  if !construction.empty?
74
- hash[:construction] = clean_identifier(construction.get.nameString)
74
+ hash[:construction] = construction.get.nameString
75
75
  end
76
76
 
77
77
  hash
@@ -73,7 +73,7 @@ module Honeybee
73
73
 
74
74
  construction = surface.construction
75
75
  if !construction.empty?
76
- hash[:construction] = clean_identifier(construction.get.nameString)
76
+ hash[:construction] = construction.get.nameString
77
77
  end
78
78
 
79
79
  hash
@@ -112,7 +112,7 @@ module Honeybee
112
112
  def self.story_from_space(space)
113
113
  story = space.buildingStory
114
114
  if !story.empty?
115
- return clean_identifier(story.get.nameString)
115
+ return story.get.nameString
116
116
  end
117
117
  nil
118
118
  end
@@ -61,12 +61,12 @@ module Honeybee
61
61
 
62
62
  construction = shading_surface.construction
63
63
  if !construction.empty?
64
- hash[:construction] = clean_identifier(construction.get.nameString)
64
+ hash[:construction] = construction.get.nameString
65
65
  end
66
66
 
67
67
  transmittance_schedule = shading_surface.transmittanceSchedule
68
68
  if !transmittance_schedule.empty?
69
- hash[:transmittance_schedule] = clean_identifier(transmittance_schedule.get.nameString)
69
+ hash[:transmittance_schedule] = transmittance_schedule.get.nameString
70
70
  end
71
71
 
72
72
  hash
@@ -100,7 +100,7 @@ module Honeybee
100
100
 
101
101
  # remove illegal characters in identifier
102
102
  def self.clean_identifier(str)
103
- str.gsub(/[^.A-Za-z0-9_-] /, '_')
103
+ str.gsub(/[^.A-Za-z0-9_-] /, '_').gsub(' ', '_')
104
104
  end
105
105
 
106
106
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybee-openstudio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: 2.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanushree Charan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2021-04-28 00:00:00.000000000 Z
14
+ date: 2021-04-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure