ruby-bandwidth-iris 6.0.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a078992d099b9230e03bf89a886d2a20722f589487fe42cf60870cf8d58a78f2
4
- data.tar.gz: 16a89092f0ade496f0fe8f7b38bfe99aa33262dda8c5d2ecde7d3108fd692ace
3
+ metadata.gz: 688938697e5f74ba5dafa9bffd2ea3a1a8abf8da704233fe63027eac7c0d5e74
4
+ data.tar.gz: 7c9812bf3f7d4fa231457fc41fe64e2e6e3e4faf1c9f46dc48e6261742a4b5a8
5
5
  SHA512:
6
- metadata.gz: 55cec4a52822fac10792cd040b6837acc876241dbeb7cfb7e238b1a699e00ebe3ca7ecc60b32915180edf370009dfa9d021fd5ba31f6a6a82d1e455f9206a180
7
- data.tar.gz: b313d0f487d7816a73a0631c863b44a3b8ca3f35154562265dd625c2f0671367c4dcad04cb8da8d823ce8b6ba8d68e494a3fb628604d3779cf5107c5c782e516
6
+ metadata.gz: 71968ed3ded14f782a251e62f796a49d5be3590a298e29a0ce04f7b1a533ee4e5caebd7087fbbadf6746107912da57981f34dcd3b148513b83f341a584e7c662
7
+ data.tar.gz: 25a2cfaff14b21b766e4734451702ea86b1949f52f931ea94a7557a8207beac0d053f3b8a2dc365b69079ddbb6a999095ed56b4697ec623336db03658702e395
@@ -16,6 +16,8 @@ module BandwidthIris
16
16
  def self.list_from_page_url(client, url, query=nil)
17
17
  response = client.make_request(:get, url, query)[0]
18
18
  items = response[:lnp_port_info_for_given_status]
19
+ return unless items
20
+
19
21
  items = items.is_a?(Array) ? items : [items]
20
22
  PaginatedResult.new(
21
23
  items.map { |item| PortIn.new(item, client) },
@@ -1,4 +1,4 @@
1
1
  module BandwidthIris
2
2
  # Version of this gem
3
- VERSION = "6.0.0"
3
+ VERSION = "7.0.0"
4
4
  end
@@ -24,6 +24,14 @@ describe BandwidthIris::PortIn do
24
24
  expect(orders[1][:last_modified_date]).to eql(DateTime.new(2020, 1, 15, 19, 6, 10.085))
25
25
  end
26
26
  end
27
+
28
+ describe '#list orders empty' do
29
+ it 'should list port in orders with no orders' do
30
+ client.stubs.get('/v1.0/accounts/accountId/portins') {|env| [204, {}]}
31
+ orders = PortIn.list(client)
32
+ expect(orders.class).to eql(NilClass)
33
+ end
34
+ end
27
35
 
28
36
  describe '#create' do
29
37
  it 'should create an order' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-bandwidth-iris
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Belchikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-19 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder