freeclimb 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +82 -0
  4. data/README.md +238 -0
  5. data/Rakefile +10 -0
  6. data/docs/AccountRequest.md +21 -0
  7. data/docs/AccountResult.md +37 -0
  8. data/docs/AccountResultAllOf.md +29 -0
  9. data/docs/ApplicationList.md +31 -0
  10. data/docs/ApplicationListAllOf.md +17 -0
  11. data/docs/ApplicationRequest.md +31 -0
  12. data/docs/ApplicationResult.md +41 -0
  13. data/docs/ApplicationResultAllOf.md +33 -0
  14. data/docs/AvailableNumber.md +27 -0
  15. data/docs/AvailableNumberList.md +31 -0
  16. data/docs/AvailableNumberListAllOf.md +17 -0
  17. data/docs/BuyIncomingNumberRequest.md +23 -0
  18. data/docs/CallList.md +31 -0
  19. data/docs/CallListAllOf.md +17 -0
  20. data/docs/CallResult.md +53 -0
  21. data/docs/CallResultAllOf.md +45 -0
  22. data/docs/ConferenceList.md +31 -0
  23. data/docs/ConferenceListAllOf.md +17 -0
  24. data/docs/ConferenceParticipantList.md +31 -0
  25. data/docs/ConferenceParticipantListAllOf.md +17 -0
  26. data/docs/ConferenceParticipantResult.md +35 -0
  27. data/docs/ConferenceParticipantResultAllOf.md +27 -0
  28. data/docs/ConferenceResult.md +43 -0
  29. data/docs/ConferenceResultAllOf.md +35 -0
  30. data/docs/CreateConferenceRequest.md +27 -0
  31. data/docs/DefaultApi.md +2504 -0
  32. data/docs/DequeueMemberRequest.md +17 -0
  33. data/docs/FilterLogsRequest.md +19 -0
  34. data/docs/IncomingNumberList.md +31 -0
  35. data/docs/IncomingNumberListAllOf.md +17 -0
  36. data/docs/IncomingNumberRequest.md +21 -0
  37. data/docs/IncomingNumberResult.md +41 -0
  38. data/docs/IncomingNumberResultAllOf.md +33 -0
  39. data/docs/LogList.md +31 -0
  40. data/docs/LogListAllOf.md +17 -0
  41. data/docs/LogResult.md +29 -0
  42. data/docs/MakeCallRequest.md +33 -0
  43. data/docs/MessageRequest.md +35 -0
  44. data/docs/MessageRequestAllOf.md +27 -0
  45. data/docs/MessageResult.md +39 -0
  46. data/docs/MessageResultAllOf.md +31 -0
  47. data/docs/MessagesList.md +31 -0
  48. data/docs/MessagesListAllOf.md +17 -0
  49. data/docs/MutableResourceModel.md +23 -0
  50. data/docs/PaginationModel.md +29 -0
  51. data/docs/Percl.md +697 -0
  52. data/docs/QueueList.md +31 -0
  53. data/docs/QueueListAllOf.md +17 -0
  54. data/docs/QueueMember.md +25 -0
  55. data/docs/QueueMemberList.md +31 -0
  56. data/docs/QueueMemberListAllOf.md +17 -0
  57. data/docs/QueueRequest.md +21 -0
  58. data/docs/QueueResult.md +37 -0
  59. data/docs/QueueResultAllOf.md +29 -0
  60. data/docs/RecordingList.md +31 -0
  61. data/docs/RecordingListAllOf.md +17 -0
  62. data/docs/RecordingResult.md +33 -0
  63. data/docs/RecordingResultAllOf.md +25 -0
  64. data/docs/UpdateCallRequest.md +19 -0
  65. data/docs/UpdateConferenceParticipantRequest.md +21 -0
  66. data/docs/UpdateConferenceRequest.md +23 -0
  67. data/freeclimb.gemspec +39 -0
  68. data/git_push.sh +58 -0
  69. data/lib/freeclimb.rb +99 -0
  70. data/lib/freeclimb/api/default_api.rb +2845 -0
  71. data/lib/freeclimb/api_client.rb +386 -0
  72. data/lib/freeclimb/api_error.rb +57 -0
  73. data/lib/freeclimb/configuration.rb +248 -0
  74. data/lib/freeclimb/models/account_request.rb +227 -0
  75. data/lib/freeclimb/models/account_result.rb +349 -0
  76. data/lib/freeclimb/models/account_result_all_of.rb +301 -0
  77. data/lib/freeclimb/models/application_list.rb +286 -0
  78. data/lib/freeclimb/models/application_list_all_of.rb +208 -0
  79. data/lib/freeclimb/models/application_request.rb +277 -0
  80. data/lib/freeclimb/models/application_result.rb +335 -0
  81. data/lib/freeclimb/models/application_result_all_of.rb +287 -0
  82. data/lib/freeclimb/models/available_number.rb +257 -0
  83. data/lib/freeclimb/models/available_number_list.rb +286 -0
  84. data/lib/freeclimb/models/available_number_list_all_of.rb +208 -0
  85. data/lib/freeclimb/models/buy_incoming_number_request.rb +242 -0
  86. data/lib/freeclimb/models/call_list.rb +286 -0
  87. data/lib/freeclimb/models/call_list_all_of.rb +208 -0
  88. data/lib/freeclimb/models/call_result.rb +429 -0
  89. data/lib/freeclimb/models/call_result_all_of.rb +381 -0
  90. data/lib/freeclimb/models/conference_list.rb +286 -0
  91. data/lib/freeclimb/models/conference_list_all_of.rb +208 -0
  92. data/lib/freeclimb/models/conference_participant_list.rb +286 -0
  93. data/lib/freeclimb/models/conference_participant_list_all_of.rb +208 -0
  94. data/lib/freeclimb/models/conference_participant_result.rb +305 -0
  95. data/lib/freeclimb/models/conference_participant_result_all_of.rb +257 -0
  96. data/lib/freeclimb/models/conference_result.rb +391 -0
  97. data/lib/freeclimb/models/conference_result_all_of.rb +343 -0
  98. data/lib/freeclimb/models/create_conference_request.rb +293 -0
  99. data/lib/freeclimb/models/dequeue_member_request.rb +207 -0
  100. data/lib/freeclimb/models/filter_logs_request.rb +222 -0
  101. data/lib/freeclimb/models/incoming_number_list.rb +286 -0
  102. data/lib/freeclimb/models/incoming_number_list_all_of.rb +208 -0
  103. data/lib/freeclimb/models/incoming_number_request.rb +227 -0
  104. data/lib/freeclimb/models/incoming_number_result.rb +335 -0
  105. data/lib/freeclimb/models/incoming_number_result_all_of.rb +287 -0
  106. data/lib/freeclimb/models/log_list.rb +286 -0
  107. data/lib/freeclimb/models/log_list_all_of.rb +208 -0
  108. data/lib/freeclimb/models/log_result.rb +301 -0
  109. data/lib/freeclimb/models/make_call_request.rb +302 -0
  110. data/lib/freeclimb/models/message_request.rb +320 -0
  111. data/lib/freeclimb/models/message_request_all_of.rb +272 -0
  112. data/lib/freeclimb/models/message_result.rb +359 -0
  113. data/lib/freeclimb/models/message_result_all_of.rb +311 -0
  114. data/lib/freeclimb/models/messages_list.rb +287 -0
  115. data/lib/freeclimb/models/messages_list_all_of.rb +209 -0
  116. data/lib/freeclimb/models/mutable_resource_model.rb +237 -0
  117. data/lib/freeclimb/models/pagination_model.rb +267 -0
  118. data/lib/freeclimb/models/queue_list.rb +286 -0
  119. data/lib/freeclimb/models/queue_list_all_of.rb +208 -0
  120. data/lib/freeclimb/models/queue_member.rb +247 -0
  121. data/lib/freeclimb/models/queue_member_list.rb +286 -0
  122. data/lib/freeclimb/models/queue_member_list_all_of.rb +208 -0
  123. data/lib/freeclimb/models/queue_request.rb +227 -0
  124. data/lib/freeclimb/models/queue_result.rb +315 -0
  125. data/lib/freeclimb/models/queue_result_all_of.rb +267 -0
  126. data/lib/freeclimb/models/recording_list.rb +286 -0
  127. data/lib/freeclimb/models/recording_list_all_of.rb +208 -0
  128. data/lib/freeclimb/models/recording_result.rb +295 -0
  129. data/lib/freeclimb/models/recording_result_all_of.rb +247 -0
  130. data/lib/freeclimb/models/update_call_request.rb +256 -0
  131. data/lib/freeclimb/models/update_conference_participant_request.rb +227 -0
  132. data/lib/freeclimb/models/update_conference_request.rb +273 -0
  133. data/lib/freeclimb/version.rb +15 -0
  134. data/lib/percl/calls.rb +43 -0
  135. data/lib/percl/conference_participants.rb +40 -0
  136. data/lib/percl/conferences.rb +21 -0
  137. data/lib/percl/ivr.rb +63 -0
  138. data/lib/percl/jsonable.rb +23 -0
  139. data/lib/percl/percl.rb +29 -0
  140. data/lib/percl/queue_members.rb +15 -0
  141. data/lib/percl/recordings.rb +15 -0
  142. data/lib/percl/sms.rb +11 -0
  143. data/spec/api/default_api_spec.rb +1151 -0
  144. data/spec/api/web_mocks.rb +473 -0
  145. data/spec/api_client_spec.rb +226 -0
  146. data/spec/configuration_spec.rb +34 -0
  147. data/spec/models/account_request_spec.rb +33 -0
  148. data/spec/models/account_result_spec.rb +33 -0
  149. data/spec/models/application_list_spec.rb +33 -0
  150. data/spec/models/application_request_spec.rb +33 -0
  151. data/spec/models/application_result_spec.rb +33 -0
  152. data/spec/models/available_number_list_spec.rb +34 -0
  153. data/spec/models/available_number_spec.rb +33 -0
  154. data/spec/models/buy_incoming_number_request_spec.rb +33 -0
  155. data/spec/models/call_list_spec.rb +34 -0
  156. data/spec/models/call_result_spec.rb +34 -0
  157. data/spec/models/conference_list_spec.rb +33 -0
  158. data/spec/models/conference_participant_list_spec.rb +33 -0
  159. data/spec/models/conference_participant_result_spec.rb +33 -0
  160. data/spec/models/conference_result_spec.rb +34 -0
  161. data/spec/models/create_conference_request_spec.rb +34 -0
  162. data/spec/models/dequeue_member_request_spec.rb +34 -0
  163. data/spec/models/filter_logs_request_spec.rb +33 -0
  164. data/spec/models/incoming_number_list_spec.rb +34 -0
  165. data/spec/models/incoming_number_request_spec.rb +33 -0
  166. data/spec/models/incoming_number_result_spec.rb +34 -0
  167. data/spec/models/log_list_spec.rb +33 -0
  168. data/spec/models/log_result_spec.rb +33 -0
  169. data/spec/models/make_call_request_spec.rb +33 -0
  170. data/spec/models/message_request_spec.rb +34 -0
  171. data/spec/models/message_result_spec.rb +33 -0
  172. data/spec/models/messages_list_spec.rb +33 -0
  173. data/spec/models/mutable_resource_model_spec.rb +34 -0
  174. data/spec/models/pagination_model_spec.rb +33 -0
  175. data/spec/models/queue_list_spec.rb +34 -0
  176. data/spec/models/queue_member_list_spec.rb +33 -0
  177. data/spec/models/queue_member_spec.rb +34 -0
  178. data/spec/models/queue_request_spec.rb +34 -0
  179. data/spec/models/queue_result_spec.rb +33 -0
  180. data/spec/models/recording_list_spec.rb +33 -0
  181. data/spec/models/recording_result_spec.rb +33 -0
  182. data/spec/models/update_call_request_spec.rb +33 -0
  183. data/spec/models/update_conference_participant_request_spec.rb +33 -0
  184. data/spec/models/update_conference_request_spec.rb +33 -0
  185. data/spec/percl/calls_spec.rb +111 -0
  186. data/spec/percl/conference_participant_spec.rb +96 -0
  187. data/spec/percl/conference_spec.rb +46 -0
  188. data/spec/percl/ivr_spec.rb +155 -0
  189. data/spec/percl/jsonable_spec.rb +28 -0
  190. data/spec/percl/percl_spec.rb +31 -0
  191. data/spec/percl/queue_members_spec.rb +35 -0
  192. data/spec/percl/recordings_spec.rb +32 -0
  193. data/spec/percl/sms_spec.rb +29 -0
  194. data/spec/spec_helper.rb +114 -0
  195. metadata +355 -0
@@ -0,0 +1,155 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'ivr' do
4
+ describe 'PlayEarlyMedia' do
5
+ describe 'initialize' do
6
+ before do
7
+ @instance = Percl::PlayEarlyMedia.new('MOCK_FILE')
8
+ end
9
+ it 'should set file' do
10
+ file = @instance.instance_variable_get(:@file)
11
+ expect(file).to eq('MOCK_FILE')
12
+ end
13
+ end
14
+ end
15
+ describe 'Say' do
16
+ describe 'initialize' do
17
+ before do
18
+ @instance = Percl::Say.new('MOCK_RESPONSE')
19
+ end
20
+ it 'should set text' do
21
+ text = @instance.instance_variable_get :@text
22
+ expect(text).to eq('MOCK_RESPONSE')
23
+ end
24
+ end
25
+ describe 'instance variables' do
26
+ before do
27
+ @instance = Percl::Say.new('MOCK_RESPONSE')
28
+ end
29
+ it 'should have language' do
30
+ expect(@instance).to respond_to(:language)
31
+ end
32
+ it 'should have loop' do
33
+ expect(@instance).to respond_to(:loop)
34
+ end
35
+ it 'should have conferenceId' do
36
+ expect(@instance).to respond_to(:conferenceId)
37
+ end
38
+ it 'should have enforcePCI' do
39
+ expect(@instance).to respond_to(:enforcePCI)
40
+ end
41
+ end
42
+ end
43
+ describe 'Play' do
44
+ describe 'initialize' do
45
+ before do
46
+ @instance = Percl::Play.new('MOCK_FILE')
47
+ end
48
+ it 'should have file' do
49
+ file = @instance.instance_variable_get :@file
50
+ expect(file).to eq('MOCK_FILE')
51
+ end
52
+ end
53
+ describe 'instance variables' do
54
+ before do
55
+ @instance = Percl::Play.new('MOCK_FILE')
56
+ end
57
+ it 'should have loop' do
58
+ expect(@instance).to respond_to(:loop)
59
+ end
60
+ it 'should have conferenceId' do
61
+ expect(@instance).to respond_to(:conferenceId)
62
+ end
63
+ end
64
+ end
65
+ describe 'GetDigits' do
66
+ describe 'initialize' do
67
+ before do
68
+ @instance = Percl::GetDigits.new('MOCK_ACTION_URL')
69
+ end
70
+ it 'should set actionUrl' do
71
+ actionUrl = @instance.instance_variable_get :@actionUrl
72
+ expect(actionUrl).to eq('MOCK_ACTION_URL')
73
+ end
74
+ end
75
+ describe 'instance variables' do
76
+ before do
77
+ @instance = Percl::GetDigits.new('MOCK_ACTION_URL')
78
+ end
79
+ it 'should have initialTimeoutMs' do
80
+ expect(@instance).to respond_to(:initialTimeoutMs)
81
+ end
82
+ it 'should have digitTimeoutMs' do
83
+ expect(@instance).to respond_to(:digitTimeoutMs)
84
+ end
85
+ it 'should have finishOnKey' do
86
+ expect(@instance).to respond_to(:finishOnKey)
87
+ end
88
+ it 'should have minDigits' do
89
+ expect(@instance).to respond_to(:minDigits)
90
+ end
91
+ it 'should have maxDigits' do
92
+ expect(@instance).to respond_to(:maxDigits)
93
+ end
94
+ it 'should have flushBuffer' do
95
+ expect(@instance).to respond_to(:flushBuffer)
96
+ end
97
+ it 'should have prompts' do
98
+ expect(@instance).to respond_to(:prompts)
99
+ end
100
+ it 'should have enforePCI' do
101
+ expect(@instance).to respond_to(:enforcePCI)
102
+ end
103
+ end
104
+ end
105
+ describe 'GetSpeech' do
106
+ describe 'initialize' do
107
+ before do
108
+ @instance = Percl::GetSpeech.new('MOCK_ACTION_URL', 'MOCK_GRAMMAR_FILE')
109
+ end
110
+ it 'should set actionUrl' do
111
+ actionUrl = @instance.instance_variable_get :@actionUrl
112
+ expect(actionUrl).to eq('MOCK_ACTION_URL')
113
+ end
114
+ it 'should set grammarFile' do
115
+ grammarFile = @instance.instance_variable_get :@grammarFile
116
+ expect(grammarFile).to eq('MOCK_GRAMMAR_FILE')
117
+ end
118
+ end
119
+ describe 'instance variables' do
120
+ before do
121
+ @instance = Percl::GetSpeech.new('MOCK_ACTION_URL', 'MOCK_GRAMAR_FILE')
122
+ end
123
+ it 'should have grammarType' do
124
+ expect(@instance).to respond_to(:grammarType)
125
+ end
126
+ it 'should have grammarRule' do
127
+ expect(@instance).to respond_to(:grammarRule)
128
+ end
129
+ it 'should have playBeep' do
130
+ expect(@instance).to respond_to(:playBeep)
131
+ end
132
+ it 'should have prompts' do
133
+ expect(@instance).to respond_to(:prompts)
134
+ end
135
+ it 'should have noInputTimeoutMs' do
136
+ expect(@instance).to respond_to(:noInputTimeoutMs)
137
+ end
138
+ it 'should have confidenceThreshold' do
139
+ expect(@instance).to respond_to(:confidenceThreshold)
140
+ end
141
+ it 'should have sensitivityLevel' do
142
+ expect(@instance).to respond_to(:sensitivityLevel)
143
+ end
144
+ it 'should have enforePCI' do
145
+ expect(@instance).to respond_to(:enforcePCI)
146
+ end
147
+ it 'should have speechCompleteTimeoutMs' do
148
+ expect(@instance).to respond_to(:speechCompleteTimeoutMs)
149
+ end
150
+ it 'should have speechIncompleteTimeoutMs' do
151
+ expect(@instance).to respond_to(:speechIncompleteTimeoutMs)
152
+ end
153
+ end
154
+ end
155
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'JSONable' do
4
+ describe 'as_json' do
5
+ describe 'one level object' do
6
+ it 'stringfies the Percl script' do
7
+ script = Percl::Script.new
8
+ say = Percl::Say.new('MOCK_RESPONSE')
9
+ script.add(say)
10
+ json = script.to_json
11
+ expected_json = "[{\"Say\":{\"text\":\"MOCK_RESPONSE\"}}]"
12
+ expect(json).to eq(expected_json)
13
+ end
14
+ end
15
+ describe 'multi-level object' do
16
+ it 'stringfies the Percl script' do
17
+ script = Percl::Script.new
18
+ getDigits = Percl::GetDigits.new('MOCK_ACTION_URL')
19
+ say = Percl::Say.new('MOCK_RESPONSE')
20
+ getDigits.prompts = [say]
21
+ script.add(getDigits)
22
+ json = script.to_json
23
+ expected_json = "[{\"GetDigits\":{\"actionUrl\":\"MOCK_ACTION_URL\",\"prompts\":[{\"Say\":{\"text\":\"MOCK_RESPONSE\"}}]}}]"
24
+ expect(json).to eq(expected_json)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'percl' do
4
+ describe 'script' do
5
+ describe 'add' do
6
+ it 'should add argument to commands array' do
7
+ script = Percl::Script.new
8
+ script.add('MOCK_PERCL')
9
+ commands = script.instance_variable_get :@commands
10
+ expect(commands).to match_array(['MOCK_PERCL'])
11
+ end
12
+ end
13
+ describe 'initialize' do
14
+ it 'should create an empty commands array' do
15
+ script = Percl::Script.new
16
+ commands = script.instance_variable_get :@commands
17
+ expect(commands).to match_array([])
18
+ end
19
+ end
20
+ describe 'to_json' do
21
+ it 'should return commands as json string' do
22
+ expected = "[{\"Say\":{\"text\":\"MOCK SAY COMMAND\"}}]"
23
+ say = Percl::Say.new('MOCK SAY COMMAND')
24
+ script = Percl::Script.new
25
+ script.add(say)
26
+ json = script.to_json
27
+ expect(json).to eq(expected)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Queue Members' do
4
+ describe 'Enqueue' do
5
+ describe 'initialize' do
6
+ before do
7
+ @instance = Percl::Enqueue.new('MOCK_QUEUE_ID', 'MOCK_WAIT_URL', 'MOCK_ACTION_URL')
8
+ end
9
+ it 'should set queueId' do
10
+ queueId = @instance.instance_variable_get :@queueId
11
+ expect(queueId).to eq('MOCK_QUEUE_ID')
12
+ end
13
+ it 'should set waitUrl' do
14
+ waitUrl = @instance.instance_variable_get :@waitUrl
15
+ end
16
+ it 'should set actionUrl' do
17
+ actionUrl = @instance.instance_variable_get :@actionUrl
18
+ end
19
+ end
20
+ describe 'instance variables' do
21
+ before do
22
+ @instance = Percl::Enqueue.new('MOCK_QUEUE_ID', 'MOCK_WAIT_URL', 'MOCK_ACTION_URL')
23
+ end
24
+ it 'should have notificationUrl' do
25
+ expect(@instance).to respond_to(:notificationUrl)
26
+ end
27
+ end
28
+ end
29
+ describe 'Dequeue' do
30
+ it 'should instantiate' do
31
+ instance = Percl::Dequeue.new
32
+ expect(instance).to be_truthy
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Recordings' do
4
+ describe 'RecordUtterance' do
5
+ describe 'initialize' do
6
+ before do
7
+ @instance = Percl::RecordUtterance.new('MOCK_ACTION_URL')
8
+ end
9
+ it 'should set actionUrl' do
10
+ actionUrl = @instance.instance_variable_get :@actionUrl
11
+ expect(actionUrl).to eq('MOCK_ACTION_URL')
12
+ end
13
+ end
14
+ describe 'instance variables' do
15
+ before do
16
+ @instance = Percl::RecordUtterance.new('MOCK_ACTION_URL')
17
+ end
18
+ it 'should have silenceTimeoutMs' do
19
+ expect(@instance).to respond_to(:silenceTimeoutMs)
20
+ end
21
+ it 'should have finishOnKey' do
22
+ expect(@instance).to respond_to(:finishOnKey)
23
+ end
24
+ it 'should have maxLengthSec' do
25
+ expect(@instance).to respond_to(:maxLengthSec)
26
+ end
27
+ it 'should have autoStart' do
28
+ expect(@instance).to respond_to(:autoStart)
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'SMS' do
4
+ describe 'initialize' do
5
+ before do
6
+ @instance = Percl::Sms.new('MOCK_TO', 'MOCK_FROM', 'MOCK_TEXT')
7
+ end
8
+ it 'should set to' do
9
+ to = @instance.instance_variable_get :@to
10
+ expect(to).to eq('MOCK_TO')
11
+ end
12
+ it 'should set from' do
13
+ from = @instance.instance_variable_get :@from
14
+ expect(from).to eq('MOCK_FROM')
15
+ end
16
+ it 'should set text' do
17
+ text = @instance.instance_variable_get :@text
18
+ expect(text).to eq('MOCK_TEXT')
19
+ end
20
+ end
21
+ describe 'instance variables' do
22
+ before do
23
+ @instance = Percl::Sms.new('MOCK_TO', 'MOCK_FROM', 'MOCK_TEXT')
24
+ end
25
+ it 'should have notificationUrl' do
26
+ expect(@instance).to respond_to(:notificationUrl)
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,114 @@
1
+ =begin
2
+ #FreeClimb API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ # load the gem
14
+ require 'freeclimb'
15
+ # The following was generated by the `rspec --init` command. Conventionally, all
16
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
17
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
18
+ # this file to always be loaded, without a need to explicitly require it in any
19
+ # files.
20
+ #
21
+ # Given that it is always loaded, you are encouraged to keep this file as
22
+ # light-weight as possible. Requiring heavyweight dependencies from this file
23
+ # will add to the boot time of your test suite on EVERY test run, even for an
24
+ # individual file that may not need all of that loaded. Instead, consider making
25
+ # a separate helper file that requires the additional dependencies and performs
26
+ # the additional setup, and require it from the spec files that actually need
27
+ # it.
28
+ #
29
+ # The `.rspec` file also contains a few flags that are not defaults but that
30
+ # users commonly want.
31
+ #
32
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
33
+ RSpec.configure do |config|
34
+ # rspec-expectations config goes here. You can use an alternate
35
+ # assertion/expectation library such as wrong or the stdlib/minitest
36
+ # assertions if you prefer.
37
+ config.expect_with :rspec do |expectations|
38
+ # This option will default to `true` in RSpec 4. It makes the `description`
39
+ # and `failure_message` of custom matchers include text for helper methods
40
+ # defined using `chain`, e.g.:
41
+ # be_bigger_than(2).and_smaller_than(4).description
42
+ # # => "be bigger than 2 and smaller than 4"
43
+ # ...rather than:
44
+ # # => "be bigger than 2"
45
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
46
+ end
47
+
48
+ # rspec-mocks config goes here. You can use an alternate test double
49
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
50
+ config.mock_with :rspec do |mocks|
51
+ # Prevents you from mocking or stubbing a method that does not exist on
52
+ # a real object. This is generally recommended, and will default to
53
+ # `true` in RSpec 4.
54
+ mocks.verify_partial_doubles = true
55
+ end
56
+
57
+ # The settings below are suggested to provide a good initial experience
58
+ # with RSpec, but feel free to customize to your heart's content.
59
+ =begin
60
+ # These two settings work together to allow you to limit a spec run
61
+ # to individual examples or groups you care about by tagging them with
62
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
63
+ # get run.
64
+ config.filter_run :focus
65
+ config.run_all_when_everything_filtered = true
66
+
67
+ # Allows RSpec to persist some state between runs in order to support
68
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
69
+ # you configure your source control system to ignore this file.
70
+ config.example_status_persistence_file_path = "spec/examples.txt"
71
+
72
+ # Limits the available syntax to the non-monkey patched syntax that is
73
+ # recommended. For more details, see:
74
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
75
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
76
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
77
+ config.disable_monkey_patching!
78
+
79
+ # This setting enables warnings. It's recommended, but in some cases may
80
+ # be too noisy due to issues in dependencies.
81
+ config.warnings = true
82
+
83
+ # Many RSpec users commonly either run the entire suite or an individual
84
+ # file, and it's useful to allow more verbose output when running an
85
+ # individual spec file.
86
+ if config.files_to_run.one?
87
+ # Use the documentation formatter for detailed output,
88
+ # unless a formatter has already been configured
89
+ # (e.g. via a command-line flag).
90
+ config.default_formatter = 'doc'
91
+ end
92
+
93
+ # Print the 10 slowest examples and example groups at the
94
+ # end of the spec run, to help surface which specs are running
95
+ # particularly slow.
96
+ config.profile_examples = 10
97
+
98
+ # Run specs in random order to surface order dependencies. If you find an
99
+ # order dependency and want to debug it, you can fix the order by providing
100
+ # the seed, which is printed after each run.
101
+ # --seed 1234
102
+ config.order = :random
103
+
104
+ # Seed global randomization in this process using the `--seed` CLI option.
105
+ # Setting this allows you to use `--seed` to deterministically reproduce
106
+ # test failures related to randomization by passing the same `--seed` value
107
+ # as the one that triggered the failure.
108
+ Kernel.srand config.seed
109
+ =end
110
+ end
111
+
112
+ require 'webmock/rspec'
113
+ include WebMock::API
114
+ WebMock.disable_net_connect!(:allow_localhost => true)
metadata ADDED
@@ -0,0 +1,355 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: freeclimb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - OpenAPI-Generator
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: typhoeus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: json
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.1.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.1'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.1.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.1'
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 3.6.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.6'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 3.6.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.6'
73
+ description: 'FreeClimb is a cloud-based application programming interface (API) that
74
+ puts the power of the Vail platform in your hands. FreeClimb simplifies the process
75
+ of creating applications that can use a full range of telephony features without
76
+ requiring specialized or on-site telephony equipment. Using the FreeClimb REST API
77
+ to write applications is easy! You have the option to use the language of your choice
78
+ or hit the API directly. Your application can execute a command by issuing a RESTful
79
+ request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb
80
+ REST API is: /apiserver. FreeClimb authenticates and processes your request.'
81
+ email:
82
+ - support@freeclimb.com
83
+ executables: []
84
+ extensions: []
85
+ extra_rdoc_files: []
86
+ files:
87
+ - Gemfile
88
+ - Gemfile.lock
89
+ - README.md
90
+ - Rakefile
91
+ - docs/AccountRequest.md
92
+ - docs/AccountResult.md
93
+ - docs/AccountResultAllOf.md
94
+ - docs/ApplicationList.md
95
+ - docs/ApplicationListAllOf.md
96
+ - docs/ApplicationRequest.md
97
+ - docs/ApplicationResult.md
98
+ - docs/ApplicationResultAllOf.md
99
+ - docs/AvailableNumber.md
100
+ - docs/AvailableNumberList.md
101
+ - docs/AvailableNumberListAllOf.md
102
+ - docs/BuyIncomingNumberRequest.md
103
+ - docs/CallList.md
104
+ - docs/CallListAllOf.md
105
+ - docs/CallResult.md
106
+ - docs/CallResultAllOf.md
107
+ - docs/ConferenceList.md
108
+ - docs/ConferenceListAllOf.md
109
+ - docs/ConferenceParticipantList.md
110
+ - docs/ConferenceParticipantListAllOf.md
111
+ - docs/ConferenceParticipantResult.md
112
+ - docs/ConferenceParticipantResultAllOf.md
113
+ - docs/ConferenceResult.md
114
+ - docs/ConferenceResultAllOf.md
115
+ - docs/CreateConferenceRequest.md
116
+ - docs/DefaultApi.md
117
+ - docs/DequeueMemberRequest.md
118
+ - docs/FilterLogsRequest.md
119
+ - docs/IncomingNumberList.md
120
+ - docs/IncomingNumberListAllOf.md
121
+ - docs/IncomingNumberRequest.md
122
+ - docs/IncomingNumberResult.md
123
+ - docs/IncomingNumberResultAllOf.md
124
+ - docs/LogList.md
125
+ - docs/LogListAllOf.md
126
+ - docs/LogResult.md
127
+ - docs/MakeCallRequest.md
128
+ - docs/MessageRequest.md
129
+ - docs/MessageRequestAllOf.md
130
+ - docs/MessageResult.md
131
+ - docs/MessageResultAllOf.md
132
+ - docs/MessagesList.md
133
+ - docs/MessagesListAllOf.md
134
+ - docs/MutableResourceModel.md
135
+ - docs/PaginationModel.md
136
+ - docs/Percl.md
137
+ - docs/QueueList.md
138
+ - docs/QueueListAllOf.md
139
+ - docs/QueueMember.md
140
+ - docs/QueueMemberList.md
141
+ - docs/QueueMemberListAllOf.md
142
+ - docs/QueueRequest.md
143
+ - docs/QueueResult.md
144
+ - docs/QueueResultAllOf.md
145
+ - docs/RecordingList.md
146
+ - docs/RecordingListAllOf.md
147
+ - docs/RecordingResult.md
148
+ - docs/RecordingResultAllOf.md
149
+ - docs/UpdateCallRequest.md
150
+ - docs/UpdateConferenceParticipantRequest.md
151
+ - docs/UpdateConferenceRequest.md
152
+ - freeclimb.gemspec
153
+ - git_push.sh
154
+ - lib/freeclimb.rb
155
+ - lib/freeclimb/api/default_api.rb
156
+ - lib/freeclimb/api_client.rb
157
+ - lib/freeclimb/api_error.rb
158
+ - lib/freeclimb/configuration.rb
159
+ - lib/freeclimb/models/account_request.rb
160
+ - lib/freeclimb/models/account_result.rb
161
+ - lib/freeclimb/models/account_result_all_of.rb
162
+ - lib/freeclimb/models/application_list.rb
163
+ - lib/freeclimb/models/application_list_all_of.rb
164
+ - lib/freeclimb/models/application_request.rb
165
+ - lib/freeclimb/models/application_result.rb
166
+ - lib/freeclimb/models/application_result_all_of.rb
167
+ - lib/freeclimb/models/available_number.rb
168
+ - lib/freeclimb/models/available_number_list.rb
169
+ - lib/freeclimb/models/available_number_list_all_of.rb
170
+ - lib/freeclimb/models/buy_incoming_number_request.rb
171
+ - lib/freeclimb/models/call_list.rb
172
+ - lib/freeclimb/models/call_list_all_of.rb
173
+ - lib/freeclimb/models/call_result.rb
174
+ - lib/freeclimb/models/call_result_all_of.rb
175
+ - lib/freeclimb/models/conference_list.rb
176
+ - lib/freeclimb/models/conference_list_all_of.rb
177
+ - lib/freeclimb/models/conference_participant_list.rb
178
+ - lib/freeclimb/models/conference_participant_list_all_of.rb
179
+ - lib/freeclimb/models/conference_participant_result.rb
180
+ - lib/freeclimb/models/conference_participant_result_all_of.rb
181
+ - lib/freeclimb/models/conference_result.rb
182
+ - lib/freeclimb/models/conference_result_all_of.rb
183
+ - lib/freeclimb/models/create_conference_request.rb
184
+ - lib/freeclimb/models/dequeue_member_request.rb
185
+ - lib/freeclimb/models/filter_logs_request.rb
186
+ - lib/freeclimb/models/incoming_number_list.rb
187
+ - lib/freeclimb/models/incoming_number_list_all_of.rb
188
+ - lib/freeclimb/models/incoming_number_request.rb
189
+ - lib/freeclimb/models/incoming_number_result.rb
190
+ - lib/freeclimb/models/incoming_number_result_all_of.rb
191
+ - lib/freeclimb/models/log_list.rb
192
+ - lib/freeclimb/models/log_list_all_of.rb
193
+ - lib/freeclimb/models/log_result.rb
194
+ - lib/freeclimb/models/make_call_request.rb
195
+ - lib/freeclimb/models/message_request.rb
196
+ - lib/freeclimb/models/message_request_all_of.rb
197
+ - lib/freeclimb/models/message_result.rb
198
+ - lib/freeclimb/models/message_result_all_of.rb
199
+ - lib/freeclimb/models/messages_list.rb
200
+ - lib/freeclimb/models/messages_list_all_of.rb
201
+ - lib/freeclimb/models/mutable_resource_model.rb
202
+ - lib/freeclimb/models/pagination_model.rb
203
+ - lib/freeclimb/models/queue_list.rb
204
+ - lib/freeclimb/models/queue_list_all_of.rb
205
+ - lib/freeclimb/models/queue_member.rb
206
+ - lib/freeclimb/models/queue_member_list.rb
207
+ - lib/freeclimb/models/queue_member_list_all_of.rb
208
+ - lib/freeclimb/models/queue_request.rb
209
+ - lib/freeclimb/models/queue_result.rb
210
+ - lib/freeclimb/models/queue_result_all_of.rb
211
+ - lib/freeclimb/models/recording_list.rb
212
+ - lib/freeclimb/models/recording_list_all_of.rb
213
+ - lib/freeclimb/models/recording_result.rb
214
+ - lib/freeclimb/models/recording_result_all_of.rb
215
+ - lib/freeclimb/models/update_call_request.rb
216
+ - lib/freeclimb/models/update_conference_participant_request.rb
217
+ - lib/freeclimb/models/update_conference_request.rb
218
+ - lib/freeclimb/version.rb
219
+ - lib/percl/calls.rb
220
+ - lib/percl/conference_participants.rb
221
+ - lib/percl/conferences.rb
222
+ - lib/percl/ivr.rb
223
+ - lib/percl/jsonable.rb
224
+ - lib/percl/percl.rb
225
+ - lib/percl/queue_members.rb
226
+ - lib/percl/recordings.rb
227
+ - lib/percl/sms.rb
228
+ - spec/api/default_api_spec.rb
229
+ - spec/api/web_mocks.rb
230
+ - spec/api_client_spec.rb
231
+ - spec/configuration_spec.rb
232
+ - spec/models/account_request_spec.rb
233
+ - spec/models/account_result_spec.rb
234
+ - spec/models/application_list_spec.rb
235
+ - spec/models/application_request_spec.rb
236
+ - spec/models/application_result_spec.rb
237
+ - spec/models/available_number_list_spec.rb
238
+ - spec/models/available_number_spec.rb
239
+ - spec/models/buy_incoming_number_request_spec.rb
240
+ - spec/models/call_list_spec.rb
241
+ - spec/models/call_result_spec.rb
242
+ - spec/models/conference_list_spec.rb
243
+ - spec/models/conference_participant_list_spec.rb
244
+ - spec/models/conference_participant_result_spec.rb
245
+ - spec/models/conference_result_spec.rb
246
+ - spec/models/create_conference_request_spec.rb
247
+ - spec/models/dequeue_member_request_spec.rb
248
+ - spec/models/filter_logs_request_spec.rb
249
+ - spec/models/incoming_number_list_spec.rb
250
+ - spec/models/incoming_number_request_spec.rb
251
+ - spec/models/incoming_number_result_spec.rb
252
+ - spec/models/log_list_spec.rb
253
+ - spec/models/log_result_spec.rb
254
+ - spec/models/make_call_request_spec.rb
255
+ - spec/models/message_request_spec.rb
256
+ - spec/models/message_result_spec.rb
257
+ - spec/models/messages_list_spec.rb
258
+ - spec/models/mutable_resource_model_spec.rb
259
+ - spec/models/pagination_model_spec.rb
260
+ - spec/models/queue_list_spec.rb
261
+ - spec/models/queue_member_list_spec.rb
262
+ - spec/models/queue_member_spec.rb
263
+ - spec/models/queue_request_spec.rb
264
+ - spec/models/queue_result_spec.rb
265
+ - spec/models/recording_list_spec.rb
266
+ - spec/models/recording_result_spec.rb
267
+ - spec/models/update_call_request_spec.rb
268
+ - spec/models/update_conference_participant_request_spec.rb
269
+ - spec/models/update_conference_request_spec.rb
270
+ - spec/percl/calls_spec.rb
271
+ - spec/percl/conference_participant_spec.rb
272
+ - spec/percl/conference_spec.rb
273
+ - spec/percl/ivr_spec.rb
274
+ - spec/percl/jsonable_spec.rb
275
+ - spec/percl/percl_spec.rb
276
+ - spec/percl/queue_members_spec.rb
277
+ - spec/percl/recordings_spec.rb
278
+ - spec/percl/sms_spec.rb
279
+ - spec/spec_helper.rb
280
+ homepage: https://freeclimb.com
281
+ licenses:
282
+ - Unlicense
283
+ metadata: {}
284
+ post_install_message:
285
+ rdoc_options: []
286
+ require_paths:
287
+ - lib
288
+ required_ruby_version: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '1.9'
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ requirements: []
299
+ rubygems_version: 3.0.3
300
+ signing_key:
301
+ specification_version: 4
302
+ summary: FreeClimb API Ruby Gem
303
+ test_files:
304
+ - spec/api/default_api_spec.rb
305
+ - spec/api/web_mocks.rb
306
+ - spec/api_client_spec.rb
307
+ - spec/configuration_spec.rb
308
+ - spec/models/recording_list_spec.rb
309
+ - spec/models/pagination_model_spec.rb
310
+ - spec/models/queue_list_spec.rb
311
+ - spec/models/conference_result_spec.rb
312
+ - spec/models/available_number_list_spec.rb
313
+ - spec/models/queue_result_spec.rb
314
+ - spec/models/queue_member_list_spec.rb
315
+ - spec/models/dequeue_member_request_spec.rb
316
+ - spec/models/filter_logs_request_spec.rb
317
+ - spec/models/account_request_spec.rb
318
+ - spec/models/incoming_number_request_spec.rb
319
+ - spec/models/update_conference_request_spec.rb
320
+ - spec/models/update_conference_participant_request_spec.rb
321
+ - spec/models/account_result_spec.rb
322
+ - spec/models/log_result_spec.rb
323
+ - spec/models/queue_request_spec.rb
324
+ - spec/models/conference_list_spec.rb
325
+ - spec/models/call_list_spec.rb
326
+ - spec/models/message_request_spec.rb
327
+ - spec/models/incoming_number_list_spec.rb
328
+ - spec/models/message_result_spec.rb
329
+ - spec/models/messages_list_spec.rb
330
+ - spec/models/queue_member_spec.rb
331
+ - spec/models/incoming_number_result_spec.rb
332
+ - spec/models/application_request_spec.rb
333
+ - spec/models/recording_result_spec.rb
334
+ - spec/models/log_list_spec.rb
335
+ - spec/models/call_result_spec.rb
336
+ - spec/models/available_number_spec.rb
337
+ - spec/models/create_conference_request_spec.rb
338
+ - spec/models/conference_participant_list_spec.rb
339
+ - spec/models/buy_incoming_number_request_spec.rb
340
+ - spec/models/update_call_request_spec.rb
341
+ - spec/models/application_result_spec.rb
342
+ - spec/models/conference_participant_result_spec.rb
343
+ - spec/models/mutable_resource_model_spec.rb
344
+ - spec/models/application_list_spec.rb
345
+ - spec/models/make_call_request_spec.rb
346
+ - spec/percl/ivr_spec.rb
347
+ - spec/percl/queue_members_spec.rb
348
+ - spec/percl/sms_spec.rb
349
+ - spec/percl/conference_participant_spec.rb
350
+ - spec/percl/recordings_spec.rb
351
+ - spec/percl/conference_spec.rb
352
+ - spec/percl/jsonable_spec.rb
353
+ - spec/percl/calls_spec.rb
354
+ - spec/percl/percl_spec.rb
355
+ - spec/spec_helper.rb