nsastorage 0.7.0 → 0.9.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: 9537a3d82172d34af175389d2d2cc33b6fa965fd0417b063895214f07f93d332
4
- data.tar.gz: 5b22a92987bf74ab7ec95e7a834a2abb8221df44023594309bb38b0de0714696
3
+ metadata.gz: 94e09062ff5f8bce4702b3f5f7e25f666642c619fe30be72a0e264107242dc1f
4
+ data.tar.gz: 780cbe3b2b626c8af04c8d9fa588ccf7c163196de2ed7d9c83bb14b5298bd221
5
5
  SHA512:
6
- metadata.gz: 19bb2a9780263f76146e6336c576d6134831697fb5cf736afe7ded2cda33dea6921848bf3b8794fd4189c3a2328cf9fa3ff80df1a0005484053085b73896f8f4
7
- data.tar.gz: 804bc7dba4e357e73700fa4b41e765a8c7f4de4606fd310d33eb68724eb454409dff6715eebabd9eb764a77ca96fef1977edf2c31214af943b05bc4f48301cb7
6
+ metadata.gz: b17cf2b4dbc7c01bdec1632b5670cfb797d09320771339719aae168fa758b711334ad8fac2443c1f4ec8f5f0bf4ac8806e50b0e419f495c5cbcdaa7917206154
7
+ data.tar.gz: 9e6d7714d6298946f20331ce25fe52f473dd3f3faa64df3a37ead1ca7e5f697015bf015d6864f78a4cdb5f82df9370879f76d7809542719bd5b14ac764702b27
@@ -3,6 +3,8 @@
3
3
  module NSAStorage
4
4
  # The dimensions (width + depth + sqft) of a price.
5
5
  class Dimensions
6
+ DEFAULT_WIDTH = 5.0 # feet
7
+ DEFAULT_DEPTH = 5.0 # feet
6
8
  DEFAULT_HEIGHT = 8.0 # feet
7
9
 
8
10
  DIMENSIONS_REGEX = /(?<width>[\d\.]+) x (?<depth>[\d\.]+)/
@@ -65,8 +67,8 @@ module NSAStorage
65
67
  text = element.at_css('.unit-select-item-detail').text
66
68
  match = DIMENSIONS_REGEX.match(text)
67
69
 
68
- width = Float(match[:width])
69
- depth = Float(match[:depth])
70
+ width = match ? Float(match[:width]) : DEFAULT_WIDTH
71
+ depth = match ? Float(match[:depth]) : DEFAULT_DEPTH
70
72
  new(depth:, width:, height: DEFAULT_HEIGHT)
71
73
  end
72
74
  end
@@ -10,7 +10,7 @@ module NSAStorage
10
10
  text = element.text
11
11
 
12
12
  new(
13
- climate_controlled: text.include?('Climate controlled'),
13
+ climate_controlled: text.include?('Heated and Cooled'),
14
14
  drive_up_access: text.include?('Drive Up Access'),
15
15
  first_floor_access: text.include?('1st Floor')
16
16
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NSAStorage
4
- VERSION = '0.7.0'
4
+ VERSION = '0.9.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsastorage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http