rtsp 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/ChangeLog.rdoc +17 -12
  2. data/Gemfile +2 -0
  3. data/lib/ext/time_ext.rb +7 -0
  4. data/lib/rtsp/client.rb +1 -1
  5. data/lib/rtsp/presentation.rb +160 -0
  6. data/lib/rtsp/response.rb +6 -6
  7. data/lib/rtsp/session.rb +65 -0
  8. data/lib/rtsp/transport_parser.rb +2 -2
  9. data/lib/rtsp/version.rb +1 -1
  10. data/rtsp.gemspec +0 -2
  11. data/spec/integration/coverage/assets/0.7.1/application.css +1110 -0
  12. data/spec/integration/coverage/assets/0.7.1/application.js +626 -0
  13. data/spec/integration/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  14. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  15. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  16. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  17. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  18. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  19. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  20. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  21. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  22. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  23. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  24. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  25. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  26. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  27. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  28. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  29. data/spec/integration/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  30. data/spec/integration/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  31. data/spec/integration/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  32. data/spec/integration/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  33. data/spec/integration/coverage/assets/0.7.1/favicon_green.png +0 -0
  34. data/spec/integration/coverage/assets/0.7.1/favicon_red.png +0 -0
  35. data/spec/integration/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  36. data/spec/integration/coverage/assets/0.7.1/loading.gif +0 -0
  37. data/spec/integration/coverage/assets/0.7.1/magnify.png +0 -0
  38. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  39. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  40. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  41. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  42. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  43. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  44. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  45. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  46. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  47. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  48. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  49. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  50. data/spec/integration/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  51. data/spec/integration/coverage/index.html +72 -0
  52. data/spec/rtsp/client_spec.rb +1 -1
  53. data/spec/rtsp/coverage/assets/0.7.1/application.css +1110 -0
  54. data/spec/rtsp/coverage/assets/0.7.1/application.js +626 -0
  55. data/spec/rtsp/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  56. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  57. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  58. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  59. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  60. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  61. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  62. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  63. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  64. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  65. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  66. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  67. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  68. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  69. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  70. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  71. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  72. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  73. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  74. data/spec/rtsp/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  75. data/spec/rtsp/coverage/assets/0.7.1/favicon_green.png +0 -0
  76. data/spec/rtsp/coverage/assets/0.7.1/favicon_red.png +0 -0
  77. data/spec/rtsp/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  78. data/spec/rtsp/coverage/assets/0.7.1/loading.gif +0 -0
  79. data/spec/rtsp/coverage/assets/0.7.1/magnify.png +0 -0
  80. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  81. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  82. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  83. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  84. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  85. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  86. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  87. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  88. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  89. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  90. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  91. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  92. data/spec/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  93. data/spec/rtsp/coverage/index.html +72 -0
  94. data/spec/rtsp/message_spec.rb +5 -5
  95. data/spec/rtsp/response_spec.rb +34 -4
  96. data/spec/unit/ext/coverage/assets/0.7.1/application.css +1110 -0
  97. data/spec/unit/ext/coverage/assets/0.7.1/application.js +626 -0
  98. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  99. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  100. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  101. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  102. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  103. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  104. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  105. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  106. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  107. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  108. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  109. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  110. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  111. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  112. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  113. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  114. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  115. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  116. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  117. data/spec/unit/ext/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  118. data/spec/unit/ext/coverage/assets/0.7.1/favicon_green.png +0 -0
  119. data/spec/unit/ext/coverage/assets/0.7.1/favicon_red.png +0 -0
  120. data/spec/unit/ext/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  121. data/spec/unit/ext/coverage/assets/0.7.1/loading.gif +0 -0
  122. data/spec/unit/ext/coverage/assets/0.7.1/magnify.png +0 -0
  123. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  124. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  125. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  126. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  127. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  128. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  129. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  130. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  131. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  132. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  133. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  134. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  135. data/spec/unit/ext/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  136. data/spec/unit/ext/coverage/index.html +72 -0
  137. data/spec/unit/rtsp/coverage/assets/0.7.1/application.css +1110 -0
  138. data/spec/unit/rtsp/coverage/assets/0.7.1/application.js +626 -0
  139. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  140. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  141. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  142. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  143. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  144. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  145. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  146. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  147. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  148. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  149. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  150. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  151. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  152. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  153. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  154. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  155. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  156. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  157. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  158. data/spec/unit/rtsp/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  159. data/spec/unit/rtsp/coverage/assets/0.7.1/favicon_green.png +0 -0
  160. data/spec/unit/rtsp/coverage/assets/0.7.1/favicon_red.png +0 -0
  161. data/spec/unit/rtsp/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  162. data/spec/unit/rtsp/coverage/assets/0.7.1/loading.gif +0 -0
  163. data/spec/unit/rtsp/coverage/assets/0.7.1/magnify.png +0 -0
  164. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  165. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  166. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  167. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  168. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  169. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  170. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  171. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  172. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  173. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  174. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  175. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  176. data/spec/unit/rtsp/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  177. data/spec/unit/rtsp/coverage/index.html +72 -0
  178. metadata +390 -39
  179. data/tasks/roodi.rake +0 -9
  180. data/tasks/roodi_config.yaml +0 -14
  181. data/tasks/stats.rake +0 -12
@@ -1,9 +0,0 @@
1
- require 'rake/tasklib' # roodi_task fails without this.
2
- require 'roodi'
3
- require 'roodi_task'
4
-
5
- RoodiTask.new do |t|
6
- t.config = 'tasks/roodi_config.yaml'
7
- t.patterns = Dir.glob("{features,lib,spec}/**/*.rb")
8
- t.verbose = true
9
- end
@@ -1,14 +0,0 @@
1
- ---
2
- AssignmentInConditionalCheck: { }
3
- CaseMissingElseCheck: { }
4
- ClassLineCountCheck: { line_count: 300 }
5
- ClassNameCheck: { pattern: !ruby/regexp '/^[A-Z][a-zA-Z0-9]*$/' }
6
- CyclomaticComplexityBlockCheck: { complexity: 4 }
7
- CyclomaticComplexityMethodCheck: { complexity: 8 }
8
- EmptyRescueBodyCheck: { }
9
- ForLoopCheck: { }
10
- MethodLineCountCheck: { line_count: 30 }
11
- MethodNameCheck: { pattern: !ruby/regexp '/^[_a-z<>=\[\]|+-\/\*`]+[_a-z0-9_<>=~@\[\]]*[=!\?]?$/' }
12
- ModuleLineCountCheck: { line_count: 300 }
13
- ModuleNameCheck: { pattern: !ruby/regexp '/^[A-Z][a-zA-Z0-9]*$/' }
14
- ParameterNumberCheck: { parameter_count: 5 }
@@ -1,12 +0,0 @@
1
- require 'code_statistics'
2
-
3
- STATS_DIRECTORIES = [
4
- %w(Library lib/),
5
- %w(Behavior\ tests features/),
6
- %w(Unit\ tests spec/)
7
- ].collect { |name, dir| [ name, "#{dir}" ] }.select { |name, dir| File.directory?(dir) }
8
-
9
- desc "Report code statistics (KLOCs, etc) from the application"
10
- task :stats do
11
- CodeStatistics::CodeStatistics.new(*STATS_DIRECTORIES).to_s
12
- end