cerberus 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. data/Authors.txt +4 -0
  2. data/Changelog.txt +11 -0
  3. data/Copyright.txt +16 -0
  4. data/Rakefile +16 -25
  5. data/Readme.markdown +1 -3
  6. data/bin/cerberus +5 -0
  7. data/lib/cerberus/builder/bjam.rb +1 -3
  8. data/lib/cerberus/builder/maven2.rb +0 -1
  9. data/lib/cerberus/builder/rake.rb +1 -1
  10. data/lib/cerberus/builder/rspec.rb +0 -1
  11. data/lib/cerberus/builder/ruby_base.rb +0 -1
  12. data/lib/cerberus/component_lazy_loader.rb +6 -2
  13. data/lib/cerberus/config.example.yml +1 -0
  14. data/lib/cerberus/constants.rb +2 -2
  15. data/lib/cerberus/manager.rb +7 -1
  16. data/lib/cerberus/publisher/mail.rb +4 -4
  17. data/lib/cerberus/publisher/twitter.rb +0 -1
  18. data/lib/cerberus/scm/base.rb +19 -0
  19. data/lib/cerberus/scm/bzr.rb +62 -0
  20. data/lib/cerberus/scm/cvs.rb +2 -7
  21. data/lib/cerberus/scm/darcs.rb +2 -11
  22. data/lib/cerberus/scm/git.rb +6 -14
  23. data/lib/cerberus/scm/perforce.rb +4 -4
  24. data/lib/cerberus/scm/svn.rb +2 -7
  25. data/lib/cerberus/utils.rb +5 -0
  26. data/lib/vendor/irc/README +23 -0
  27. data/lib/vendor/irc/lib/IRC.rb +164 -0
  28. data/lib/vendor/irc/lib/IRCChannel.rb +33 -0
  29. data/lib/vendor/irc/lib/IRCConnection.rb +134 -0
  30. data/lib/vendor/irc/lib/IRCEvent.rb +91 -0
  31. data/lib/vendor/irc/lib/IRCUser.rb +23 -0
  32. data/lib/vendor/irc/lib/IRCUtil.rb +49 -0
  33. data/lib/vendor/irc/lib/eventmap.yml +247 -0
  34. data/lib/vendor/twitter/CHANGES +129 -0
  35. data/lib/vendor/twitter/MIT-LICENSE +20 -0
  36. data/lib/vendor/twitter/README +37 -0
  37. data/lib/vendor/twitter/TODO +7 -0
  38. data/lib/vendor/twitter/lib/twitter.rb +34 -0
  39. data/lib/vendor/twitter/lib/twitter/client.rb +24 -0
  40. data/lib/vendor/twitter/lib/twitter/client/account.rb +24 -0
  41. data/lib/vendor/twitter/lib/twitter/client/auth.rb +27 -0
  42. data/lib/vendor/twitter/lib/twitter/client/base.rb +93 -0
  43. data/lib/vendor/twitter/lib/twitter/client/blocks.rb +35 -0
  44. data/lib/vendor/twitter/lib/twitter/client/favorites.rb +53 -0
  45. data/lib/vendor/twitter/lib/twitter/client/friendship.rb +35 -0
  46. data/lib/vendor/twitter/lib/twitter/client/graph.rb +37 -0
  47. data/lib/vendor/twitter/lib/twitter/client/messaging.rb +79 -0
  48. data/lib/vendor/twitter/lib/twitter/client/profile.rb +29 -0
  49. data/lib/vendor/twitter/lib/twitter/client/search.rb +27 -0
  50. data/lib/vendor/twitter/lib/twitter/client/status.rb +51 -0
  51. data/lib/vendor/twitter/lib/twitter/client/timeline.rb +72 -0
  52. data/lib/vendor/twitter/lib/twitter/client/user.rb +65 -0
  53. data/lib/vendor/twitter/lib/twitter/config.rb +77 -0
  54. data/lib/vendor/twitter/lib/twitter/console.rb +31 -0
  55. data/lib/vendor/twitter/lib/twitter/core.rb +137 -0
  56. data/lib/vendor/twitter/lib/twitter/ext.rb +2 -0
  57. data/lib/vendor/twitter/lib/twitter/ext/stdlib.rb +52 -0
  58. data/lib/vendor/twitter/lib/twitter/extras.rb +39 -0
  59. data/lib/vendor/twitter/lib/twitter/meta.rb +56 -0
  60. data/lib/vendor/twitter/lib/twitter/model.rb +360 -0
  61. data/lib/vendor/twitter/lib/twitter/version.rb +19 -0
  62. data/lib/vendor/twitter/spec/twitter/client/account_spec.rb +28 -0
  63. data/lib/vendor/twitter/spec/twitter/client/auth_spec.rb +34 -0
  64. data/lib/vendor/twitter/spec/twitter/client/base_spec.rb +242 -0
  65. data/lib/vendor/twitter/spec/twitter/client/blocks_spec.rb +76 -0
  66. data/lib/vendor/twitter/spec/twitter/client/favorites_spec.rb +183 -0
  67. data/lib/vendor/twitter/spec/twitter/client/friendship_spec.rb +76 -0
  68. data/lib/vendor/twitter/spec/twitter/client/graph_spec.rb +67 -0
  69. data/lib/vendor/twitter/spec/twitter/client/messaging_spec.rb +135 -0
  70. data/lib/vendor/twitter/spec/twitter/client/profile_spec.rb +91 -0
  71. data/lib/vendor/twitter/spec/twitter/client/search_spec.rb +68 -0
  72. data/lib/vendor/twitter/spec/twitter/client/status_spec.rb +119 -0
  73. data/lib/vendor/twitter/spec/twitter/client/timeline_spec.rb +79 -0
  74. data/lib/vendor/twitter/spec/twitter/client/user_spec.rb +203 -0
  75. data/lib/vendor/twitter/spec/twitter/client_spec.rb +2 -0
  76. data/lib/vendor/twitter/spec/twitter/config_spec.rb +86 -0
  77. data/lib/vendor/twitter/spec/twitter/console_spec.rb +15 -0
  78. data/lib/vendor/twitter/spec/twitter/core_spec.rb +127 -0
  79. data/lib/vendor/twitter/spec/twitter/ext/stdlib_spec.rb +59 -0
  80. data/lib/vendor/twitter/spec/twitter/extras_spec.rb +46 -0
  81. data/lib/vendor/twitter/spec/twitter/meta_spec.rb +90 -0
  82. data/lib/vendor/twitter/spec/twitter/model_spec.rb +508 -0
  83. data/lib/vendor/twitter/spec/twitter/version_spec.rb +19 -0
  84. data/lib/vendor/xmpp4r/CHANGELOG +83 -0
  85. data/lib/vendor/xmpp4r/COPYING +340 -0
  86. data/lib/vendor/xmpp4r/LICENSE +59 -0
  87. data/lib/vendor/xmpp4r/README.rdoc +110 -0
  88. data/lib/vendor/xmpp4r/README_ruby19.txt +43 -0
  89. data/lib/vendor/xmpp4r/Rakefile +262 -0
  90. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/README +56 -0
  91. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/adventure.rb +23 -0
  92. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/adventuremuc.rb +136 -0
  93. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/cube.xml +15 -0
  94. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/tower.xml +69 -0
  95. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/world.rb +424 -0
  96. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/fileserve.conf +11 -0
  97. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/fileserve.rb +346 -0
  98. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/getonline.rb +56 -0
  99. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/gtkmucclient.rb +315 -0
  100. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/migrate.rb +88 -0
  101. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/minimuc.rb +266 -0
  102. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/pep-aggregator/index.xsl +235 -0
  103. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/pep-aggregator/pep-aggregator.rb +147 -0
  104. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/recvfile.rb +84 -0
  105. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/rosterdiscovery.rb +129 -0
  106. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/sendfile.conf +10 -0
  107. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/sendfile.rb +72 -0
  108. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr.rb +51 -0
  109. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_jabber.rb +43 -0
  110. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_test.rb +10 -0
  111. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/versionpoll.rb +90 -0
  112. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/xmpping.rb +146 -0
  113. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/xmppingrc.sample +14 -0
  114. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/change_password.rb +41 -0
  115. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/client.rb +70 -0
  116. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/component.rb +11 -0
  117. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/echo.rb +37 -0
  118. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/jabbersend.rb +41 -0
  119. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mass_sender.rb +68 -0
  120. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/muc_owner_config.rb +12 -0
  121. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mucinfo.rb +41 -0
  122. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mucsimplebot.rb +82 -0
  123. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/register.rb +42 -0
  124. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb +18 -0
  125. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/roster.rb +44 -0
  126. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterprint.rb +50 -0
  127. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterrename.rb +34 -0
  128. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterwatch.rb +171 -0
  129. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/send_vcard.rb +67 -0
  130. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/tune_client.rb +56 -0
  131. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/tune_server.rb +58 -0
  132. data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/versionbot.rb +75 -0
  133. data/lib/vendor/xmpp4r/lib/xmpp4r.rb +116 -0
  134. data/lib/vendor/xmpp4r/lib/xmpp4r/base64.rb +32 -0
  135. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams.rb +15 -0
  136. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/filetransfer.rb +319 -0
  137. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/base.rb +257 -0
  138. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/initiator.rb +31 -0
  139. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/target.rb +47 -0
  140. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb +152 -0
  141. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb +86 -0
  142. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb +198 -0
  143. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb +65 -0
  144. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb +73 -0
  145. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb.orig +62 -0
  146. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/iq/bytestreams.rb +170 -0
  147. data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/iq/si.rb +206 -0
  148. data/lib/vendor/xmpp4r/lib/xmpp4r/callbacks.rb +124 -0
  149. data/lib/vendor/xmpp4r/lib/xmpp4r/caps.rb +1 -0
  150. data/lib/vendor/xmpp4r/lib/xmpp4r/caps/c.rb +53 -0
  151. data/lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/generator.rb +160 -0
  152. data/lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/helper.rb +87 -0
  153. data/lib/vendor/xmpp4r/lib/xmpp4r/client.rb +317 -0
  154. data/lib/vendor/xmpp4r/lib/xmpp4r/command/helper/responder.rb +53 -0
  155. data/lib/vendor/xmpp4r/lib/xmpp4r/command/iq/command.rb +154 -0
  156. data/lib/vendor/xmpp4r/lib/xmpp4r/component.rb +103 -0
  157. data/lib/vendor/xmpp4r/lib/xmpp4r/connection.rb +219 -0
  158. data/lib/vendor/xmpp4r/lib/xmpp4r/dataforms.rb +5 -0
  159. data/lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb +297 -0
  160. data/lib/vendor/xmpp4r/lib/xmpp4r/debuglog.rb +42 -0
  161. data/lib/vendor/xmpp4r/lib/xmpp4r/delay.rb +5 -0
  162. data/lib/vendor/xmpp4r/lib/xmpp4r/delay/x/delay.rb +99 -0
  163. data/lib/vendor/xmpp4r/lib/xmpp4r/discovery.rb +7 -0
  164. data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/helper/responder.rb +165 -0
  165. data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/iq/discoinfo.rb +211 -0
  166. data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/iq/discoitems.rb +147 -0
  167. data/lib/vendor/xmpp4r/lib/xmpp4r/errors.rb +281 -0
  168. data/lib/vendor/xmpp4r/lib/xmpp4r/feature_negotiation.rb +5 -0
  169. data/lib/vendor/xmpp4r/lib/xmpp4r/feature_negotiation/iq/feature.rb +28 -0
  170. data/lib/vendor/xmpp4r/lib/xmpp4r/framework/base.rb +55 -0
  171. data/lib/vendor/xmpp4r/lib/xmpp4r/framework/bot.rb +148 -0
  172. data/lib/vendor/xmpp4r/lib/xmpp4r/httpbinding.rb +5 -0
  173. data/lib/vendor/xmpp4r/lib/xmpp4r/httpbinding/client.rb +285 -0
  174. data/lib/vendor/xmpp4r/lib/xmpp4r/idgenerator.rb +37 -0
  175. data/lib/vendor/xmpp4r/lib/xmpp4r/iq.rb +221 -0
  176. data/lib/vendor/xmpp4r/lib/xmpp4r/jid.rb +167 -0
  177. data/lib/vendor/xmpp4r/lib/xmpp4r/message.rb +148 -0
  178. data/lib/vendor/xmpp4r/lib/xmpp4r/muc.rb +14 -0
  179. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/mucbrowser.rb +92 -0
  180. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/mucclient.rb +462 -0
  181. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/simplemucclient.rb +332 -0
  182. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucadmin.rb +23 -0
  183. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucadminitem.rb +20 -0
  184. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucowner.rb +15 -0
  185. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/item.rb +143 -0
  186. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/muc.rb +70 -0
  187. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/mucuserinvite.rb +60 -0
  188. data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/mucuseritem.rb +36 -0
  189. data/lib/vendor/xmpp4r/lib/xmpp4r/presence.rb +232 -0
  190. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub.rb +8 -0
  191. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/configuration.rb +86 -0
  192. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/event.rb +49 -0
  193. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/item.rb +35 -0
  194. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/items.rb +44 -0
  195. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/node_config.rb +48 -0
  196. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/publish.rb +24 -0
  197. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/subscription.rb +62 -0
  198. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/subscription_config.rb +67 -0
  199. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/unsubscribe.rb +48 -0
  200. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/nodebrowser.rb +130 -0
  201. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/nodehelper.rb +156 -0
  202. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/servicehelper.rb +417 -0
  203. data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/iq/pubsub.rb +19 -0
  204. data/lib/vendor/xmpp4r/lib/xmpp4r/query.rb +15 -0
  205. data/lib/vendor/xmpp4r/lib/xmpp4r/rexmladdons.rb +151 -0
  206. data/lib/vendor/xmpp4r/lib/xmpp4r/roster.rb +7 -0
  207. data/lib/vendor/xmpp4r/lib/xmpp4r/roster/helper/roster.rb +519 -0
  208. data/lib/vendor/xmpp4r/lib/xmpp4r/roster/iq/roster.rb +215 -0
  209. data/lib/vendor/xmpp4r/lib/xmpp4r/roster/x/roster.rb +138 -0
  210. data/lib/vendor/xmpp4r/lib/xmpp4r/rpc.rb +2 -0
  211. data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/client.rb +123 -0
  212. data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/server.rb +74 -0
  213. data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/xmlrpcaddons.rb +67 -0
  214. data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/iq/rpc.rb +23 -0
  215. data/lib/vendor/xmpp4r/lib/xmpp4r/sasl.rb +237 -0
  216. data/lib/vendor/xmpp4r/lib/xmpp4r/semaphore.rb +38 -0
  217. data/lib/vendor/xmpp4r/lib/xmpp4r/stream.rb +497 -0
  218. data/lib/vendor/xmpp4r/lib/xmpp4r/streamparser.rb +77 -0
  219. data/lib/vendor/xmpp4r/lib/xmpp4r/tune.rb +2 -0
  220. data/lib/vendor/xmpp4r/lib/xmpp4r/tune/helper/helper.rb +58 -0
  221. data/lib/vendor/xmpp4r/lib/xmpp4r/tune/tune.rb +113 -0
  222. data/lib/vendor/xmpp4r/lib/xmpp4r/vcard.rb +6 -0
  223. data/lib/vendor/xmpp4r/lib/xmpp4r/vcard/helper/vcard.rb +84 -0
  224. data/lib/vendor/xmpp4r/lib/xmpp4r/vcard/iq/vcard.rb +109 -0
  225. data/lib/vendor/xmpp4r/lib/xmpp4r/version.rb +7 -0
  226. data/lib/vendor/xmpp4r/lib/xmpp4r/version/helper/responder.rb +72 -0
  227. data/lib/vendor/xmpp4r/lib/xmpp4r/version/helper/simpleresponder.rb +44 -0
  228. data/lib/vendor/xmpp4r/lib/xmpp4r/version/iq/version.rb +105 -0
  229. data/lib/vendor/xmpp4r/lib/xmpp4r/x.rb +37 -0
  230. data/lib/vendor/xmpp4r/lib/xmpp4r/xhtml.rb +1 -0
  231. data/lib/vendor/xmpp4r/lib/xmpp4r/xhtml/html.rb +115 -0
  232. data/lib/vendor/xmpp4r/lib/xmpp4r/xmpp4r.rb +18 -0
  233. data/lib/vendor/xmpp4r/lib/xmpp4r/xmppelement.rb +168 -0
  234. data/lib/vendor/xmpp4r/lib/xmpp4r/xmppstanza.rb +162 -0
  235. data/lib/vendor/xmpp4r/setup.rb +1586 -0
  236. data/lib/vendor/xmpp4r/test/bytestreams/tc_ibb.rb +186 -0
  237. data/lib/vendor/xmpp4r/test/bytestreams/tc_socks5bytestreams.rb +113 -0
  238. data/lib/vendor/xmpp4r/test/caps/tc_helper.rb +156 -0
  239. data/lib/vendor/xmpp4r/test/dataforms/tc_data.rb +81 -0
  240. data/lib/vendor/xmpp4r/test/delay/tc_xdelay.rb +51 -0
  241. data/lib/vendor/xmpp4r/test/discovery/tc_responder.rb +91 -0
  242. data/lib/vendor/xmpp4r/test/lib/assert_equal_xml.rb +14 -0
  243. data/lib/vendor/xmpp4r/test/lib/clienttester.rb +120 -0
  244. data/lib/vendor/xmpp4r/test/muc/tc_muc_mucclient.rb +830 -0
  245. data/lib/vendor/xmpp4r/test/muc/tc_muc_simplemucclient.rb +114 -0
  246. data/lib/vendor/xmpp4r/test/muc/tc_mucowner.rb +50 -0
  247. data/lib/vendor/xmpp4r/test/pubsub/tc_helper.rb +662 -0
  248. data/lib/vendor/xmpp4r/test/pubsub/tc_nodeconfig.rb +54 -0
  249. data/lib/vendor/xmpp4r/test/pubsub/tc_subscriptionconfig.rb +41 -0
  250. data/lib/vendor/xmpp4r/test/roster/tc_helper.rb +514 -0
  251. data/lib/vendor/xmpp4r/test/roster/tc_iqqueryroster.rb +173 -0
  252. data/lib/vendor/xmpp4r/test/roster/tc_xroster.rb +73 -0
  253. data/lib/vendor/xmpp4r/test/rpc/tc_helper.rb +96 -0
  254. data/lib/vendor/xmpp4r/test/tc_callbacks.rb +129 -0
  255. data/lib/vendor/xmpp4r/test/tc_class_names.rb +146 -0
  256. data/lib/vendor/xmpp4r/test/tc_client.rb +30 -0
  257. data/lib/vendor/xmpp4r/test/tc_errors.rb +146 -0
  258. data/lib/vendor/xmpp4r/test/tc_idgenerator.rb +30 -0
  259. data/lib/vendor/xmpp4r/test/tc_iq.rb +113 -0
  260. data/lib/vendor/xmpp4r/test/tc_iqquery.rb +31 -0
  261. data/lib/vendor/xmpp4r/test/tc_jid.rb +204 -0
  262. data/lib/vendor/xmpp4r/test/tc_message.rb +116 -0
  263. data/lib/vendor/xmpp4r/test/tc_presence.rb +150 -0
  264. data/lib/vendor/xmpp4r/test/tc_rexml.rb +139 -0
  265. data/lib/vendor/xmpp4r/test/tc_stream.rb +229 -0
  266. data/lib/vendor/xmpp4r/test/tc_streamComponent.rb +95 -0
  267. data/lib/vendor/xmpp4r/test/tc_streamError.rb +131 -0
  268. data/lib/vendor/xmpp4r/test/tc_streamSend.rb +59 -0
  269. data/lib/vendor/xmpp4r/test/tc_streamparser.rb +112 -0
  270. data/lib/vendor/xmpp4r/test/tc_xmppstanza.rb +135 -0
  271. data/lib/vendor/xmpp4r/test/ts_xmpp4r.rb +53 -0
  272. data/lib/vendor/xmpp4r/test/tune/tc_helper_recv.rb +84 -0
  273. data/lib/vendor/xmpp4r/test/tune/tc_helper_send.rb +74 -0
  274. data/lib/vendor/xmpp4r/test/tune/tc_tune.rb +79 -0
  275. data/lib/vendor/xmpp4r/test/vcard/tc_helper.rb +49 -0
  276. data/lib/vendor/xmpp4r/test/vcard/tc_iqvcard.rb +62 -0
  277. data/lib/vendor/xmpp4r/test/version/tc_helper.rb +60 -0
  278. data/lib/vendor/xmpp4r/test/version/tc_iqqueryversion.rb +97 -0
  279. data/lib/vendor/xmpp4r/test/xhtml/tc_html.rb +41 -0
  280. data/lib/vendor/xmpp4r/tools/gen_requires.bash +31 -0
  281. data/lib/vendor/xmpp4r/tools/xmpp4r-gemspec-test.rb +11 -0
  282. data/lib/vendor/xmpp4r/xmpp4r.gemspec +291 -0
  283. data/test/jabber_publisher_test.rb +1 -1
  284. data/test/mail_publisher_test.rb +2 -2
  285. data/test/mock/twitter.rb +0 -1
  286. data/test/rspec_builder_test.rb +39 -2
  287. data/test/rss_publisher_test.rb +1 -1
  288. data/test/twitter_publisher_test.rb +1 -1
  289. metadata +268 -53
  290. data/lib/cerberus/publisher/gmailer.rb +0 -17
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/ruby
2
+
3
+ $:.unshift File::dirname(__FILE__) + '/../../lib'
4
+
5
+ require 'test/unit'
6
+ require File::dirname(__FILE__) + '/../lib/clienttester'
7
+
8
+ require 'xmpp4r/xhtml'
9
+ include Jabber
10
+
11
+ class XHTML::HTMLTest < Test::Unit::TestCase
12
+ def test_set
13
+ contents1 = REXML::Element.new('p')
14
+ contents1.text = 'Hello'
15
+ html = XHTML::HTML.new(contents1)
16
+ assert_kind_of(XHTML::Body, html.first_element('body'))
17
+ assert_equal("<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'><p>Hello</p></body></html>", html.to_s)
18
+
19
+ contents2 = REXML::Element.new('a')
20
+ contents2.attributes['href'] = 'about:blank'
21
+ contents2.text = 'nothing'
22
+ html.contents = ["Look at ", contents2]
23
+ assert_equal("<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'>Look at <a href='about:blank'>nothing</a></body></html>", html.to_s)
24
+ end
25
+
26
+ def test_parse
27
+ html = XHTML::HTML.new('There is a fine <a href="http://home.gna.org/xmpp4r/">library</a>')
28
+ assert_equal("<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'>There is a fine <a href='http://home.gna.org/xmpp4r/'>library</a></body></html>", html.to_s)
29
+ end
30
+
31
+ def test_text
32
+ a1 = REXML::Element.new('a')
33
+ a1.attributes['href'] = 'http://www.jabber.org/'
34
+ a1.text = 'Jabber'
35
+ a2 = REXML::Element.new('a')
36
+ a2.attributes['href'] = 'http://home.gna.org/xmpp4r/'
37
+ a2.text = 'XMPP4R'
38
+ html = XHTML::HTML.new(["Look at ", a1, " & ", a2])
39
+ assert_equal("Look at Jabber & XMPP4R", html.to_text)
40
+ end
41
+ end
@@ -0,0 +1,31 @@
1
+ #!/bin/bash
2
+
3
+ # Generate a full graph of the requires in the Ruby files of this library.
4
+ #
5
+ # Output : The graph is generated as a .png file in the same dir as this script.
6
+ #
7
+ # This script requires the following tools to be installed:
8
+ #
9
+ # * mktemp
10
+ # * dot (Try 'sudo port install graphviz' on OS X)
11
+
12
+ export TMPDIR='/tmp'
13
+ export TMPFILE=$(mktemp $TMPDIR/gen_requires.XXXXXX)
14
+ export OUTFILE='gen_requires.png'
15
+ export SELFDIR=`pwd`
16
+ export LIBDIR=$SELFDIR/../lib
17
+
18
+ #######################################
19
+ # Unlikely you need to edit below here
20
+ #######################################
21
+
22
+ cd $LIBDIR
23
+
24
+ echo "strict digraph requirestree { " > $TMPFILE
25
+ grep -r "^require " * | grep -v swp | sed "s/^\(.*\).rb:require '\(.*\)'/\1 -> \2;/" | sed 's/\//_/g' >> $TMPFILE
26
+ echo "}" >> $TMPFILE
27
+
28
+ cd $SELFDIR
29
+ dot -Tpng $TMPFILE -o $OUTFILE
30
+ rm -f $TMPFILE
31
+
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Since GitHub doesn't allow unsafe commands in a gemspec this script
4
+ # will simulate running in their environment.
5
+
6
+ require 'rubygems/specification'
7
+ data = File.read('../xmpp4r.gemspec')
8
+ spec = nil
9
+ Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
10
+ puts spec
11
+
@@ -0,0 +1,291 @@
1
+ # WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!
2
+ # RUN : 'rake gem:update_gemspec'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.rubygems_version = "1.2.0"
6
+ s.homepage = "http://home.gna.org/xmpp4r/"
7
+ s.loaded = "false"
8
+ s.rubyforge_project = "xmpp4r"
9
+ s.summary = "XMPP4R is an XMPP/Jabber library for Ruby."
10
+ s.require_paths = ["lib"]
11
+ s.description = "XMPP4R is an XMPP/Jabber library for Ruby."
12
+ s.extra_rdoc_files = ["README.rdoc", "README_ruby19.txt", "CHANGELOG", "LICENSE", "COPYING"]
13
+ s.platform = "ruby"
14
+ s.authors = ["Lucas Nussbaum", "Stephan Maka", "Glenn Rempe"]
15
+ s.name = "xmpp4r"
16
+ s.files = ["CHANGELOG",
17
+ "COPYING",
18
+ "LICENSE",
19
+ "README.rdoc",
20
+ "README_ruby19.txt",
21
+ "Rakefile",
22
+ "data/doc",
23
+ "data/doc/xmpp4r",
24
+ "data/doc/xmpp4r/examples",
25
+ "data/doc/xmpp4r/examples/advanced",
26
+ "data/doc/xmpp4r/examples/advanced/adventure",
27
+ "data/doc/xmpp4r/examples/advanced/adventure/README",
28
+ "data/doc/xmpp4r/examples/advanced/adventure/adventure.rb",
29
+ "data/doc/xmpp4r/examples/advanced/adventure/adventuremuc.rb",
30
+ "data/doc/xmpp4r/examples/advanced/adventure/cube.xml",
31
+ "data/doc/xmpp4r/examples/advanced/adventure/tower.xml",
32
+ "data/doc/xmpp4r/examples/advanced/adventure/world.rb",
33
+ "data/doc/xmpp4r/examples/advanced/fileserve.conf",
34
+ "data/doc/xmpp4r/examples/advanced/fileserve.rb",
35
+ "data/doc/xmpp4r/examples/advanced/getonline.rb",
36
+ "data/doc/xmpp4r/examples/advanced/gtkmucclient.rb",
37
+ "data/doc/xmpp4r/examples/advanced/migrate.rb",
38
+ "data/doc/xmpp4r/examples/advanced/minimuc.rb",
39
+ "data/doc/xmpp4r/examples/advanced/pep-aggregator",
40
+ "data/doc/xmpp4r/examples/advanced/pep-aggregator/index.xsl",
41
+ "data/doc/xmpp4r/examples/advanced/pep-aggregator/pep-aggregator.rb",
42
+ "data/doc/xmpp4r/examples/advanced/recvfile.rb",
43
+ "data/doc/xmpp4r/examples/advanced/rosterdiscovery.rb",
44
+ "data/doc/xmpp4r/examples/advanced/sendfile.conf",
45
+ "data/doc/xmpp4r/examples/advanced/sendfile.rb",
46
+ "data/doc/xmpp4r/examples/advanced/shellmgr",
47
+ "data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr.rb",
48
+ "data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_jabber.rb",
49
+ "data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_test.rb",
50
+ "data/doc/xmpp4r/examples/advanced/versionpoll.rb",
51
+ "data/doc/xmpp4r/examples/advanced/xmpping.rb",
52
+ "data/doc/xmpp4r/examples/advanced/xmppingrc.sample",
53
+ "data/doc/xmpp4r/examples/basic",
54
+ "data/doc/xmpp4r/examples/basic/change_password.rb",
55
+ "data/doc/xmpp4r/examples/basic/client.rb",
56
+ "data/doc/xmpp4r/examples/basic/component.rb",
57
+ "data/doc/xmpp4r/examples/basic/echo.rb",
58
+ "data/doc/xmpp4r/examples/basic/jabbersend.rb",
59
+ "data/doc/xmpp4r/examples/basic/mass_sender.rb",
60
+ "data/doc/xmpp4r/examples/basic/muc_owner_config.rb",
61
+ "data/doc/xmpp4r/examples/basic/mucinfo.rb",
62
+ "data/doc/xmpp4r/examples/basic/mucsimplebot.rb",
63
+ "data/doc/xmpp4r/examples/basic/register.rb",
64
+ "data/doc/xmpp4r/examples/basic/remove_registration.rb",
65
+ "data/doc/xmpp4r/examples/basic/roster.rb",
66
+ "data/doc/xmpp4r/examples/basic/rosterprint.rb",
67
+ "data/doc/xmpp4r/examples/basic/rosterrename.rb",
68
+ "data/doc/xmpp4r/examples/basic/rosterwatch.rb",
69
+ "data/doc/xmpp4r/examples/basic/send_vcard.rb",
70
+ "data/doc/xmpp4r/examples/basic/tune_client.rb",
71
+ "data/doc/xmpp4r/examples/basic/tune_server.rb",
72
+ "data/doc/xmpp4r/examples/basic/versionbot.rb",
73
+ "lib/xmpp4r",
74
+ "lib/xmpp4r.rb",
75
+ "lib/xmpp4r/base64.rb",
76
+ "lib/xmpp4r/bytestreams",
77
+ "lib/xmpp4r/bytestreams.rb",
78
+ "lib/xmpp4r/bytestreams/helper",
79
+ "lib/xmpp4r/bytestreams/helper/filetransfer.rb",
80
+ "lib/xmpp4r/bytestreams/helper/ibb",
81
+ "lib/xmpp4r/bytestreams/helper/ibb/base.rb",
82
+ "lib/xmpp4r/bytestreams/helper/ibb/initiator.rb",
83
+ "lib/xmpp4r/bytestreams/helper/ibb/target.rb",
84
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams",
85
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb",
86
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb",
87
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb",
88
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb",
89
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb",
90
+ "lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb.orig",
91
+ "lib/xmpp4r/bytestreams/iq",
92
+ "lib/xmpp4r/bytestreams/iq/bytestreams.rb",
93
+ "lib/xmpp4r/bytestreams/iq/si.rb",
94
+ "lib/xmpp4r/callbacks.rb",
95
+ "lib/xmpp4r/caps",
96
+ "lib/xmpp4r/caps.rb",
97
+ "lib/xmpp4r/caps/c.rb",
98
+ "lib/xmpp4r/caps/helper",
99
+ "lib/xmpp4r/caps/helper/generator.rb",
100
+ "lib/xmpp4r/caps/helper/helper.rb",
101
+ "lib/xmpp4r/client.rb",
102
+ "lib/xmpp4r/command",
103
+ "lib/xmpp4r/command/helper",
104
+ "lib/xmpp4r/command/helper/responder.rb",
105
+ "lib/xmpp4r/command/iq",
106
+ "lib/xmpp4r/command/iq/command.rb",
107
+ "lib/xmpp4r/component.rb",
108
+ "lib/xmpp4r/connection.rb",
109
+ "lib/xmpp4r/dataforms",
110
+ "lib/xmpp4r/dataforms.rb",
111
+ "lib/xmpp4r/dataforms/x",
112
+ "lib/xmpp4r/dataforms/x/data.rb",
113
+ "lib/xmpp4r/debuglog.rb",
114
+ "lib/xmpp4r/delay",
115
+ "lib/xmpp4r/delay.rb",
116
+ "lib/xmpp4r/delay/x",
117
+ "lib/xmpp4r/delay/x/delay.rb",
118
+ "lib/xmpp4r/discovery",
119
+ "lib/xmpp4r/discovery.rb",
120
+ "lib/xmpp4r/discovery/helper",
121
+ "lib/xmpp4r/discovery/helper/responder.rb",
122
+ "lib/xmpp4r/discovery/iq",
123
+ "lib/xmpp4r/discovery/iq/discoinfo.rb",
124
+ "lib/xmpp4r/discovery/iq/discoitems.rb",
125
+ "lib/xmpp4r/errors.rb",
126
+ "lib/xmpp4r/feature_negotiation",
127
+ "lib/xmpp4r/feature_negotiation.rb",
128
+ "lib/xmpp4r/feature_negotiation/iq",
129
+ "lib/xmpp4r/feature_negotiation/iq/feature.rb",
130
+ "lib/xmpp4r/framework",
131
+ "lib/xmpp4r/framework/base.rb",
132
+ "lib/xmpp4r/framework/bot.rb",
133
+ "lib/xmpp4r/httpbinding",
134
+ "lib/xmpp4r/httpbinding.rb",
135
+ "lib/xmpp4r/httpbinding/client.rb",
136
+ "lib/xmpp4r/idgenerator.rb",
137
+ "lib/xmpp4r/iq.rb",
138
+ "lib/xmpp4r/jid.rb",
139
+ "lib/xmpp4r/message.rb",
140
+ "lib/xmpp4r/muc",
141
+ "lib/xmpp4r/muc.rb",
142
+ "lib/xmpp4r/muc/helper",
143
+ "lib/xmpp4r/muc/helper/mucbrowser.rb",
144
+ "lib/xmpp4r/muc/helper/mucclient.rb",
145
+ "lib/xmpp4r/muc/helper/simplemucclient.rb",
146
+ "lib/xmpp4r/muc/iq",
147
+ "lib/xmpp4r/muc/iq/mucadmin.rb",
148
+ "lib/xmpp4r/muc/iq/mucadminitem.rb",
149
+ "lib/xmpp4r/muc/iq/mucowner.rb",
150
+ "lib/xmpp4r/muc/item.rb",
151
+ "lib/xmpp4r/muc/x",
152
+ "lib/xmpp4r/muc/x/muc.rb",
153
+ "lib/xmpp4r/muc/x/mucuserinvite.rb",
154
+ "lib/xmpp4r/muc/x/mucuseritem.rb",
155
+ "lib/xmpp4r/presence.rb",
156
+ "lib/xmpp4r/pubsub",
157
+ "lib/xmpp4r/pubsub.rb",
158
+ "lib/xmpp4r/pubsub/children",
159
+ "lib/xmpp4r/pubsub/children/configuration.rb",
160
+ "lib/xmpp4r/pubsub/children/event.rb",
161
+ "lib/xmpp4r/pubsub/children/item.rb",
162
+ "lib/xmpp4r/pubsub/children/items.rb",
163
+ "lib/xmpp4r/pubsub/children/node_config.rb",
164
+ "lib/xmpp4r/pubsub/children/publish.rb",
165
+ "lib/xmpp4r/pubsub/children/subscription.rb",
166
+ "lib/xmpp4r/pubsub/children/subscription_config.rb",
167
+ "lib/xmpp4r/pubsub/children/unsubscribe.rb",
168
+ "lib/xmpp4r/pubsub/helper",
169
+ "lib/xmpp4r/pubsub/helper/nodebrowser.rb",
170
+ "lib/xmpp4r/pubsub/helper/nodehelper.rb",
171
+ "lib/xmpp4r/pubsub/helper/servicehelper.rb",
172
+ "lib/xmpp4r/pubsub/iq",
173
+ "lib/xmpp4r/pubsub/iq/pubsub.rb",
174
+ "lib/xmpp4r/query.rb",
175
+ "lib/xmpp4r/rexmladdons.rb",
176
+ "lib/xmpp4r/roster",
177
+ "lib/xmpp4r/roster.rb",
178
+ "lib/xmpp4r/roster/helper",
179
+ "lib/xmpp4r/roster/helper/roster.rb",
180
+ "lib/xmpp4r/roster/iq",
181
+ "lib/xmpp4r/roster/iq/roster.rb",
182
+ "lib/xmpp4r/roster/x",
183
+ "lib/xmpp4r/roster/x/roster.rb",
184
+ "lib/xmpp4r/rpc",
185
+ "lib/xmpp4r/rpc.rb",
186
+ "lib/xmpp4r/rpc/helper",
187
+ "lib/xmpp4r/rpc/helper/client.rb",
188
+ "lib/xmpp4r/rpc/helper/server.rb",
189
+ "lib/xmpp4r/rpc/helper/xmlrpcaddons.rb",
190
+ "lib/xmpp4r/rpc/iq",
191
+ "lib/xmpp4r/rpc/iq/rpc.rb",
192
+ "lib/xmpp4r/sasl.rb",
193
+ "lib/xmpp4r/semaphore.rb",
194
+ "lib/xmpp4r/stream.rb",
195
+ "lib/xmpp4r/streamparser.rb",
196
+ "lib/xmpp4r/tune",
197
+ "lib/xmpp4r/tune.rb",
198
+ "lib/xmpp4r/tune/helper",
199
+ "lib/xmpp4r/tune/helper/helper.rb",
200
+ "lib/xmpp4r/tune/tune.rb",
201
+ "lib/xmpp4r/vcard",
202
+ "lib/xmpp4r/vcard.rb",
203
+ "lib/xmpp4r/vcard/helper",
204
+ "lib/xmpp4r/vcard/helper/vcard.rb",
205
+ "lib/xmpp4r/vcard/iq",
206
+ "lib/xmpp4r/vcard/iq/vcard.rb",
207
+ "lib/xmpp4r/version",
208
+ "lib/xmpp4r/version.rb",
209
+ "lib/xmpp4r/version/helper",
210
+ "lib/xmpp4r/version/helper/responder.rb",
211
+ "lib/xmpp4r/version/helper/simpleresponder.rb",
212
+ "lib/xmpp4r/version/iq",
213
+ "lib/xmpp4r/version/iq/version.rb",
214
+ "lib/xmpp4r/x.rb",
215
+ "lib/xmpp4r/xhtml",
216
+ "lib/xmpp4r/xhtml.rb",
217
+ "lib/xmpp4r/xhtml/html.rb",
218
+ "lib/xmpp4r/xmpp4r.rb",
219
+ "lib/xmpp4r/xmppelement.rb",
220
+ "lib/xmpp4r/xmppstanza.rb",
221
+ "setup.rb",
222
+ "test/bytestreams",
223
+ "test/bytestreams/tc_ibb.rb",
224
+ "test/bytestreams/tc_socks5bytestreams.rb",
225
+ "test/caps",
226
+ "test/caps/tc_helper.rb",
227
+ "test/dataforms",
228
+ "test/dataforms/tc_data.rb",
229
+ "test/delay",
230
+ "test/delay/tc_xdelay.rb",
231
+ "test/discovery",
232
+ "test/discovery/tc_responder.rb",
233
+ "test/lib",
234
+ "test/lib/assert_equal_xml.rb",
235
+ "test/lib/clienttester.rb",
236
+ "test/muc",
237
+ "test/muc/tc_muc_mucclient.rb",
238
+ "test/muc/tc_muc_simplemucclient.rb",
239
+ "test/muc/tc_mucowner.rb",
240
+ "test/pubsub",
241
+ "test/pubsub/tc_helper.rb",
242
+ "test/pubsub/tc_nodeconfig.rb",
243
+ "test/pubsub/tc_subscriptionconfig.rb",
244
+ "test/roster",
245
+ "test/roster/tc_helper.rb",
246
+ "test/roster/tc_iqqueryroster.rb",
247
+ "test/roster/tc_xroster.rb",
248
+ "test/rpc",
249
+ "test/rpc/tc_helper.rb",
250
+ "test/tc_callbacks.rb",
251
+ "test/tc_class_names.rb",
252
+ "test/tc_client.rb",
253
+ "test/tc_errors.rb",
254
+ "test/tc_idgenerator.rb",
255
+ "test/tc_iq.rb",
256
+ "test/tc_iqquery.rb",
257
+ "test/tc_jid.rb",
258
+ "test/tc_message.rb",
259
+ "test/tc_presence.rb",
260
+ "test/tc_rexml.rb",
261
+ "test/tc_stream.rb",
262
+ "test/tc_streamComponent.rb",
263
+ "test/tc_streamError.rb",
264
+ "test/tc_streamSend.rb",
265
+ "test/tc_streamparser.rb",
266
+ "test/tc_xmppstanza.rb",
267
+ "test/ts_xmpp4r.rb",
268
+ "test/tune",
269
+ "test/tune/tc_helper_recv.rb",
270
+ "test/tune/tc_helper_send.rb",
271
+ "test/tune/tc_tune.rb",
272
+ "test/vcard",
273
+ "test/vcard/tc_helper.rb",
274
+ "test/vcard/tc_iqvcard.rb",
275
+ "test/version",
276
+ "test/version/tc_helper.rb",
277
+ "test/version/tc_iqqueryversion.rb",
278
+ "test/xhtml",
279
+ "test/xhtml/tc_html.rb",
280
+ "tools/gen_requires.bash",
281
+ "tools/xmpp4r-gemspec-test.rb",
282
+ "xmpp4r.gemspec"]
283
+ s.required_rubygems_version = ">= 0"
284
+ s.has_rdoc = true
285
+ s.specification_version = "2"
286
+ s.email = "xmpp4r-devel@gna.org"
287
+ s.version = "0.4"
288
+ s.rdoc_options = ["--quiet", "--title", "XMPP4R is an XMPP/Jabber library for Ruby.", "--opname", "index.html", "--main", "lib/xmpp4r.rb", "--line-numbers", "--inline-source"]
289
+ s.required_ruby_version = ">= 1.8.4"
290
+ s.bindir = "bin"
291
+ end
@@ -16,7 +16,7 @@ class JabberPublisherTest < Test::Unit::TestCase
16
16
  assert messages.size > 2
17
17
  assert_equal 'google.com', messages[0].to.domain
18
18
  assert_equal 'jit1', messages[0].to.node
19
- assert_equal '[MegaApp] Build still broken (#1232)', messages[0].subject
19
+ assert_equal '[MegaApp] Build still broken (1232)', messages[0].subject
20
20
  assert !messages[0].body.nil?
21
21
  end
22
22
  end
@@ -11,7 +11,7 @@ class MailPublisherTest < Test::Unit::TestCase
11
11
 
12
12
  def test_publisher
13
13
  options = Cerberus::Config.new(nil, :publisher => {
14
- :mail => {:recipients => 'anatol.pomozov@hello.com', :sender => 'haha', :delivery_method => 'test'}},
14
+ :mail => {:recipients => 'anatol.pomozov@hello.com', :sender => "cerberus@example.com", :delivery_method => 'test'}},
15
15
  :application_name => 'MyApp')
16
16
  build = DummyManager.new('last message', 'this is output', 1232, 'anatol')
17
17
 
@@ -20,7 +20,7 @@ class MailPublisherTest < Test::Unit::TestCase
20
20
  mails = ActionMailer::Base.deliveries
21
21
  assert_equal 1, mails.size
22
22
  mail = mails[0]
23
- assert_equal 'haha', mail.from_addrs[0].address
23
+ assert_equal 'cerberus@example.com', mail.from_addrs[0].address
24
24
  assert_equal '[MyApp] Cerberus set up for project (1232)', mail.subject
25
25
  end
26
26
  end
@@ -1,4 +1,3 @@
1
- gem 'twitter4r', '>=0.3.0'
2
1
  require 'twitter'
3
2
 
4
3
  class Twitter::Client
@@ -17,6 +17,9 @@ class RSpecBuilderTest < Test::Unit::TestCase
17
17
  builder.output = RSPEC_TEST_OK_OUTPUT
18
18
  assert builder.successful?
19
19
 
20
+ builder.output = RSPEC_TEST_OK_OUTPUT_ALT
21
+ assert builder.successful?
22
+
20
23
  builder.output = RSPEC_TEST_OK_OUTPUT_WITH_PENDING
21
24
  assert builder.successful?
22
25
 
@@ -26,7 +29,7 @@ class RSpecBuilderTest < Test::Unit::TestCase
26
29
 
27
30
  builder.output = RSPEC_TEST_ERROR_OUTPUT_WITH_PENDING
28
31
  assert !builder.successful?
29
- assert_equal 1, builder.brokeness
32
+ assert_equal 3, builder.brokeness
30
33
  end
31
34
  end
32
35
 
@@ -59,6 +62,40 @@ Finished in 41.688393 seconds
59
62
  770 examples, 0 failures, 6 pending
60
63
  END
61
64
 
65
+ RSPEC_TEST_OK_OUTPUT_ALT = <<-END
66
+ Git commit message (fixes #111)
67
+ diff...
68
+ (in /Users/deployer/.cerberus/work/webapp/sources)
69
+ Profiling enabled.
70
+ ..................................................................................................................................................
71
+ .................................................................................................................................................
72
+
73
+
74
+ Top 10 slowest examples:
75
+ 6.0324890 Setting should update the modified_time_unix attribute after
76
+ destroy
77
+ 3.0633630 Recorded should update the modified_time_unix whenever the
78
+ wildcard value is updated in nvp
79
+ 3.0267280 Setting should update the modified_time_unix attribute after
80
+ save
81
+ 0.8593440 Audit searching for auditables should find audits for a
82
+ deleted package and its children
83
+ 0.7079580 Package a fully activatable valid package should delete all
84
+ child records when destroyed
85
+ 0.3543940 POST create should audit a time segment split
86
+ 0.3363000 Package a fully activatable valid package should insert into
87
+ the db successfully
88
+ 0.3159420 Audit searching for auditables should find audits for a
89
+ deleted number
90
+ 0.2989840 Audit searching for auditables should find all auditables in
91
+ 1 week as default
92
+ 0.2906990 POST create should audit the created profile
93
+
94
+ Finished in 35.621931 seconds
95
+
96
+ 291 examples, 0 failures
97
+ END
98
+
62
99
  RSPEC_TEST_OK_OUTPUT_WITH_PENDING =<<-END
63
100
  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby /Library/Ruby/Gems/1.8/gems/rspec-1.1.12/bin/spec spec/views/clients/show.html.erb_spec.rb spec/models/role_spec.rb spec/models/dashboard_spec.rb spec/models/client_spec.rb spec/helpers/admin/users_helper_spec.rb spec/controllers/sessions_controller_spec.rb spec/models/query_dates_spec.rb spec/helpers/heatmaps_helper_spec.rb spec/helpers/passwords_helper_spec.rb spec/controllers/admin/reports_controller_spec.rb spec/models/role_assignment_spec.rb spec/models/default_role_spec.rb spec/controllers/sites_controller_spec.rb spec/controllers/dashboards_controller_spec.rb spec/models/widget_instance_spec.rb spec/models/widget_spec.rb spec/controllers/admin/roles_controller_spec.rb spec/models/user_spec.rb spec/models/right_spec.rb spec/views/clients/new.html.erb_spec.rb spec/helpers/reports_helper_spec.rb spec/controllers/reports_controller_spec.rb spec/models/site_spec.rb spec/helpers/admin/rights_helper_spec.rb spec/models/data_warehouse_spec.rb spec/helpers/users_helper_spec.rb spec/helpers/clients_helper_spec.rb spec/helpers/admin/roles_helper_spec.rb spec/views/clients/index.html.erb_spec.rb spec/controllers/users_controller_spec.rb spec/controllers/clients_routing_spec.rb spec/controllers/clients_controller_spec.rb spec/controllers/admin/users_controller_spec.rb spec/controllers/access_control_spec.rb spec/models/query_cache_key_spec.rb spec/views/clients/edit.html.erb_spec.rb spec/controllers/passwords_controller_spec.rb spec/controllers/authenticated_system_spec.rb spec/helpers/application_helper_spec.rb spec/models/report_spec.rb spec/models/query_spec.rb spec/helpers/admin/reports_helper_spec.rb spec/controllers/queries_controller_spec.rb spec/controllers/application_controller_spec.rb spec/models/excel_export_spec.rb spec/controllers/admin/rights_controller_spec.rb -O spec/spec.opts
64
101
  ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
@@ -98,5 +135,5 @@ count should not have changed, but did change from 1 to 2
98
135
 
99
136
  Finished in 0.245002 seconds
100
137
 
101
- 15 examples, 1 failure, 1 pending
138
+ 15 examples, 3 failures, 1 pending
102
139
  END