cerberus 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +4 -0
- data/Changelog.txt +11 -0
- data/Copyright.txt +16 -0
- data/Rakefile +16 -25
- data/Readme.markdown +1 -3
- data/bin/cerberus +5 -0
- data/lib/cerberus/builder/bjam.rb +1 -3
- data/lib/cerberus/builder/maven2.rb +0 -1
- data/lib/cerberus/builder/rake.rb +1 -1
- data/lib/cerberus/builder/rspec.rb +0 -1
- data/lib/cerberus/builder/ruby_base.rb +0 -1
- data/lib/cerberus/component_lazy_loader.rb +6 -2
- data/lib/cerberus/config.example.yml +1 -0
- data/lib/cerberus/constants.rb +2 -2
- data/lib/cerberus/manager.rb +7 -1
- data/lib/cerberus/publisher/mail.rb +4 -4
- data/lib/cerberus/publisher/twitter.rb +0 -1
- data/lib/cerberus/scm/base.rb +19 -0
- data/lib/cerberus/scm/bzr.rb +62 -0
- data/lib/cerberus/scm/cvs.rb +2 -7
- data/lib/cerberus/scm/darcs.rb +2 -11
- data/lib/cerberus/scm/git.rb +6 -14
- data/lib/cerberus/scm/perforce.rb +4 -4
- data/lib/cerberus/scm/svn.rb +2 -7
- data/lib/cerberus/utils.rb +5 -0
- data/lib/vendor/irc/README +23 -0
- data/lib/vendor/irc/lib/IRC.rb +164 -0
- data/lib/vendor/irc/lib/IRCChannel.rb +33 -0
- data/lib/vendor/irc/lib/IRCConnection.rb +134 -0
- data/lib/vendor/irc/lib/IRCEvent.rb +91 -0
- data/lib/vendor/irc/lib/IRCUser.rb +23 -0
- data/lib/vendor/irc/lib/IRCUtil.rb +49 -0
- data/lib/vendor/irc/lib/eventmap.yml +247 -0
- data/lib/vendor/twitter/CHANGES +129 -0
- data/lib/vendor/twitter/MIT-LICENSE +20 -0
- data/lib/vendor/twitter/README +37 -0
- data/lib/vendor/twitter/TODO +7 -0
- data/lib/vendor/twitter/lib/twitter.rb +34 -0
- data/lib/vendor/twitter/lib/twitter/client.rb +24 -0
- data/lib/vendor/twitter/lib/twitter/client/account.rb +24 -0
- data/lib/vendor/twitter/lib/twitter/client/auth.rb +27 -0
- data/lib/vendor/twitter/lib/twitter/client/base.rb +93 -0
- data/lib/vendor/twitter/lib/twitter/client/blocks.rb +35 -0
- data/lib/vendor/twitter/lib/twitter/client/favorites.rb +53 -0
- data/lib/vendor/twitter/lib/twitter/client/friendship.rb +35 -0
- data/lib/vendor/twitter/lib/twitter/client/graph.rb +37 -0
- data/lib/vendor/twitter/lib/twitter/client/messaging.rb +79 -0
- data/lib/vendor/twitter/lib/twitter/client/profile.rb +29 -0
- data/lib/vendor/twitter/lib/twitter/client/search.rb +27 -0
- data/lib/vendor/twitter/lib/twitter/client/status.rb +51 -0
- data/lib/vendor/twitter/lib/twitter/client/timeline.rb +72 -0
- data/lib/vendor/twitter/lib/twitter/client/user.rb +65 -0
- data/lib/vendor/twitter/lib/twitter/config.rb +77 -0
- data/lib/vendor/twitter/lib/twitter/console.rb +31 -0
- data/lib/vendor/twitter/lib/twitter/core.rb +137 -0
- data/lib/vendor/twitter/lib/twitter/ext.rb +2 -0
- data/lib/vendor/twitter/lib/twitter/ext/stdlib.rb +52 -0
- data/lib/vendor/twitter/lib/twitter/extras.rb +39 -0
- data/lib/vendor/twitter/lib/twitter/meta.rb +56 -0
- data/lib/vendor/twitter/lib/twitter/model.rb +360 -0
- data/lib/vendor/twitter/lib/twitter/version.rb +19 -0
- data/lib/vendor/twitter/spec/twitter/client/account_spec.rb +28 -0
- data/lib/vendor/twitter/spec/twitter/client/auth_spec.rb +34 -0
- data/lib/vendor/twitter/spec/twitter/client/base_spec.rb +242 -0
- data/lib/vendor/twitter/spec/twitter/client/blocks_spec.rb +76 -0
- data/lib/vendor/twitter/spec/twitter/client/favorites_spec.rb +183 -0
- data/lib/vendor/twitter/spec/twitter/client/friendship_spec.rb +76 -0
- data/lib/vendor/twitter/spec/twitter/client/graph_spec.rb +67 -0
- data/lib/vendor/twitter/spec/twitter/client/messaging_spec.rb +135 -0
- data/lib/vendor/twitter/spec/twitter/client/profile_spec.rb +91 -0
- data/lib/vendor/twitter/spec/twitter/client/search_spec.rb +68 -0
- data/lib/vendor/twitter/spec/twitter/client/status_spec.rb +119 -0
- data/lib/vendor/twitter/spec/twitter/client/timeline_spec.rb +79 -0
- data/lib/vendor/twitter/spec/twitter/client/user_spec.rb +203 -0
- data/lib/vendor/twitter/spec/twitter/client_spec.rb +2 -0
- data/lib/vendor/twitter/spec/twitter/config_spec.rb +86 -0
- data/lib/vendor/twitter/spec/twitter/console_spec.rb +15 -0
- data/lib/vendor/twitter/spec/twitter/core_spec.rb +127 -0
- data/lib/vendor/twitter/spec/twitter/ext/stdlib_spec.rb +59 -0
- data/lib/vendor/twitter/spec/twitter/extras_spec.rb +46 -0
- data/lib/vendor/twitter/spec/twitter/meta_spec.rb +90 -0
- data/lib/vendor/twitter/spec/twitter/model_spec.rb +508 -0
- data/lib/vendor/twitter/spec/twitter/version_spec.rb +19 -0
- data/lib/vendor/xmpp4r/CHANGELOG +83 -0
- data/lib/vendor/xmpp4r/COPYING +340 -0
- data/lib/vendor/xmpp4r/LICENSE +59 -0
- data/lib/vendor/xmpp4r/README.rdoc +110 -0
- data/lib/vendor/xmpp4r/README_ruby19.txt +43 -0
- data/lib/vendor/xmpp4r/Rakefile +262 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/README +56 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/adventure.rb +23 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/adventuremuc.rb +136 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/cube.xml +15 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/tower.xml +69 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/adventure/world.rb +424 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/fileserve.conf +11 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/fileserve.rb +346 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/getonline.rb +56 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/gtkmucclient.rb +315 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/migrate.rb +88 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/minimuc.rb +266 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/pep-aggregator/index.xsl +235 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/pep-aggregator/pep-aggregator.rb +147 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/recvfile.rb +84 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/rosterdiscovery.rb +129 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/sendfile.conf +10 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/sendfile.rb +72 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr.rb +51 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_jabber.rb +43 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/shellmgr/shellmgr_test.rb +10 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/versionpoll.rb +90 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/xmpping.rb +146 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/advanced/xmppingrc.sample +14 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/change_password.rb +41 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/client.rb +70 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/component.rb +11 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/echo.rb +37 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/jabbersend.rb +41 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mass_sender.rb +68 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/muc_owner_config.rb +12 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mucinfo.rb +41 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/mucsimplebot.rb +82 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/register.rb +42 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb +18 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/roster.rb +44 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterprint.rb +50 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterrename.rb +34 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/rosterwatch.rb +171 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/send_vcard.rb +67 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/tune_client.rb +56 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/tune_server.rb +58 -0
- data/lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/versionbot.rb +75 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r.rb +116 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/base64.rb +32 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams.rb +15 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/filetransfer.rb +319 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/base.rb +257 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/initiator.rb +31 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/ibb/target.rb +47 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb +152 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb +86 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb +198 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb +65 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb +73 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb.orig +62 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/iq/bytestreams.rb +170 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/bytestreams/iq/si.rb +206 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/callbacks.rb +124 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/caps.rb +1 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/caps/c.rb +53 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/generator.rb +160 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/helper.rb +87 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/client.rb +317 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/command/helper/responder.rb +53 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/command/iq/command.rb +154 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/component.rb +103 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/connection.rb +219 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/dataforms.rb +5 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb +297 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/debuglog.rb +42 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/delay.rb +5 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/delay/x/delay.rb +99 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/discovery.rb +7 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/helper/responder.rb +165 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/iq/discoinfo.rb +211 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/discovery/iq/discoitems.rb +147 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/errors.rb +281 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/feature_negotiation.rb +5 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/feature_negotiation/iq/feature.rb +28 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/framework/base.rb +55 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/framework/bot.rb +148 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/httpbinding.rb +5 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/httpbinding/client.rb +285 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/idgenerator.rb +37 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/iq.rb +221 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/jid.rb +167 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/message.rb +148 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc.rb +14 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/mucbrowser.rb +92 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/mucclient.rb +462 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/helper/simplemucclient.rb +332 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucadmin.rb +23 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucadminitem.rb +20 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/iq/mucowner.rb +15 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/item.rb +143 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/muc.rb +70 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/mucuserinvite.rb +60 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/muc/x/mucuseritem.rb +36 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/presence.rb +232 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub.rb +8 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/configuration.rb +86 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/event.rb +49 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/item.rb +35 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/items.rb +44 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/node_config.rb +48 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/publish.rb +24 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/subscription.rb +62 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/subscription_config.rb +67 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/unsubscribe.rb +48 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/nodebrowser.rb +130 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/nodehelper.rb +156 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/helper/servicehelper.rb +417 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/pubsub/iq/pubsub.rb +19 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/query.rb +15 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rexmladdons.rb +151 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/roster.rb +7 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/roster/helper/roster.rb +519 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/roster/iq/roster.rb +215 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/roster/x/roster.rb +138 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rpc.rb +2 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/client.rb +123 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/server.rb +74 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/helper/xmlrpcaddons.rb +67 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/rpc/iq/rpc.rb +23 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/sasl.rb +237 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/semaphore.rb +38 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/stream.rb +497 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/streamparser.rb +77 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/tune.rb +2 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/tune/helper/helper.rb +58 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/tune/tune.rb +113 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/vcard.rb +6 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/vcard/helper/vcard.rb +84 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/vcard/iq/vcard.rb +109 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/version.rb +7 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/version/helper/responder.rb +72 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/version/helper/simpleresponder.rb +44 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/version/iq/version.rb +105 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/x.rb +37 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/xhtml.rb +1 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/xhtml/html.rb +115 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/xmpp4r.rb +18 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/xmppelement.rb +168 -0
- data/lib/vendor/xmpp4r/lib/xmpp4r/xmppstanza.rb +162 -0
- data/lib/vendor/xmpp4r/setup.rb +1586 -0
- data/lib/vendor/xmpp4r/test/bytestreams/tc_ibb.rb +186 -0
- data/lib/vendor/xmpp4r/test/bytestreams/tc_socks5bytestreams.rb +113 -0
- data/lib/vendor/xmpp4r/test/caps/tc_helper.rb +156 -0
- data/lib/vendor/xmpp4r/test/dataforms/tc_data.rb +81 -0
- data/lib/vendor/xmpp4r/test/delay/tc_xdelay.rb +51 -0
- data/lib/vendor/xmpp4r/test/discovery/tc_responder.rb +91 -0
- data/lib/vendor/xmpp4r/test/lib/assert_equal_xml.rb +14 -0
- data/lib/vendor/xmpp4r/test/lib/clienttester.rb +120 -0
- data/lib/vendor/xmpp4r/test/muc/tc_muc_mucclient.rb +830 -0
- data/lib/vendor/xmpp4r/test/muc/tc_muc_simplemucclient.rb +114 -0
- data/lib/vendor/xmpp4r/test/muc/tc_mucowner.rb +50 -0
- data/lib/vendor/xmpp4r/test/pubsub/tc_helper.rb +662 -0
- data/lib/vendor/xmpp4r/test/pubsub/tc_nodeconfig.rb +54 -0
- data/lib/vendor/xmpp4r/test/pubsub/tc_subscriptionconfig.rb +41 -0
- data/lib/vendor/xmpp4r/test/roster/tc_helper.rb +514 -0
- data/lib/vendor/xmpp4r/test/roster/tc_iqqueryroster.rb +173 -0
- data/lib/vendor/xmpp4r/test/roster/tc_xroster.rb +73 -0
- data/lib/vendor/xmpp4r/test/rpc/tc_helper.rb +96 -0
- data/lib/vendor/xmpp4r/test/tc_callbacks.rb +129 -0
- data/lib/vendor/xmpp4r/test/tc_class_names.rb +146 -0
- data/lib/vendor/xmpp4r/test/tc_client.rb +30 -0
- data/lib/vendor/xmpp4r/test/tc_errors.rb +146 -0
- data/lib/vendor/xmpp4r/test/tc_idgenerator.rb +30 -0
- data/lib/vendor/xmpp4r/test/tc_iq.rb +113 -0
- data/lib/vendor/xmpp4r/test/tc_iqquery.rb +31 -0
- data/lib/vendor/xmpp4r/test/tc_jid.rb +204 -0
- data/lib/vendor/xmpp4r/test/tc_message.rb +116 -0
- data/lib/vendor/xmpp4r/test/tc_presence.rb +150 -0
- data/lib/vendor/xmpp4r/test/tc_rexml.rb +139 -0
- data/lib/vendor/xmpp4r/test/tc_stream.rb +229 -0
- data/lib/vendor/xmpp4r/test/tc_streamComponent.rb +95 -0
- data/lib/vendor/xmpp4r/test/tc_streamError.rb +131 -0
- data/lib/vendor/xmpp4r/test/tc_streamSend.rb +59 -0
- data/lib/vendor/xmpp4r/test/tc_streamparser.rb +112 -0
- data/lib/vendor/xmpp4r/test/tc_xmppstanza.rb +135 -0
- data/lib/vendor/xmpp4r/test/ts_xmpp4r.rb +53 -0
- data/lib/vendor/xmpp4r/test/tune/tc_helper_recv.rb +84 -0
- data/lib/vendor/xmpp4r/test/tune/tc_helper_send.rb +74 -0
- data/lib/vendor/xmpp4r/test/tune/tc_tune.rb +79 -0
- data/lib/vendor/xmpp4r/test/vcard/tc_helper.rb +49 -0
- data/lib/vendor/xmpp4r/test/vcard/tc_iqvcard.rb +62 -0
- data/lib/vendor/xmpp4r/test/version/tc_helper.rb +60 -0
- data/lib/vendor/xmpp4r/test/version/tc_iqqueryversion.rb +97 -0
- data/lib/vendor/xmpp4r/test/xhtml/tc_html.rb +41 -0
- data/lib/vendor/xmpp4r/tools/gen_requires.bash +31 -0
- data/lib/vendor/xmpp4r/tools/xmpp4r-gemspec-test.rb +11 -0
- data/lib/vendor/xmpp4r/xmpp4r.gemspec +291 -0
- data/test/jabber_publisher_test.rb +1 -1
- data/test/mail_publisher_test.rb +2 -2
- data/test/mock/twitter.rb +0 -1
- data/test/rspec_builder_test.rb +39 -2
- data/test/rss_publisher_test.rb +1 -1
- data/test/twitter_publisher_test.rb +1 -1
- metadata +268 -53
- 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 (
|
19
|
+
assert_equal '[MegaApp] Build still broken (1232)', messages[0].subject
|
20
20
|
assert !messages[0].body.nil?
|
21
21
|
end
|
22
22
|
end
|
data/test/mail_publisher_test.rb
CHANGED
@@ -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 =>
|
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 '
|
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
|
data/test/mock/twitter.rb
CHANGED
data/test/rspec_builder_test.rb
CHANGED
@@ -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
|
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,
|
138
|
+
15 examples, 3 failures, 1 pending
|
102
139
|
END
|