tops_connect 0.4.0 → 0.4.1

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: 3430e8a541b493b7f8463528b31f2d9c3e29a867
4
- data.tar.gz: 4d60f6d1530827e9b9f66403ce56ce7a0dfa43b0
3
+ metadata.gz: 345f5053904bc5be6db1f16a2b862d926c0822ce
4
+ data.tar.gz: 05222a7f429dcdfc451f163630058426e3a140b6
5
5
  SHA512:
6
- metadata.gz: f6f7280592da6ee403a2afccf71824a92c52d174e08f61da5d019cd372ab53d83d9462a12de932fc36965d5755a87507e4182c5bc91f10ba1ad8001479805aa5
7
- data.tar.gz: f9dff07b8f31a2abb8902ae8fee21fe752cdd89a410b88737249c02d9596912f8617ae1e7ba584b958fb92a9efc51dec8335d25aae3cb1eb664a7315d8af3e9f
6
+ metadata.gz: 1b24a11f52aad027934c00cb69b84c3932660828b5928329763c0f67169ffe939cf194f6ef74e29df8a322ccaafb7cb9d9a98f9f3d9235d2d32d23486b40c616
7
+ data.tar.gz: c29194c29660d1d478808527a8bd8bfa5fe7cfb0c41ec4188c8bfe3c48d0f3a5ea529d3e9aeac66dbc3b9d3353b1379fd4a112e499d5d9751901ad3be0619c80
@@ -11,7 +11,7 @@ module TopsConnect
11
11
  end
12
12
 
13
13
  def address
14
- "#{data['AddressNumber']} #{data['Street']}"
14
+ ["#{address_number} #{street}", unit_number].compact.join(' #')
15
15
  end
16
16
 
17
17
  def city
@@ -26,6 +26,10 @@ module TopsConnect
26
26
  data['AddressNumber']
27
27
  end
28
28
 
29
+ def unit_number
30
+ data['AptNumber'] unless data['AptNumber'].blank?
31
+ end
32
+
29
33
  def street
30
34
  data['Street']
31
35
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TopsConnect
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
data/tops_connect.gemspec CHANGED
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.10'
23
+ spec.add_development_dependency 'bundler', '~> 1.13'
24
24
  spec.add_development_dependency 'rake', '~> 10'
25
- spec.add_development_dependency 'rspec', '~> 3.4'
26
- spec.add_development_dependency 'webmock', '~> 2.0'
25
+ spec.add_development_dependency 'rspec', '~> 3.5'
26
+ spec.add_development_dependency 'webmock', '~> 2.3'
27
27
 
28
28
  spec.add_dependency 'httparty', '~> 0.13'
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tops_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Hoffman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: '1.13'
20
20
  type: :development
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: '1.10'
26
+ version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.4'
47
+ version: '3.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.4'
54
+ version: '3.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: webmock
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '2.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.0'
68
+ version: '2.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement