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 +4 -4
- data/lib/bandwidth-iris/port_in.rb +2 -0
- data/lib/bandwidth-iris/version.rb +1 -1
- data/spec/bandwidth-iris/port_in_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688938697e5f74ba5dafa9bffd2ea3a1a8abf8da704233fe63027eac7c0d5e74
|
4
|
+
data.tar.gz: 7c9812bf3f7d4fa231457fc41fe64e2e6e3e4faf1c9f46dc48e6261742a4b5a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) },
|
@@ -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:
|
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-
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|