telnyx 0.0.8 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) 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 +1 -0
  5. data/.rubocop.yml +6 -36
  6. data/.rubocop_todo.yml +300 -0
  7. data/.travis.yml.bak +48 -0
  8. data/Gemfile +6 -5
  9. data/README.md +42 -3
  10. data/VERSION +1 -1
  11. data/bin/telnyx-console +7 -1
  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 +22 -2
  21. data/lib/telnyx/address.rb +12 -0
  22. data/lib/telnyx/api_operations/list.rb +1 -1
  23. data/lib/telnyx/api_operations/nested_resource.rb +2 -2
  24. data/lib/telnyx/api_operations/save.rb +1 -1
  25. data/lib/telnyx/api_resource.rb +13 -2
  26. data/lib/telnyx/billing_group.rb +12 -0
  27. data/lib/telnyx/call.rb +3 -1
  28. data/lib/telnyx/call_control_application.rb +12 -0
  29. data/lib/telnyx/conference.rb +36 -0
  30. data/lib/telnyx/connection.rb +9 -0
  31. data/lib/telnyx/credential_connection.rb +12 -0
  32. data/lib/telnyx/fax.rb +13 -0
  33. data/lib/telnyx/fax_application.rb +12 -0
  34. data/lib/telnyx/fqdn.rb +12 -0
  35. data/lib/telnyx/fqdn_connection.rb +12 -0
  36. data/lib/telnyx/ip.rb +12 -0
  37. data/lib/telnyx/ip_connection.rb +12 -0
  38. data/lib/telnyx/list_object.rb +30 -44
  39. data/lib/telnyx/messaging_phone_number.rb +9 -0
  40. data/lib/telnyx/number_lookup.rb +7 -0
  41. data/lib/telnyx/number_order_document.rb +11 -0
  42. data/lib/telnyx/outbound_voice_profile.rb +12 -0
  43. data/lib/telnyx/phone_number.rb +20 -1
  44. data/lib/telnyx/phone_number_regulatory_requirement.rb +10 -0
  45. data/lib/telnyx/portout.rb +12 -0
  46. data/lib/telnyx/regulatory_requirement.rb +9 -0
  47. data/lib/telnyx/sim_card.rb +12 -1
  48. data/lib/telnyx/telnyx_client.rb +17 -26
  49. data/lib/telnyx/util.rb +38 -14
  50. data/lib/telnyx/verification.rb +27 -0
  51. data/lib/telnyx/verify_profile.rb +11 -0
  52. data/lib/telnyx/version.rb +1 -1
  53. data/lib/telnyx/wireless_detail_records_report.rb +12 -0
  54. data/telnyx.gemspec +1 -1
  55. data/test/telnyx/address_test.rb +67 -0
  56. data/test/telnyx/alphanumeric_sender_id_test.rb +4 -0
  57. data/test/telnyx/api_resource_test.rb +14 -5
  58. data/test/telnyx/billing_group_test.rb +40 -0
  59. data/test/telnyx/call_control_application_test.rb +42 -0
  60. data/test/telnyx/call_control_test.rb +54 -30
  61. data/test/telnyx/conference_test.rb +113 -0
  62. data/test/telnyx/connection_test.rb +28 -0
  63. data/test/telnyx/credential_connection_test.rb +44 -0
  64. data/test/telnyx/errors_test.rb +4 -4
  65. data/test/telnyx/fax_application_test.rb +32 -0
  66. data/test/telnyx/fax_test.rb +32 -0
  67. data/test/telnyx/fqdn_connection_test.rb +40 -0
  68. data/test/telnyx/fqdn_test.rb +40 -0
  69. data/test/telnyx/ip_connection_test.rb +40 -0
  70. data/test/telnyx/ip_test.rb +40 -0
  71. data/test/telnyx/list_object_test.rb +48 -90
  72. data/test/telnyx/messaging_phone_number_test.rb +8 -4
  73. data/test/telnyx/messaging_profile_test.rb +16 -5
  74. data/test/telnyx/number_lookup_test.rb +18 -0
  75. data/test/telnyx/number_order_document_test.rb +35 -0
  76. data/test/telnyx/outbound_voice_profile_test.rb +67 -0
  77. data/test/telnyx/phone_number_regulatory_requirement_test.rb +14 -0
  78. data/test/telnyx/phone_number_test.rb +40 -9
  79. data/test/telnyx/public_key_test.rb +1 -0
  80. data/test/telnyx/regulatory_requirement_test.rb +21 -0
  81. data/test/telnyx/sim_card_test.rb +6 -18
  82. data/test/telnyx/telnyx_client_test.rb +1 -1
  83. data/test/telnyx/telnyx_object_test.rb +5 -5
  84. data/test/telnyx/verification_test.rb +22 -0
  85. data/test/telnyx/verify_profile_test.rb +31 -0
  86. data/test/telnyx/wireless_detail_records_report_test.rb +57 -0
  87. data/test/test_helper.rb +1 -1
  88. metadata +93 -12
  89. data/.travis.yml +0 -51
  90. data/lib/telnyx/conferences.rb +0 -19
  91. data/test/telnyx/conferences_test.rb +0 -76
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c37cdea4e89bcb4fcc1f23ca51046d46a8237b94750705e5f2588a80eda68815
4
- data.tar.gz: 8486bba2a8d2bf069ea2b5f0bd34348d5c33013de91e1e200739c643fa056af4
3
+ metadata.gz: 489eabc07a51f5c6eb4907f5e14f79718d0d94653cc3353e85cb1df637e90d5d
4
+ data.tar.gz: d3676bdfb8587cd41be67f7471d9b0f8040ff4ed638e499e337f8e66ee51e584
5
5
  SHA512:
6
- metadata.gz: 13d3ae3fc14cdedc52e9ab70b32c40ed49d8edb7027a2460c462ce19fa48400c0d06600bf2d17f2c33b867681ec39f9f22b622222fef5a509d8794e6c6e6caf5
7
- data.tar.gz: 81e836c7f88f7d275675572be22dee450ff40c8741d5f05930583fe323191aca4865a97cdcf95ed418e0aa9812beae7eb9ec566a5de421fe9fd8873f8f67ff02
6
+ metadata.gz: 22bcd3bff117a1e95b1e08526c4d6c2f313c67b801fb2c3376dd9096db4dde5d8bc9b92533111fb23dd58ed6edd63e7bde547c5521054239c46e7c17e98ff6a2
7
+ data.tar.gz: 36f193b14347d3e5d973bab543b1a40336f3940d00fead38f2961a5c77e70780e1b3b83f0651bb2f899a2cd86d0fd8d999adbc7d182c9b5468776c538dcfec4a
@@ -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/.gitignore CHANGED
@@ -6,3 +6,4 @@ tags
6
6
  /.bundle/
7
7
  coverage/
8
8
  .idea/
9
+ vendor/*
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'