wsc_sdk 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +146 -0
  3. data/.circleci/docker/build/Dockerfile +3 -0
  4. data/.circleci/helpers/add_preamble.rb +29 -0
  5. data/.circleci/helpers/build_docs.sh +5 -0
  6. data/.circleci/helpers/build_gem.sh +5 -0
  7. data/.circleci/helpers/debundle-context.sh +14 -0
  8. data/.circleci/helpers/finalize_release.sh +24 -0
  9. data/.circleci/helpers/publish_docs.sh +10 -0
  10. data/.circleci/helpers/release_gem.sh +8 -0
  11. data/.circleci/helpers/setup.sh +11 -0
  12. data/.circleci/helpers/setup_aws.sh +13 -0
  13. data/.circleci/helpers/setup_gem.sh +2 -0
  14. data/.circleci/helpers/setup_git.sh +27 -0
  15. data/.circleci/helpers/setup_rubygems.sh +15 -0
  16. data/.circleci/helpers/test_integration.sh +12 -0
  17. data/.circleci/helpers/test_unit.sh +6 -0
  18. data/.circleci/jobs/publish-production.sh +17 -0
  19. data/.circleci/jobs/publish-staging.sh +17 -0
  20. data/.circleci/jobs/release-production.sh +21 -0
  21. data/.circleci/jobs/test-integration.sh +9 -0
  22. data/.circleci/jobs/test-unit.sh +9 -0
  23. data/.circleci/tag_repo.rb +46 -0
  24. data/.gitignore +28 -0
  25. data/.rspec +2 -0
  26. data/.yard/config +2 -0
  27. data/.yard/template/default/fulldoc/html/css/custom.css +151 -0
  28. data/.yard/template/default/layout/html/footer.erb +0 -0
  29. data/.yard/template/default/layout/html/headers.erb +10 -0
  30. data/.yard/template/default/layout/html/layout.erb +45 -0
  31. data/.yard/template/default/layout/html/setup.rb +24 -0
  32. data/.yardopts +1 -0
  33. data/CODE_OF_CONDUCT.md +74 -0
  34. data/Gemfile +6 -0
  35. data/Gemfile.lock +99 -0
  36. data/LICENSE.txt +28 -0
  37. data/README.md +397 -0
  38. data/Rakefile +2 -0
  39. data/bin/console +14 -0
  40. data/bin/setup +8 -0
  41. data/doc/Hash.html +291 -0
  42. data/doc/WscSdk.html +570 -0
  43. data/doc/WscSdk/ApiResponse.html +242 -0
  44. data/doc/WscSdk/Attributes.html +128 -0
  45. data/doc/WscSdk/Attributes/Mode.html +191 -0
  46. data/doc/WscSdk/Attributes/Type.html +389 -0
  47. data/doc/WscSdk/Client.html +2677 -0
  48. data/doc/WscSdk/Configuration.html +595 -0
  49. data/doc/WscSdk/Endpoint.html +2974 -0
  50. data/doc/WscSdk/Endpoints.html +141 -0
  51. data/doc/WscSdk/Endpoints/CustomStreamTargets.html +383 -0
  52. data/doc/WscSdk/Endpoints/LiveStreams.html +197 -0
  53. data/doc/WscSdk/Endpoints/OutputStreamTargets.html +180 -0
  54. data/doc/WscSdk/Endpoints/Outputs.html +180 -0
  55. data/doc/WscSdk/Endpoints/StreamTargets.html +446 -0
  56. data/doc/WscSdk/Endpoints/Transcoders.html +197 -0
  57. data/doc/WscSdk/Endpoints/UllStreamTargets.html +383 -0
  58. data/doc/WscSdk/Endpoints/WowzaStreamTargets.html +383 -0
  59. data/doc/WscSdk/Enum.html +225 -0
  60. data/doc/WscSdk/Enums.html +321 -0
  61. data/doc/WscSdk/Enums/BillingMode.html +188 -0
  62. data/doc/WscSdk/Enums/BroadcastLocation.html +396 -0
  63. data/doc/WscSdk/Enums/BufferSize.html +301 -0
  64. data/doc/WscSdk/Enums/ClosedCaptionType.html +221 -0
  65. data/doc/WscSdk/Enums/CustomProvider.html +252 -0
  66. data/doc/WscSdk/Enums/DeliveryMethod.html +188 -0
  67. data/doc/WscSdk/Enums/DeliveryType.html +188 -0
  68. data/doc/WscSdk/Enums/Encoder.html +460 -0
  69. data/doc/WscSdk/Enums/Errors.html +555 -0
  70. data/doc/WscSdk/Enums/IdleTimeout.html +398 -0
  71. data/doc/WscSdk/Enums/ImagePosition.html +220 -0
  72. data/doc/WscSdk/Enums/ModelMode.html +175 -0
  73. data/doc/WscSdk/Enums/ModelType.html +373 -0
  74. data/doc/WscSdk/Enums/PlayerType.html +188 -0
  75. data/doc/WscSdk/Enums/Protocol.html +204 -0
  76. data/doc/WscSdk/Enums/TargetDeliveryProtocol.html +188 -0
  77. data/doc/WscSdk/Enums/TranscoderType.html +188 -0
  78. data/doc/WscSdk/Enums/UserRegion.html +383 -0
  79. data/doc/WscSdk/Enums/WowzaProvider.html +188 -0
  80. data/doc/WscSdk/Errors.html +683 -0
  81. data/doc/WscSdk/Loggable.html +346 -0
  82. data/doc/WscSdk/Model.html +3316 -0
  83. data/doc/WscSdk/ModelList.html +442 -0
  84. data/doc/WscSdk/ModelTemplate.html +267 -0
  85. data/doc/WscSdk/Models.html +141 -0
  86. data/doc/WscSdk/Models/CustomStreamTarget.html +192 -0
  87. data/doc/WscSdk/Models/Error.html +351 -0
  88. data/doc/WscSdk/Models/LiveStream.html +601 -0
  89. data/doc/WscSdk/Models/LiveStreamConnectionCode.html +192 -0
  90. data/doc/WscSdk/Models/LiveStreamState.html +200 -0
  91. data/doc/WscSdk/Models/LiveStreamStats.html +200 -0
  92. data/doc/WscSdk/Models/LiveStreamThumbnailUrl.html +200 -0
  93. data/doc/WscSdk/Models/Output.html +294 -0
  94. data/doc/WscSdk/Models/OutputStreamTarget.html +274 -0
  95. data/doc/WscSdk/Models/StreamTarget.html +273 -0
  96. data/doc/WscSdk/Models/Transcoder.html +793 -0
  97. data/doc/WscSdk/Models/TranscoderBooleanStat.html +278 -0
  98. data/doc/WscSdk/Models/TranscoderConnectionCode.html +192 -0
  99. data/doc/WscSdk/Models/TranscoderFloatStat.html +278 -0
  100. data/doc/WscSdk/Models/TranscoderIntegerStat.html +278 -0
  101. data/doc/WscSdk/Models/TranscoderState.html +196 -0
  102. data/doc/WscSdk/Models/TranscoderStats.html +196 -0
  103. data/doc/WscSdk/Models/TranscoderStreamTargetState.html +192 -0
  104. data/doc/WscSdk/Models/TranscoderStringStat.html +278 -0
  105. data/doc/WscSdk/Models/TranscoderThumbnailUrl.html +196 -0
  106. data/doc/WscSdk/Models/UllStreamTarget.html +360 -0
  107. data/doc/WscSdk/Models/WowzaStreamTarget.html +380 -0
  108. data/doc/WscSdk/Pagination.html +1277 -0
  109. data/doc/WscSdk/Schema.html +861 -0
  110. data/doc/WscSdk/SchemaAttribute.html +2400 -0
  111. data/doc/WscSdk/Templates.html +141 -0
  112. data/doc/WscSdk/Templates/CustomStreamTarget.html +1045 -0
  113. data/doc/WscSdk/Templates/LiveStream.html +1432 -0
  114. data/doc/WscSdk/Templates/Output.html +829 -0
  115. data/doc/WscSdk/Templates/Transcoder.html +699 -0
  116. data/doc/WscSdk/Templates/UllStreamTarget.html +411 -0
  117. data/doc/WscSdk/Templates/WowzaStreamTarget.html +447 -0
  118. data/doc/WscSdk/TranscoderSharedMethods.html +1113 -0
  119. data/doc/_index.html +705 -0
  120. data/doc/class_list.html +51 -0
  121. data/doc/css/bootstrap.css +5 -0
  122. data/doc/css/common.css +1 -0
  123. data/doc/css/custom.css +151 -0
  124. data/doc/css/full_list.css +58 -0
  125. data/doc/css/style.css +496 -0
  126. data/doc/file.README.html +570 -0
  127. data/doc/file_list.html +56 -0
  128. data/doc/frames.html +17 -0
  129. data/doc/images/wsc-ruby-1800x400.png +0 -0
  130. data/doc/index.html +570 -0
  131. data/doc/js/app.js +292 -0
  132. data/doc/js/full_list.js +216 -0
  133. data/doc/js/jquery.js +4 -0
  134. data/doc/method_list.html +1731 -0
  135. data/doc/top-level-namespace.html +182 -0
  136. data/examples/client.rb +40 -0
  137. data/examples/helpers.rb +100 -0
  138. data/examples/live_streams/create.rb +39 -0
  139. data/examples/live_streams/delete.rb +32 -0
  140. data/examples/live_streams/find.rb +22 -0
  141. data/examples/live_streams/flood.rb +126 -0
  142. data/examples/live_streams/list.rb +24 -0
  143. data/examples/live_streams/regenerate_connection_code.rb +29 -0
  144. data/examples/live_streams/reset.rb +32 -0
  145. data/examples/live_streams/reset_and_wait.rb +51 -0
  146. data/examples/live_streams/start.rb +33 -0
  147. data/examples/live_streams/start_and_wait.rb +51 -0
  148. data/examples/live_streams/state.rb +33 -0
  149. data/examples/live_streams/stats.rb +43 -0
  150. data/examples/live_streams/stop.rb +33 -0
  151. data/examples/live_streams/stop_and_wait.rb +51 -0
  152. data/examples/live_streams/thumbnail_url.rb +46 -0
  153. data/examples/live_streams/update.rb +43 -0
  154. data/examples/live_streams/workflow.rb +165 -0
  155. data/examples/output_stream_targets/create.rb +56 -0
  156. data/examples/output_stream_targets/delete.rb +45 -0
  157. data/examples/output_stream_targets/find.rb +37 -0
  158. data/examples/output_stream_targets/list.rb +36 -0
  159. data/examples/output_stream_targets/update.rb +56 -0
  160. data/examples/outputs/create.rb +49 -0
  161. data/examples/outputs/delete.rb +39 -0
  162. data/examples/outputs/find.rb +31 -0
  163. data/examples/outputs/list.rb +29 -0
  164. data/examples/outputs/update.rb +50 -0
  165. data/examples/stream_targets/custom/create.rb +42 -0
  166. data/examples/stream_targets/custom/delete.rb +31 -0
  167. data/examples/stream_targets/custom/find.rb +23 -0
  168. data/examples/stream_targets/custom/list.rb +24 -0
  169. data/examples/stream_targets/custom/update.rb +43 -0
  170. data/examples/stream_targets/list.rb +24 -0
  171. data/examples/stream_targets/ull/create.rb +41 -0
  172. data/examples/stream_targets/ull/delete.rb +31 -0
  173. data/examples/stream_targets/ull/find.rb +23 -0
  174. data/examples/stream_targets/ull/list.rb +24 -0
  175. data/examples/stream_targets/ull/update.rb +43 -0
  176. data/examples/stream_targets/wowza/create.rb +42 -0
  177. data/examples/stream_targets/wowza/delete.rb +31 -0
  178. data/examples/stream_targets/wowza/find.rb +23 -0
  179. data/examples/stream_targets/wowza/list.rb +23 -0
  180. data/examples/stream_targets/wowza/update.rb +43 -0
  181. data/examples/transcoders/create.rb +39 -0
  182. data/examples/transcoders/delete.rb +31 -0
  183. data/examples/transcoders/find.rb +23 -0
  184. data/examples/transcoders/list.rb +24 -0
  185. data/examples/transcoders/reset.rb +32 -0
  186. data/examples/transcoders/reset_and_wait.rb +48 -0
  187. data/examples/transcoders/start.rb +33 -0
  188. data/examples/transcoders/start_and_wait.rb +50 -0
  189. data/examples/transcoders/state.rb +33 -0
  190. data/examples/transcoders/stats.rb +43 -0
  191. data/examples/transcoders/stop.rb +33 -0
  192. data/examples/transcoders/stop_and_wait.rb +50 -0
  193. data/examples/transcoders/thumbnail_url.rb +46 -0
  194. data/examples/transcoders/update.rb +43 -0
  195. data/images/wsc-ruby-1800x400.png +0 -0
  196. data/lib/wsc_sdk.rb +81 -0
  197. data/lib/wsc_sdk/client.rb +417 -0
  198. data/lib/wsc_sdk/configuration.rb +21 -0
  199. data/lib/wsc_sdk/constants.rb +29 -0
  200. data/lib/wsc_sdk/endpoint.rb +492 -0
  201. data/lib/wsc_sdk/endpoints/custom_stream_targets.rb +44 -0
  202. data/lib/wsc_sdk/endpoints/live_streams.rb +34 -0
  203. data/lib/wsc_sdk/endpoints/output_stream_targets.rb +17 -0
  204. data/lib/wsc_sdk/endpoints/outputs.rb +17 -0
  205. data/lib/wsc_sdk/endpoints/stream_targets.rb +45 -0
  206. data/lib/wsc_sdk/endpoints/transcoders.rb +38 -0
  207. data/lib/wsc_sdk/endpoints/ull_stream_targets.rb +44 -0
  208. data/lib/wsc_sdk/endpoints/wowza_stream_targets.rb +44 -0
  209. data/lib/wsc_sdk/enums.rb +31 -0
  210. data/lib/wsc_sdk/enums/billing_mode.rb +20 -0
  211. data/lib/wsc_sdk/enums/broadcast_location.rb +58 -0
  212. data/lib/wsc_sdk/enums/buffer_size.rb +41 -0
  213. data/lib/wsc_sdk/enums/closed_caption_type.rb +26 -0
  214. data/lib/wsc_sdk/enums/custom_provider.rb +32 -0
  215. data/lib/wsc_sdk/enums/delivery_method.rb +20 -0
  216. data/lib/wsc_sdk/enums/delivery_type.rb +20 -0
  217. data/lib/wsc_sdk/enums/encoder.rb +71 -0
  218. data/lib/wsc_sdk/enums/idle_timeout.rb +50 -0
  219. data/lib/wsc_sdk/enums/image_position.rb +26 -0
  220. data/lib/wsc_sdk/enums/player_type.rb +20 -0
  221. data/lib/wsc_sdk/enums/protocol.rb +23 -0
  222. data/lib/wsc_sdk/enums/target_delivery_protocol.rb +20 -0
  223. data/lib/wsc_sdk/enums/transcoder_type.rb +20 -0
  224. data/lib/wsc_sdk/enums/wowza_provider.rb +20 -0
  225. data/lib/wsc_sdk/errors.rb +115 -0
  226. data/lib/wsc_sdk/model.rb +515 -0
  227. data/lib/wsc_sdk/model_list.rb +42 -0
  228. data/lib/wsc_sdk/model_template.rb +27 -0
  229. data/lib/wsc_sdk/models/custom_stream_target.rb +34 -0
  230. data/lib/wsc_sdk/models/error.rb +53 -0
  231. data/lib/wsc_sdk/models/live_stream.rb +130 -0
  232. data/lib/wsc_sdk/models/live_stream_connection_code.rb +31 -0
  233. data/lib/wsc_sdk/models/live_stream_state.rb +20 -0
  234. data/lib/wsc_sdk/models/live_stream_stats.rb +20 -0
  235. data/lib/wsc_sdk/models/live_stream_thumbnail_url.rb +20 -0
  236. data/lib/wsc_sdk/models/output.rb +61 -0
  237. data/lib/wsc_sdk/models/output_stream_target.rb +37 -0
  238. data/lib/wsc_sdk/models/stream_target.rb +29 -0
  239. data/lib/wsc_sdk/models/transcoder.rb +135 -0
  240. data/lib/wsc_sdk/models/transcoder_boolean_stat.rb +41 -0
  241. data/lib/wsc_sdk/models/transcoder_connection_code.rb +29 -0
  242. data/lib/wsc_sdk/models/transcoder_float_stat.rb +40 -0
  243. data/lib/wsc_sdk/models/transcoder_integer_stat.rb +40 -0
  244. data/lib/wsc_sdk/models/transcoder_state.rb +31 -0
  245. data/lib/wsc_sdk/models/transcoder_stats.rb +51 -0
  246. data/lib/wsc_sdk/models/transcoder_stream_target_state.rb +29 -0
  247. data/lib/wsc_sdk/models/transcoder_string_stat.rb +40 -0
  248. data/lib/wsc_sdk/models/transcoder_thumbnail_url.rb +29 -0
  249. data/lib/wsc_sdk/models/ull_stream_target.rb +54 -0
  250. data/lib/wsc_sdk/models/wowza_stream_target.rb +60 -0
  251. data/lib/wsc_sdk/modules/api_response.rb +24 -0
  252. data/lib/wsc_sdk/modules/loggable.rb +44 -0
  253. data/lib/wsc_sdk/modules/transcoder_shared_methods.rb +221 -0
  254. data/lib/wsc_sdk/pagination.rb +89 -0
  255. data/lib/wsc_sdk/schema.rb +140 -0
  256. data/lib/wsc_sdk/schema_attribute.rb +349 -0
  257. data/lib/wsc_sdk/templates/custom_stream_target.rb +154 -0
  258. data/lib/wsc_sdk/templates/live_stream.rb +234 -0
  259. data/lib/wsc_sdk/templates/output.rb +133 -0
  260. data/lib/wsc_sdk/templates/transcoder.rb +97 -0
  261. data/lib/wsc_sdk/templates/ull_stream_target.rb +49 -0
  262. data/lib/wsc_sdk/templates/wowza_stream_target.rb +57 -0
  263. data/lib/wsc_sdk/version.rb +7 -0
  264. data/wsc_sdk.gemspec +48 -0
  265. metadata +460 -0
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ WORK_DIR = File.absolute_path(File.join(__dir__, ".."))
4
+
5
+ def usage
6
+ puts ""
7
+ puts "usage: ./.circleci/tag_repo.rb [ tag1 [ tag2 ... [ tagN ] ] ] ]"
8
+ puts
9
+ puts "Tags:"
10
+ puts
11
+ puts " integration Run integration tests upon commit"
12
+ puts " unit Run unit tests upon commit"
13
+ puts " release Release the Gem asset (includes the unit and integration tags)"
14
+ puts " publish-staging Publish the code documentation to the staging docs site."
15
+ puts " publish-production Publish the code documentation to the production docs site."
16
+ puts ""
17
+ exit
18
+ end
19
+
20
+ available_tags = [
21
+ "integration",
22
+ "unit",
23
+ "release",
24
+ "publish-staging",
25
+ "publish-production"
26
+ ]
27
+
28
+ tags = (available_tags & ARGV).map{ |t| t.downcase }.flatten
29
+
30
+ # Generate usage if we got a bad tag.
31
+ usage if (ARGV - tags).length > 0
32
+
33
+ tags = tags - ["unit"] if tags.include?("release") or tags.include?("publish")
34
+ tags = tags - ["integration"] if tags.include?("release") or tags.include?("publish")
35
+ tags = tags - ["publish"] if tags.include?("release")
36
+
37
+ puts "Tags: #{tags}"
38
+
39
+ tags.each do |tag|
40
+ puts "Tagging the repo with #{tag}..."
41
+ `cd #{WORK_DIR} && git push origin ":#{tag}" > /dev/null 2>&1`
42
+ `cd #{WORK_DIR} && git tag --delete #{tag} > /dev/null 2>&1`
43
+ `cd #{WORK_DIR} && git tag -a #{tag} -m "Used tag-for-build.sh on component=${component}" > /dev/null 2>&1`
44
+ `cd #{WORK_DIR} && git push --tags > /dev/null 2>&1`
45
+ puts " |> Tag updated!"
46
+ end
@@ -0,0 +1,28 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /pkg/
6
+ /spec/reports/
7
+ /tmp/
8
+ /test_results
9
+
10
+
11
+ # Defensive ignore patterns.
12
+ **/~
13
+ **/.aws
14
+ **/.circleci
15
+ !/.circleci
16
+ **/.bash_history
17
+ **/credential
18
+ **/credentials
19
+ **/.credential
20
+ **/.credentials
21
+ **/.gem
22
+ **/.mysql_history
23
+ **/.profile
24
+ **/.ssh
25
+ **/.wowza
26
+ **/.wowzacli
27
+ **/id_rsa*
28
+ **/*.pem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
@@ -0,0 +1,2 @@
1
+ autoload_plugins:
2
+ - coderay
@@ -0,0 +1,151 @@
1
+
2
+ body {
3
+ font-family: Museo Sans, Lato, Verdana, Arial, sans-serif;
4
+ flex-wrap: wrap;
5
+ -webkit-flex-wrap: wrap;
6
+ -ms-flex-wrap: wrap;
7
+ }
8
+ h1 {
9
+ font-size: 2.4em;
10
+ font-weight: 500;
11
+ color: rgb(101, 104, 106);
12
+ border: none;
13
+ }
14
+ h2 {
15
+ font-size: 2.2em;
16
+ padding-bottom: 5px;
17
+ color: rgb(101, 104, 106);
18
+ }
19
+ h2, h3 {
20
+ font-weight: 300;
21
+ color: rgb(101, 104, 106);
22
+ }
23
+ h4 {
24
+ font-weight: 600;
25
+ color: rgb(101, 104, 106);
26
+ }
27
+ p {
28
+ font-weight: 300;
29
+ font-size: 1em;
30
+ color: rgb(101, 104, 106);
31
+ }
32
+ a, a:visited, a:link {
33
+ color: #0081bc;
34
+ }
35
+
36
+ #content a, #content a:visited {
37
+ text-decoration: none;
38
+ color: #0081bc;
39
+ }
40
+ #content a:hover {
41
+ color: #ff8400;
42
+ background: none;
43
+ }
44
+
45
+ div#wowza-wrapper {
46
+ display: flex;
47
+ flex-flow: column;
48
+ height: 100%;
49
+ width: 100%;
50
+ padding-top: 0;
51
+ padding-bottom: 0;
52
+ background: white;
53
+ }
54
+
55
+ div#wowza-wrapper div#content div#toc {
56
+ display: none;
57
+ }
58
+
59
+ div#wowza-wrapper div#content div.nav_wrap {
60
+ padding-top: 0;
61
+ padding-bottom: 0;
62
+ }
63
+
64
+ div#wowza-wrapper div#content div#main {
65
+ padding-top: 0;
66
+ padding-bottom: 0;
67
+ }
68
+
69
+ div#wowza-wrapper header {
70
+ height: 60px;
71
+ background-color: #47484c;
72
+ margin: 0;
73
+ padding: 0;
74
+ flex-flow: row wrap;
75
+ }
76
+
77
+
78
+ header div.links {
79
+ margin-top: 5px;
80
+ display: flex;
81
+ flex: 1 1 auto;
82
+ flex-direction: row;
83
+ justify-content: flex-end;
84
+ align-items: center;
85
+ }
86
+
87
+ header div.links a {
88
+ display: flex;
89
+ align-self: flex-start;
90
+ height: 50px;
91
+ color: white;
92
+ text-decoration: none;
93
+ padding: 0 2em;
94
+ font-family: Verdana, Geneva, sans-serif;
95
+ align-items: center;
96
+ text-transform: uppercase;
97
+ cursor: pointer;
98
+ }
99
+
100
+ header div.logo {
101
+ margin-top: 5px;
102
+ display: flex;
103
+ float: left;
104
+ display: block;
105
+ flex: 1 1 auto;
106
+ flex-direction: row;
107
+ justify-content: flex-start;
108
+ align-items: center;
109
+ }
110
+
111
+ header div.logo a {
112
+ color: -webkit-link;
113
+ cursor: pointer;
114
+ text-decoration: none;
115
+ border: none;
116
+ align-items: center;
117
+ }
118
+
119
+ header div.logo a img {
120
+ height: 38px;
121
+ float: left;
122
+ padding: 5px 1em 0.1em 1em;
123
+ }
124
+
125
+ header div.logo h1 {
126
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
127
+ font-size: 12px;
128
+ color: white;
129
+ font-weight: normal;
130
+ float: left;
131
+ text-transform: uppercase;
132
+ border: none;
133
+ padding-top: 0;
134
+ }
135
+
136
+ div#wowza-wrapper > div#content {
137
+ margin: 0;
138
+ padding: 0;
139
+ position: relative;
140
+ background-color: #47484c;
141
+ width: 100%;
142
+
143
+ flex: 2;
144
+ display: flex;
145
+ overflow: auto;
146
+ }
147
+
148
+
149
+ .clearfix {
150
+ clear: both;
151
+ }
@@ -0,0 +1,10 @@
1
+ <meta charset="<%= charset %>">
2
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
3
+ <title>Wowza Streaming Cloud - SDK Code Documentation</title>
4
+ <% stylesheets.each do |stylesheet| %>
5
+ <link rel="stylesheet" href="<%= mtime_url(stylesheet) %>" type="text/css" charset="utf-8" />
6
+ <% end %>
7
+ <%= erb :script_setup %>
8
+ <% javascripts.each do |javascript| %>
9
+ <script type="text/javascript" charset="utf-8" src="<%= mtime_url(javascript) %>"></script>
10
+ <% end %>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <%= erb(:headers) %>
5
+ </head>
6
+ <body>
7
+ <div id="wowza-wrapper">
8
+ <header>
9
+ <div class="logo">
10
+ <a href="https://www.wowza.com">
11
+ <img src="https://cloud.wowza.com/apidocs/assets/logo.png" alt="Wowza Logo" />
12
+ </a>
13
+ <h1>Wowza Streaming Cloud<br/>SDK Code Documentation</h1>
14
+ <div class="clearfix"></div>
15
+ </div>
16
+ <div class="links">
17
+ <a href="https://www.wowza.com/">Wowza Home</a>
18
+ <a href="https://www.wowza.com/docs">Docs & APIS</a>
19
+ <a href="https://www.wowza.com/community/index.html">Forums</a>
20
+ <a href="https://www.wowza.com/support">Support</a>
21
+ </div>
22
+ <div class="clearfix"></div>
23
+ </header>
24
+
25
+ <div id="content">
26
+ <div class="nav_wrap">
27
+ <iframe id="nav" src="<%= @nav_url %>?1"></iframe>
28
+ <div id="resizer"></div>
29
+ </div>
30
+
31
+ <div id="main" tabindex="-1">
32
+ <div id="header">
33
+ <%= erb(:breadcrumb) %>
34
+ <%= erb(:search) %>
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <div id="content"><%= yieldall %></div>
39
+
40
+ <%= erb(:footer) %>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </body>
45
+ </html>
@@ -0,0 +1,24 @@
1
+
2
+ def stylesheets
3
+ # Load the existing stylesheets while appending the custom one
4
+ super + %w(css/custom.css)
5
+ end
6
+
7
+ def diskfile
8
+ @file.attributes[:markup] ||= markup_for_file('', @file.filename)
9
+ data = htmlify(@file.contents, @file.attributes[:markup])
10
+
11
+ # Hack our way to working hash anchors for the README.
12
+ # GitHub generates header links as #some-thing and YARD
13
+ # generates them as #Some_thing so this makes the necessary
14
+ # changes to the generate docs so the links work both on
15
+ # GitHub and in the documentation.
16
+ if @file.name == "README"
17
+ data.scan(/href\=\"\#(.+)\"/).each do |bad_link|
18
+ data.gsub!(bad_link.first, bad_link.first.capitalize.gsub('-', '_')) unless data.nil?
19
+ data.gsub!("label-", "") unless data.nil?
20
+ end
21
+ end
22
+
23
+ "<div id='filecontents'>" + data + "</div>"
24
+ end
@@ -0,0 +1 @@
1
+ --template-path ./.yard/template
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jocko.macgregor@wowza.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in wsc_sdk.gemspec
6
+ gemspec
@@ -0,0 +1,99 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ wsc_sdk (1.3.1)
5
+ activesupport (> 1.0.0)
6
+ httparty
7
+ tzinfo-data (> 1.0.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (5.2.2)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 0.7, < 2)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
17
+ addressable (2.6.0)
18
+ public_suffix (>= 2.0.2, < 4.0)
19
+ coderay (1.1.2)
20
+ concurrent-ruby (1.1.4)
21
+ crack (0.4.3)
22
+ safe_yaml (~> 1.0.0)
23
+ diff-lcs (1.3)
24
+ hashdiff (0.3.8)
25
+ httparty (0.16.4)
26
+ mime-types (~> 3.0)
27
+ multi_xml (>= 0.5.2)
28
+ i18n (1.6.0)
29
+ concurrent-ruby (~> 1.0)
30
+ mime-types (3.2.2)
31
+ mime-types-data (~> 3.2015)
32
+ mime-types-data (3.2018.0812)
33
+ minitest (5.11.3)
34
+ multi_xml (0.6.0)
35
+ mustermann (1.0.3)
36
+ public_suffix (3.0.3)
37
+ rack (2.0.6)
38
+ rack-protection (2.0.5)
39
+ rack
40
+ rake (10.5.0)
41
+ request_interceptor (1.0.0)
42
+ activesupport (>= 4.0)
43
+ rack
44
+ sinatra
45
+ smart_properties (~> 1.0)
46
+ webmock (~> 3.0)
47
+ rspec (3.8.0)
48
+ rspec-core (~> 3.8.0)
49
+ rspec-expectations (~> 3.8.0)
50
+ rspec-mocks (~> 3.8.0)
51
+ rspec-core (3.8.0)
52
+ rspec-support (~> 3.8.0)
53
+ rspec-expectations (3.8.2)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.8.0)
56
+ rspec-mocks (3.8.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.8.0)
59
+ rspec-support (3.8.0)
60
+ rspec_junit_formatter (0.4.1)
61
+ rspec-core (>= 2, < 4, != 2.12.0)
62
+ safe_yaml (1.0.5)
63
+ sinatra (2.0.5)
64
+ mustermann (~> 1.0)
65
+ rack (~> 2.0)
66
+ rack-protection (= 2.0.5)
67
+ tilt (~> 2.0)
68
+ smart_properties (1.13.1)
69
+ thread_safe (0.3.6)
70
+ tilt (2.0.9)
71
+ tzinfo (1.2.5)
72
+ thread_safe (~> 0.1)
73
+ tzinfo-data (1.2018.5)
74
+ tzinfo (>= 1.0.0)
75
+ webmock (3.5.1)
76
+ addressable (>= 2.3.6)
77
+ crack (>= 0.3.2)
78
+ hashdiff
79
+ yard (0.9.18)
80
+ yard-coderay (0.1.0)
81
+ coderay
82
+ yard
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ bundler (> 1.16)
89
+ rake (~> 10.0)
90
+ request_interceptor
91
+ rspec
92
+ rspec_junit_formatter
93
+ webmock
94
+ wsc_sdk!
95
+ yard
96
+ yard-coderay
97
+
98
+ BUNDLED WITH
99
+ 1.16.2