telnyx 0.1.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/scripts/before_install.sh +9 -0
- data/.github/workflows/ruby.yml +39 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +6 -36
- data/.rubocop_todo.yml +300 -0
- data/.travis.yml.bak +48 -0
- data/Gemfile +6 -6
- data/README.md +2 -1
- data/VERSION +1 -1
- data/bin/telnyx-console +5 -0
- data/examples/2 factor authentication/Gemfile +7 -0
- data/examples/2 factor authentication/main.rb +67 -0
- data/examples/2 factor authentication/readme.md +5 -0
- data/examples/fax/Gemfile +7 -0
- data/examples/fax/config.yaml +4 -0
- data/examples/fax/fax.rb +42 -0
- data/examples/fax/options.rb +41 -0
- data/examples/fax/readme.md +18 -0
- data/lib/telnyx.rb +6 -1
- data/lib/telnyx/api_operations/save.rb +1 -1
- data/lib/telnyx/api_resource.rb +14 -3
- data/lib/telnyx/call.rb +3 -1
- data/lib/telnyx/conference.rb +17 -1
- data/lib/telnyx/fax.rb +13 -0
- data/lib/telnyx/fax_application.rb +12 -0
- data/lib/telnyx/messaging_phone_number.rb +9 -0
- data/lib/telnyx/number_lookup.rb +7 -0
- data/lib/telnyx/phone_number.rb +9 -1
- data/lib/telnyx/phone_number_regulatory_requirement.rb +1 -0
- data/lib/telnyx/sim_card.rb +12 -1
- data/lib/telnyx/telnyx_client.rb +16 -25
- data/lib/telnyx/util.rb +12 -6
- data/lib/telnyx/verification.rb +27 -0
- data/lib/telnyx/verify_profile.rb +11 -0
- data/lib/telnyx/version.rb +1 -1
- data/telnyx.gemspec +2 -2
- data/test/telnyx/call_control_test.rb +54 -30
- data/test/telnyx/conference_test.rb +57 -20
- data/test/telnyx/credential_connection_test.rb +5 -1
- data/test/telnyx/fax_application_test.rb +32 -0
- data/test/telnyx/fax_test.rb +32 -0
- data/test/telnyx/fqdn_connection_test.rb +1 -1
- data/test/telnyx/fqdn_test.rb +1 -1
- data/test/telnyx/messaging_phone_number_test.rb +8 -4
- data/test/telnyx/messaging_profile_test.rb +1 -1
- data/test/telnyx/number_lookup_test.rb +18 -0
- data/test/telnyx/phone_number_regulatory_requirement_test.rb +1 -1
- data/test/telnyx/phone_number_test.rb +14 -21
- data/test/telnyx/sim_card_test.rb +6 -6
- data/test/telnyx/telnyx_object_test.rb +5 -5
- data/test/telnyx/verification_test.rb +22 -0
- data/test/telnyx/verify_profile_test.rb +31 -0
- data/test/test_helper.rb +1 -1
- metadata +55 -12
- data/.travis.yml +0 -51
@@ -12,7 +12,11 @@ module Telnyx
|
|
12
12
|
end
|
13
13
|
|
14
14
|
should "create credential connection" do
|
15
|
-
CredentialConnection.create
|
15
|
+
CredentialConnection.create(
|
16
|
+
connection_name: "Test connection_name",
|
17
|
+
user_name: "Test user_name",
|
18
|
+
password: "correct-horse-battery-staple"
|
19
|
+
)
|
16
20
|
assert_requested :post, "#{Telnyx.api_base}/v2/credential_connections"
|
17
21
|
end
|
18
22
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../test_helper"
|
4
|
+
|
5
|
+
module Telnyx
|
6
|
+
class FaxApplicationTest < Test::Unit::TestCase
|
7
|
+
should "fetch index" do
|
8
|
+
fax_applications = FaxApplication.list
|
9
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/fax_applications"
|
10
|
+
assert_kind_of ListObject, fax_applications
|
11
|
+
assert_kind_of FaxApplication, fax_applications.first
|
12
|
+
end
|
13
|
+
|
14
|
+
should "create" do
|
15
|
+
fax_application = FaxApplication.create application_name: "foo", webhook_event_url: "https://foo.bar.com"
|
16
|
+
assert_requested :post, "#{Telnyx.api_base}/v2/fax_applications"
|
17
|
+
assert_kind_of FaxApplication, fax_application
|
18
|
+
end
|
19
|
+
|
20
|
+
should "retrieve" do
|
21
|
+
fax_application = FaxApplication.retrieve "foo"
|
22
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/fax_applications/foo"
|
23
|
+
assert_kind_of FaxApplication, fax_application
|
24
|
+
end
|
25
|
+
|
26
|
+
should "delete" do
|
27
|
+
fax_application = FaxApplication.retrieve "foo"
|
28
|
+
fax_application.delete
|
29
|
+
assert_requested :delete, "#{Telnyx.api_base}/v2/fax_applications/foo"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../test_helper"
|
4
|
+
module Telnyx
|
5
|
+
class FaxTest < Test::Unit::TestCase
|
6
|
+
should "fetch index" do
|
7
|
+
faxes = Fax.list
|
8
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/faxes"
|
9
|
+
assert_kind_of ListObject, faxes
|
10
|
+
assert_kind_of Fax, faxes.first
|
11
|
+
end
|
12
|
+
|
13
|
+
should "send fax" do
|
14
|
+
fax = Fax.create connection_id: "foo", media_url: "example.com", to: "+13127367276"
|
15
|
+
assert_requested :post, "#{Telnyx.api_base}/v2/faxes"
|
16
|
+
assert_kind_of Fax, fax
|
17
|
+
end
|
18
|
+
|
19
|
+
should "view fax" do
|
20
|
+
fax = Fax.retrieve "foo"
|
21
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/faxes/foo"
|
22
|
+
assert_kind_of Fax, fax
|
23
|
+
end
|
24
|
+
|
25
|
+
should "delete fax" do
|
26
|
+
omit "!!waiting for mock!!"
|
27
|
+
fax = Fax.retrieve "foo"
|
28
|
+
fax.delete
|
29
|
+
assert_requested :delete, "#{Telnyx.api_base}/v2/faxes/foo"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/test/telnyx/fqdn_test.rb
CHANGED
@@ -6,14 +6,16 @@ module Telnyx
|
|
6
6
|
class MessagingPhoneNumberTest < Test::Unit::TestCase
|
7
7
|
should "be listable" do
|
8
8
|
messaging_phone_numbers = Telnyx::MessagingPhoneNumber.list
|
9
|
-
assert_requested :get, "#{Telnyx.api_base}/v2/messaging_phone_numbers"
|
9
|
+
# assert_requested :get, "#{Telnyx.api_base}/v2/messaging_phone_numbers"
|
10
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/messaging"
|
10
11
|
assert messaging_phone_numbers.data.is_a?(Array)
|
11
12
|
assert messaging_phone_numbers.first.is_a?(Telnyx::MessagingPhoneNumber)
|
12
13
|
end
|
13
14
|
|
14
15
|
should "be retrievable" do
|
15
16
|
messaging_phone_number = Telnyx::MessagingPhoneNumber.retrieve("123")
|
16
|
-
assert_requested :get, "#{Telnyx.api_base}/v2/messaging_phone_numbers/123"
|
17
|
+
# assert_requested :get, "#{Telnyx.api_base}/v2/messaging_phone_numbers/123"
|
18
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging"
|
17
19
|
assert messaging_phone_number.is_a?(Telnyx::MessagingPhoneNumber)
|
18
20
|
end
|
19
21
|
|
@@ -21,12 +23,14 @@ module Telnyx
|
|
21
23
|
messaging_phone_number = Telnyx::MessagingPhoneNumber.retrieve("123")
|
22
24
|
messaging_phone_number.messaging_profile_id = "value"
|
23
25
|
messaging_phone_number.save
|
24
|
-
assert_requested :patch, "#{Telnyx.api_base}/v2/messaging_phone_numbers/#{messaging_phone_number.id}"
|
26
|
+
# assert_requested :patch, "#{Telnyx.api_base}/v2/messaging_phone_numbers/#{messaging_phone_number.id}"
|
27
|
+
assert_requested :patch, "#{Telnyx.api_base}/v2/phone_numbers/#{messaging_phone_number.id}/messaging"
|
25
28
|
end
|
26
29
|
|
27
30
|
should "be updateable" do
|
28
31
|
messaging_phone_number = Telnyx::MessagingPhoneNumber.update("123", messaging_profile_id: "456")
|
29
|
-
assert_requested :patch, "#{Telnyx.api_base}/v2/messaging_phone_numbers/123"
|
32
|
+
# assert_requested :patch, "#{Telnyx.api_base}/v2/messaging_phone_numbers/123"
|
33
|
+
assert_requested :patch, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging"
|
30
34
|
assert messaging_phone_number.is_a?(Telnyx::MessagingPhoneNumber)
|
31
35
|
end
|
32
36
|
end
|
@@ -58,7 +58,7 @@ module Telnyx
|
|
58
58
|
phone_numbers = messaging_profile.phone_numbers
|
59
59
|
assert_requested :get, "#{Telnyx.api_base}/v2/messaging_profiles/123/phone_numbers"
|
60
60
|
assert phone_numbers.data.is_a?(Array)
|
61
|
-
|
61
|
+
assert_kind_of Telnyx::MessagingPhoneNumber, phone_numbers.data[0]
|
62
62
|
end
|
63
63
|
|
64
64
|
should "be able to list alphanumeric sender ids" do
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative "../test_helper"
|
5
|
+
|
6
|
+
module Telnyx
|
7
|
+
class NumberLookupTest < Test::Unit::TestCase
|
8
|
+
test "retrieve number" do
|
9
|
+
number = "555-555-5555"
|
10
|
+
stub = stub_request(:get, "#{Telnyx.api_base}/v2/number_lookup/#{number}")
|
11
|
+
.to_return(body: { data: { record_type: "number_lookup" } }.to_json)
|
12
|
+
nl = NumberLookup.retrieve number
|
13
|
+
|
14
|
+
assert_requested stub
|
15
|
+
assert_kind_of NumberLookup, nl
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -7,7 +7,7 @@ module Telnyx
|
|
7
7
|
class PhoneNumberRegulatoryRequirementTest < Test::Unit::TestCase
|
8
8
|
should "be listable" do
|
9
9
|
phone_number_reg_req = PhoneNumberRegulatoryRequirement.list
|
10
|
-
assert_requested :get, "#{Telnyx.api_base}/v2/
|
10
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers_regulatory_requirements"
|
11
11
|
assert_kind_of PhoneNumberRegulatoryRequirement, phone_number_reg_req.first
|
12
12
|
end
|
13
13
|
end
|
@@ -41,6 +41,11 @@ module Telnyx
|
|
41
41
|
assert_requested stub
|
42
42
|
end
|
43
43
|
|
44
|
+
should "list all voice settings" do
|
45
|
+
Telnyx::PhoneNumber.list_voice
|
46
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/voice"
|
47
|
+
end
|
48
|
+
|
44
49
|
context "nested commands" do
|
45
50
|
should "update voice" do
|
46
51
|
stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/123")
|
@@ -64,41 +69,29 @@ module Telnyx
|
|
64
69
|
assert_equal voice.data.connection_id, "456"
|
65
70
|
end
|
66
71
|
|
72
|
+
should "list messaging" do
|
73
|
+
list = Telnyx::PhoneNumber.messaging
|
74
|
+
assert_kind_of Telnyx::ListObject, list
|
75
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/messaging"
|
76
|
+
end
|
77
|
+
|
67
78
|
should "get messaging" do
|
68
|
-
stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/123")
|
69
|
-
.to_return(body: JSON.generate(data: mock_response("123")))
|
70
|
-
command_stub = stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging")
|
71
|
-
.to_return(body: JSON.generate(data: mock_messaging_response("456")))
|
72
79
|
phone_number = Telnyx::PhoneNumber.retrieve("123")
|
73
80
|
phone_number.messaging
|
74
|
-
assert_requested
|
81
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging"
|
75
82
|
end
|
76
83
|
|
77
84
|
should "update messaging" do
|
78
|
-
stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/123")
|
79
|
-
.to_return(body: JSON.generate(data: mock_response("123")))
|
80
|
-
command_stub = stub_request(:patch, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging")
|
81
|
-
.with(body: { messaging_profile_id: "12345", messaging_product: "P2P" })
|
82
|
-
.to_return(body: JSON.generate(data: mock_messaging_response))
|
83
85
|
phone_number = Telnyx::PhoneNumber.retrieve("123")
|
84
86
|
phone_number.update_messaging(messaging_profile_id: "12345", messaging_product: "P2P")
|
85
|
-
assert_requested
|
87
|
+
assert_requested :patch, "#{Telnyx.api_base}/v2/phone_numbers/123/messaging"
|
86
88
|
end
|
87
89
|
|
88
90
|
should "list inbound channels" do
|
89
|
-
stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/123")
|
90
|
-
.to_return(body: JSON.generate(data: mock_response("123")))
|
91
|
-
command_stub = stub_request(:get, "#{Telnyx.api_base}/v2/phone_numbers/inbound_channels")
|
92
|
-
.to_return(body: JSON.generate(
|
93
|
-
data: {
|
94
|
-
channels: 7,
|
95
|
-
record_type: "inbound_channels",
|
96
|
-
}
|
97
|
-
))
|
98
91
|
phone_number = Telnyx::PhoneNumber.retrieve("123")
|
99
92
|
inbound_channels = phone_number.inbound_channels
|
100
93
|
assert_equal inbound_channels, 7
|
101
|
-
assert_requested
|
94
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/phone_numbers/inbound_channels"
|
102
95
|
end
|
103
96
|
|
104
97
|
should "update inbound channel" do
|
@@ -28,16 +28,16 @@ module Telnyx
|
|
28
28
|
end
|
29
29
|
|
30
30
|
context "actions" do
|
31
|
-
should "
|
31
|
+
should "disable" do
|
32
32
|
sim = Telnyx::SimCard.retrieve "123"
|
33
|
-
sim.
|
34
|
-
assert_requested(:post, "#{Telnyx.api_base}/v2/sim_cards/
|
33
|
+
sim.disable
|
34
|
+
assert_requested(:post, "#{Telnyx.api_base}/v2/sim_cards/#{sim.id}/actions/disable")
|
35
35
|
end
|
36
36
|
|
37
|
-
should "
|
37
|
+
should "enable" do
|
38
38
|
sim = Telnyx::SimCard.retrieve "123"
|
39
|
-
sim.
|
40
|
-
assert_requested(:post, "#{Telnyx.api_base}/v2/sim_cards/
|
39
|
+
sim.enable
|
40
|
+
assert_requested(:post, "#{Telnyx.api_base}/v2/sim_cards/#{sim.id}/actions/enable")
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -212,26 +212,26 @@ module Telnyx
|
|
212
212
|
|
213
213
|
should "mass assign values with #update_attributes" do
|
214
214
|
obj = Telnyx::TelnyxObject.construct_from(id: 1, name: "Telnyx")
|
215
|
-
obj.update_attributes(name: "telnyx")
|
215
|
+
obj.update_attributes({ name: "telnyx" })
|
216
216
|
assert_equal "telnyx", obj.name
|
217
217
|
|
218
218
|
# unfortunately, we even assign unknown properties to duplicate the
|
219
219
|
# behavior that we currently have via magic accessors with
|
220
220
|
# method_missing
|
221
|
-
obj.update_attributes(unknown: "foo")
|
221
|
+
obj.update_attributes({ unknown: "foo" })
|
222
222
|
assert_equal "foo", obj.unknown
|
223
223
|
end
|
224
224
|
|
225
225
|
should "#update_attributes with a hash" do
|
226
226
|
obj = Telnyx::TelnyxObject.construct_from({})
|
227
|
-
obj.update_attributes(metadata: { foo: "bar" })
|
227
|
+
obj.update_attributes({ metadata: { foo: "bar" } })
|
228
228
|
assert_equal Telnyx::TelnyxObject, obj.metadata.class
|
229
229
|
end
|
230
230
|
|
231
231
|
should "create accessors when #update_attributes is called" do
|
232
232
|
obj = Telnyx::TelnyxObject.construct_from({})
|
233
233
|
assert_equal false, obj.send(:metaclass).method_defined?(:foo)
|
234
|
-
obj.update_attributes(foo: "bar")
|
234
|
+
obj.update_attributes({ foo: "bar" })
|
235
235
|
assert_equal true, obj.send(:metaclass).method_defined?(:foo)
|
236
236
|
end
|
237
237
|
|
@@ -268,7 +268,7 @@ module Telnyx
|
|
268
268
|
|
269
269
|
should "#serialize_params on a basic object" do
|
270
270
|
obj = Telnyx::TelnyxObject.construct_from(foo: nil)
|
271
|
-
obj.update_attributes(foo: "bar")
|
271
|
+
obj.update_attributes({ foo: "bar" })
|
272
272
|
assert_equal({ foo: "bar" }, obj.serialize_params)
|
273
273
|
end
|
274
274
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telnyx
|
4
|
+
class VerificationTest < Test::Unit::TestCase
|
5
|
+
should "create verification" do
|
6
|
+
Verification.create phone_number: "+15555555555", twofa_profile_id: "1234", type: "sms", verify_profile_id: "foobar"
|
7
|
+
assert_requested :post, "#{Telnyx.api_base}/v2/verifications"
|
8
|
+
end
|
9
|
+
|
10
|
+
should "retrieve verification" do
|
11
|
+
verification = Verification.retrieve("id")
|
12
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/verifications/id"
|
13
|
+
assert_kind_of Verification, verification
|
14
|
+
end
|
15
|
+
|
16
|
+
should "send verification code" do
|
17
|
+
Verification.submit_code code: "12345", phone_number: "+13035551234"
|
18
|
+
|
19
|
+
assert_requested :post, "#{Telnyx.api_base}/v2/verifications/by_phone_number/+13035551234/actions/verify"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telnyx
|
4
|
+
class VerifyProfileTest < Test::Unit::TestCase
|
5
|
+
should "list verify_profiles" do
|
6
|
+
verify_profile = VerifyProfile.list
|
7
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles"
|
8
|
+
assert_kind_of ListObject, verify_profile
|
9
|
+
assert_kind_of VerifyProfile, verify_profile.first
|
10
|
+
end
|
11
|
+
|
12
|
+
should "create verify_profile" do
|
13
|
+
VerifyProfile.create name: "test"
|
14
|
+
assert_requested :post, "#{Telnyx.api_base}/v2/verify_profiles"
|
15
|
+
end
|
16
|
+
|
17
|
+
should "retrieve verify_profile" do
|
18
|
+
verify_profile = VerifyProfile.retrieve("id")
|
19
|
+
assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles/id"
|
20
|
+
assert_kind_of VerifyProfile, verify_profile
|
21
|
+
end
|
22
|
+
|
23
|
+
should "update verify_profile" do
|
24
|
+
verify_profile = VerifyProfile.retrieve("id")
|
25
|
+
|
26
|
+
verify_profile.name = "123"
|
27
|
+
verify_profile.save
|
28
|
+
assert_requested :patch, "#{Telnyx.api_base}/v2/verify_profiles/#{verify_profile.id}"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
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.
|
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:
|
4
|
+
version: 2.6.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:
|
11
|
+
date: 2021-04-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
|
-
- ".
|
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
|
@@ -119,6 +150,7 @@ files:
|
|
119
150
|
- lib/telnyx/message.rb
|
120
151
|
- lib/telnyx/messaging_phone_number.rb
|
121
152
|
- lib/telnyx/messaging_profile.rb
|
153
|
+
- lib/telnyx/number_lookup.rb
|
122
154
|
- lib/telnyx/number_order.rb
|
123
155
|
- lib/telnyx/number_order_document.rb
|
124
156
|
- lib/telnyx/number_reservation.rb
|
@@ -134,6 +166,8 @@ files:
|
|
134
166
|
- lib/telnyx/telnyx_object.rb
|
135
167
|
- lib/telnyx/telnyx_response.rb
|
136
168
|
- lib/telnyx/util.rb
|
169
|
+
- lib/telnyx/verification.rb
|
170
|
+
- lib/telnyx/verify_profile.rb
|
137
171
|
- lib/telnyx/version.rb
|
138
172
|
- lib/telnyx/webhook.rb
|
139
173
|
- lib/telnyx/wireless_detail_records_report.rb
|
@@ -152,6 +186,8 @@ files:
|
|
152
186
|
- test/telnyx/connection_test.rb
|
153
187
|
- test/telnyx/credential_connection_test.rb
|
154
188
|
- test/telnyx/errors_test.rb
|
189
|
+
- test/telnyx/fax_application_test.rb
|
190
|
+
- test/telnyx/fax_test.rb
|
155
191
|
- test/telnyx/fqdn_connection_test.rb
|
156
192
|
- test/telnyx/fqdn_test.rb
|
157
193
|
- test/telnyx/ip_connection_test.rb
|
@@ -160,6 +196,7 @@ files:
|
|
160
196
|
- test/telnyx/message_test.rb
|
161
197
|
- test/telnyx/messaging_phone_number_test.rb
|
162
198
|
- test/telnyx/messaging_profile_test.rb
|
199
|
+
- test/telnyx/number_lookup_test.rb
|
163
200
|
- test/telnyx/number_order_document_test.rb
|
164
201
|
- test/telnyx/number_order_test.rb
|
165
202
|
- test/telnyx/number_reservation_test.rb
|
@@ -173,6 +210,8 @@ files:
|
|
173
210
|
- test/telnyx/telnyx_object_test.rb
|
174
211
|
- test/telnyx/telnyx_response_test.rb
|
175
212
|
- test/telnyx/util_test.rb
|
213
|
+
- test/telnyx/verification_test.rb
|
214
|
+
- test/telnyx/verify_profile_test.rb
|
176
215
|
- test/telnyx/webhook_test.rb
|
177
216
|
- test/telnyx/wireless_detail_records_report_test.rb
|
178
217
|
- test/telnyx_mock.rb
|
@@ -187,7 +226,7 @@ metadata:
|
|
187
226
|
github_repo: ssh://github.com/team-telnyx/telnyx-ruby
|
188
227
|
homepage_uri: https://telnyx.com
|
189
228
|
source_code_uri: https://github.com/team-telnyx/telnyx-ruby
|
190
|
-
post_install_message:
|
229
|
+
post_install_message:
|
191
230
|
rdoc_options: []
|
192
231
|
require_paths:
|
193
232
|
- lib
|
@@ -202,9 +241,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
241
|
- !ruby/object:Gem::Version
|
203
242
|
version: '0'
|
204
243
|
requirements: []
|
205
|
-
|
206
|
-
|
207
|
-
signing_key:
|
244
|
+
rubygems_version: 3.2.3
|
245
|
+
signing_key:
|
208
246
|
specification_version: 4
|
209
247
|
summary: Ruby bindings for the Telnyx API
|
210
248
|
test_files:
|
@@ -222,6 +260,8 @@ test_files:
|
|
222
260
|
- test/telnyx/connection_test.rb
|
223
261
|
- test/telnyx/credential_connection_test.rb
|
224
262
|
- test/telnyx/errors_test.rb
|
263
|
+
- test/telnyx/fax_application_test.rb
|
264
|
+
- test/telnyx/fax_test.rb
|
225
265
|
- test/telnyx/fqdn_connection_test.rb
|
226
266
|
- test/telnyx/fqdn_test.rb
|
227
267
|
- test/telnyx/ip_connection_test.rb
|
@@ -230,6 +270,7 @@ test_files:
|
|
230
270
|
- test/telnyx/message_test.rb
|
231
271
|
- test/telnyx/messaging_phone_number_test.rb
|
232
272
|
- test/telnyx/messaging_profile_test.rb
|
273
|
+
- test/telnyx/number_lookup_test.rb
|
233
274
|
- test/telnyx/number_order_document_test.rb
|
234
275
|
- test/telnyx/number_order_test.rb
|
235
276
|
- test/telnyx/number_reservation_test.rb
|
@@ -243,6 +284,8 @@ test_files:
|
|
243
284
|
- test/telnyx/telnyx_object_test.rb
|
244
285
|
- test/telnyx/telnyx_response_test.rb
|
245
286
|
- test/telnyx/util_test.rb
|
287
|
+
- test/telnyx/verification_test.rb
|
288
|
+
- test/telnyx/verify_profile_test.rb
|
246
289
|
- test/telnyx/webhook_test.rb
|
247
290
|
- test/telnyx/wireless_detail_records_report_test.rb
|
248
291
|
- test/telnyx_mock.rb
|