telnyx 2.2.0 → 2.7.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 (70) 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/.gitignore +3 -0
  5. data/.rubocop.yml +6 -36
  6. data/.rubocop_todo.yml +300 -0
  7. data/.travis.yml.bak +48 -0
  8. data/Gemfile +10 -6
  9. data/README.md +1 -1
  10. data/VERSION +1 -1
  11. data/bin/telnyx-console +5 -0
  12. data/examples/2 factor authentication/Gemfile +7 -0
  13. data/examples/2 factor authentication/main.rb +67 -0
  14. data/examples/2 factor authentication/readme.md +5 -0
  15. data/examples/fax/Gemfile +7 -0
  16. data/examples/fax/config.yaml +4 -0
  17. data/examples/fax/fax.rb +42 -0
  18. data/examples/fax/options.rb +41 -0
  19. data/examples/fax/readme.md +18 -0
  20. data/lib/telnyx.rb +5 -1
  21. data/lib/telnyx/api_operations/create.rb +6 -1
  22. data/lib/telnyx/api_operations/save.rb +1 -1
  23. data/lib/telnyx/api_resource.rb +24 -3
  24. data/lib/telnyx/call.rb +3 -1
  25. data/lib/telnyx/conference.rb +17 -1
  26. data/lib/telnyx/fax.rb +13 -0
  27. data/lib/telnyx/fax_application.rb +12 -0
  28. data/lib/telnyx/messaging_phone_number.rb +4 -0
  29. data/lib/telnyx/phone_number.rb +7 -3
  30. data/lib/telnyx/phone_number_regulatory_requirement.rb +1 -0
  31. data/lib/telnyx/sim_card.rb +12 -1
  32. data/lib/telnyx/telnyx_client.rb +16 -25
  33. data/lib/telnyx/util.rb +12 -34
  34. data/lib/telnyx/verification.rb +36 -0
  35. data/lib/telnyx/verify_profile.rb +11 -0
  36. data/lib/telnyx/version.rb +1 -1
  37. data/telnyx.gemspec +2 -2
  38. data/test/telnyx/alphanumeric_sender_id_test.rb +1 -1
  39. data/test/telnyx/api_operations_test.rb +1 -1
  40. data/test/telnyx/api_resource_test.rb +1 -1
  41. data/test/telnyx/available_phone_number_test.rb +1 -1
  42. data/test/telnyx/call_control_test.rb +50 -47
  43. data/test/telnyx/conference_test.rb +57 -20
  44. data/test/telnyx/credential_connection_test.rb +5 -1
  45. data/test/telnyx/errors_test.rb +1 -1
  46. data/test/telnyx/fax_application_test.rb +32 -0
  47. data/test/telnyx/fax_test.rb +33 -0
  48. data/test/telnyx/fqdn_connection_test.rb +1 -1
  49. data/test/telnyx/fqdn_test.rb +1 -1
  50. data/test/telnyx/list_object_test.rb +1 -1
  51. data/test/telnyx/message_test.rb +1 -1
  52. data/test/telnyx/messaging_phone_number_test.rb +9 -5
  53. data/test/telnyx/messaging_profile_test.rb +2 -2
  54. data/test/telnyx/number_reservation_test.rb +2 -0
  55. data/test/telnyx/phone_number_regulatory_requirement_test.rb +1 -1
  56. data/test/telnyx/phone_number_test.rb +9 -21
  57. data/test/telnyx/public_key_test.rb +1 -1
  58. data/test/telnyx/sim_card_test.rb +6 -6
  59. data/test/telnyx/telnyx_client_test.rb +43 -49
  60. data/test/telnyx/telnyx_object_test.rb +17 -19
  61. data/test/telnyx/telnyx_response_test.rb +1 -1
  62. data/test/telnyx/util_test.rb +1 -1
  63. data/test/telnyx/verification_test.rb +24 -0
  64. data/test/telnyx/verify_profile_test.rb +33 -0
  65. data/test/telnyx/webhook_test.rb +1 -1
  66. data/test/telnyx/wireless_detail_records_report_test.rb +1 -0
  67. data/test/telnyx_test.rb +20 -24
  68. data/test/test_helper.rb +1 -1
  69. metadata +52 -11
  70. data/.travis.yml +0 -51
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require ::File.expand_path("../../test_helper", __FILE__)
3
+ require_relative "../test_helper"
4
4
 
5
5
  module Telnyx
6
6
  class TelnyxObjectTest < Test::Unit::TestCase
@@ -159,21 +159,19 @@ module Telnyx
159
159
 
160
160
  context "#to_hash" do
161
161
  should "skip calling to_hash on nil" do
162
- begin
163
- module NilWithToHash
164
- def to_hash
165
- raise "Can't call to_hash on nil"
166
- end
162
+ module NilWithToHash
163
+ def to_hash
164
+ raise "Can't call to_hash on nil"
167
165
  end
168
- ::NilClass.include NilWithToHash
169
-
170
- hash_with_nil = { id: 3, foo: nil }
171
- obj = TelnyxObject.construct_from(hash_with_nil)
172
- expected_hash = { id: 3, foo: nil }
173
- assert_equal expected_hash, obj.to_hash
174
- ensure
175
- ::NilClass.send(:undef_method, :to_hash)
176
166
  end
167
+ ::NilClass.include NilWithToHash
168
+
169
+ hash_with_nil = { id: 3, foo: nil }
170
+ obj = TelnyxObject.construct_from(hash_with_nil)
171
+ expected_hash = { id: 3, foo: nil }
172
+ assert_equal expected_hash, obj.to_hash
173
+ ensure
174
+ ::NilClass.send(:undef_method, :to_hash)
177
175
  end
178
176
 
179
177
  should "recursively call to_hash on its values" do
@@ -212,26 +210,26 @@ module Telnyx
212
210
 
213
211
  should "mass assign values with #update_attributes" do
214
212
  obj = Telnyx::TelnyxObject.construct_from(id: 1, name: "Telnyx")
215
- obj.update_attributes(name: "telnyx")
213
+ obj.update_attributes({ name: "telnyx" })
216
214
  assert_equal "telnyx", obj.name
217
215
 
218
216
  # unfortunately, we even assign unknown properties to duplicate the
219
217
  # behavior that we currently have via magic accessors with
220
218
  # method_missing
221
- obj.update_attributes(unknown: "foo")
219
+ obj.update_attributes({ unknown: "foo" })
222
220
  assert_equal "foo", obj.unknown
223
221
  end
224
222
 
225
223
  should "#update_attributes with a hash" do
226
224
  obj = Telnyx::TelnyxObject.construct_from({})
227
- obj.update_attributes(metadata: { foo: "bar" })
225
+ obj.update_attributes({ metadata: { foo: "bar" } })
228
226
  assert_equal Telnyx::TelnyxObject, obj.metadata.class
229
227
  end
230
228
 
231
229
  should "create accessors when #update_attributes is called" do
232
230
  obj = Telnyx::TelnyxObject.construct_from({})
233
231
  assert_equal false, obj.send(:metaclass).method_defined?(:foo)
234
- obj.update_attributes(foo: "bar")
232
+ obj.update_attributes({ foo: "bar" })
235
233
  assert_equal true, obj.send(:metaclass).method_defined?(:foo)
236
234
  end
237
235
 
@@ -268,7 +266,7 @@ module Telnyx
268
266
 
269
267
  should "#serialize_params on a basic object" do
270
268
  obj = Telnyx::TelnyxObject.construct_from(foo: nil)
271
- obj.update_attributes(foo: "bar")
269
+ obj.update_attributes({ foo: "bar" })
272
270
  assert_equal({ foo: "bar" }, obj.serialize_params)
273
271
  end
274
272
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require ::File.expand_path("../../test_helper", __FILE__)
3
+ require_relative "../test_helper"
4
4
 
5
5
  module Telnyx
6
6
  class TelnyxResponseTest < Test::Unit::TestCase
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require ::File.expand_path("../../test_helper", __FILE__)
3
+ require_relative "../test_helper"
4
4
 
5
5
  module Telnyx
6
6
  class UtilTest < Test::Unit::TestCase
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../test_helper"
4
+
5
+ module Telnyx
6
+ class VerificationTest < Test::Unit::TestCase
7
+ should "create verification" do
8
+ Verification.call phone_number: "+15555555555", twofa_profile_id: "1234", type: "sms", verify_profile_id: "foobar"
9
+ assert_requested :post, "#{Telnyx.api_base}/v2/verifications/call"
10
+ end
11
+
12
+ should "retrieve verification" do
13
+ verification = Verification.retrieve("id")
14
+ assert_requested :get, "#{Telnyx.api_base}/v2/verifications/id"
15
+ assert_kind_of Verification, verification
16
+ end
17
+
18
+ should "send verification code" do
19
+ Verification.submit_code code: "12345", phone_number: "+13035551234"
20
+
21
+ assert_requested :post, "#{Telnyx.api_base}/v2/verifications/by_phone_number/+13035551234/actions/verify"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../test_helper"
4
+
5
+ module Telnyx
6
+ class VerifyProfileTest < Test::Unit::TestCase
7
+ should "list verify_profiles" do
8
+ verify_profile = VerifyProfile.list
9
+ assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles"
10
+ assert_kind_of ListObject, verify_profile
11
+ assert_kind_of VerifyProfile, verify_profile.first
12
+ end
13
+
14
+ should "create verify_profile" do
15
+ VerifyProfile.create name: "test"
16
+ assert_requested :post, "#{Telnyx.api_base}/v2/verify_profiles"
17
+ end
18
+
19
+ should "retrieve verify_profile" do
20
+ verify_profile = VerifyProfile.retrieve("id")
21
+ assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles/id"
22
+ assert_kind_of VerifyProfile, verify_profile
23
+ end
24
+
25
+ should "update verify_profile" do
26
+ verify_profile = VerifyProfile.retrieve("id")
27
+
28
+ verify_profile.name = "123"
29
+ verify_profile.save
30
+ assert_requested :patch, "#{Telnyx.api_base}/v2/verify_profiles/#{verify_profile.id}"
31
+ end
32
+ end
33
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require ::File.expand_path("../../test_helper", __FILE__)
3
+ require_relative "../test_helper"
4
4
  require "securerandom"
5
5
 
6
6
  module Telnyx
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../test_helper"
4
+
4
5
  module Telnyx
5
6
  class WirelessDetailRecordsReportTest < Test::Unit::TestCase
6
7
  should "list detail records report" do
data/test/telnyx_test.rb CHANGED
@@ -4,33 +4,29 @@ require ::File.expand_path("../test_helper", __FILE__)
4
4
 
5
5
  class TelnyxTest < Test::Unit::TestCase
6
6
  should "allow app_info to be configured" do
7
- begin
8
- old = Telnyx.app_info
9
- Telnyx.set_app_info(
10
- "MyAwesomePlugin",
11
- partner_id: "partner_1234",
12
- url: "https://myawesomeplugin.info",
13
- version: "1.2.34"
14
- )
15
- assert_equal({
16
- name: "MyAwesomePlugin",
17
- partner_id: "partner_1234",
18
- url: "https://myawesomeplugin.info",
19
- version: "1.2.34",
20
- }, Telnyx.app_info)
21
- ensure
22
- Telnyx.app_info = old
23
- end
7
+ old = Telnyx.app_info
8
+ Telnyx.set_app_info(
9
+ "MyAwesomePlugin",
10
+ partner_id: "partner_1234",
11
+ url: "https://myawesomeplugin.info",
12
+ version: "1.2.34"
13
+ )
14
+ assert_equal({
15
+ name: "MyAwesomePlugin",
16
+ partner_id: "partner_1234",
17
+ url: "https://myawesomeplugin.info",
18
+ version: "1.2.34",
19
+ }, Telnyx.app_info)
20
+ ensure
21
+ Telnyx.app_info = old
24
22
  end
25
23
 
26
24
  should "allow max_network_retries to be configured" do
27
- begin
28
- old = Telnyx.max_network_retries
29
- Telnyx.max_network_retries = 99
30
- assert_equal 99, Telnyx.max_network_retries
31
- ensure
32
- Telnyx.max_network_retries = old
33
- end
25
+ old = Telnyx.max_network_retries
26
+ Telnyx.max_network_retries = 99
27
+ assert_equal 99, Telnyx.max_network_retries
28
+ ensure
29
+ Telnyx.max_network_retries = old
34
30
  end
35
31
 
36
32
  should "have default open and read timeouts" do
data/test/test_helper.rb CHANGED
@@ -17,7 +17,7 @@ require ::File.expand_path("../test_data", __FILE__)
17
17
  require ::File.expand_path("../telnyx_mock", __FILE__)
18
18
 
19
19
  # If changing this number, please also change it in `.travis.yml`.
20
- MOCK_MINIMUM_VERSION = "0.8.9".freeze
20
+ MOCK_MINIMUM_VERSION = "0.8.10".freeze
21
21
  MOCK_PORT = Telnyx::TelnyxMock.start
22
22
 
23
23
  # Disable all real network connections except those that are outgoing to
metadata CHANGED
@@ -1,22 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-08 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.13'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
20
23
  - - "!="
21
24
  - !ruby/object:Gem::Version
22
25
  version: 0.16.0
@@ -26,13 +29,19 @@ dependencies:
26
29
  - - "!="
27
30
  - !ruby/object:Gem::Version
28
31
  version: 0.16.2
32
+ - - "!="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.17.1
29
35
  type: :runtime
30
36
  prerelease: false
31
37
  version_requirements: !ruby/object:Gem::Requirement
32
38
  requirements:
33
- - - "~>"
39
+ - - ">="
34
40
  - !ruby/object:Gem::Version
35
41
  version: '0.13'
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '2.0'
36
45
  - - "!="
37
46
  - !ruby/object:Gem::Version
38
47
  version: 0.16.0
@@ -42,20 +51,29 @@ dependencies:
42
51
  - - "!="
43
52
  - !ruby/object:Gem::Version
44
53
  version: 0.16.2
54
+ - - "!="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.17.1
45
57
  - !ruby/object:Gem::Dependency
46
58
  name: net-http-persistent
47
59
  requirement: !ruby/object:Gem::Requirement
48
60
  requirements:
49
- - - "~>"
61
+ - - ">="
50
62
  - !ruby/object:Gem::Version
51
63
  version: '3.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '5.0'
52
67
  type: :runtime
53
68
  prerelease: false
54
69
  version_requirements: !ruby/object:Gem::Requirement
55
70
  requirements:
56
- - - "~>"
71
+ - - ">="
57
72
  - !ruby/object:Gem::Version
58
73
  version: '3.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '5.0'
59
77
  - !ruby/object:Gem::Dependency
60
78
  name: ed25519
61
79
  requirement: !ruby/object:Gem::Requirement
@@ -79,9 +97,12 @@ extensions: []
79
97
  extra_rdoc_files: []
80
98
  files:
81
99
  - ".github/ISSUE_TEMPLATE.md"
100
+ - ".github/scripts/before_install.sh"
101
+ - ".github/workflows/ruby.yml"
82
102
  - ".gitignore"
83
103
  - ".rubocop.yml"
84
- - ".travis.yml"
104
+ - ".rubocop_todo.yml"
105
+ - ".travis.yml.bak"
85
106
  - CHANGELOG.md
86
107
  - CONTRIBUTORS
87
108
  - Gemfile
@@ -91,6 +112,14 @@ files:
91
112
  - Rakefile
92
113
  - VERSION
93
114
  - bin/telnyx-console
115
+ - examples/2 factor authentication/Gemfile
116
+ - examples/2 factor authentication/main.rb
117
+ - examples/2 factor authentication/readme.md
118
+ - examples/fax/Gemfile
119
+ - examples/fax/config.yaml
120
+ - examples/fax/fax.rb
121
+ - examples/fax/options.rb
122
+ - examples/fax/readme.md
94
123
  - lib/telnyx.rb
95
124
  - lib/telnyx/address.rb
96
125
  - lib/telnyx/alphanumeric_sender_id.rb
@@ -111,6 +140,8 @@ files:
111
140
  - lib/telnyx/credential_connection.rb
112
141
  - lib/telnyx/errors.rb
113
142
  - lib/telnyx/event.rb
143
+ - lib/telnyx/fax.rb
144
+ - lib/telnyx/fax_application.rb
114
145
  - lib/telnyx/fqdn.rb
115
146
  - lib/telnyx/fqdn_connection.rb
116
147
  - lib/telnyx/ip.rb
@@ -135,6 +166,8 @@ files:
135
166
  - lib/telnyx/telnyx_object.rb
136
167
  - lib/telnyx/telnyx_response.rb
137
168
  - lib/telnyx/util.rb
169
+ - lib/telnyx/verification.rb
170
+ - lib/telnyx/verify_profile.rb
138
171
  - lib/telnyx/version.rb
139
172
  - lib/telnyx/webhook.rb
140
173
  - lib/telnyx/wireless_detail_records_report.rb
@@ -153,6 +186,8 @@ files:
153
186
  - test/telnyx/connection_test.rb
154
187
  - test/telnyx/credential_connection_test.rb
155
188
  - test/telnyx/errors_test.rb
189
+ - test/telnyx/fax_application_test.rb
190
+ - test/telnyx/fax_test.rb
156
191
  - test/telnyx/fqdn_connection_test.rb
157
192
  - test/telnyx/fqdn_test.rb
158
193
  - test/telnyx/ip_connection_test.rb
@@ -175,6 +210,8 @@ files:
175
210
  - test/telnyx/telnyx_object_test.rb
176
211
  - test/telnyx/telnyx_response_test.rb
177
212
  - test/telnyx/util_test.rb
213
+ - test/telnyx/verification_test.rb
214
+ - test/telnyx/verify_profile_test.rb
178
215
  - test/telnyx/webhook_test.rb
179
216
  - test/telnyx/wireless_detail_records_report_test.rb
180
217
  - test/telnyx_mock.rb
@@ -189,7 +226,7 @@ metadata:
189
226
  github_repo: ssh://github.com/team-telnyx/telnyx-ruby
190
227
  homepage_uri: https://telnyx.com
191
228
  source_code_uri: https://github.com/team-telnyx/telnyx-ruby
192
- post_install_message:
229
+ post_install_message:
193
230
  rdoc_options: []
194
231
  require_paths:
195
232
  - lib
@@ -204,8 +241,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
241
  - !ruby/object:Gem::Version
205
242
  version: '0'
206
243
  requirements: []
207
- rubygems_version: 3.1.2
208
- signing_key:
244
+ rubygems_version: 3.2.3
245
+ signing_key:
209
246
  specification_version: 4
210
247
  summary: Ruby bindings for the Telnyx API
211
248
  test_files:
@@ -223,6 +260,8 @@ test_files:
223
260
  - test/telnyx/connection_test.rb
224
261
  - test/telnyx/credential_connection_test.rb
225
262
  - test/telnyx/errors_test.rb
263
+ - test/telnyx/fax_application_test.rb
264
+ - test/telnyx/fax_test.rb
226
265
  - test/telnyx/fqdn_connection_test.rb
227
266
  - test/telnyx/fqdn_test.rb
228
267
  - test/telnyx/ip_connection_test.rb
@@ -245,6 +284,8 @@ test_files:
245
284
  - test/telnyx/telnyx_object_test.rb
246
285
  - test/telnyx/telnyx_response_test.rb
247
286
  - test/telnyx/util_test.rb
287
+ - test/telnyx/verification_test.rb
288
+ - test/telnyx/verify_profile_test.rb
248
289
  - test/telnyx/webhook_test.rb
249
290
  - test/telnyx/wireless_detail_records_report_test.rb
250
291
  - test/telnyx_mock.rb
data/.travis.yml DELETED
@@ -1,51 +0,0 @@
1
- language: ruby
2
-
3
-
4
- rvm:
5
- - 2.1
6
- - 2.2
7
- - 2.3
8
- - 2.4
9
- - 2.5
10
- - 2.6
11
-
12
- matrix:
13
- include:
14
- - rvm: jruby-9.2.11.0
15
- jdk: oraclejdk11
16
-
17
-
18
- notifications:
19
- email:
20
- on_success: never
21
- slack:
22
- secure: AMXcZSwIL8SRZQ+opSFrlvNKoUXv1rZkWDgorBmz+BEHwGKWgVzYcZ4GwD5p6Z5uNdtvl9FZz6oLvvAcbW6CblbAPM+f2qLVDlZ/sazpOK8l6QIo7X86U3SuwJicY2CbbKvqN/A3u23Bbvf5u4djvm5oc73qASZY/RJHxm2xcmD57+z6hY12AvWtLJN95BsjVZ9RHXy8/qkJehqGnzSi9VGojNmd0voU9UrxJU0xS10kBA7dQFCCf+NZv9utguyFfAATpa9JTlD1a8QiB2fzvdPkBym1bnqr3nQPk5rNbgiFHf14OIlq7C2jwaNNoB1dDpkT/Vfvmn5EHzBDZQ30PrVpq9uNgQg45pOIMXp9ZLY0zYi/Gzk5tF/lTKUxk5evJ2+2Dtmzv4mzbk98pvGrA+MIkSXuYy6GHZuXanb3OQ5y42dSYVdy1c+WHdbYx1LOJSEGtALr9ADyjDu9KAu2eJMnmGQ14cJarl/33BF4UzCRKpPxV5CwOqI82+fK9pNiW0CLijfxpkFr9aaxViVsf43r5Ag12Jqme18IWCGJ1P5sMEo6bz/Gp4BuVMXQtYExorK+fWkrm1Wus6HGINlRonUswJ9LJ995M384j6KyP1121MJuiPAc1AdNqS1C992j/cDoUDlxsxW9HTX15nGoM712w00wNrj/vdQt0TlmENo=
23
-
24
- sudo: false
25
-
26
- env:
27
- global:
28
- # If changing this number, please also change it in `test/test_helper.rb`.
29
- - TELNYX_MOCK_VERSION=0.8.9
30
-
31
- cache:
32
- directories:
33
- - telnyx-mock
34
-
35
- before_install:
36
- # Install bundler 1.x, because we need to support Ruby 2.1 for now
37
- - gem install bundler -v "~> 1.0"
38
- # Unpack and start telnyx-mock so that the test suite can talk to it
39
- - |
40
- if [ ! -d "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}" ]; then
41
- mkdir -p telnyx-mock/${TELNYX_MOCK_VERSION}/
42
- 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"
43
- tar -zxf "telnyx-mock/telnyx-mock_${TELNYX_MOCK_VERSION}_linux_amd64.tar.gz" -C "telnyx-mock/${TELNYX_MOCK_VERSION}/"
44
- fi
45
- - |
46
- telnyx-mock/${TELNYX_MOCK_VERSION}/telnyx-mock > /dev/null &
47
- TELNYX_MOCK_PID=$!
48
- - export PATH="${PATH}:${PWD}/telnyx-mock/${TELNYX_MOCK_VERSION}"
49
-
50
- script:
51
- - bundle exec rake