telnyx 2.3.0 → 2.4.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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.github/scripts/before_install.sh +9 -0
  3. data/.github/workflows/ruby.yml +39 -0
  4. data/.rubocop.yml +6 -36
  5. data/.rubocop_todo.yml +300 -0
  6. data/.travis.yml.bak +48 -0
  7. data/Gemfile +6 -6
  8. data/README.md +1 -1
  9. data/VERSION +1 -1
  10. data/bin/telnyx-console +5 -0
  11. data/examples/2 factor authentication/Gemfile +7 -0
  12. data/examples/2 factor authentication/main.rb +67 -0
  13. data/examples/2 factor authentication/readme.md +5 -0
  14. data/examples/fax/Gemfile +7 -0
  15. data/examples/fax/config.yaml +4 -0
  16. data/examples/fax/fax.rb +42 -0
  17. data/examples/fax/options.rb +41 -0
  18. data/examples/fax/readme.md +18 -0
  19. data/lib/telnyx.rb +5 -1
  20. data/lib/telnyx/api_operations/save.rb +1 -1
  21. data/lib/telnyx/api_resource.rb +14 -3
  22. data/lib/telnyx/conference.rb +17 -1
  23. data/lib/telnyx/fax.rb +13 -0
  24. data/lib/telnyx/fax_application.rb +12 -0
  25. data/lib/telnyx/messaging_phone_number.rb +9 -0
  26. data/lib/telnyx/phone_number.rb +5 -1
  27. data/lib/telnyx/sim_card.rb +12 -1
  28. data/lib/telnyx/telnyx_client.rb +15 -24
  29. data/lib/telnyx/util.rb +7 -1
  30. data/lib/telnyx/verification.rb +27 -0
  31. data/lib/telnyx/verify_profile.rb +11 -0
  32. data/lib/telnyx/version.rb +1 -1
  33. data/telnyx.gemspec +1 -1
  34. data/test/telnyx/call_control_test.rb +3 -3
  35. data/test/telnyx/conference_test.rb +57 -20
  36. data/test/telnyx/credential_connection_test.rb +5 -1
  37. data/test/telnyx/fax_application_test.rb +32 -0
  38. data/test/telnyx/fax_test.rb +32 -0
  39. data/test/telnyx/fqdn_connection_test.rb +1 -1
  40. data/test/telnyx/fqdn_test.rb +1 -1
  41. data/test/telnyx/messaging_phone_number_test.rb +8 -4
  42. data/test/telnyx/messaging_profile_test.rb +1 -1
  43. data/test/telnyx/phone_number_test.rb +9 -21
  44. data/test/telnyx/sim_card_test.rb +6 -6
  45. data/test/telnyx/telnyx_object_test.rb +5 -5
  46. data/test/telnyx/verification_test.rb +22 -0
  47. data/test/telnyx/verify_profile_test.rb +31 -0
  48. data/test/test_helper.rb +1 -1
  49. metadata +36 -7
  50. data/.travis.yml +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e6b0e880902b5b9bb1de6930935eb89f74a5ae9fe2a5377d51c0fa0182e4e5e
4
- data.tar.gz: e2456cfd05f1e49297add75dfe312a75d5ba608384486b10fb47e9829bfeb45f
3
+ metadata.gz: bbfad03f6f54106bf7c6a1257febe38d392921e17352d3d6acbd3ecb1e7a30dd
4
+ data.tar.gz: a51edd8d431e5b45b4fb178eb59a51d3350bca6e21790c82d86b3fa3c435af37
5
5
  SHA512:
6
- metadata.gz: 3714416a2e1c6993cb530029611235acccf42eeee538dba63c478ad167f07592015db2ce57b12875847fea50636a3a5aa07120705f0b6567b6bb8fe2f281960f
7
- data.tar.gz: 5acf36c78e57e1363fa8cf8e41c30b46bba452f4cfcc482db657f97559de242f5101e47b50de27dcbe9f62485e7de4563c1485f0509ff7ec4dd60d74f0db64a6
6
+ metadata.gz: ce3781a4464b221f9b0386ab6a2bf5330b2f3b87d9ab8e916c6e8b54b15c8e8a010487714ffb6a8f1bddaad59ac52eeea6a60ac63ca0da94d674282cd836b238
7
+ data.tar.gz: 18204899a08b75d02346eb1612223c5f79ddf2d0b1bafee880c27b8a2bd4daecbd827b3caf1a9585aa560fe3a15e0a3446ce44c67e5c2ca911efcc46ff9a5589
@@ -0,0 +1,9 @@
1
+ gem install bundler -v "~> 1.0"
2
+ if [ ! -d "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}" ]; then
3
+ mkdir -p telnyx-mock/${TELNYX_MOCK_VERSION}/
4
+ curl -L "https://github.com/team-telnyx/telnyx-mock/releases/download/v${TELNYX_MOCK_VERSION}/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz" -o "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz"
5
+ tar -zxf "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz" -C "telnyx-mock/${TELNYX_MOCK_VERSION}/"
6
+ fi
7
+ telnyx-mock/${TELNYX_MOCK_VERSION}/telnyx-mock > /dev/null &
8
+ TELNYX_MOCK_PID=$!
9
+ export PATH="${PATH}:${PWD}/telnyx-mock/${TELNYX_MOCK_VERSION}"
@@ -0,0 +1,39 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+ env:
19
+ TELNYX_MOCK_VERSION: 0.8.10
20
+ runs-on: ubuntu-latest
21
+ strategy:
22
+ matrix:
23
+ ruby: [ '2.5', '2.6', '2.7' ]
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ # uses: ruby/setup-ruby@v1
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{ matrix.ruby }}
33
+ - name: Run Setup Script to install mock
34
+ run: source ./.github/scripts/before_install.sh
35
+ shell: bash
36
+ - name: Install dependencies
37
+ run: bundle install
38
+ - name: Run tests
39
+ run: bundle exec rake
data/.rubocop.yml CHANGED
@@ -1,15 +1,18 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
 
2
4
  AllCops:
3
5
  DisplayCopNames: true
4
- TargetRubyVersion: 2.0
6
+ TargetRubyVersion: 2.4
7
+ NewCops: disable
5
8
 
6
9
  Layout/CaseIndentation:
7
10
  EnforcedStyle: end
8
11
 
9
- Layout/IndentArray:
12
+ Layout/FirstArrayElementIndentation:
10
13
  EnforcedStyle: consistent
11
14
 
12
- Layout/IndentHash:
15
+ Layout/FirstHashElementIndentation:
13
16
  EnforcedStyle: consistent
14
17
 
15
18
  Metrics/MethodLength:
@@ -26,36 +29,3 @@ Style/FrozenStringLiteralComment:
26
29
 
27
30
  Style/StringLiterals:
28
31
  EnforcedStyle: double_quotes
29
-
30
- Style/TrailingCommaInLiteral:
31
- EnforcedStyleForMultiline: consistent_comma
32
-
33
- Metrics/AbcSize:
34
- Max: 52
35
-
36
- Metrics/BlockLength:
37
- Max: 498
38
-
39
- Metrics/ClassLength:
40
- Max: 659
41
-
42
- # Offense count: 11
43
- Metrics/CyclomaticComplexity:
44
- Max: 15
45
-
46
- Metrics/LineLength:
47
- Max: 310
48
-
49
- Metrics/ParameterLists:
50
- Max: 7
51
-
52
- Metrics/PerceivedComplexity:
53
- Max: 17
54
-
55
- Style/ClassVars:
56
- Exclude:
57
- - 'lib/telnyx/telnyx_object.rb'
58
- - 'test/telnyx/api_resource_test.rb'
59
-
60
- Style/Documentation:
61
- Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,300 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-12-11 00:11:23 UTC using RuboCop version 1.6.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/OrderedDependencies:
14
+ Exclude:
15
+ - 'telnyx.gemspec'
16
+
17
+ # Offense count: 1
18
+ # Configuration parameters: Include.
19
+ # Include: **/*.gemspec
20
+ Gemspec/RequiredRubyVersion:
21
+ Exclude:
22
+ - 'telnyx.gemspec'
23
+
24
+ # Offense count: 1
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
27
+ # SupportedStylesAlignWith: start_of_line, begin
28
+ Layout/BeginEndAlignment:
29
+ Exclude:
30
+ - 'lib/telnyx/util.rb'
31
+
32
+ # Offense count: 8
33
+ # Cop supports --auto-correct.
34
+ Layout/EmptyLineAfterGuardClause:
35
+ Exclude:
36
+ - 'lib/telnyx.rb'
37
+ - 'lib/telnyx/call.rb'
38
+ - 'lib/telnyx/list_object.rb'
39
+ - 'lib/telnyx/messaging_phone_number.rb'
40
+ - 'lib/telnyx/singleton_api_resource.rb'
41
+ - 'lib/telnyx/util.rb'
42
+ - 'test/telnyx_mock.rb'
43
+
44
+ # Offense count: 43
45
+ # Cop supports --auto-correct.
46
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
47
+ # SupportedHashRocketStyles: key, separator, table
48
+ # SupportedColonStyles: key, separator, table
49
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
50
+ Layout/HashAlignment:
51
+ Exclude:
52
+ - 'lib/telnyx/util.rb'
53
+ - 'telnyx.gemspec'
54
+
55
+ # Offense count: 4
56
+ # Cop supports --auto-correct.
57
+ Layout/LeadingEmptyLines:
58
+ Exclude:
59
+ - 'test/telnyx/number_lookup_test.rb'
60
+ - 'test/telnyx/number_order_document_test.rb'
61
+ - 'test/telnyx/phone_number_regulatory_requirement_test.rb'
62
+ - 'test/telnyx/regulatory_requirement_test.rb'
63
+
64
+ # Offense count: 1
65
+ # Cop supports --auto-correct.
66
+ Layout/RescueEnsureAlignment:
67
+ Exclude:
68
+ - 'lib/telnyx/util.rb'
69
+
70
+ # Offense count: 3
71
+ # Configuration parameters: AllowedMethods.
72
+ # AllowedMethods: enums
73
+ Lint/ConstantDefinitionInBlock:
74
+ Exclude:
75
+ - 'test/telnyx/api_operations_test.rb'
76
+ - 'test/telnyx/telnyx_object_test.rb'
77
+
78
+ # Offense count: 3
79
+ # Configuration parameters: MaximumRangeSize.
80
+ Lint/MissingCopEnableDirective:
81
+ Exclude:
82
+ - 'lib/telnyx/api_operations/nested_resource.rb'
83
+
84
+ # Offense count: 1
85
+ Lint/MissingSuper:
86
+ Exclude:
87
+ - 'lib/telnyx/errors.rb'
88
+
89
+ # Offense count: 1
90
+ # Cop supports --auto-correct.
91
+ Lint/RedundantCopDisableDirective:
92
+ Exclude:
93
+ - 'Gemfile'
94
+
95
+ # Offense count: 12
96
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
97
+ Metrics/AbcSize:
98
+ Max: 55
99
+
100
+ # Offense count: 28
101
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
102
+ # IgnoredMethods: refine
103
+ Metrics/BlockLength:
104
+ Max: 372
105
+
106
+ # Offense count: 10
107
+ # Configuration parameters: CountComments, CountAsOne.
108
+ Metrics/ClassLength:
109
+ Max: 495
110
+
111
+ # Offense count: 5
112
+ # Configuration parameters: IgnoredMethods.
113
+ Metrics/CyclomaticComplexity:
114
+ Max: 16
115
+
116
+ # Offense count: 2
117
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
118
+ Metrics/ParameterLists:
119
+ Max: 6
120
+
121
+ # Offense count: 5
122
+ # Configuration parameters: IgnoredMethods.
123
+ Metrics/PerceivedComplexity:
124
+ Max: 18
125
+
126
+ # Offense count: 13
127
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
128
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
129
+ Naming/MethodParameterName:
130
+ Exclude:
131
+ - 'lib/telnyx/errors.rb'
132
+ - 'lib/telnyx/list_object.rb'
133
+ - 'lib/telnyx/telnyx_client.rb'
134
+ - 'lib/telnyx/telnyx_object.rb'
135
+ - 'lib/telnyx/util.rb'
136
+
137
+ # Offense count: 11
138
+ # Cop supports --auto-correct.
139
+ # Configuration parameters: EnforcedStyle.
140
+ # SupportedStyles: separated, grouped
141
+ Style/AccessorGrouping:
142
+ Exclude:
143
+ - 'lib/telnyx/errors.rb'
144
+ - 'lib/telnyx/telnyx_client.rb'
145
+
146
+ # Offense count: 4
147
+ # Cop supports --auto-correct.
148
+ Style/CaseLikeIf:
149
+ Exclude:
150
+ - 'lib/telnyx.rb'
151
+ - 'lib/telnyx/errors.rb'
152
+ - 'lib/telnyx/util.rb'
153
+
154
+ # Offense count: 2
155
+ Style/ClassVars:
156
+ Exclude:
157
+ - 'lib/telnyx/telnyx_object.rb'
158
+ - 'test/telnyx/api_resource_test.rb'
159
+
160
+ # Offense count: 3
161
+ # Cop supports --auto-correct.
162
+ # Configuration parameters: Keywords.
163
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
164
+ Style/CommentAnnotation:
165
+ Exclude:
166
+ - 'lib/telnyx/api_operations/save.rb'
167
+ - 'test/telnyx/telnyx_object_test.rb'
168
+ - 'test/telnyx/util_test.rb'
169
+
170
+ # Offense count: 45
171
+ Style/Documentation:
172
+ Enabled: false
173
+
174
+ # Offense count: 2
175
+ # Cop supports --auto-correct.
176
+ Style/Encoding:
177
+ Exclude:
178
+ - 'test/telnyx/api_operations_test.rb'
179
+ - 'test/telnyx/api_resource_test.rb'
180
+
181
+ # Offense count: 19
182
+ # Cop supports --auto-correct.
183
+ Style/ExpandPathArguments:
184
+ Enabled: false
185
+
186
+ # Offense count: 10
187
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed.
188
+ # SupportedStyles: annotated, template, unannotated
189
+ Style/FormatStringToken:
190
+ EnforcedStyle: unannotated
191
+
192
+ # Offense count: 3
193
+ # Cop supports --auto-correct.
194
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
195
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
196
+ Style/HashSyntax:
197
+ Exclude:
198
+ - 'test/telnyx/telnyx_object_test.rb'
199
+
200
+ # Offense count: 2
201
+ # Cop supports --auto-correct.
202
+ Style/HashTransformValues:
203
+ Exclude:
204
+ - 'lib/telnyx/telnyx_object.rb'
205
+
206
+ # Offense count: 8
207
+ # Cop supports --auto-correct.
208
+ Style/IfUnlessModifier:
209
+ Exclude:
210
+ - 'lib/telnyx.rb'
211
+ - 'lib/telnyx/api_operations/request.rb'
212
+ - 'lib/telnyx/api_operations/save.rb'
213
+ - 'lib/telnyx/api_resource.rb'
214
+ - 'lib/telnyx/singleton_api_resource.rb'
215
+ - 'lib/telnyx/telnyx_client.rb'
216
+ - 'lib/telnyx/telnyx_object.rb'
217
+
218
+ # Offense count: 1
219
+ # Cop supports --auto-correct.
220
+ # Configuration parameters: EnforcedStyle, IgnoredMethods.
221
+ # SupportedStyles: predicate, comparison
222
+ Style/NumericPredicate:
223
+ Exclude:
224
+ - 'spec/**/*'
225
+ - 'lib/telnyx/telnyx_client.rb'
226
+
227
+ # Offense count: 1
228
+ # Configuration parameters: AllowedMethods.
229
+ # AllowedMethods: respond_to_missing?
230
+ Style/OptionalBooleanParameter:
231
+ Exclude:
232
+ - 'lib/telnyx/telnyx_object.rb'
233
+
234
+ # Offense count: 1
235
+ # Cop supports --auto-correct.
236
+ Style/RedundantAssignment:
237
+ Exclude:
238
+ - 'lib/telnyx/telnyx_client.rb'
239
+
240
+ # Offense count: 40
241
+ # Cop supports --auto-correct.
242
+ Style/RedundantFreeze:
243
+ Enabled: false
244
+
245
+ # Offense count: 2
246
+ # Cop supports --auto-correct.
247
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
248
+ # AllowedMethods: present?, blank?, presence, try, try!
249
+ Style/SafeNavigation:
250
+ Exclude:
251
+ - 'lib/telnyx/telnyx_object.rb'
252
+
253
+ # Offense count: 2
254
+ # Cop supports --auto-correct.
255
+ Style/StderrPuts:
256
+ Exclude:
257
+ - 'lib/telnyx/api_operations/request.rb'
258
+ - 'lib/telnyx/telnyx_client.rb'
259
+
260
+ # Offense count: 2
261
+ # Cop supports --auto-correct.
262
+ Style/StringConcatenation:
263
+ Exclude:
264
+ - 'lib/telnyx/call.rb'
265
+ - 'lib/telnyx/telnyx_client.rb'
266
+
267
+ # Offense count: 29
268
+ # Cop supports --auto-correct.
269
+ # Configuration parameters: EnforcedStyleForMultiline.
270
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
271
+ Style/TrailingCommaInArrayLiteral:
272
+ Exclude:
273
+ - 'test/telnyx/list_object_test.rb'
274
+ - 'test/telnyx/number_order_test.rb'
275
+ - 'test/telnyx/outbound_voice_profile_test.rb'
276
+ - 'test/telnyx/telnyx_object_test.rb'
277
+ - 'test/telnyx/util_test.rb'
278
+ - 'test/test_data.rb'
279
+
280
+ # Offense count: 68
281
+ # Cop supports --auto-correct.
282
+ # Configuration parameters: EnforcedStyleForMultiline.
283
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
284
+ Style/TrailingCommaInHashLiteral:
285
+ Enabled: false
286
+
287
+ # Offense count: 5
288
+ # Cop supports --auto-correct.
289
+ # Configuration parameters: WordRegex.
290
+ # SupportedStyles: percent, brackets
291
+ Style/WordArray:
292
+ EnforcedStyle: percent
293
+ MinSize: 4
294
+
295
+ # Offense count: 21
296
+ # Cop supports --auto-correct.
297
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
298
+ # URISchemes: http, https
299
+ Layout/LineLength:
300
+ Max: 310
data/.travis.yml.bak ADDED
@@ -0,0 +1,48 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
8
+ - 2.6
9
+ - 2.7
10
+ matrix:
11
+ include:
12
+ - rvm: jruby-9.2.13.0
13
+ jdk: oraclejdk11
14
+ notifications:
15
+ email:
16
+ on_success: never
17
+ slack:
18
+ secure: AMXcZSwIL8SRZQ+opSFrlvNKoUXv1rZkWDgorBmz+BEHwGKWgVzYcZ4GwD5p6Z5uNdtvl9FZz6oLvvAcbW6CblbAPM+f2qLVDlZ/sazpOK8l6QIo7X86U3SuwJicY2CbbKvqN/A3u23Bbvf5u4djvm5oc73qASZY/RJHxm2xcmD57+z6hY12AvWtLJN95BsjVZ9RHXy8/qkJehqGnzSi9VGojNmd0voU9UrxJU0xS10kBA7dQFCCf+NZv9utguyFfAATpa9JTlD1a8QiB2fzvdPkBym1bnqr3nQPk5rNbgiFHf14OIlq7C2jwaNNoB1dDpkT/Vfvmn5EHzBDZQ30PrVpq9uNgQg45pOIMXp9ZLY0zYi/Gzk5tF/lTKUxk5evJ2+2Dtmzv4mzbk98pvGrA+MIkSXuYy6GHZuXanb3OQ5y42dSYVdy1c+WHdbYx1LOJSEGtALr9ADyjDu9KAu2eJMnmGQ14cJarl/33BF4UzCRKpPxV5CwOqI82+fK9pNiW0CLijfxpkFr9aaxViVsf43r5Ag12Jqme18IWCGJ1P5sMEo6bz/Gp4BuVMXQtYExorK+fWkrm1Wus6HGINlRonUswJ9LJ995M384j6KyP1121MJuiPAc1AdNqS1C992j/cDoUDlxsxW9HTX15nGoM712w00wNrj/vdQt0TlmENo=
19
+ sudo: false
20
+ env:
21
+ global:
22
+ - TELNYX_MOCK_VERSION=0.8.10
23
+ cache:
24
+ directories:
25
+ - telnyx-mock
26
+ before_install:
27
+ - gem install bundler -v "~> 1.0"
28
+ - |
29
+ if [ ! -d "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}" ]; then
30
+ mkdir -p telnyx-mock/${TELNYX_MOCK_VERSION}/
31
+ curl -L "https://github.com/team-telnyx/telnyx-mock/releases/download/v${TELNYX_MOCK_VERSION}/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz" -o "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz"
32
+ tar -zxf "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz" -C "telnyx-mock/${TELNYX_MOCK_VERSION}/"
33
+ fi
34
+ - |
35
+ telnyx-mock/${TELNYX_MOCK_VERSION}/telnyx-mock > /dev/null &
36
+ TELNYX_MOCK_PID=$!
37
+ - export PATH="${PATH}:${PWD}/telnyx-mock/${TELNYX_MOCK_VERSION}"
38
+ script:
39
+ - bundle exec rake
40
+ deploy:
41
+ provider: rubygems
42
+ api_key:
43
+ secure: XHd4bArCZLBUw52X/d+X09tQZJwrTy68DF//i8JZDTJ3mCyw3z937DK9T58WM0ohipv1V4rjgjNPfDd0DegAUeYBwxaZo5ld57EhhKU/nk7xwtNpsrgSrg1HSh7OOYwze8c0pD6m4F467HgAoit0+mLtIDqYjJjQ+vY6bG/p47Bv63EWHEHqypB/JjbIyhpek6rC85LAF+dre27OXsUBBoB7XAdurIYYwQM0PYIxw9DaUNDuCLEr1gNH9XlZt0OUyijM7m5aVbec2REYW9OvCbRYJ8fX5DbSBKObR/NZzRhMSnVBqZyy5/GwjsuSR0Efe5THz3XAlmNWqQPhwvCKVkqkHZ6k7l7D6BL5wrlpDm8nappEj2HTXZJ6cYS+SHcSdCSiYuyGIm/caucWk91mwcKmuJyehLAQyt9K9P7V18oITFoAmISVT2S2YUhRmwl0k6OUfRc1Dg61rgXhWwI5QMxJWpC5oHrBi7Xbbu/CUpMJsZ/pklpUf7LeGP2G+zoONO9/nWnCBLP1y0FfRt7IvNtGwgkbVkDU/kQTOO5YLHoX/1L9jy2+H/DZ5Bnklwj6CsNywsmZWrkL+9QHmneOiXbsNy7mWy+uDdpN740tzgoQPrDC6J4R2aNrXBdHF1whXHAOH4zmq/9mLYm4U6QjvTH4Sy3ClnA6WmqqlO3FswU=
44
+ gem: telnyx
45
+ on:
46
+ tags: true
47
+ repo: team-telnyx/telnyx-ruby
48
+ skip_cleanup: 'true'