ruby-bandwidth-iris 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 538d68fb402de2a2d2e6205243b35c9e234d2470
4
- data.tar.gz: 6fa4ef1e716a3cd1cba14b08a84636225f623169
3
+ metadata.gz: 3c1eb4bde307b7c240acec4154603afe59d5cc22
4
+ data.tar.gz: e6b92efda744bb9302b9ffd24fe2036f4b7f7ece
5
5
  SHA512:
6
- metadata.gz: 36d2daed8eaa6e88775d8fbd2d0e1f7c5ca4c86223c8d28d903d5d425cc5bf061f4e78cc8a7de87d4060142df052c2e338a53a52574c93635c938ab46402b2d9
7
- data.tar.gz: 833a20b387718587bf59e6c94e7c8c66fd2d8069eb57050f701a97df1e7009230bc7b2b549619560c3a6de2a6fc509bf9c500808acd28eb0cf9dd687076b60e0
6
+ metadata.gz: 25fd084cdb9321a9831c04e786b08fc25c8bc1cbb4c375d7ddbb13ffd8c7fab5549161829cbb245036668dd4cb5bceee6e8ef784b57236235a74f28e87b2b2bb
7
+ data.tar.gz: c0f4efb3ba404436cfa7387c227e632f0225b15251f2b41617f6a8b6807e4d0fb75044867ac79178809d1fd32e1f761919254b6e9bf65809fb95e04c86b4edf5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ruby-bandwidth-iris
2
2
 
3
- [![Build](https://travis-ci.org/bandwidthcom/ruby-bandwidth-Bandwidth::png)](https://travis-ci.org/bandwidthcom/ruby-bandwidth-iris)
3
+ [![Build Status](https://travis-ci.org/bandwidthcom/ruby-bandwidth-iris.svg)](https://travis-ci.org/bandwidthcom/ruby-bandwidth-iris)
4
4
 
5
5
  Ruby Client library for IRIS / BBS API
6
6
 
@@ -557,14 +557,17 @@ tn.get_rate_center()
557
557
  ```
558
558
 
559
559
  ## TN Reservation
560
+
560
561
  ### Create TN Reservation
561
562
  ```ruby
562
563
  Bandwidth::TnReservation.create({:reserved_tn => "9195551212"})
563
564
  ```
565
+
564
566
  ### Get TN Reservation
565
567
  ```ruby
566
568
  tn = Bandwidth::TnReservation.get(id)
567
569
  ```
570
+
568
571
  ### Delete TN Reservation
569
572
  ```ruby
570
573
  tn.delete()
@@ -1,5 +1,5 @@
1
1
  module BandwidthIris
2
- DISC_NUMBER_PATH = 'users'
2
+ DISC_NUMBER_PATH = 'discnumbers'
3
3
 
4
4
  class DiscNumber
5
5
  extend ClientWrapper
@@ -1,4 +1,4 @@
1
1
  module BandwidthIris
2
2
  # Version of this gem
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
@@ -10,6 +10,7 @@ require 'bandwidth-iris/city'
10
10
  require 'bandwidth-iris/covered_rate_center'
11
11
  require 'bandwidth-iris/disconnect'
12
12
  require 'bandwidth-iris/dlda'
13
+ require 'bandwidth-iris/disc_number'
13
14
  require 'bandwidth-iris/import_to_account'
14
15
  require 'bandwidth-iris/in_service_number'
15
16
  require 'bandwidth-iris/lidb'
@@ -0,0 +1,25 @@
1
+ describe BandwidthIris::DiscNumber do
2
+ client = nil
3
+
4
+ before :each do
5
+ client = Helper.get_client()
6
+ end
7
+
8
+ after :each do
9
+ client.stubs.verify_stubbed_calls()
10
+ end
11
+
12
+ describe '#list' do
13
+ it 'should return numbers' do
14
+ client.stubs.get('/v1.0/accounts/accountId/discnumbers') {|env| [200, {}, '<Response><TelephoneNumbers></TelephoneNumbers></Response>']}
15
+ DiscNumber.list(client)
16
+ end
17
+ end
18
+
19
+ describe '#totals' do
20
+ it 'should return totals' do
21
+ client.stubs.get('/v1.0/accounts/accountId/discnumbers/totals') {|env| [200, {}, '<Response></Response>']}
22
+ DiscNumber.totals(client)
23
+ end
24
+ end
25
+ end
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Belchikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -184,6 +184,7 @@ files:
184
184
  - spec/bandwidth-iris/city_spec.rb
185
185
  - spec/bandwidth-iris/client_spec.rb
186
186
  - spec/bandwidth-iris/covered_rate_center_spec.rb
187
+ - spec/bandwidth-iris/disc_number_spec.rb
187
188
  - spec/bandwidth-iris/disconnect_spec.rb
188
189
  - spec/bandwidth-iris/dlda_spec.rb
189
190
  - spec/bandwidth-iris/import_to_account_spec.rb
@@ -234,6 +235,7 @@ test_files:
234
235
  - spec/bandwidth-iris/city_spec.rb
235
236
  - spec/bandwidth-iris/client_spec.rb
236
237
  - spec/bandwidth-iris/covered_rate_center_spec.rb
238
+ - spec/bandwidth-iris/disc_number_spec.rb
237
239
  - spec/bandwidth-iris/disconnect_spec.rb
238
240
  - spec/bandwidth-iris/dlda_spec.rb
239
241
  - spec/bandwidth-iris/import_to_account_spec.rb