ruby-bandwidth-iris 7.1.0 → 7.3.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: 6f0464d72a270fd2bb6961d0598e12dc658db9dd76f94cb559e4005b0da6ecf6
4
- data.tar.gz: df92186a78352ffaca65f532fd7183a03127e5e00929f64ade1abed240556ee1
3
+ metadata.gz: 416e3008b4742fac499948efe6a67f4f86cd80735f23f7098797bc10c6f5e9bf
4
+ data.tar.gz: 32b44388acd02bbf97bf55d51da04b74f52ff52b59d2527aaf090f921a99ead5
5
5
  SHA512:
6
- metadata.gz: 9e35d5e104130d2574184139daacd7ed64c15599f88e8cb33deb05c540f8dc5b7d79aa6206092b3564a4e91cfbdd6a8f734fd0a77449e1031b7ee94e855ff991
7
- data.tar.gz: 66c286a7ef2941877d6d87f04d7c26a301a24762dcd5fe31a15d019d41a2ca964ee114e5c06eceae908ac81179d27c6d4bab7d406d2c597c1c991f9ae763c4b3
6
+ metadata.gz: bdd37b0edeefc479ecddeef153b7f7f3c8a65e98487daf6dc1a8f44a0e7ca8a4e0d6cb64422c2e1f065f4e9cf55b5caf9e1b5049e90d3bfe398f7b9b9ddd0ca3
7
+ data.tar.gz: 644d386bd557121a2d85cb38dc7013616a1e8caec1b5f10eb44a268207b4eaa38d4f8fbce674e68413fca4c138061175c0f324b303e6157291f344dae7c969ff
@@ -1,8 +1,6 @@
1
1
  name: Test
2
2
 
3
3
  on:
4
- schedule:
5
- - cron: "0 4 * * *"
6
4
  pull_request:
7
5
  workflow_dispatch:
8
6
 
@@ -11,28 +9,28 @@ jobs:
11
9
  name: Test
12
10
  runs-on: ${{ matrix.os }}
13
11
  strategy:
14
- matrix:
12
+ matrix:
15
13
  os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
16
14
  ruby-version: [2.6, 2.7, 3.0]
17
15
  steps:
18
- - name: Checkout
19
- uses: actions/checkout@v3
16
+ - name: Checkout
17
+ uses: actions/checkout@v3
20
18
 
21
- - name: Set up Ruby
22
- uses: ruby/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby-version }}
25
-
26
- - name: Install Packages
27
- run: bundle install
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby-version }}
28
23
 
29
- - name: Test
30
- run: rake
24
+ - name: Install Packages
25
+ run: bundle install
31
26
 
32
- - name: Notify Slack of Failures
33
- uses: Bandwidth/build-notify-slack-action@v1.0.0
34
- if: failure() && !github.event.pull_request.draft
35
- with:
36
- job-status: ${{ job.status }}
37
- slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
38
- slack-channel: ${{ secrets.SLACK_CHANNEL }}
27
+ - name: Test
28
+ run: rake
29
+
30
+ - name: Notify Slack of Failures
31
+ uses: Bandwidth/build-notify-slack-action@v1.0.0
32
+ if: failure() && !github.event.pull_request.draft
33
+ with:
34
+ job-status: ${{ job.status }}
35
+ slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
36
+ slack-channel: ${{ secrets.SLACK_CHANNEL }}
@@ -21,6 +21,12 @@ module BandwidthIris
21
21
  end
22
22
  wrap_client_arg :create
23
23
 
24
+ def self.get(client, id)
25
+ data = client.make_request(:get, "#{client.concat_account_path(DISCONNECT_PATH)}/#{id}")
26
+ data
27
+ end
28
+ wrap_client_arg :get
29
+
24
30
  def get_notes()
25
31
  list = @client.make_request(:get, "#{@client.concat_account_path(DISCONNECT_PATH)}/#{id}/notes")[0][:note]
26
32
  return [] if !list
@@ -69,8 +69,8 @@ module BandwidthIris
69
69
  list
70
70
  end
71
71
 
72
- def get_orders()
73
- list = @client.make_request(:get, "#{@client.concat_account_path(SITE_PATH)}/#{id}/orders")[0]
72
+ def get_orders(size: 30, page: 1)
73
+ list = @client.make_request(:get, "#{@client.concat_account_path(SITE_PATH)}/#{id}/orders", {size: size, page: page})[0]
74
74
  # TODO need additional documentaion
75
75
  list
76
76
  end
@@ -1,4 +1,4 @@
1
1
  module BandwidthIris
2
2
  # Version of this gem
3
- VERSION = "7.1.0"
3
+ VERSION = "7.3.0"
4
4
  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: 7.1.0
4
+ version: 7.3.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: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder