didww-v3 4.0.0 → 4.1.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: 6784812fdd19810c53a47401d9f05205e894172a663b6bd5bf47c0d99a08e755
4
- data.tar.gz: 8ca18f71683357e40a91faf5166da6fbc6d793b5568484fcb5e01114b7b9d99d
3
+ metadata.gz: c311027f0ab58fdac3f8cd0558485659e23a623c1eec3065369e7a2a44bcad3b
4
+ data.tar.gz: 6f64fd27e3f51c0c77a3102f7efcdbc1d62d0aecc7b3b83eb233d4c385bbeb10
5
5
  SHA512:
6
- metadata.gz: 2e1e8cd571ccd0e2bab57590b3712c24d06bdf22eea640258c8993271f6c92e84956245eaf86ce8b1c9720afef7d1d5f0d963c4c7be9bb36a62e45c23121067d
7
- data.tar.gz: 6ab5993b537757b5f9a5a7004436dac9ce257cb37322d6e5759609867702f2694db47ba861efd20d308cf54395521c535ed0d22086b2bff9fd309ff61b248b5d
6
+ metadata.gz: cb9c3864d94db9f49eac0324b695d44a56bf5387816c53203bea979c7a705f2e8a348559b0804151c34bd080e55ccef149e62e1738030e87f69ceda4aa5d96d1
7
+ data.tar.gz: cb964ac512ecc7a75083e9be7373529c754fc3b9d6809eae7e420726d8f7a4f7a7504f7aa414da352a9ff8f8bba0c2949149d73c1bc492311e0e065bc8347b71
data/.codespellrc ADDED
@@ -0,0 +1,4 @@
1
+ [codespell]
2
+ skip = *.png,*.jpg,*.jpeg,*.gif,*.svg,.git
3
+ quiet-level = 23
4
+ ignore-words = codespell_ignore_words.txt
@@ -0,0 +1,26 @@
1
+ name: Codespell Spell Checking
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ pull_request:
9
+ branches:
10
+ - master
11
+
12
+ jobs:
13
+ codespell:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v2
19
+
20
+ - name: Install codespell
21
+ run: |
22
+ sudo apt-get update
23
+ sudo apt-get install -y codespell
24
+
25
+ - name: Run codespell
26
+ run: codespell
@@ -4,24 +4,25 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - master
7
+ schedule:
8
+ - cron: "0 9 * * *"
7
9
 
8
10
  jobs:
9
11
  test:
10
12
  runs-on: ubuntu-latest
11
13
  strategy:
12
14
  matrix:
13
- ruby: [ '2.5', '2.6', '2.7' ]
14
- rails: [ '~> 5.0', '~> 6.0' ]
15
+ ruby: [ '2.7', '3.0', '3.1', '3.2' ]
16
+ rails: [ '~> 6.0', '~> 6.1', '~> 7.0' ]
15
17
  name: Tests with Ruby ${{ matrix.ruby }} Activesupport ${{ matrix.rails }}
16
18
  env:
17
19
  RAILS_VERSION: ${{ matrix.rails }}
18
20
  steps:
19
21
  - uses: actions/checkout@v2
20
- - uses: actions/setup-ruby@v1
22
+ - uses: ruby/setup-ruby@v1
21
23
  with:
22
24
  ruby-version: ${{ matrix.ruby }}
23
25
  - name: Run tests
24
26
  run: |
25
- gem install bundler -v 2.2.7
26
27
  bundle install
27
28
  bundle exec rake
data/CHANGELOG.md CHANGED
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [Unreleased]
7
+ ## [4.1.0]
8
+ ### Breaking Changes
9
+ - removed DIDWW::Resource::DidGroup::FEATURE_VOICE in favor DIDWW::Resource::DidGroup::FEATURE_VOICE_IN and DIDWW::Resource::DidGroup::FEATURE_VOICE_OUT [#42](https://github.com/didww/didww-v3-ruby/pull/42)
10
+ - removed DIDWW::Resource::DidGroup::FEATURE_SMS in favor of DIDWW::Resource::DidGroup::FEATURE_SMS_IN and DIDWW::Resource::DidGroup::FEATURE_SMS_OUT [#42](https://github.com/didww/didww-v3-ruby/pull/42)
11
+
12
+ ## [4.0.0]
8
13
  ### Breaking Changes
9
14
  - /v3/did_groups removed `local_prefix` attribute
10
15
  ### Added
data/Gemfile CHANGED
@@ -21,6 +21,5 @@ gem 'rubocop-performance'
21
21
  gem 'rubocop-rake'
22
22
  gem 'rubocop-rspec'
23
23
  gem 'simplecov'
24
- gem 'smart_rspec'
25
24
  gem 'webmock'
26
25
  gem 'bundler-audit'
@@ -0,0 +1 @@
1
+
data/lib/didww/client.rb CHANGED
@@ -8,8 +8,8 @@ require 'didww/resource/base'
8
8
  module DIDWW
9
9
  module Client
10
10
  BASE_URLS = {
11
- sandbox: 'https://sandbox-api.didww.com/v3/' .freeze,
12
- production: 'https://sandbox-api.didww.com/v3/' .freeze
11
+ sandbox: 'https://sandbox-api.didww.com/v3/'.freeze,
12
+ production: 'https://api.didww.com/v3/'.freeze
13
13
  }.freeze
14
14
  DEFAULT_MODE = :sandbox
15
15
 
@@ -56,7 +56,7 @@ module DIDWW
56
56
  property :rtp_ping, type: :boolean
57
57
  # Type: Boolean
58
58
  # Nullable: No
59
- # Description: Use RTP PING when connecting a call. After establishing the call, DIDWW will send empty RTP packet "RTP PING". It is neccessary if both parties operate in Symmetric RTP / Comedia mode and expect the other party to start sending RTP first.
59
+ # Description: Use RTP PING when connecting a call. After establishing the call, DIDWW will send empty RTP packet "RTP PING". It is necessary if both parties operate in Symmetric RTP / Comedia mode and expect the other party to start sending RTP first.
60
60
 
61
61
  property :rtp_timeout, type: :integer
62
62
  # Type: Integer
@@ -3,14 +3,19 @@ module DIDWW
3
3
  module Resource
4
4
  class DidGroup < Base
5
5
  # Possible values for did_group.features array
6
- FEATURE_VOICE = 'voice' .freeze
7
- FEATURE_T38 = 't38' .freeze
8
- FEATURE_SMS = 'sms' .freeze
6
+ FEATURE_VOICE_IN = 'voice_in'
7
+ FEATURE_VOICE_OUT = 'voice_out'
8
+ FEATURE_T38 = 't38'
9
+ FEATURE_IN_SMS = 'sms_in'
10
+ FEATURE_OUT_SMS = 'sms_out'
11
+
9
12
  FEATURES = {
10
- FEATURE_VOICE => 'Voice' .freeze,
11
- FEATURE_T38 => 'T.38 Fax' .freeze,
12
- FEATURE_SMS => 'SMS' .freeze
13
- }.freeze
13
+ FEATURE_VOICE_IN => 'Voice IN',
14
+ FEATURE_VOICE_OUT => 'Voice OUT',
15
+ FEATURE_T38 => 'T.38 Fax',
16
+ FEATURE_IN_SMS => 'SMS IN',
17
+ FEATURE_OUT_SMS => 'SMS OUT'
18
+ }.freeze
14
19
 
15
20
  has_one :country, class: Country
16
21
  has_one :city, class: City
@@ -6,7 +6,7 @@ module DIDWW
6
6
 
7
7
  property :qty, type: :integer
8
8
  # Type: Integer
9
- # Description: A treshold starting at which provided prices per channel apply
9
+ # Description: A threshold starting at which provided prices per channel apply
10
10
 
11
11
  property :setup_price, type: :decimal
12
12
  # Type: String
data/lib/didww/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module DIDWW
3
- VERSION = '4.0.0'.freeze
3
+ VERSION = '4.1.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didww-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Korobeinikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-19 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -101,6 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".codespellrc"
105
+ - ".github/workflows/codespell.yml"
104
106
  - ".github/workflows/tests.yml"
105
107
  - ".gitignore"
106
108
  - ".rspec"
@@ -112,6 +114,7 @@ files:
112
114
  - Rakefile
113
115
  - bin/console
114
116
  - bin/setup
117
+ - codespell_ignore_words.txt
115
118
  - didww-v3.gemspec
116
119
  - lib/didww.rb
117
120
  - lib/didww/base_middleware.rb