metry 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. data/History.txt +5 -0
  2. data/Manifest.txt +376 -0
  3. data/README.txt +62 -0
  4. data/Rakefile +23 -0
  5. data/TODO +10 -0
  6. data/example/example.rb +22 -0
  7. data/features/app_tracking.feature +11 -0
  8. data/features/basic_tracking.feature +88 -0
  9. data/features/sample_application.feature +12 -0
  10. data/features/step_definitions/tracking.rb +35 -0
  11. data/features/step_definitions/web.rb +31 -0
  12. data/features/support/env.rb +22 -0
  13. data/lib/metry.rb +19 -0
  14. data/lib/metry/experiment.rb +25 -0
  15. data/lib/metry/memory.rb +27 -0
  16. data/lib/metry/rack/tracking.rb +51 -0
  17. data/lib/metry/tokyo.rb +153 -0
  18. data/radiant/example/CHANGELOG +611 -0
  19. data/radiant/example/CONTRIBUTORS +168 -0
  20. data/radiant/example/INSTALL +38 -0
  21. data/radiant/example/LICENSE +21 -0
  22. data/radiant/example/README +60 -0
  23. data/radiant/example/Rakefile +21 -0
  24. data/radiant/example/config/boot.rb +161 -0
  25. data/radiant/example/config/database.yml +20 -0
  26. data/radiant/example/config/environment.rb +83 -0
  27. data/radiant/example/config/environments/cucumber.rb +18 -0
  28. data/radiant/example/config/environments/development.rb +17 -0
  29. data/radiant/example/config/environments/production.rb +19 -0
  30. data/radiant/example/config/environments/test.rb +36 -0
  31. data/radiant/example/config/routes.rb +1 -0
  32. data/radiant/example/db/schema.rb +112 -0
  33. data/radiant/example/features/metry.feature +139 -0
  34. data/radiant/example/features/step_definitions/experiments.rb +12 -0
  35. data/radiant/example/features/step_definitions/radiant.rb +14 -0
  36. data/radiant/example/features/step_definitions/tracking.rb +35 -0
  37. data/radiant/example/features/step_definitions/web.rb +22 -0
  38. data/radiant/example/features/support/env.rb +52 -0
  39. data/radiant/example/public/.htaccess +40 -0
  40. data/radiant/example/public/404.html +8 -0
  41. data/radiant/example/public/500.html +8 -0
  42. data/radiant/example/public/dispatch.cgi +10 -0
  43. data/radiant/example/public/dispatch.fcgi +24 -0
  44. data/radiant/example/public/dispatch.rb +10 -0
  45. data/radiant/example/public/favicon.ico +0 -0
  46. data/radiant/example/public/images/admin/add-child.png +0 -0
  47. data/radiant/example/public/images/admin/brown-bottom-line.gif +0 -0
  48. data/radiant/example/public/images/admin/clear-page-cache.png +0 -0
  49. data/radiant/example/public/images/admin/collapse.png +0 -0
  50. data/radiant/example/public/images/admin/expand.png +0 -0
  51. data/radiant/example/public/images/admin/layout.png +0 -0
  52. data/radiant/example/public/images/admin/minus.png +0 -0
  53. data/radiant/example/public/images/admin/new-homepage.png +0 -0
  54. data/radiant/example/public/images/admin/new-layout.png +0 -0
  55. data/radiant/example/public/images/admin/new-snippet.png +0 -0
  56. data/radiant/example/public/images/admin/new-user.png +0 -0
  57. data/radiant/example/public/images/admin/page.png +0 -0
  58. data/radiant/example/public/images/admin/plus.png +0 -0
  59. data/radiant/example/public/images/admin/remove-disabled.png +0 -0
  60. data/radiant/example/public/images/admin/remove.png +0 -0
  61. data/radiant/example/public/images/admin/snippet.png +0 -0
  62. data/radiant/example/public/images/admin/spinner.gif +0 -0
  63. data/radiant/example/public/images/admin/view-site.gif +0 -0
  64. data/radiant/example/public/images/admin/virtual-page.png +0 -0
  65. data/radiant/example/public/javascripts/admin/admin.js +149 -0
  66. data/radiant/example/public/javascripts/admin/ruledtable.js +13 -0
  67. data/radiant/example/public/javascripts/admin/sitemap.js +132 -0
  68. data/radiant/example/public/javascripts/admin/tabcontrol.js +133 -0
  69. data/radiant/example/public/javascripts/application.js +2 -0
  70. data/radiant/example/public/javascripts/controls.js +963 -0
  71. data/radiant/example/public/javascripts/dragdrop.js +973 -0
  72. data/radiant/example/public/javascripts/effects.js +1128 -0
  73. data/radiant/example/public/javascripts/pngfix.js +39 -0
  74. data/radiant/example/public/javascripts/prototype.js +4320 -0
  75. data/radiant/example/public/javascripts/string.js +17 -0
  76. data/radiant/example/public/robots.txt +1 -0
  77. data/radiant/example/public/stylesheets/admin/main.css +640 -0
  78. data/radiant/example/script/about +3 -0
  79. data/radiant/example/script/autospec +5 -0
  80. data/radiant/example/script/breakpointer +3 -0
  81. data/radiant/example/script/console +3 -0
  82. data/radiant/example/script/cucumber +8 -0
  83. data/radiant/example/script/dbconsole +3 -0
  84. data/radiant/example/script/extension +5 -0
  85. data/radiant/example/script/generate +18 -0
  86. data/radiant/example/script/performance/benchmarker +3 -0
  87. data/radiant/example/script/performance/profiler +3 -0
  88. data/radiant/example/script/performance/request +3 -0
  89. data/radiant/example/script/process/inspector +3 -0
  90. data/radiant/example/script/process/reaper +3 -0
  91. data/radiant/example/script/process/spawner +3 -0
  92. data/radiant/example/script/process/spinner +3 -0
  93. data/radiant/example/script/runner +3 -0
  94. data/radiant/example/script/server +3 -0
  95. data/radiant/example/script/spec +5 -0
  96. data/radiant/example/script/spec_server +116 -0
  97. data/radiant/example/script/version +5 -0
  98. data/radiant/extension/README +3 -0
  99. data/radiant/extension/Rakefile +120 -0
  100. data/radiant/extension/lib/metry_tags.rb +25 -0
  101. data/radiant/extension/lib/tasks/metry_extension_tasks.rake +28 -0
  102. data/radiant/extension/metry_extension.rb +24 -0
  103. data/test/shared.rb +6 -0
  104. data/test/test_tokyo.rb +14 -0
  105. data/vendor/rufus-tokyo/CHANGELOG.txt +112 -0
  106. data/vendor/rufus-tokyo/CREDITS.txt +27 -0
  107. data/vendor/rufus-tokyo/LICENSE.txt +21 -0
  108. data/vendor/rufus-tokyo/README.txt +310 -0
  109. data/vendor/rufus-tokyo/Rakefile +118 -0
  110. data/vendor/rufus-tokyo/TODO.txt +25 -0
  111. data/vendor/rufus-tokyo/doc/decision_table.numbers +0 -0
  112. data/vendor/rufus-tokyo/doc/rdoc-style.css +320 -0
  113. data/vendor/rufus-tokyo/lib/rufus-edo.rb +3 -0
  114. data/vendor/rufus-tokyo/lib/rufus-tokyo.rb +3 -0
  115. data/vendor/rufus-tokyo/lib/rufus/edo.rb +39 -0
  116. data/vendor/rufus-tokyo/lib/rufus/edo/README.txt +106 -0
  117. data/vendor/rufus-tokyo/lib/rufus/edo/cabcore.rb +333 -0
  118. data/vendor/rufus-tokyo/lib/rufus/edo/cabinet/abstract.rb +219 -0
  119. data/vendor/rufus-tokyo/lib/rufus/edo/cabinet/table.rb +159 -0
  120. data/vendor/rufus-tokyo/lib/rufus/edo/error.rb +36 -0
  121. data/vendor/rufus-tokyo/lib/rufus/edo/ntyrant.rb +4 -0
  122. data/vendor/rufus-tokyo/lib/rufus/edo/ntyrant/abstract.rb +137 -0
  123. data/vendor/rufus-tokyo/lib/rufus/edo/ntyrant/table.rb +141 -0
  124. data/vendor/rufus-tokyo/lib/rufus/edo/tabcore.rb +567 -0
  125. data/vendor/rufus-tokyo/lib/rufus/tokyo.rb +58 -0
  126. data/vendor/rufus-tokyo/lib/rufus/tokyo/cabinet/abstract.rb +568 -0
  127. data/vendor/rufus-tokyo/lib/rufus/tokyo/cabinet/lib.rb +230 -0
  128. data/vendor/rufus-tokyo/lib/rufus/tokyo/cabinet/table.rb +753 -0
  129. data/vendor/rufus-tokyo/lib/rufus/tokyo/cabinet/util.rb +425 -0
  130. data/vendor/rufus-tokyo/lib/rufus/tokyo/config.rb +161 -0
  131. data/vendor/rufus-tokyo/lib/rufus/tokyo/dystopia.rb +43 -0
  132. data/vendor/rufus-tokyo/lib/rufus/tokyo/dystopia/lib.rb +65 -0
  133. data/vendor/rufus-tokyo/lib/rufus/tokyo/dystopia/words.rb +71 -0
  134. data/vendor/rufus-tokyo/lib/rufus/tokyo/hmethods.rb +111 -0
  135. data/vendor/rufus-tokyo/lib/rufus/tokyo/query.rb +102 -0
  136. data/vendor/rufus-tokyo/lib/rufus/tokyo/transactions.rb +74 -0
  137. data/vendor/rufus-tokyo/lib/rufus/tokyo/ttcommons.rb +59 -0
  138. data/vendor/rufus-tokyo/lib/rufus/tokyo/tyrant.rb +35 -0
  139. data/vendor/rufus-tokyo/lib/rufus/tokyo/tyrant/abstract.rb +146 -0
  140. data/vendor/rufus-tokyo/lib/rufus/tokyo/tyrant/lib.rb +153 -0
  141. data/vendor/rufus-tokyo/lib/rufus/tokyo/tyrant/table.rb +162 -0
  142. data/vendor/rufus-tokyo/rufus-tokyo.gemspec +25 -0
  143. data/vendor/rufus-tokyo/spec/cabinet_spec.rb +472 -0
  144. data/vendor/rufus-tokyo/spec/cabinetconfig_spec.rb +82 -0
  145. data/vendor/rufus-tokyo/spec/edo_cabinet_spec.rb +447 -0
  146. data/vendor/rufus-tokyo/spec/edo_ntyrant_spec.rb +299 -0
  147. data/vendor/rufus-tokyo/spec/edo_ntyrant_table_spec.rb +462 -0
  148. data/vendor/rufus-tokyo/spec/edo_table_spec.rb +560 -0
  149. data/vendor/rufus-tokyo/spec/hmethods_spec.rb +44 -0
  150. data/vendor/rufus-tokyo/spec/incr.lua +20 -0
  151. data/vendor/rufus-tokyo/spec/spec.rb +9 -0
  152. data/vendor/rufus-tokyo/spec/spec_base.rb +23 -0
  153. data/vendor/rufus-tokyo/spec/start_tyrants.sh +26 -0
  154. data/vendor/rufus-tokyo/spec/stop_tyrants.sh +9 -0
  155. data/vendor/rufus-tokyo/spec/table_spec.rb +567 -0
  156. data/vendor/rufus-tokyo/spec/tyrant_spec.rb +309 -0
  157. data/vendor/rufus-tokyo/spec/tyrant_table_spec.rb +479 -0
  158. data/vendor/rufus-tokyo/spec/util_list_spec.rb +200 -0
  159. data/vendor/rufus-tokyo/spec/util_map_spec.rb +132 -0
  160. data/vendor/rufus-tokyo/tasks/dev.rb +70 -0
  161. data/vendor/rufus-tokyo/test/bm0.rb +353 -0
  162. data/vendor/rufus-tokyo/test/bm1_compression.rb +54 -0
  163. data/vendor/rufus-tokyo/test/con0.rb +30 -0
  164. data/vendor/rufus-tokyo/test/mem.rb +49 -0
  165. data/vendor/rufus-tokyo/test/mem1.rb +44 -0
  166. data/vendor/rufus-tokyo/test/readme0.rb +17 -0
  167. data/vendor/rufus-tokyo/test/readme1.rb +21 -0
  168. data/vendor/rufus-tokyo/test/readme2.rb +15 -0
  169. data/vendor/rufus-tokyo/test/readme3.rb +24 -0
  170. data/vendor/rufus-tokyo/test/readmes_test.sh +17 -0
  171. data/vendor/webrat/.document +4 -0
  172. data/vendor/webrat/History.txt +358 -0
  173. data/vendor/webrat/MIT-LICENSE.txt +19 -0
  174. data/vendor/webrat/README.rdoc +85 -0
  175. data/vendor/webrat/Rakefile +200 -0
  176. data/vendor/webrat/install.rb +1 -0
  177. data/vendor/webrat/lib/webrat.rb +31 -0
  178. data/vendor/webrat/lib/webrat/core.rb +14 -0
  179. data/vendor/webrat/lib/webrat/core/configuration.rb +102 -0
  180. data/vendor/webrat/lib/webrat/core/elements/area.rb +31 -0
  181. data/vendor/webrat/lib/webrat/core/elements/element.rb +33 -0
  182. data/vendor/webrat/lib/webrat/core/elements/field.rb +411 -0
  183. data/vendor/webrat/lib/webrat/core/elements/form.rb +103 -0
  184. data/vendor/webrat/lib/webrat/core/elements/label.rb +31 -0
  185. data/vendor/webrat/lib/webrat/core/elements/link.rb +93 -0
  186. data/vendor/webrat/lib/webrat/core/elements/select_option.rb +35 -0
  187. data/vendor/webrat/lib/webrat/core/locators.rb +20 -0
  188. data/vendor/webrat/lib/webrat/core/locators/area_locator.rb +38 -0
  189. data/vendor/webrat/lib/webrat/core/locators/button_locator.rb +54 -0
  190. data/vendor/webrat/lib/webrat/core/locators/field_by_id_locator.rb +37 -0
  191. data/vendor/webrat/lib/webrat/core/locators/field_labeled_locator.rb +56 -0
  192. data/vendor/webrat/lib/webrat/core/locators/field_locator.rb +25 -0
  193. data/vendor/webrat/lib/webrat/core/locators/field_named_locator.rb +41 -0
  194. data/vendor/webrat/lib/webrat/core/locators/form_locator.rb +19 -0
  195. data/vendor/webrat/lib/webrat/core/locators/label_locator.rb +34 -0
  196. data/vendor/webrat/lib/webrat/core/locators/link_locator.rb +74 -0
  197. data/vendor/webrat/lib/webrat/core/locators/locator.rb +20 -0
  198. data/vendor/webrat/lib/webrat/core/locators/select_option_locator.rb +59 -0
  199. data/vendor/webrat/lib/webrat/core/logging.rb +24 -0
  200. data/vendor/webrat/lib/webrat/core/matchers.rb +4 -0
  201. data/vendor/webrat/lib/webrat/core/matchers/have_content.rb +73 -0
  202. data/vendor/webrat/lib/webrat/core/matchers/have_selector.rb +74 -0
  203. data/vendor/webrat/lib/webrat/core/matchers/have_tag.rb +21 -0
  204. data/vendor/webrat/lib/webrat/core/matchers/have_xpath.rb +147 -0
  205. data/vendor/webrat/lib/webrat/core/methods.rb +63 -0
  206. data/vendor/webrat/lib/webrat/core/mime.rb +29 -0
  207. data/vendor/webrat/lib/webrat/core/save_and_open_page.rb +48 -0
  208. data/vendor/webrat/lib/webrat/core/scope.rb +350 -0
  209. data/vendor/webrat/lib/webrat/core/session.rb +290 -0
  210. data/vendor/webrat/lib/webrat/core/xml.rb +115 -0
  211. data/vendor/webrat/lib/webrat/core/xml/hpricot.rb +19 -0
  212. data/vendor/webrat/lib/webrat/core/xml/nokogiri.rb +76 -0
  213. data/vendor/webrat/lib/webrat/core/xml/rexml.rb +24 -0
  214. data/vendor/webrat/lib/webrat/core_extensions/blank.rb +58 -0
  215. data/vendor/webrat/lib/webrat/core_extensions/deprecate.rb +8 -0
  216. data/vendor/webrat/lib/webrat/core_extensions/detect_mapped.rb +12 -0
  217. data/vendor/webrat/lib/webrat/core_extensions/meta_class.rb +6 -0
  218. data/vendor/webrat/lib/webrat/core_extensions/nil_to_param.rb +5 -0
  219. data/vendor/webrat/lib/webrat/core_extensions/tcp_socket.rb +27 -0
  220. data/vendor/webrat/lib/webrat/mechanize.rb +74 -0
  221. data/vendor/webrat/lib/webrat/merb.rb +9 -0
  222. data/vendor/webrat/lib/webrat/merb_multipart_support.rb +27 -0
  223. data/vendor/webrat/lib/webrat/merb_session.rb +80 -0
  224. data/vendor/webrat/lib/webrat/rack.rb +24 -0
  225. data/vendor/webrat/lib/webrat/rack_test.rb +32 -0
  226. data/vendor/webrat/lib/webrat/rails.rb +105 -0
  227. data/vendor/webrat/lib/webrat/rspec-rails.rb +10 -0
  228. data/vendor/webrat/lib/webrat/selenium.rb +81 -0
  229. data/vendor/webrat/lib/webrat/selenium/application_server_factory.rb +40 -0
  230. data/vendor/webrat/lib/webrat/selenium/application_servers.rb +5 -0
  231. data/vendor/webrat/lib/webrat/selenium/application_servers/base.rb +46 -0
  232. data/vendor/webrat/lib/webrat/selenium/application_servers/external.rb +26 -0
  233. data/vendor/webrat/lib/webrat/selenium/application_servers/merb.rb +50 -0
  234. data/vendor/webrat/lib/webrat/selenium/application_servers/rails.rb +44 -0
  235. data/vendor/webrat/lib/webrat/selenium/application_servers/sinatra.rb +37 -0
  236. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/button.js +19 -0
  237. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/label.js +16 -0
  238. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webrat.js +5 -0
  239. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlink.js +12 -0
  240. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlinkwithin.js +15 -0
  241. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratselectwithoption.js +5 -0
  242. data/vendor/webrat/lib/webrat/selenium/matchers.rb +4 -0
  243. data/vendor/webrat/lib/webrat/selenium/matchers/have_content.rb +66 -0
  244. data/vendor/webrat/lib/webrat/selenium/matchers/have_selector.rb +49 -0
  245. data/vendor/webrat/lib/webrat/selenium/matchers/have_tag.rb +72 -0
  246. data/vendor/webrat/lib/webrat/selenium/matchers/have_xpath.rb +45 -0
  247. data/vendor/webrat/lib/webrat/selenium/selenium_extensions.js +6 -0
  248. data/vendor/webrat/lib/webrat/selenium/selenium_rc_server.rb +84 -0
  249. data/vendor/webrat/lib/webrat/selenium/selenium_session.rb +248 -0
  250. data/vendor/webrat/lib/webrat/selenium/silence_stream.rb +18 -0
  251. data/vendor/webrat/lib/webrat/sinatra.rb +44 -0
  252. data/vendor/webrat/spec/fakes/test_session.rb +34 -0
  253. data/vendor/webrat/spec/integration/merb/Rakefile +35 -0
  254. data/vendor/webrat/spec/integration/merb/app/controllers/application.rb +2 -0
  255. data/vendor/webrat/spec/integration/merb/app/controllers/exceptions.rb +13 -0
  256. data/vendor/webrat/spec/integration/merb/app/controllers/testing.rb +27 -0
  257. data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_acceptable.html.erb +63 -0
  258. data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_found.html.erb +47 -0
  259. data/vendor/webrat/spec/integration/merb/app/views/layout/application.html.erb +12 -0
  260. data/vendor/webrat/spec/integration/merb/app/views/testing/show_form.html.erb +27 -0
  261. data/vendor/webrat/spec/integration/merb/app/views/testing/upload.html.erb +9 -0
  262. data/vendor/webrat/spec/integration/merb/config/environments/development.rb +15 -0
  263. data/vendor/webrat/spec/integration/merb/config/environments/rake.rb +11 -0
  264. data/vendor/webrat/spec/integration/merb/config/environments/test.rb +14 -0
  265. data/vendor/webrat/spec/integration/merb/config/init.rb +25 -0
  266. data/vendor/webrat/spec/integration/merb/config/rack.rb +11 -0
  267. data/vendor/webrat/spec/integration/merb/config/router.rb +34 -0
  268. data/vendor/webrat/spec/integration/merb/spec/spec.opts +1 -0
  269. data/vendor/webrat/spec/integration/merb/spec/spec_helper.rb +24 -0
  270. data/vendor/webrat/spec/integration/merb/spec/webrat_spec.rb +39 -0
  271. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/app_script.rb +31 -0
  272. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/common.rb +64 -0
  273. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/gem_ext.rb +124 -0
  274. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/main.thor +150 -0
  275. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/ops.rb +93 -0
  276. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/utils.rb +40 -0
  277. data/vendor/webrat/spec/integration/rack/Rakefile +5 -0
  278. data/vendor/webrat/spec/integration/rack/rack_app.rb +16 -0
  279. data/vendor/webrat/spec/integration/rack/test/test_helper.rb +20 -0
  280. data/vendor/webrat/spec/integration/rack/test/webrat_rack_test.rb +67 -0
  281. data/vendor/webrat/spec/integration/rails/Rakefile +30 -0
  282. data/vendor/webrat/spec/integration/rails/app/controllers/application.rb +15 -0
  283. data/vendor/webrat/spec/integration/rails/app/controllers/buttons_controller.rb +7 -0
  284. data/vendor/webrat/spec/integration/rails/app/controllers/fields_controller.rb +4 -0
  285. data/vendor/webrat/spec/integration/rails/app/controllers/links_controller.rb +7 -0
  286. data/vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb +43 -0
  287. data/vendor/webrat/spec/integration/rails/app/helpers/buttons_helper.rb +2 -0
  288. data/vendor/webrat/spec/integration/rails/app/helpers/fields_helper.rb +2 -0
  289. data/vendor/webrat/spec/integration/rails/app/helpers/links_helper.rb +2 -0
  290. data/vendor/webrat/spec/integration/rails/app/views/buttons/show.html.erb +11 -0
  291. data/vendor/webrat/spec/integration/rails/app/views/fields/show.html.erb +9 -0
  292. data/vendor/webrat/spec/integration/rails/app/views/links/show.html.erb +5 -0
  293. data/vendor/webrat/spec/integration/rails/app/views/webrat/before_redirect_form.html.erb +4 -0
  294. data/vendor/webrat/spec/integration/rails/app/views/webrat/buttons.html.erb +11 -0
  295. data/vendor/webrat/spec/integration/rails/app/views/webrat/form.html.erb +28 -0
  296. data/vendor/webrat/spec/integration/rails/config/boot.rb +109 -0
  297. data/vendor/webrat/spec/integration/rails/config/environment.rb +12 -0
  298. data/vendor/webrat/spec/integration/rails/config/environments/development.rb +17 -0
  299. data/vendor/webrat/spec/integration/rails/config/environments/selenium.rb +22 -0
  300. data/vendor/webrat/spec/integration/rails/config/environments/test.rb +22 -0
  301. data/vendor/webrat/spec/integration/rails/config/initializers/inflections.rb +10 -0
  302. data/vendor/webrat/spec/integration/rails/config/initializers/mime_types.rb +5 -0
  303. data/vendor/webrat/spec/integration/rails/config/initializers/new_rails_defaults.rb +17 -0
  304. data/vendor/webrat/spec/integration/rails/config/locales/en.yml +5 -0
  305. data/vendor/webrat/spec/integration/rails/config/routes.rb +18 -0
  306. data/vendor/webrat/spec/integration/rails/public/404.html +30 -0
  307. data/vendor/webrat/spec/integration/rails/public/422.html +30 -0
  308. data/vendor/webrat/spec/integration/rails/public/500.html +33 -0
  309. data/vendor/webrat/spec/integration/rails/script/about +4 -0
  310. data/vendor/webrat/spec/integration/rails/script/console +3 -0
  311. data/vendor/webrat/spec/integration/rails/script/dbconsole +3 -0
  312. data/vendor/webrat/spec/integration/rails/script/destroy +3 -0
  313. data/vendor/webrat/spec/integration/rails/script/generate +3 -0
  314. data/vendor/webrat/spec/integration/rails/script/performance/benchmarker +3 -0
  315. data/vendor/webrat/spec/integration/rails/script/performance/profiler +3 -0
  316. data/vendor/webrat/spec/integration/rails/script/performance/request +3 -0
  317. data/vendor/webrat/spec/integration/rails/script/plugin +3 -0
  318. data/vendor/webrat/spec/integration/rails/script/process/inspector +3 -0
  319. data/vendor/webrat/spec/integration/rails/script/process/reaper +3 -0
  320. data/vendor/webrat/spec/integration/rails/script/process/spawner +3 -0
  321. data/vendor/webrat/spec/integration/rails/script/runner +3 -0
  322. data/vendor/webrat/spec/integration/rails/script/server +3 -0
  323. data/vendor/webrat/spec/integration/rails/test/integration/button_click_test.rb +80 -0
  324. data/vendor/webrat/spec/integration/rails/test/integration/fill_in_test.rb +24 -0
  325. data/vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb +27 -0
  326. data/vendor/webrat/spec/integration/rails/test/integration/webrat_test.rb +97 -0
  327. data/vendor/webrat/spec/integration/rails/test/test_helper.rb +25 -0
  328. data/vendor/webrat/spec/integration/sinatra/Rakefile +5 -0
  329. data/vendor/webrat/spec/integration/sinatra/classic_app.rb +64 -0
  330. data/vendor/webrat/spec/integration/sinatra/modular_app.rb +16 -0
  331. data/vendor/webrat/spec/integration/sinatra/test/classic_app_test.rb +37 -0
  332. data/vendor/webrat/spec/integration/sinatra/test/modular_app_test.rb +18 -0
  333. data/vendor/webrat/spec/integration/sinatra/test/test_helper.rb +16 -0
  334. data/vendor/webrat/spec/private/core/configuration_spec.rb +116 -0
  335. data/vendor/webrat/spec/private/core/field_spec.rb +85 -0
  336. data/vendor/webrat/spec/private/core/link_spec.rb +24 -0
  337. data/vendor/webrat/spec/private/core/logging_spec.rb +10 -0
  338. data/vendor/webrat/spec/private/core/session_spec.rb +195 -0
  339. data/vendor/webrat/spec/private/mechanize/mechanize_session_spec.rb +81 -0
  340. data/vendor/webrat/spec/private/merb/attaches_file_spec.rb +93 -0
  341. data/vendor/webrat/spec/private/merb/merb_session_spec.rb +61 -0
  342. data/vendor/webrat/spec/private/nokogiri_spec.rb +77 -0
  343. data/vendor/webrat/spec/private/rails/attaches_file_spec.rb +81 -0
  344. data/vendor/webrat/spec/private/rails/rails_session_spec.rb +110 -0
  345. data/vendor/webrat/spec/private/selenium/application_servers/rails_spec.rb +26 -0
  346. data/vendor/webrat/spec/public/basic_auth_spec.rb +24 -0
  347. data/vendor/webrat/spec/public/check_spec.rb +191 -0
  348. data/vendor/webrat/spec/public/choose_spec.rb +118 -0
  349. data/vendor/webrat/spec/public/click_area_spec.rb +106 -0
  350. data/vendor/webrat/spec/public/click_button_spec.rb +496 -0
  351. data/vendor/webrat/spec/public/click_link_spec.rb +511 -0
  352. data/vendor/webrat/spec/public/fill_in_spec.rb +209 -0
  353. data/vendor/webrat/spec/public/locators/field_by_xpath_spec.rb +19 -0
  354. data/vendor/webrat/spec/public/locators/field_labeled_spec.rb +172 -0
  355. data/vendor/webrat/spec/public/locators/field_with_id_spec.rb +16 -0
  356. data/vendor/webrat/spec/public/matchers/contain_spec.rb +114 -0
  357. data/vendor/webrat/spec/public/matchers/have_selector_spec.rb +142 -0
  358. data/vendor/webrat/spec/public/matchers/have_tag_spec.rb +39 -0
  359. data/vendor/webrat/spec/public/matchers/have_xpath_spec.rb +136 -0
  360. data/vendor/webrat/spec/public/reload_spec.rb +10 -0
  361. data/vendor/webrat/spec/public/save_and_open_spec.rb +70 -0
  362. data/vendor/webrat/spec/public/select_date_spec.rb +112 -0
  363. data/vendor/webrat/spec/public/select_datetime_spec.rb +137 -0
  364. data/vendor/webrat/spec/public/select_spec.rb +249 -0
  365. data/vendor/webrat/spec/public/select_time_spec.rb +100 -0
  366. data/vendor/webrat/spec/public/selenium/application_server_factory_spec.rb +49 -0
  367. data/vendor/webrat/spec/public/selenium/application_servers/external_spec.rb +12 -0
  368. data/vendor/webrat/spec/public/selenium/selenium_session_spec.rb +37 -0
  369. data/vendor/webrat/spec/public/set_hidden_field_spec.rb +5 -0
  370. data/vendor/webrat/spec/public/submit_form_spec.rb +5 -0
  371. data/vendor/webrat/spec/public/visit_spec.rb +58 -0
  372. data/vendor/webrat/spec/public/within_spec.rb +177 -0
  373. data/vendor/webrat/spec/rcov.opts +1 -0
  374. data/vendor/webrat/spec/spec.opts +2 -0
  375. data/vendor/webrat/spec/spec_helper.rb +50 -0
  376. data/vendor/webrat/vendor/selenium-server.jar +0 -0
  377. metadata +442 -0
@@ -0,0 +1,54 @@
1
+
2
+ require 'rubygems'
3
+ require 'faker'
4
+ require 'benchmark'
5
+ require 'rufus/tokyo'
6
+
7
+ N = 100_000
8
+
9
+ NAME = Faker::Name.name
10
+
11
+ DATA = (0..N-1).collect { |i|
12
+ #{ 'name' => Faker::Name.name, 'sex' => 'male' }
13
+ { 'name' => NAME * 100, 'sex' => 'male' }
14
+ }
15
+
16
+ t0 = Rufus::Tokyo::Table.new('toto0.tdb')
17
+ t1 = Rufus::Tokyo::Table.new('toto1.tdb', :opts => 'ld')
18
+ t2 = Rufus::Tokyo::Table.new('toto2.tdb', :opts => 'lb')
19
+ #t3 = Rufus::Tokyo::Table.new('toto3.tdb', :opts => 'lt')
20
+
21
+ t0.clear
22
+ t1.clear
23
+ t2.clear
24
+ #t3.clear
25
+
26
+ Benchmark.benchmark(' ' * 20 + Benchmark::Tms::CAPTION, 20) do |b|
27
+ b.report('no compression') do
28
+ DATA.each_with_index { |row, i| t0["pk#{i}"] = row }
29
+ end
30
+ b.report('deflate') do
31
+ DATA.each_with_index { |row, i| t1["pk#{i}"] = row }
32
+ end
33
+ b.report('bzip2') do
34
+ DATA.each_with_index { |row, i| t2["pk#{i}"] = row }
35
+ end
36
+ #b.report('tcbs') do
37
+ # DATA.each_with_index { |row, i| t3["pk#{i}"] = row }
38
+ #end
39
+ end
40
+
41
+ t0.close
42
+ t1.close
43
+ t2.close
44
+ #t3.close
45
+
46
+ puts
47
+
48
+ puts 'no compression : ' + `ls -l toto0.tdb | awk '{ print $5 }'`
49
+ puts 'deflate : ' + `ls -l toto1.tdb | awk '{ print $5 }'`
50
+ puts 'bzip2 : ' + `ls -l toto2.tdb | awk '{ print $5 }'`
51
+ #puts 'tcbs : ' + `ls -l toto3.tdb | awk '{ print $5 }'`
52
+
53
+ puts
54
+
@@ -0,0 +1,30 @@
1
+
2
+ require 'rubygems'
3
+
4
+ require 'rufus/scheduler'
5
+ require 'rufus/tokyo/tyrant'
6
+ require 'rufus/edo/ntyrant'
7
+
8
+ SCHEDULER = Rufus::Scheduler.start_new
9
+
10
+ FFI_TABLE = Rufus::Tokyo::TyrantTable.new('127.0.0.1', 45001)
11
+ NET_TABLE = Rufus::Edo::NetTyrantTable.new('127.0.0.1', 45001)
12
+
13
+ def check_connection (table)
14
+ p [ table.class, table.stat ]
15
+ end
16
+
17
+ $interval = 0
18
+
19
+ BLOCK = lambda {
20
+ puts "=== #{Time.now}"
21
+ check_connection(FFI_TABLE)
22
+ check_connection(NET_TABLE)
23
+ $interval = $interval + 1
24
+ SCHEDULER.in("#{$interval}h", &BLOCK)
25
+ }
26
+
27
+ BLOCK.call
28
+
29
+ SCHEDULER.join
30
+
@@ -0,0 +1,49 @@
1
+
2
+ %w{ lib test }.each do |path|
3
+ path = File.expand_path(File.dirname(__FILE__) + '/../' + path)
4
+ $: << path unless $:.include?(path)
5
+ end
6
+
7
+ require 'fileutils'
8
+
9
+
10
+ def self_ps
11
+ ps = `ps -v #{$$}`.split("\n").last.split(' ')
12
+ %w{
13
+ pid stat time sl re pagein vsz rss lim tsiz pcpu pmem command
14
+ }.inject({}) { |h, k|
15
+ h[k.intern] = ps.shift; h
16
+ }
17
+ end
18
+
19
+ def pmem (msg)
20
+ p [ msg, "#{self_ps[:vsz].to_i / 1024}k" ]
21
+ end
22
+
23
+ pmem 'starting'
24
+
25
+ require 'rubygems'
26
+ require 'rufus/tokyo'
27
+
28
+ FileUtils.rm('test_mem.tch')
29
+
30
+ db = Rufus::Tokyo::Cabinet.new('test_mem.tch')
31
+
32
+ pmem 'wired to db'
33
+
34
+ 500_000.times { |i| db[i.to_s] = "value#{i}" }
35
+
36
+ pmem 'loaded 500_000 records'
37
+
38
+ db.each { |k, v| k }
39
+
40
+ pmem 'iterated 500_000 records'
41
+
42
+ a = db.collect { |k, v| k + v }
43
+
44
+ pmem 'collected 500_000 records'
45
+
46
+ db.close
47
+
48
+ pmem 'closed db'
49
+
@@ -0,0 +1,44 @@
1
+
2
+ %w{ lib test }.each do |path|
3
+ path = File.expand_path(File.dirname(__FILE__) + '/../' + path)
4
+ $: << path unless $:.include?(path)
5
+ end
6
+
7
+ require 'fileutils'
8
+
9
+
10
+ def self_ps
11
+ ps = `ps -v #{$$}`.split("\n").last.split(' ')
12
+ %w{
13
+ pid stat time sl re pagein vsz rss lim tsiz pcpu pmem command
14
+ }.inject({}) { |h, k|
15
+ h[k.intern] = ps.shift; h
16
+ }
17
+ end
18
+
19
+ def pmem (msg)
20
+ p [ msg, "#{self_ps[:vsz].to_i / 1024}k" ]
21
+ end
22
+
23
+ pmem 'starting'
24
+
25
+ require 'rubygems'
26
+ require 'rufus/tokyo/util'
27
+
28
+ pmem 'required'
29
+
30
+ l = Rufus::Tokyo::List.new
31
+
32
+ 100000.times { |i| l << i.to_s }
33
+
34
+ pmem 'stored'
35
+
36
+ #100000.times { |i| l.delete_at(0) }
37
+ #100000.times { |i| s = l.delete_at(0); Rufus::Tokyo::CabinetLib.tcfree(s) }
38
+ s = nil
39
+ 100000.times { |i| s ||= l.delete_at(0); }
40
+ p s.class
41
+ p s.public_methods.sort
42
+
43
+ pmem 'cleared'
44
+
@@ -0,0 +1,17 @@
1
+
2
+ require 'rubygems'
3
+ require 'rufus/tokyo'
4
+
5
+ db = Rufus::Tokyo::Cabinet.new('data.tch')
6
+
7
+ db['nada'] = 'surf'
8
+
9
+ p db['nada'] # => 'surf'
10
+ p db['lost'] # => nil
11
+
12
+ 5000.times { |i| db[i.to_s] = "x" }
13
+
14
+ p db.inject { |r, (k, v)| k } # => 4999
15
+
16
+ db.close
17
+
@@ -0,0 +1,21 @@
1
+
2
+ require 'rubygems'
3
+ require 'rufus/tokyo'
4
+
5
+ t = Rufus::Tokyo::Table.new('table.tdb')
6
+
7
+ t['pk0'] = { 'name' => 'alfred', 'age' => '22' }
8
+ t['pk1'] = { 'name' => 'bob', 'age' => '18' }
9
+ t['pk2'] = { 'name' => 'charly', 'age' => '45' }
10
+ t['pk3'] = { 'name' => 'doug', 'age' => '77' }
11
+ t['pk4'] = { 'name' => 'ephrem', 'age' => '32' }
12
+
13
+ p t.query { |q|
14
+ q.add_condition 'age', :numge, '32'
15
+ q.order_by 'age'
16
+ }
17
+ # => [ {"name"=>"ephrem", :pk=>"pk4", "age"=>"32"},
18
+ # {"name"=>"charly", :pk=>"pk2", "age"=>"45"} ]
19
+
20
+ t.close
21
+
@@ -0,0 +1,15 @@
1
+
2
+ # ttserver -port 45001 tmp/data.tch
3
+
4
+ require 'rubygems'
5
+ require 'rufus/tokyo/tyrant'
6
+
7
+ db = Rufus::Tokyo::Tyrant.new('localhost', 45001)
8
+
9
+ db['nada'] = 'surf'
10
+
11
+ p db['nada'] # => 'surf'
12
+ p db['lost'] # => nil
13
+
14
+ db.close
15
+
@@ -0,0 +1,24 @@
1
+
2
+ # ttserver -port 45002 tmp/data.tct
3
+
4
+
5
+ require 'rubygems'
6
+ require 'rufus/tokyo/tyrant'
7
+
8
+ t = Rufus::Tokyo::TyrantTable.new('localhost', 45002)
9
+
10
+ t['pk0'] = { 'name' => 'alfred', 'age' => '22' }
11
+ t['pk1'] = { 'name' => 'bob', 'age' => '18' }
12
+ t['pk2'] = { 'name' => 'charly', 'age' => '45' }
13
+ t['pk3'] = { 'name' => 'doug', 'age' => '77' }
14
+ t['pk4'] = { 'name' => 'ephrem', 'age' => '32' }
15
+
16
+ p t.query { |q|
17
+ q.add_condition 'age', :numge, '32'
18
+ q.order_by 'age'
19
+ }
20
+ # => [ {"name"=>"ephrem", :pk=>"pk4", "age"=>"32"},
21
+ # {"name"=>"charly", :pk=>"pk2", "age"=>"45"} ]
22
+
23
+ t.close
24
+
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+
3
+ #
4
+ # testing the 4 samples in README.txt
5
+ #
6
+
7
+ [ -d tmp ] || mkdir tmp
8
+ nohup ttserver -port 45001 tmp/data.tch &
9
+ nohup ttserver -port 45002 tmp/data.tct &
10
+
11
+ ruby19 -Ilib test/readme0.rb
12
+ ruby19 -Ilib test/readme1.rb
13
+ ruby19 -Ilib test/readme2.rb
14
+ ruby19 -Ilib test/readme3.rb
15
+
16
+ killall ttserver
17
+
@@ -0,0 +1,4 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ History.txt
4
+ MIT-LICENSE.txt
@@ -0,0 +1,358 @@
1
+ == 0.4.5 / ?
2
+
3
+ * Major enhancements
4
+
5
+ * Ruby 1.9 compatibility (Michael Fellinger, Jakub Kuźma)
6
+ * Improve performance (~2x) on JRuby by supporting Nokogiri
7
+ * Added support for external app servers in selenium mode (basically don't start one) (Mike Gaffney)
8
+ * Added support for uploading files for Merb (Ryan Carver)
9
+
10
+ * Minor enhancements
11
+
12
+ * Make redirect detection work in the face of rational maths (like when ruby-units is active) (Piers Cawley)
13
+ * Use Launchy to handle opening pages in the browser with cross-platform compatibility (Bryan Helmkamp)
14
+ * Added support for field_labeled_locators ending in non word characters
15
+ lh 148 (Zach Dennis)
16
+ * Filled in tests on click link lh 195 (diabolo)
17
+ * Added current_url to selenium session lh 215 (Luke Amdor)
18
+ * Added silence spec to selenium lh 238 (Martin Gamsjaeger aka snusnu)
19
+ * Added ability to configure the browser startup timeout for selenium lh 242 (Mike Gaffney, Mark Dodwell)
20
+ * Added delegation for field_named lh194 (pivotal labs)
21
+ * Added fix to keep from escaping field values in mechanize mode lh256 (jish)
22
+ * Adding fixes for click button/link and made the integration specs pass for the same in selenium lh254 (Ldiehl, Matthias Marschall)
23
+ * Adding clicking link by id in selenium mode lh221 (larrytheliquid)
24
+ * Adding fix for have_selector and have_xpath in descendent blocks lh234 (Thomas Jack)
25
+ * Adding fix for fields with labels with special characters (Thomas Jack, Mike Gaffney, Bryan Hemlkamp)
26
+ * Deprecated current_page lh50 (Mike Gaffney)
27
+ * Fixed issue with redirects and multiple hosts lh168 (Mutwin Kraus)
28
+
29
+ * Bug fixes
30
+
31
+ * Wait for application servers socket on 0.0.0.0 instead of the application_address
32
+ * Translate CSS and image paths with single quotes in save_and_open_page (Erin Staniland)
33
+
34
+ == 0.4.4 / 2009-04-06
35
+
36
+ * Major enhancements
37
+
38
+ * Make selenium process management code more robust and informative
39
+
40
+ * Minor enhancements
41
+
42
+ * Add support for Rails javascript post links (Mark Menard)
43
+ * Upgrade selenium-client dependency to 1.2.14, and update for new waiting
44
+ API (Balint Erdi)
45
+ * Change default app environment from "selenium" to "test"
46
+
47
+ * Bug fixes
48
+
49
+ * Don't create a new instance of WWW::Mechanize for each request
50
+ (Mark Menard)
51
+ * Select fields with duplicate selected options sent an incorrect value (Noah Davis)
52
+
53
+ == 0.4.3 / 2009-03-17
54
+
55
+ * Minor enhancements
56
+
57
+ * Support Rails 2.3. Use Rack::Utils to parse params (Matthew Ford)
58
+ * Support for "modular" Sinatra app style (Simon Rozet)
59
+ * Initial Merb and Sinatra compatibility for Selenium mode (Corey Donohoe)
60
+ * When faced with a label with no for attribute, that contains a hidden field
61
+ and another field, as can be the case in Rails 2.3's checkbox view,
62
+ webrat now locates the non-hidden field. (Luke Melia)
63
+ * Add application_framework config for Selenium mode to determine how to
64
+ start and stop the app server (Corey Donohoe)
65
+
66
+ * Bug fixes
67
+
68
+ * Fix following of absolute redirect URL in Sinatra (Simon Rozet)
69
+
70
+ == 0.4.2 / 2009-02-24
71
+
72
+ * Major enhancements
73
+
74
+ * Significant improvements to have_selector. It now supports specifying
75
+ attributes in a hash and :count and :content options. See
76
+ have_selector_spec.rb for more.
77
+ * Add the same functionality mentioned above to have_xpath
78
+
79
+ * Minor enhancements
80
+
81
+ * Squeeze extra whitespace out of failures messages from contain
82
+ matcher
83
+ * Detect infinite redirects and raise a Webrat::InfiniteRedirectError
84
+ (Daniel Lucraft)
85
+
86
+ * Bug fixes
87
+
88
+ * Properly quote single and double quotes strings in XPath
89
+ * Fix warning caused by Nokogiri deprecating CSS::Parser.parse
90
+ (Aaron Patterson)
91
+ * Accept do/end blocks in matchers. [#157] (Peter Jaros)
92
+ * Quote --chdir option to mongrel_rails to support RAILS_ROOTs with spaces
93
+ (T.J. VanSlyke)
94
+
95
+ == 0.4.1 / 2009-01-31
96
+
97
+ * Minor enhancements
98
+
99
+ * Support Sinatra 0.9 (Harry Vangberg)
100
+ * Update query param parsing to work with latest Edge Rails
101
+ * Added #redirected_to method to easily check where an external redirect was
102
+ redirected to (Adam Greene)
103
+ * Recognize input tags with type button (Lena Herrmann)
104
+ * Add uncheck method to Selenium mode (Lee Bankewitz)
105
+
106
+ * Bug fixes
107
+
108
+ * Make requests to a Rails app using a full URL instead of a relative path. This change
109
+ is helpful for Rails apps that use subdomains. (John Hwang and Zach Dennis)
110
+ * Follow redirects that are on the same domain but a different subdomain
111
+ (Adam Greene)
112
+ * rescue from Webrat::TimeoutError in selenium matchers which allows NegativeMatchers
113
+ to behave correctly (Noah Davis)
114
+ * Switch to using selenium.click instead of .check when checking a checkbox
115
+ (Noah Davis)
116
+ * Create tmp/pids directory if directory does not exist. (Amos King and Mike Gaffney)
117
+ * Setup deprecated writers for the selenium_environment= and selenium_port= config
118
+ * Ensure the previous pages params aren't passed through redirect (Daniel Lucraft and
119
+ Bryan Helmkamp)
120
+ * Labels should only search for fields within the current scope (Kyle Hargraves)
121
+
122
+ == 0.4.0 / 2009-01-18
123
+
124
+ * _IMPORTANT_ Breaking change:
125
+
126
+ * Removed init.rb auto-require of webrat/rails
127
+ * Removed auto-require of webrat/rails when requiring webrat when RAILS_ENV is
128
+ defined
129
+
130
+ In your env.rb or test_helper.rb file, ensure you have something like:
131
+
132
+ require "webrat"
133
+
134
+ Webrat.configure do |config|
135
+ config.mode = :rails
136
+ end
137
+
138
+ * Major enhancements
139
+
140
+ * Major improvements to Webrat::Selenium (Many contributors listed here)
141
+ * Add assert_* methods for using Webrat's matchers w/o RSpec (Mike Gaffney, Amos King)
142
+ * Added Webrat.configure method for Webrat configuration [#33] (Mike Gaffney)
143
+ * Added select_time, select_date, and select_datetime to API. [#36] (Ben Mabey)
144
+ * Use Hpricot and REXML when not parsing with Nokogiri (on JRuby, for example)
145
+
146
+ * Minor enhancements
147
+
148
+ * Added Selenium grid configuration and support. (Amos King && Cornel Borcean)
149
+ * Support passing an ActiveRecord model to #within when in Rails mode [#68] (Luke Melia)
150
+ * Make assert_* matchers in rails mode increment the assertions count [#123] (Amos King)
151
+ * Added assert_* matchers to selenium matchers [#110] (Amos King)
152
+ * Added assert_contain, assert_not_contain [#86] (Mike Gaffney, Amos King)
153
+ * Add configuration options for the Selenium environment and port (Kieran Pilkington)
154
+ * Maximize the browser window after initializing Selenium (Luke Melia)
155
+ * Better inspect output for Webrat elements
156
+ * Sets the Webrat mode with Configuration#mode= in the config block [#85] (Mike Gaffney)
157
+ * Detect if the document is XML or HTML using the Content-Type when in Rails mode
158
+ * Expose #selenium method for direct access to Selenium client
159
+ * Check nokogiri gem version before requiring nokogiri
160
+ * Include the Selenium server jar file in the gem (Bryan Helmkamp, Ben Schwarz)
161
+ * Added key_down, key_up and fire_event to Selenium session (Fernando Garcia)
162
+ * Fix outputing README during Rails plugin install (Fernando Garcia)
163
+ * Strip newlines when matching label text (Miha Filej)
164
+ * Add simple support for accessing Webrat's matchers from RSpec by requiring
165
+ "webrat/rspec-rails" (David Chelimsky)
166
+ * Support save_and_open_page in Windows and Cygwin (Mike Gaffney)
167
+ * Added RadioField#checked? to indicated whether or not a radio button is checked
168
+ (Luke Melia)
169
+ * Add spec:jruby rake task for running Webrat's spec suite with JRuby
170
+ * Added field_by_xpath to locate a Webrat::Field using arbitrary XPath expressions
171
+ * Helpful error message for missing option values [#40] (Ben Mabey)
172
+ * Add set_hidden_field method (Noah Davis, Bryan Helmkamp)
173
+ * Add submit_form method for submitting a form by ID (Noah Davis, Bryan Helmkamp)
174
+ * Switch to using Nokogiri.parse for simple XML/XHTML autodetection [#66]
175
+ * Removed Webrat.root method, which seemed to be unused
176
+ * Added automatic starting and stopping of the Selenium server and a Mongrel Rails
177
+ app server when using webrat/selenium
178
+ * Switch to using selenium-client gem and vendor selenium-server.jar (Luke Melia)
179
+ * Added gemspec so the gem builds on GitHub now
180
+ * Deprecate old style methods (fills_in is deprecated in favor of fill_in, etc.)
181
+ * Improvements to the README and RDoc (Bryan Helmkamp, Mike Gaffney)
182
+ * Allow clicking links by id and id regexp (Mike Gaffney)
183
+ * Raise Webrat::DisabledFieldError when attempting to manipulate a disabled field
184
+ * Raise Webrat::NotFoundErrors when an element is not found
185
+ * Raise Webrat::PageLoadError when a failure occurs so that application exceptions
186
+ can be more accurately tested (Ryan Briones)
187
+ * Helpful error message for missing option in select box. [#40] (Ben Mabey)
188
+ * Extracted save_and_open page to make it usable in Selenium mode (Luke Melia)
189
+ * Added save_and_open_screengrab for Selenium mode (Luke Melia)
190
+
191
+ * Bug fixes
192
+
193
+ * field_labeled should disregard labels without matching fields (Kyle Hargraves)
194
+ * Fixed bug where Scope was creating a new DOM rather than re-using the existing DOM.
195
+ [#105] (Zach Dennis)
196
+ * Support Rails > v2.2 by using ActionController::RequestParser for param parsing [#107]
197
+ (Marcello Nuccio)
198
+ * Raise a Webrat::NotFoundError if the scope passed to #within doesn't exist [#90]
199
+ * Match against link _text_ which decodes character references.
200
+ Useful for multibyte languages like Japanese (moronatural@gmail.com)
201
+ * Fix params hash generation for Mechanize when Merb is not defined [#62]
202
+ * Expose some Webrat methods that were missing from the Webrat::Methods module
203
+ (Low Chin Chau)
204
+ * Allow mechanize session to pass through basic auth (Ryan Briones)
205
+ * Improvements to the Mechanize support (Jeremy Burks)
206
+ * Fix following fully qualified local links (Lawrence Pit)
207
+ * Fixed bug where Webrat would lose complex parameters (like foo[bar[baz]][])
208
+ in Merb due to not correctly merging Mashes. (Drew Colthorp)
209
+ * Extend Rails' ActionController::IntegrationTest instead of
210
+ ActionController::Integration::Session (Fixes using Webrat's #select method and
211
+ avoids usage of method_missing)
212
+ * Ensure that Webrat::MechanizeSession.request_page always uses an absolute
213
+ URL. (Graham Ashton)
214
+ * Strip anchor tags from URIs before passing to Rails integration session
215
+ (Noah Davis)
216
+ * Treat text and regexp when matching Selenium buttons (Ross Kaffenberger)
217
+ * Allow SeleniumSession's click_button to be called without an argument without
218
+ blowing up (Luke Melia)
219
+
220
+ == 0.3.4 / 2008-12-29
221
+
222
+ * 1 Minor enhancement
223
+
224
+ * Fix compatibility with Nokogiri 1.1.0 on JRuby
225
+
226
+ * 1 Bug fix
227
+
228
+ * Correct version for Nokogiri dependency in gem
229
+
230
+ == 0.3.3 / 2008-12-28
231
+
232
+ * 1 Minor enhancement
233
+
234
+ * Fix compatibility with Nokogiri 1.1.0 on MRI
235
+
236
+ == 0.3.2 / 2008-11-08
237
+
238
+ * 1 Minor enhancement
239
+
240
+ * Fixes behavior or have_tag when a block is passed. It passes the matched node(s)
241
+ to the block for further specs again. (Carl Lerche)
242
+
243
+ == 0.3.1 / 2008-11-07
244
+
245
+ * 1 Minor enhancement
246
+
247
+ * Use @_webrat_session instance variable instead of @session for Merb integration
248
+ to avoid collisions
249
+
250
+ == 0.3.0 / 2008-11-07
251
+
252
+ * 4 Major enhancements
253
+
254
+ * Added Merb support (Gwyn Morfey, Jeremy Burks, Rob Kaufman, Yehuda Katz)
255
+ * Added experimental Selenium support (Luke Melia)
256
+ * Add have_selector, have_xpath, have_tag and contain matchers from Merb
257
+ * Switch from Hpricot to Nokogiri for XML parsing (thanks, Aaron Patterson)
258
+
259
+ * 37 Minor enhancements
260
+
261
+ * Added #within for manipulating the current page within a selector scope
262
+ * Add support for file fields via #attaches_file method (Rails only at the moment)
263
+ (Kyle Hargraves)
264
+ * Add support for simulating SSL requests (Luke Melia)
265
+ * Added #basic_auth(user, pass) to support HTTP Basic Auth (Aslak Hellesøy)
266
+ * Added support for Sinatra and Rack (Aslak Hellesøy)
267
+ * Rename visits to visit, fills_in to fill_in, etc.
268
+ * Add #field_labeled for looking up form fields by label (David Chelimsky)
269
+ * Add #field_named and #field_with_id locators
270
+ * Don't depend on hoe anymore
271
+ * Return responses after sending requests
272
+ * Allow clicking links and buttons by a regular expression in Selenium (Luke Melia)
273
+ * Allow clicking links by a regular expression
274
+ * Add #http_accept for including MIME type HTTP "Accept" headers (Ryan Briones)
275
+ * Add #header to support inclusion of custom HTTP headers (Ryan Briones)
276
+ * Consider response codes 200-499 as successful enough to not raise a Webrat error
277
+ (David Leal)
278
+ * Add support for clicking areas of an image map (Alex Lang)
279
+ * Support relative links, including href="?foo=bar" (Kyle Hargraves)
280
+ * Separated Rails-specific code from the Webrat core to make it easier to use
281
+ Webrat with other environments
282
+ * Alias visits as visit, clicks_link as click_link, etc. for better readability
283
+ * Raise error when trying to interact with a disabled form element (Luke Melia)
284
+ * Don't send disabled form elements to the server (Nicholas A. Evans)
285
+ * Display response body when the page load is not successful (David Leal)
286
+ * CGI escape form field values (Miha Filej)
287
+ * Add support for redirect_to :back by sending HTTP_REFERER headers
288
+ (Hendrik Volkmer)
289
+ * Expose current DOM (as an Hpricot object) as #current_dom
290
+ * Add support for disabling JavaScript when clicking a link to enable testing of
291
+ both JS and non-JS implementations (Luke Melia and Bryan Helmkamp)
292
+ * Support &nbsp's as spaces in matching link text (Luke Melia)
293
+ * Support button elements (Nick Sieger)
294
+ * Support matching select options by regexp (Kyle Hargraves)
295
+ * save_and_open_page rewrites css and image references to provide a friendlier
296
+ debugging experience (Luke Melia)
297
+ * Added support for matching alt attributes in fields (primarly for clicks_button)
298
+ (Aaron Quint)
299
+ * Support '&amp;' in submitted values (Kyle Hargraves)
300
+ * Support clicking links by title (Dan Barry)
301
+ * Added missing spec for clicking image buttons (Tim Harper)
302
+ * Switched tests to specs, and from Mocha to RSpec's mocking library
303
+ * Add support to click_button for IDs (Gwyn Morfey)
304
+ * Miscellaneous core refactorings (Jan Suchal)
305
+
306
+ * 8 Bug fixes
307
+
308
+ * Fix initialization of WWW::Mechanize (Derek Kastner)
309
+ * Don't open blank pages in the browser (Kyle Hargraves)
310
+ * Support radio buttons with multiple labels (Dan Barry)
311
+ * Fix load order bug on some platforms (Ismael Celis)
312
+ * Fix bug with empty select list option (Kyle Hargraves)
313
+ * Fix regression of not sending default values in password fields
314
+ * Don't explode if encountering inputs with no type attribute (assume text)
315
+ * Fix bug where choosing a radio button in a series with a default submitted the
316
+ incorrect field value (Luke Melia)
317
+
318
+ == 0.2.0 / 2008-04-04
319
+
320
+ * 4 Major enhancements
321
+
322
+ * Add save_and_open_page to aid in debugging
323
+ * Add radio button support via #chooses method
324
+ * Add basic support for Rails-generated JavaScript link tags
325
+ * Add support for checkboxes (Patches from Kyle Hargraves and Jarkko Laine)
326
+ * Add support for textarea fields (Sacha Schlegel)
327
+
328
+ * 8 Minor enhancements
329
+
330
+ * Added reloads method to reload the page (Kamal Fariz Mahyuddi)
331
+ * Prevent making a request if clicking on local anchor link (Kamal Fariz Mahyuddi)
332
+ * Added clicks_link_within(selector, link_text), allowing restricting link search
333
+ to within a given css selector (Luke Melia)
334
+ * Allow specifying the input name/label when doing a select (David Chelimsky)
335
+ * Raise a specific exception if the developer tries to manipulate form elements
336
+ before loading a page (James Deville)
337
+ * Add support for alternate POST, PUT and DELETE link clicking (Kyle Hargraves)
338
+ * Change clicks_link to find the shortest matching link (Luke Melia)
339
+ * Improve matching for labels in potentially ambiguous cases
340
+
341
+ * 7 Bug fixes
342
+
343
+ * Fix incorrect serializing of collection inputs, i.e. name contains []
344
+ (Kamal Fariz Mahyuddi)
345
+ * Serialize empty text field values just like browsers (Kamal Fariz Mahyuddi)
346
+ * Quick fix to avoid @dom not initialized warnings (Kamal Fariz Mahyuddi)
347
+ * Docfix: bad reference to #select method in README (Luke Melia)
348
+ * Ensure Rails-style checkboxes work properly (checkboxes followed by a hidden
349
+ input with the same name)
350
+ * Fix Edge Rails (a.k.a. 2.0 RC) compatibility (David Chelimsky)
351
+ * Support param hashes nested more than one level (David Chelimsky)
352
+
353
+ == 0.1.0 / 2007-11-28
354
+
355
+ * 1 major enhancement
356
+
357
+ * Birthday!
358
+