twilio-ruby 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +30 -2
  3. data/CONTRIBUTING.md +159 -0
  4. data/ISSUE_TEMPLATE.md +26 -0
  5. data/LICENSE.md +1 -1
  6. data/README.md +6 -7
  7. data/VERSIONS.md +21 -49
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
  9. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +11 -11
  10. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +11 -11
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -11
  12. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +11 -11
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +11 -11
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +11 -11
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +11 -11
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +11 -11
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +11 -11
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +11 -18
  19. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +11 -11
  20. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
  21. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -11
  22. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +11 -11
  23. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +358 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +439 -0
  25. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -11
  26. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -11
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -11
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +48 -11
  29. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +11 -11
  30. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +11 -11
  31. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +22 -12
  32. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +11 -11
  33. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +11 -11
  34. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +11 -11
  35. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +11 -11
  36. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +11 -11
  37. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +11 -11
  38. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +11 -11
  39. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +11 -18
  40. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +11 -11
  41. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +11 -11
  42. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +11 -11
  43. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
  44. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
  45. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
  46. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
  47. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -11
  48. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
  49. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +11 -11
  50. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +11 -11
  51. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +11 -11
  52. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +11 -11
  53. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +11 -11
  54. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +11 -11
  55. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +11 -11
  56. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +11 -11
  57. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +11 -11
  58. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -11
  59. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +11 -11
  60. data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
  61. data/lib/twilio-ruby/rest/chat/v1/credential.rb +11 -11
  62. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +11 -11
  63. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +11 -11
  64. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +11 -11
  65. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +11 -11
  66. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
  67. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +11 -11
  68. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +11 -11
  69. data/lib/twilio-ruby/rest/chat/v1/service.rb +11 -11
  70. data/lib/twilio-ruby/rest/chat/v2/credential.rb +11 -11
  71. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +11 -11
  72. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +11 -11
  73. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +11 -11
  74. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +11 -11
  75. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
  76. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +11 -11
  77. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
  78. data/lib/twilio-ruby/rest/chat/v2/service.rb +11 -11
  79. data/lib/twilio-ruby/rest/client.rb +42 -0
  80. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +334 -0
  81. data/lib/twilio-ruby/rest/fax/v1/fax.rb +549 -0
  82. data/lib/twilio-ruby/rest/fax/v1.rb +41 -0
  83. data/lib/twilio-ruby/rest/fax.rb +44 -0
  84. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +11 -11
  85. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +11 -11
  86. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +11 -11
  87. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +11 -11
  88. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +11 -11
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +11 -11
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +11 -11
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +11 -11
  93. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +11 -11
  94. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +11 -11
  95. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +11 -11
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +11 -11
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +11 -11
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +11 -11
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +11 -11
  102. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +360 -0
  103. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +367 -0
  104. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +367 -0
  105. data/lib/twilio-ruby/rest/messaging/v1/service.rb +645 -0
  106. data/lib/twilio-ruby/rest/messaging/v1.rb +41 -0
  107. data/lib/twilio-ruby/rest/messaging.rb +44 -0
  108. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +11 -11
  109. data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
  110. data/lib/twilio-ruby/rest/notify/v1/credential.rb +411 -0
  111. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +438 -0
  112. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +294 -0
  113. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +230 -0
  114. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +262 -0
  115. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +442 -0
  116. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +453 -0
  117. data/lib/twilio-ruby/rest/notify/v1/service.rb +647 -0
  118. data/lib/twilio-ruby/rest/notify/v1.rb +56 -0
  119. data/lib/twilio-ruby/rest/notify.rb +52 -0
  120. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +216 -0
  121. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +211 -0
  122. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +251 -0
  123. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +56 -0
  124. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +570 -0
  125. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +42 -0
  126. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +309 -0
  127. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +341 -0
  128. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +349 -0
  129. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +448 -0
  130. data/lib/twilio-ruby/rest/preview/marketplace.rb +58 -0
  131. data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +367 -0
  132. data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +437 -0
  133. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +460 -0
  134. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +514 -0
  135. data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +544 -0
  136. data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +367 -0
  137. data/lib/twilio-ruby/rest/preview/proxy/service.rb +508 -0
  138. data/lib/twilio-ruby/rest/preview/proxy.rb +41 -0
  139. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +403 -0
  140. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +453 -0
  141. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +438 -0
  142. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +403 -0
  143. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +446 -0
  144. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +440 -0
  145. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +403 -0
  146. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +446 -0
  147. data/lib/twilio-ruby/rest/preview/sync/service.rb +512 -0
  148. data/lib/twilio-ruby/rest/preview/sync.rb +41 -0
  149. data/lib/twilio-ruby/rest/preview/wireless/command.rb +390 -0
  150. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +443 -0
  151. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +244 -0
  152. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +552 -0
  153. data/lib/twilio-ruby/rest/preview/wireless.rb +71 -0
  154. data/lib/twilio-ruby/rest/preview.rb +145 -0
  155. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +11 -11
  156. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +11 -11
  157. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +11 -11
  158. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +403 -0
  159. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +453 -0
  160. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +438 -0
  161. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +403 -0
  162. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +446 -0
  163. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +440 -0
  164. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +403 -0
  165. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +446 -0
  166. data/lib/twilio-ruby/rest/sync/v1/service.rb +512 -0
  167. data/lib/twilio-ruby/rest/sync/v1.rb +41 -0
  168. data/lib/twilio-ruby/rest/sync.rb +44 -0
  169. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +11 -11
  170. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +11 -11
  171. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +143 -13
  172. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +11 -11
  173. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +11 -11
  174. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +11 -11
  175. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -11
  176. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +143 -13
  177. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +11 -11
  178. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +11 -11
  179. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +11 -11
  180. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +11 -11
  181. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -11
  182. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +11 -11
  183. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -11
  184. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -11
  185. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +11 -11
  186. data/lib/twilio-ruby/rest/video/v1/recording.rb +11 -11
  187. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +11 -11
  188. data/lib/twilio-ruby/rest/video/v1/room.rb +11 -11
  189. data/lib/twilio-ruby/rest/wireless/v1/command.rb +375 -0
  190. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +460 -0
  191. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +241 -0
  192. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +556 -0
  193. data/lib/twilio-ruby/rest/wireless/v1.rb +71 -0
  194. data/lib/twilio-ruby/rest/wireless.rb +60 -0
  195. data/lib/twilio-ruby/version.rb +1 -1
  196. data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -2
  197. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
  198. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +223 -0
  199. data/spec/integration/api/v2010/account/recording_spec.rb +0 -2
  200. data/spec/integration/fax/v1/fax/fax_media_spec.rb +126 -0
  201. data/spec/integration/fax/v1/fax_spec.rb +272 -0
  202. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +170 -0
  203. data/spec/integration/messaging/v1/service/phone_number_spec.rb +201 -0
  204. data/spec/integration/messaging/v1/service/short_code_spec.rb +173 -0
  205. data/spec/integration/messaging/v1/service_spec.rb +263 -0
  206. data/spec/integration/notify/v1/credential_spec.rb +223 -0
  207. data/spec/integration/notify/v1/service/binding_spec.rb +227 -0
  208. data/spec/integration/notify/v1/service/notification_spec.rb +97 -0
  209. data/spec/integration/notify/v1/service/segment_spec.rb +84 -0
  210. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +118 -0
  211. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +269 -0
  212. data/spec/integration/notify/v1/service/user_spec.rb +213 -0
  213. data/spec/integration/notify/v1/service_spec.rb +280 -0
  214. data/spec/integration/preview/bulk_exports/export/day_spec.rb +56 -0
  215. data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +79 -0
  216. data/spec/integration/preview/bulk_exports/export_spec.rb +43 -0
  217. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +280 -0
  218. data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
  219. data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
  220. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +164 -0
  221. data/spec/integration/preview/marketplace/installed_add_on_spec.rb +252 -0
  222. data/spec/integration/preview/proxy/service/phone_number_spec.rb +173 -0
  223. data/spec/integration/preview/proxy/service/session/interaction_spec.rb +104 -0
  224. data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +164 -0
  225. data/spec/integration/preview/proxy/service/session/participant_spec.rb +226 -0
  226. data/spec/integration/preview/proxy/service/session_spec.rb +216 -0
  227. data/spec/integration/preview/proxy/service/short_code_spec.rb +173 -0
  228. data/spec/integration/preview/proxy/service_spec.rb +200 -0
  229. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +206 -0
  230. data/spec/integration/preview/sync/service/document_spec.rb +254 -0
  231. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +256 -0
  232. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +206 -0
  233. data/spec/integration/preview/sync/service/sync_list_spec.rb +207 -0
  234. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +257 -0
  235. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +206 -0
  236. data/spec/integration/preview/sync/service/sync_map_spec.rb +207 -0
  237. data/spec/integration/preview/sync/service_spec.rb +244 -0
  238. data/spec/integration/preview/wireless/command_spec.rb +169 -0
  239. data/spec/integration/preview/wireless/rate_plan_spec.rb +260 -0
  240. data/spec/integration/preview/wireless/sim/usage_spec.rb +49 -0
  241. data/spec/integration/preview/wireless/sim_spec.rb +208 -0
  242. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +206 -0
  243. data/spec/integration/sync/v1/service/document_spec.rb +254 -0
  244. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +256 -0
  245. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +206 -0
  246. data/spec/integration/sync/v1/service/sync_list_spec.rb +207 -0
  247. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +257 -0
  248. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +206 -0
  249. data/spec/integration/sync/v1/service/sync_map_spec.rb +207 -0
  250. data/spec/integration/sync/v1/service_spec.rb +244 -0
  251. data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +5 -5
  252. data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +5 -5
  253. data/spec/integration/wireless/v1/command_spec.rb +166 -0
  254. data/spec/integration/wireless/v1/rate_plan_spec.rb +268 -0
  255. data/spec/integration/wireless/v1/sim/usage_record_spec.rb +65 -0
  256. data/spec/integration/wireless/v1/sim_spec.rb +208 -0
  257. data/twilio-ruby.gemspec +1 -3
  258. metadata +192 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6a6f5e9d921db6048332ae4913809af14e3ea8a
4
- data.tar.gz: 6a3634728a3446a9bbe70d4da8cbaf5df29e00f2
3
+ metadata.gz: 7ad998d6d974a18680aa4af67eac5060956bd089
4
+ data.tar.gz: 2c2907bdecbc092b9cdc5d3dc51f106bbb27092f
5
5
  SHA512:
6
- metadata.gz: 3f866e4c93cc5bd0f58648eda34acf840b4859052f4e26967001b4fd5874accdda13a198f61bb1c5c50bcea968cb8071b9bddbcd528c0e922dcd7ca39640531d
7
- data.tar.gz: e28c9d8b3f51a160ed850ff21a3cf9720b1604fe2e9b580326ee71faf0cf177d343f160c49ce055242cb6f98a82d939a3a26828dd8a886b6058f33efaddd6b6a
6
+ metadata.gz: 8749bb3401a502e263e21733cc70591c86a4c6013b5aa193928be83f63921e65586cbd2b66ea06b92093091081bdca27870ada78100ca750726425cbfe4bd87c
7
+ data.tar.gz: 9ad4c8bc2ed44eb805f33d75f2ec9bb4ede33b5854a620d00b5b46377039ec100c3131b2585e7ea24cc41ba35d74db6ebb8ec002217e3c80b656b9226605cf19
data/CHANGES.md CHANGED
@@ -1,5 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
+ [2017-07-27] Version 5.1.0
4
+ ---------------------------
5
+ This release adds Beta and Preview products to main artifact.
6
+
7
+ Previously, Beta and Preview products were only included in the alpha artifact.
8
+ They are now being included in the main artifact to ease product
9
+ discoverability and the collective operational overhead of maintaining multiple
10
+ artifacts per library.
11
+
12
+ **Api**
13
+ - Remove unused `encryption_type` property on Recordings *(breaking change)*
14
+ - Update `status` enum for Messages to include 'accepted'
15
+ - Update `AnnounceMethod` parameter naming for consistency
16
+
17
+ **Messaging**
18
+ - Fix incorrectly typed capabilities property for PhoneNumbers.
19
+
20
+ **Notify**
21
+ - Add `ToBinding` optional parameter on Notifications resource creation. Accepted values are json strings.
22
+
23
+ **Preview**
24
+ - Add `sms_application_sid` to HostedNumberOrders.
25
+ - Add `verification_attempts` to HostedNumberOrders.
26
+
27
+ **Taskrouter**
28
+ - Fully support conference functionality in reservations.
29
+
30
+
3
31
  [2017-07-13] Version 5.0.0
4
32
  --------------------------------
5
33
  - Moving to General Availability
@@ -42,11 +70,11 @@ twilio-ruby changelog
42
70
  [2017-06-19] Version 5.0.0.rc23
43
71
  -------------------------------
44
72
  - Fixed ClientCapability parameter encoded bug.
45
- - Optional URL parameter for TwiML Play verb.
73
+ - Optional URL parameter for TwiML Play verb.
46
74
 
47
75
  [2017-06-15] Version 5.0.0.rc22
48
76
  -------------------------------
49
- - Refactor JWT token constructors
77
+ - Refactor JWT token constructors
50
78
 
51
79
 
52
80
  [2017-05-24] Version 5.0.0.rc21
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,159 @@
1
+ # Contributing to `twilio-ruby`
2
+
3
+ We'd love for you to contribute to our source code and to make `twilio-ruby`
4
+ even better than it is today! Here are the guidelines we'd like you to follow:
5
+
6
+ - [Code of Conduct](#coc)
7
+ - [Question or Problem?](#question)
8
+ - [Issues and Bugs](#issue)
9
+ - [Feature Requests](#feature)
10
+ - [Documentation fixes](#docs)
11
+ - [Submission Guidelines](#submit)
12
+ - [Coding Rules](#rules)
13
+
14
+ ## <a name="coc"></a> Code of Conduct
15
+
16
+ Help us keep `twilio-ruby` open and inclusive. Please be kind to and considerate
17
+ of other developers, as we all have the same goal: make `twilio-ruby` as good as
18
+ it can be.
19
+
20
+ ## <a name="question"></a> Got an API/Product Question or Problem?
21
+
22
+ If you have questions about how to use `twilio-ruby`, please see our
23
+ [docs][docs-link], and if you don't find the answer there, please contact
24
+ [help@twilio.com](mailto:help@twilio.com) with any issues you have.
25
+
26
+ ## <a name="issue"></a> Found an Issue?
27
+
28
+ If you find a bug in the source code or a mistake in the documentation, you can
29
+ help us by submitting [an issue][issue-link]. If the file in which the error
30
+ exists has this header:
31
+ ```
32
+ """
33
+ This code was generated by
34
+ \ / _ _ _| _ _
35
+ | (_)\/(_)(_|\/| |(/_ v1.0.0
36
+ / /
37
+ """
38
+ ```
39
+ then it is a generated file and the change will need to be made by us, but
40
+ submitting an issue will help us track it and keep you up-to-date. If the file
41
+ isn't generated, you can help us out even more by submitting a Pull Request with
42
+ a fix.
43
+
44
+ **Please see the [Submission Guidelines](#submit) below.**
45
+
46
+ ## <a name="feature"></a> Want a Feature?
47
+
48
+ You can request a new feature by submitting an issue to our
49
+ [GitHub Repository][github]. If you would like to implement a new feature then
50
+ consider what kind of change it is:
51
+
52
+ * **Major Changes** that you wish to contribute to the project should be
53
+ discussed first with `twilio-ruby` contributors in an issue or pull request so
54
+ that we can develop a proper solution and better coordinate our efforts,
55
+ prevent duplication of work, and help you to craft the change so that it is
56
+ successfully accepted into the project.
57
+ * **Small Changes** can be crafted and submitted to the
58
+ [GitHub Repository][github] as a Pull Request.
59
+
60
+ ## <a name="docs"></a> Want a Doc Fix?
61
+
62
+ If you want to help improve the docs in the helper library, it's a good idea to
63
+ let others know what you're working on to minimize duplication of effort. Create
64
+ a new issue (or comment on a related existing one) to let others know what
65
+ you're working on.
66
+
67
+ For large fixes, please build and test the documentation before submitting the
68
+ PR to be sure you haven't accidentally introduced layout or formatting issues.
69
+
70
+ If you want to help improve the docs at
71
+ [https://www.twilio.com/docs/libraries/ruby][docs-link], please contact
72
+ [help@twilio.com](mailto:help@twilio.com).
73
+
74
+ ## <a name="submit"></a> Submission Guidelines
75
+
76
+ ### Submitting an Issue
77
+ Before you submit your issue search the archive, maybe your question was already
78
+ answered.
79
+
80
+ If your issue appears to be a bug, and hasn't been reported, open a new issue.
81
+ Help us to maximize the effort we can spend fixing issues and adding new
82
+ features by not reporting duplicate issues. Providing the following information
83
+ will increase the chances of your issue being dealt with quickly:
84
+
85
+ * **Overview of the Issue** - if an error is being thrown a non-minified stack
86
+ trace helps
87
+ * **Motivation for or Use Case** - explain why this is a bug for you
88
+ * **`twilio-ruby` Version(s)** - is it a regression?
89
+ * **Operating System (if relevant)** - is this a problem with all systems or
90
+ only specific ones?
91
+ * **Reproduce the Error** - provide an isolated code snippet or an unambiguous
92
+ set of steps.
93
+ * **Related Issues** - has a similar issue been reported before?
94
+ * **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point
95
+ to what might be causing the problem (line of code or commit)
96
+
97
+ **If you get help, help others. Good karma rules!**
98
+
99
+ ### Submitting a Pull Request
100
+ Before you submit your pull request consider the following guidelines:
101
+
102
+ * Search [GitHub][github] for an open or closed Pull Request that relates to
103
+ your submission. You don't want to duplicate effort.
104
+ * Make your changes in a new git branch:
105
+
106
+ ```shell
107
+ git checkout -b my-fix-branch master
108
+ ```
109
+
110
+ * Create your patch, **including appropriate test cases**.
111
+ * Follow our [Coding Rules](#rules).
112
+ * Run the full `twilio-ruby` test suite (aliased by `make test`), and ensure
113
+ that all tests pass.
114
+ * Commit your changes using a descriptive commit message.
115
+
116
+ ```shell
117
+ git commit -a
118
+ ```
119
+ Note: the optional commit `-a` command line option will automatically "add"
120
+ and "rm" edited files.
121
+
122
+ * Build your changes locally to ensure all the tests pass:
123
+
124
+ ```shell
125
+ make test
126
+ ```
127
+
128
+ * Push your branch to GitHub:
129
+
130
+ ```shell
131
+ git push origin my-fix-branch
132
+ ```
133
+
134
+ In GitHub, send a pull request to `twilio-ruby:master`.
135
+ If we suggest changes, then:
136
+
137
+ * Make the required updates.
138
+ * Re-run the `twilio-ruby` test suite to ensure tests are still passing.
139
+ * Commit your changes to your branch (e.g. `my-fix-branch`).
140
+ * Push the changes to your GitHub repository (this will update your Pull Request).
141
+
142
+ That's it! Thank you for your contribution!
143
+
144
+ #### After your pull request is merged
145
+
146
+ After your pull request is merged, you can safely delete your branch and pull
147
+ the changes from the main (upstream) repository.
148
+
149
+ ## <a name="rules"></a> Coding Rules
150
+
151
+ To ensure consistency throughout the source code, keep these rules in mind as
152
+ you are working:
153
+
154
+ * All features or bug fixes **must be tested** by one or more tests.
155
+ * All classes and methods **must be documented**.
156
+
157
+ [docs-link]: https://www.twilio.com/docs/libraries/ruby
158
+ [issue-link]: https://github.com/twilio/twilio-ruby/issues/new
159
+ [github]: https://github.com/twilio/twilio-ruby
data/ISSUE_TEMPLATE.md ADDED
@@ -0,0 +1,26 @@
1
+ *Note: These issues are for bugs and feature requests for the helper libraries.
2
+ If you need help or support, please email help@twilio.com and one of our experts
3
+ will assist you!*
4
+
5
+
6
+ **Version:**
7
+
8
+ ### Code Snippet
9
+ ```ruby
10
+ # paste code here
11
+ ```
12
+
13
+ ### Exception/Log
14
+ ```
15
+ <place exception/log here>
16
+ ```
17
+
18
+ ### Steps to Reproduce
19
+ 1.
20
+ 2.
21
+ 3.
22
+
23
+
24
+ ### Feature Request
25
+ _If this is a feature request, make sure you search Issues for an existing
26
+ request before creating a new one!_
data/LICENSE.md CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
data/README.md CHANGED
@@ -11,13 +11,13 @@ A module for using the Twilio REST API and generating valid [TwiML](http://www.t
11
11
  To install using [Bundler][bundler] grab the latest stable version:
12
12
 
13
13
  ```ruby
14
- gem 'twilio-ruby', '~> 5.0.0.rc26'
14
+ gem 'twilio-ruby', '~> 5.1.0'
15
15
  ```
16
16
 
17
17
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
18
18
 
19
19
  ```bash
20
- gem install twilio-ruby -v 5.0.0.rc26
20
+ gem install twilio-ruby -v 5.1.0
21
21
  ```
22
22
 
23
23
  To build and install the development branch yourself from the latest source:
@@ -103,14 +103,13 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
103
103
  # set up
104
104
  capability = Twilio::JWT::ClientCapability.new account_sid, auth_token
105
105
 
106
-
107
106
  # allow outgoing calls to an application
108
- outgoingScope = Twilio::JWT::ClientCapability::OutgoingClientScope.new 'AP11111111111111111111111111111111'
109
- capability.add_scope(outgoingScope)
107
+ outgoing_scope = Twilio::JWT::ClientCapability::OutgoingClientScope.new 'AP11111111111111111111111111111111'
108
+ capability.add_scope(outgoing_scope)
110
109
 
111
110
  # allow incoming calls to 'andrew'
112
- incomingScope = Twilio::JWT::ClientCapability::IncomingClientScope.new 'tom'
113
- capability.add_scope(incomingScope)
111
+ incoming_scope = Twilio::JWT::ClientCapability::IncomingClientScope.new 'andrew'
112
+ capability.add_scope(incoming_scope)
114
113
 
115
114
  # generate the token string
116
115
  @token = capability.to_s
data/VERSIONS.md CHANGED
@@ -1,64 +1,36 @@
1
1
  # Versioning Strategy
2
2
 
3
- `twilio-ruby` uses a modified version of [Semantic Versioning][semver] for all
4
- changes to the helper library. It is strongly encouraged that you pin at least
5
- the major version and potentially the minor version to avoid pulling in breaking
6
- changes.
3
+ `twilio-ruby` uses a modified version of [Semantic Versioning][semver] for
4
+ all changes to the helper library. It is strongly encouraged that you pin at
5
+ least the major version and potentially the minor version to avoid pulling in
6
+ breaking changes.
7
7
 
8
8
  Semantic Versions take the form of `MAJOR`.`MINOR`.`PATCH`
9
9
 
10
- When bugs are fixed in the library in a backwards compatible way, the `PATCH`
11
- level will be incremented by one. When new features are added to the library
10
+ When bugs are fixed in the library in a backwards compatible way, the `PATCH`
11
+ level will be incremented by one. When new features are added to the library
12
12
  in a backwards compatible way, the `PATCH` level will be incremented by one.
13
13
  `PATCH` changes should _not_ break your code and are generally safe for upgrade.
14
14
 
15
- When a new large feature set comes online or a small breaking change is
16
- introduced, the `MINOR` version will be incremented by one and the `PATCH`
15
+ When a new large feature set comes online or a small breaking change is
16
+ introduced, the `MINOR` version will be incremented by one and the `PATCH`
17
17
  version reset to zero. `MINOR` changes _may_ require some amount of manual code
18
- change for upgrade. These backwards-incompatible changes will generally be limited
19
- to a small number of function signature changes.
18
+ change for upgrade. These backwards-incompatible changes will generally be
19
+ limited to a small number of function signature changes.
20
20
 
21
- The `MAJOR` version is used to indicate the family of technology represented by
22
- the helper library. It increased from `4.x.x` to `5.x.x` when Twilio moved to
23
- auto generation of helper libraries. Breaking changes that requires extensive
24
- reworking of code (like the `4.x.x` to `5.x.x` upgrade) will case the `MAJOR`
25
- version to be incremented by one, the `MINOR` and `PATCH` versions will be reset
26
- to zero. Twilio understands that this can be very disruptive, we will only
27
- introduce this type of breaking change when absolutely necessary. New `MAJOR`
28
- versions will be communicated in advance with `Release Candidates` and a
29
- schedule.
21
+ The `MAJOR` version is used to indicate the family of technology represented by
22
+ the helper library. Breaking changes that requires extensive reworking of code
23
+ will case the `MAJOR` version to be incremented by one, and the `MINOR` and
24
+ `PATCH` versions will be reset to zero. Twilio understands that this can be very
25
+ disruptive, so we will only introduce this type of breaking change when
26
+ absolutely necessary. New `MAJOR` versions will be communicated in advance with
27
+ `Release Candidates` and a schedule.
30
28
 
31
29
  ## Supported Versions
32
30
 
33
- `twilio-ruby` follows an evergreen model of support. New features and
34
- functionality will only be added to the current version. The current version -
35
- 1 will continue to be supported with bugfixes and security updates, but no new
31
+ `twilio-ruby` follows an evergreen model of support. New features and
32
+ functionality will only be added to the current version. The current version -
33
+ 1 will continue to be supported with bug fixes and security updates, but no new
36
34
  features.
37
35
 
38
- ## Edge Features (alpha Branch)
39
-
40
- Twilio frequently rolls out new features in public and private beta periods.
41
- Twilio strives to ship early and often and bake customer feedback back into our
42
- products. To support that mission, the `twilio-ruby` helper library has an
43
- `Edge` version based of the `alpha` branch. This version is identified with an
44
- `alpha` metadata tag on the version number.
45
-
46
- The way the `Edge` artifact is created is by playing the `Edge` features on top
47
- of our stable artifact. The `Edge` artifact will always have the same version
48
- number as the stable artifact it was created from, but with an `alpha` suffix.
49
-
50
- For example, `5.0.0-alpha-1` is the `5.0.0` branch with `Edge` features included.
51
- If there is a change to one of the `Edge` features we may regenerate the `Edge`
52
- artifact and release a new `5.0.0-alpha-2`, new `Edge` artifacts simply increment
53
- the number after the `alpha` suffix. All `Edge` features are considered
54
- unstable and a backwards incompatible change in an `Edge` feature will not cause
55
- any version change so you should take care when upgrading from one `alpha`
56
- version to another.
57
-
58
- Once an `Edge` feature has matured it will be considered `Mainline` and included
59
- in the stable artifact, with a `MAJOR` or `MINOR` version bump.
60
-
61
- To use an `Edge` artifact in your Ruby project you will have to make sure that
62
- you pin the artifact with `alpha` stability in your `pom.xml`.
63
-
64
- [semver]: http://semver.org/
36
+ [semver]: http://semver.org/
@@ -27,11 +27,11 @@ module Twilio
27
27
  # Unlike stream(), this operation is eager and will load `limit` records into
28
28
  # memory before returning.
29
29
  # @param [Integer] limit Upper limit for the number of records to return. stream()
30
- # guarantees to never return more than limit. Default is no limit
31
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
32
- # the default value of 50 records. If no page_size is defined
33
- # but a limit is defined, stream() will attempt to read the
34
- # limit with the most efficient page size, i.e. min(limit, 1000)
30
+ # guarantees to never return more than limit. Default is no limit
31
+ # @param [Integer] page_size Number of records to fetch per request, when
32
+ # not set will use the default value of 50 records. If no page_size is defined
33
+ # but a limit is defined, stream() will attempt to read the limit with the most
34
+ # efficient page size, i.e. min(limit, 1000)
35
35
  # @return [Array] Array of up to limit results
36
36
  def list(limit: nil, page_size: nil)
37
37
  self.stream(
@@ -44,12 +44,12 @@ module Twilio
44
44
  # Streams PublicKeyInstance records from the API as an Enumerable.
45
45
  # This operation lazily loads records as efficiently as possible until the limit
46
46
  # is reached.
47
- # @param [Integer] limit Upper limit for the number of records to return. stream()
48
- # guarantees to never return more than limit. Default is no limit
49
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
50
- # the default value of 50 records. If no page_size is defined
51
- # but a limit is defined, stream() will attempt to read the
52
- # limit with the most efficient page size, i.e. min(limit, 1000)
47
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
48
+ # guarantees to never return more than limit. Default is no limit.
49
+ # @param [Integer] page_size Number of records to fetch per request, when
50
+ # not set will use the default value of 50 records. If no page_size is defined
51
+ # but a limit is defined, stream() will attempt to read the limit with the most
52
+ # efficient page size, i.e. min(limit, 1000)
53
53
  # @return [Enumerable] Enumerable that will yield up to limit results
54
54
  def stream(limit: nil, page_size: nil)
55
55
  limits = @version.read_limits(limit, page_size)
@@ -33,11 +33,11 @@ module Twilio
33
33
  # Unlike stream(), this operation is eager and will load `limit` records into
34
34
  # memory before returning.
35
35
  # @param [Integer] limit Upper limit for the number of records to return. stream()
36
- # guarantees to never return more than limit. Default is no limit
37
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
38
- # the default value of 50 records. If no page_size is defined
39
- # but a limit is defined, stream() will attempt to read the
40
- # limit with the most efficient page size, i.e. min(limit, 1000)
36
+ # guarantees to never return more than limit. Default is no limit
37
+ # @param [Integer] page_size Number of records to fetch per request, when
38
+ # not set will use the default value of 50 records. If no page_size is defined
39
+ # but a limit is defined, stream() will attempt to read the limit with the most
40
+ # efficient page size, i.e. min(limit, 1000)
41
41
  # @return [Array] Array of up to limit results
42
42
  def list(limit: nil, page_size: nil)
43
43
  self.stream(
@@ -50,12 +50,12 @@ module Twilio
50
50
  # Streams DependentPhoneNumberInstance records from the API as an Enumerable.
51
51
  # This operation lazily loads records as efficiently as possible until the limit
52
52
  # is reached.
53
- # @param [Integer] limit Upper limit for the number of records to return. stream()
54
- # guarantees to never return more than limit. Default is no limit
55
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
56
- # the default value of 50 records. If no page_size is defined
57
- # but a limit is defined, stream() will attempt to read the
58
- # limit with the most efficient page size, i.e. min(limit, 1000)
53
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
54
+ # guarantees to never return more than limit. Default is no limit.
55
+ # @param [Integer] page_size Number of records to fetch per request, when
56
+ # not set will use the default value of 50 records. If no page_size is defined
57
+ # but a limit is defined, stream() will attempt to read the limit with the most
58
+ # efficient page size, i.e. min(limit, 1000)
59
59
  # @return [Enumerable] Enumerable that will yield up to limit results
60
60
  def stream(limit: nil, page_size: nil)
61
61
  limits = @version.read_limits(limit, page_size)