sum 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. data/README.markdown +10 -12
  2. data/Rakefile +6 -7
  3. data/config/externals.yml +3 -3
  4. data/config/schedule.rb +0 -1
  5. data/features/step_definitions/when.rb +3 -3
  6. data/features/support/env.rb +9 -10
  7. data/gemspec.rb +13 -14
  8. data/lib/sum.rb +8 -8
  9. data/lib/sum/helper/cron.rb +1 -1
  10. data/lib/sum/model/user.rb +3 -3
  11. data/vendor/fetcher/MIT-LICENSE +20 -0
  12. data/vendor/fetcher/README.rdoc +94 -0
  13. data/vendor/fetcher/Rakefile +30 -0
  14. data/vendor/fetcher/fetcher.gemspec +27 -0
  15. data/vendor/fetcher/gemspec.rb +17 -0
  16. data/vendor/fetcher/init.rb +0 -0
  17. data/vendor/fetcher/lib/fetcher.rb +23 -0
  18. data/vendor/fetcher/lib/fetcher/base.rb +63 -0
  19. data/vendor/fetcher/lib/fetcher/imap.rb +79 -0
  20. data/vendor/fetcher/lib/fetcher/pop.rb +50 -0
  21. data/vendor/fetcher/lib/vendor/plain_imap.rb +21 -0
  22. data/vendor/fetcher/lib/vendor/secure_pop.rb +125 -0
  23. data/vendor/fetcher/test/fetcher_test.rb +74 -0
  24. metadata +40 -241
  25. data/sum.gemspec +0 -69
  26. data/vendor/webrat/History.txt +0 -358
  27. data/vendor/webrat/MIT-LICENSE.txt +0 -19
  28. data/vendor/webrat/README.rdoc +0 -85
  29. data/vendor/webrat/Rakefile +0 -200
  30. data/vendor/webrat/install.rb +0 -1
  31. data/vendor/webrat/lib/webrat.rb +0 -31
  32. data/vendor/webrat/lib/webrat/core.rb +0 -14
  33. data/vendor/webrat/lib/webrat/core/configuration.rb +0 -102
  34. data/vendor/webrat/lib/webrat/core/elements/area.rb +0 -31
  35. data/vendor/webrat/lib/webrat/core/elements/element.rb +0 -33
  36. data/vendor/webrat/lib/webrat/core/elements/field.rb +0 -409
  37. data/vendor/webrat/lib/webrat/core/elements/form.rb +0 -103
  38. data/vendor/webrat/lib/webrat/core/elements/label.rb +0 -31
  39. data/vendor/webrat/lib/webrat/core/elements/link.rb +0 -93
  40. data/vendor/webrat/lib/webrat/core/elements/select_option.rb +0 -35
  41. data/vendor/webrat/lib/webrat/core/locators.rb +0 -20
  42. data/vendor/webrat/lib/webrat/core/locators/area_locator.rb +0 -38
  43. data/vendor/webrat/lib/webrat/core/locators/button_locator.rb +0 -54
  44. data/vendor/webrat/lib/webrat/core/locators/field_by_id_locator.rb +0 -37
  45. data/vendor/webrat/lib/webrat/core/locators/field_labeled_locator.rb +0 -56
  46. data/vendor/webrat/lib/webrat/core/locators/field_locator.rb +0 -25
  47. data/vendor/webrat/lib/webrat/core/locators/field_named_locator.rb +0 -41
  48. data/vendor/webrat/lib/webrat/core/locators/form_locator.rb +0 -19
  49. data/vendor/webrat/lib/webrat/core/locators/label_locator.rb +0 -34
  50. data/vendor/webrat/lib/webrat/core/locators/link_locator.rb +0 -74
  51. data/vendor/webrat/lib/webrat/core/locators/locator.rb +0 -20
  52. data/vendor/webrat/lib/webrat/core/locators/select_option_locator.rb +0 -59
  53. data/vendor/webrat/lib/webrat/core/logging.rb +0 -24
  54. data/vendor/webrat/lib/webrat/core/matchers.rb +0 -4
  55. data/vendor/webrat/lib/webrat/core/matchers/have_content.rb +0 -73
  56. data/vendor/webrat/lib/webrat/core/matchers/have_selector.rb +0 -74
  57. data/vendor/webrat/lib/webrat/core/matchers/have_tag.rb +0 -21
  58. data/vendor/webrat/lib/webrat/core/matchers/have_xpath.rb +0 -147
  59. data/vendor/webrat/lib/webrat/core/methods.rb +0 -63
  60. data/vendor/webrat/lib/webrat/core/mime.rb +0 -29
  61. data/vendor/webrat/lib/webrat/core/save_and_open_page.rb +0 -48
  62. data/vendor/webrat/lib/webrat/core/scope.rb +0 -350
  63. data/vendor/webrat/lib/webrat/core/session.rb +0 -299
  64. data/vendor/webrat/lib/webrat/core/xml.rb +0 -115
  65. data/vendor/webrat/lib/webrat/core/xml/hpricot.rb +0 -19
  66. data/vendor/webrat/lib/webrat/core/xml/nokogiri.rb +0 -76
  67. data/vendor/webrat/lib/webrat/core/xml/rexml.rb +0 -24
  68. data/vendor/webrat/lib/webrat/core_extensions/blank.rb +0 -58
  69. data/vendor/webrat/lib/webrat/core_extensions/deprecate.rb +0 -8
  70. data/vendor/webrat/lib/webrat/core_extensions/detect_mapped.rb +0 -12
  71. data/vendor/webrat/lib/webrat/core_extensions/meta_class.rb +0 -6
  72. data/vendor/webrat/lib/webrat/core_extensions/nil_to_param.rb +0 -5
  73. data/vendor/webrat/lib/webrat/core_extensions/tcp_socket.rb +0 -27
  74. data/vendor/webrat/lib/webrat/mechanize.rb +0 -74
  75. data/vendor/webrat/lib/webrat/merb.rb +0 -9
  76. data/vendor/webrat/lib/webrat/merb_multipart_support.rb +0 -27
  77. data/vendor/webrat/lib/webrat/merb_session.rb +0 -82
  78. data/vendor/webrat/lib/webrat/rack.rb +0 -25
  79. data/vendor/webrat/lib/webrat/rails.rb +0 -106
  80. data/vendor/webrat/lib/webrat/rspec-rails.rb +0 -10
  81. data/vendor/webrat/lib/webrat/selenium.rb +0 -81
  82. data/vendor/webrat/lib/webrat/selenium/application_server_factory.rb +0 -40
  83. data/vendor/webrat/lib/webrat/selenium/application_servers.rb +0 -5
  84. data/vendor/webrat/lib/webrat/selenium/application_servers/base.rb +0 -46
  85. data/vendor/webrat/lib/webrat/selenium/application_servers/external.rb +0 -26
  86. data/vendor/webrat/lib/webrat/selenium/application_servers/merb.rb +0 -50
  87. data/vendor/webrat/lib/webrat/selenium/application_servers/rails.rb +0 -44
  88. data/vendor/webrat/lib/webrat/selenium/application_servers/sinatra.rb +0 -37
  89. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/button.js +0 -19
  90. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/label.js +0 -16
  91. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webrat.js +0 -5
  92. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlink.js +0 -12
  93. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlinkwithin.js +0 -15
  94. data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratselectwithoption.js +0 -5
  95. data/vendor/webrat/lib/webrat/selenium/matchers.rb +0 -4
  96. data/vendor/webrat/lib/webrat/selenium/matchers/have_content.rb +0 -66
  97. data/vendor/webrat/lib/webrat/selenium/matchers/have_selector.rb +0 -49
  98. data/vendor/webrat/lib/webrat/selenium/matchers/have_tag.rb +0 -72
  99. data/vendor/webrat/lib/webrat/selenium/matchers/have_xpath.rb +0 -45
  100. data/vendor/webrat/lib/webrat/selenium/selenium_extensions.js +0 -6
  101. data/vendor/webrat/lib/webrat/selenium/selenium_rc_server.rb +0 -84
  102. data/vendor/webrat/lib/webrat/selenium/selenium_session.rb +0 -248
  103. data/vendor/webrat/lib/webrat/selenium/silence_stream.rb +0 -18
  104. data/vendor/webrat/lib/webrat/sinatra.rb +0 -11
  105. data/vendor/webrat/spec/fakes/test_session.rb +0 -34
  106. data/vendor/webrat/spec/integration/merb/Rakefile +0 -35
  107. data/vendor/webrat/spec/integration/merb/app/controllers/application.rb +0 -2
  108. data/vendor/webrat/spec/integration/merb/app/controllers/exceptions.rb +0 -13
  109. data/vendor/webrat/spec/integration/merb/app/controllers/testing.rb +0 -27
  110. data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_acceptable.html.erb +0 -63
  111. data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_found.html.erb +0 -47
  112. data/vendor/webrat/spec/integration/merb/app/views/layout/application.html.erb +0 -12
  113. data/vendor/webrat/spec/integration/merb/app/views/testing/show_form.html.erb +0 -27
  114. data/vendor/webrat/spec/integration/merb/app/views/testing/upload.html.erb +0 -9
  115. data/vendor/webrat/spec/integration/merb/config/environments/development.rb +0 -15
  116. data/vendor/webrat/spec/integration/merb/config/environments/rake.rb +0 -11
  117. data/vendor/webrat/spec/integration/merb/config/environments/test.rb +0 -14
  118. data/vendor/webrat/spec/integration/merb/config/init.rb +0 -25
  119. data/vendor/webrat/spec/integration/merb/config/rack.rb +0 -11
  120. data/vendor/webrat/spec/integration/merb/config/router.rb +0 -34
  121. data/vendor/webrat/spec/integration/merb/spec/spec.opts +0 -1
  122. data/vendor/webrat/spec/integration/merb/spec/spec_helper.rb +0 -24
  123. data/vendor/webrat/spec/integration/merb/spec/webrat_spec.rb +0 -39
  124. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/app_script.rb +0 -31
  125. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/common.rb +0 -64
  126. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/gem_ext.rb +0 -124
  127. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/main.thor +0 -150
  128. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/ops.rb +0 -93
  129. data/vendor/webrat/spec/integration/merb/tasks/merb.thor/utils.rb +0 -40
  130. data/vendor/webrat/spec/integration/rack/Rakefile +0 -5
  131. data/vendor/webrat/spec/integration/rack/app.rb +0 -73
  132. data/vendor/webrat/spec/integration/rack/test/helper.rb +0 -20
  133. data/vendor/webrat/spec/integration/rack/test/webrat_rack_test.rb +0 -62
  134. data/vendor/webrat/spec/integration/rails/Rakefile +0 -30
  135. data/vendor/webrat/spec/integration/rails/app/controllers/application.rb +0 -15
  136. data/vendor/webrat/spec/integration/rails/app/controllers/buttons_controller.rb +0 -7
  137. data/vendor/webrat/spec/integration/rails/app/controllers/fields_controller.rb +0 -4
  138. data/vendor/webrat/spec/integration/rails/app/controllers/links_controller.rb +0 -7
  139. data/vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb +0 -43
  140. data/vendor/webrat/spec/integration/rails/app/helpers/buttons_helper.rb +0 -2
  141. data/vendor/webrat/spec/integration/rails/app/helpers/fields_helper.rb +0 -2
  142. data/vendor/webrat/spec/integration/rails/app/helpers/links_helper.rb +0 -2
  143. data/vendor/webrat/spec/integration/rails/app/views/buttons/show.html.erb +0 -11
  144. data/vendor/webrat/spec/integration/rails/app/views/fields/show.html.erb +0 -9
  145. data/vendor/webrat/spec/integration/rails/app/views/links/show.html.erb +0 -5
  146. data/vendor/webrat/spec/integration/rails/app/views/webrat/before_redirect_form.html.erb +0 -4
  147. data/vendor/webrat/spec/integration/rails/app/views/webrat/buttons.html.erb +0 -11
  148. data/vendor/webrat/spec/integration/rails/app/views/webrat/form.html.erb +0 -28
  149. data/vendor/webrat/spec/integration/rails/config/boot.rb +0 -109
  150. data/vendor/webrat/spec/integration/rails/config/environment.rb +0 -12
  151. data/vendor/webrat/spec/integration/rails/config/environments/development.rb +0 -17
  152. data/vendor/webrat/spec/integration/rails/config/environments/selenium.rb +0 -22
  153. data/vendor/webrat/spec/integration/rails/config/environments/test.rb +0 -22
  154. data/vendor/webrat/spec/integration/rails/config/initializers/inflections.rb +0 -10
  155. data/vendor/webrat/spec/integration/rails/config/initializers/mime_types.rb +0 -5
  156. data/vendor/webrat/spec/integration/rails/config/initializers/new_rails_defaults.rb +0 -17
  157. data/vendor/webrat/spec/integration/rails/config/locales/en.yml +0 -5
  158. data/vendor/webrat/spec/integration/rails/config/routes.rb +0 -18
  159. data/vendor/webrat/spec/integration/rails/public/404.html +0 -30
  160. data/vendor/webrat/spec/integration/rails/public/422.html +0 -30
  161. data/vendor/webrat/spec/integration/rails/public/500.html +0 -33
  162. data/vendor/webrat/spec/integration/rails/script/about +0 -4
  163. data/vendor/webrat/spec/integration/rails/script/console +0 -3
  164. data/vendor/webrat/spec/integration/rails/script/dbconsole +0 -3
  165. data/vendor/webrat/spec/integration/rails/script/destroy +0 -3
  166. data/vendor/webrat/spec/integration/rails/script/generate +0 -3
  167. data/vendor/webrat/spec/integration/rails/script/performance/benchmarker +0 -3
  168. data/vendor/webrat/spec/integration/rails/script/performance/profiler +0 -3
  169. data/vendor/webrat/spec/integration/rails/script/performance/request +0 -3
  170. data/vendor/webrat/spec/integration/rails/script/plugin +0 -3
  171. data/vendor/webrat/spec/integration/rails/script/process/inspector +0 -3
  172. data/vendor/webrat/spec/integration/rails/script/process/reaper +0 -3
  173. data/vendor/webrat/spec/integration/rails/script/process/spawner +0 -3
  174. data/vendor/webrat/spec/integration/rails/script/runner +0 -3
  175. data/vendor/webrat/spec/integration/rails/script/server +0 -3
  176. data/vendor/webrat/spec/integration/rails/test/integration/button_click_test.rb +0 -80
  177. data/vendor/webrat/spec/integration/rails/test/integration/fill_in_test.rb +0 -24
  178. data/vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb +0 -27
  179. data/vendor/webrat/spec/integration/rails/test/integration/webrat_test.rb +0 -97
  180. data/vendor/webrat/spec/integration/rails/test/test_helper.rb +0 -25
  181. data/vendor/webrat/spec/integration/sinatra/Rakefile +0 -5
  182. data/vendor/webrat/spec/integration/sinatra/classic_app.rb +0 -64
  183. data/vendor/webrat/spec/integration/sinatra/modular_app.rb +0 -16
  184. data/vendor/webrat/spec/integration/sinatra/test/classic_app_test.rb +0 -37
  185. data/vendor/webrat/spec/integration/sinatra/test/modular_app_test.rb +0 -18
  186. data/vendor/webrat/spec/integration/sinatra/test/test_helper.rb +0 -16
  187. data/vendor/webrat/spec/private/core/configuration_spec.rb +0 -116
  188. data/vendor/webrat/spec/private/core/field_spec.rb +0 -85
  189. data/vendor/webrat/spec/private/core/link_spec.rb +0 -24
  190. data/vendor/webrat/spec/private/core/logging_spec.rb +0 -10
  191. data/vendor/webrat/spec/private/core/session_spec.rb +0 -195
  192. data/vendor/webrat/spec/private/mechanize/mechanize_session_spec.rb +0 -81
  193. data/vendor/webrat/spec/private/merb/attaches_file_spec.rb +0 -93
  194. data/vendor/webrat/spec/private/merb/merb_session_spec.rb +0 -61
  195. data/vendor/webrat/spec/private/nokogiri_spec.rb +0 -77
  196. data/vendor/webrat/spec/private/rails/attaches_file_spec.rb +0 -81
  197. data/vendor/webrat/spec/private/rails/rails_session_spec.rb +0 -112
  198. data/vendor/webrat/spec/private/selenium/application_servers/rails_spec.rb +0 -26
  199. data/vendor/webrat/spec/public/basic_auth_spec.rb +0 -24
  200. data/vendor/webrat/spec/public/check_spec.rb +0 -191
  201. data/vendor/webrat/spec/public/choose_spec.rb +0 -118
  202. data/vendor/webrat/spec/public/click_area_spec.rb +0 -106
  203. data/vendor/webrat/spec/public/click_button_spec.rb +0 -496
  204. data/vendor/webrat/spec/public/click_link_spec.rb +0 -511
  205. data/vendor/webrat/spec/public/fill_in_spec.rb +0 -209
  206. data/vendor/webrat/spec/public/locators/field_by_xpath_spec.rb +0 -19
  207. data/vendor/webrat/spec/public/locators/field_labeled_spec.rb +0 -172
  208. data/vendor/webrat/spec/public/locators/field_with_id_spec.rb +0 -16
  209. data/vendor/webrat/spec/public/matchers/contain_spec.rb +0 -114
  210. data/vendor/webrat/spec/public/matchers/have_selector_spec.rb +0 -142
  211. data/vendor/webrat/spec/public/matchers/have_tag_spec.rb +0 -39
  212. data/vendor/webrat/spec/public/matchers/have_xpath_spec.rb +0 -136
  213. data/vendor/webrat/spec/public/reload_spec.rb +0 -10
  214. data/vendor/webrat/spec/public/save_and_open_spec.rb +0 -70
  215. data/vendor/webrat/spec/public/select_date_spec.rb +0 -112
  216. data/vendor/webrat/spec/public/select_datetime_spec.rb +0 -137
  217. data/vendor/webrat/spec/public/select_spec.rb +0 -249
  218. data/vendor/webrat/spec/public/select_time_spec.rb +0 -100
  219. data/vendor/webrat/spec/public/selenium/application_server_factory_spec.rb +0 -49
  220. data/vendor/webrat/spec/public/selenium/application_servers/external_spec.rb +0 -12
  221. data/vendor/webrat/spec/public/selenium/selenium_session_spec.rb +0 -37
  222. data/vendor/webrat/spec/public/set_hidden_field_spec.rb +0 -5
  223. data/vendor/webrat/spec/public/submit_form_spec.rb +0 -5
  224. data/vendor/webrat/spec/public/visit_spec.rb +0 -58
  225. data/vendor/webrat/spec/public/within_spec.rb +0 -177
  226. data/vendor/webrat/spec/rcov.opts +0 -1
  227. data/vendor/webrat/spec/spec.opts +0 -2
  228. data/vendor/webrat/spec/spec_helper.rb +0 -50
@@ -1,358 +0,0 @@
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 '&' 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
-
@@ -1,19 +0,0 @@
1
- Copyright (c) 2007 Bryan Helmkamp, Seth Fitzsimmons
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
@@ -1,85 +0,0 @@
1
- = Webrat - Ruby Acceptance Testing for Web applications
2
-
3
- - http://gitrdoc.com/brynary/webrat
4
- - http://groups.google.com/group/webrat
5
- - http://webrat.lighthouseapp.com/
6
- - http://github.com/brynary/webrat
7
- - #webrat on Freenode
8
-
9
- == Description
10
-
11
- Webrat lets you quickly write expressive and robust acceptance tests for a Ruby
12
- web application.
13
-
14
- == Features
15
-
16
- * Browser Simulator for expressive, high level acceptance testing without the
17
- performance hit and browser dependency of Selenium or Watir (See Webrat::Session)
18
- * Use the same API for Browser Simulator and real Selenium tests using
19
- Webrat::Selenium when necessary (eg. for testing AJAX interactions)
20
- * Supports multiple Ruby web frameworks: Rails, Merb and Sinatra
21
- * Supports popular test frameworks: RSpec, Cucumber, Test::Unit and Shoulda
22
- * Webrat::Matchers API for verifying rendered HTML using CSS, XPath, etc.
23
-
24
- == Example
25
-
26
- class SignupTest < ActionController::IntegrationTest
27
-
28
- def test_trial_account_sign_up
29
- visit home_path
30
- click_link "Sign up"
31
- fill_in "Email", :with => "good@example.com"
32
- select "Free account"
33
- click_button "Register"
34
- end
35
-
36
- end
37
-
38
- Behind the scenes, Webrat will ensure:
39
-
40
- * If a link, form field or button is missing, the test will fail.
41
- * If a URL is invalid, the test will fail.
42
- * If a page load or form submission is unsuccessful, the test will fail.
43
-
44
- == Installing Nokogiri
45
-
46
- Users of Debian Linux (e.g. Ubuntu) need to run:
47
-
48
- sudo apt-get install libxslt1-dev libxml2-dev.
49
-
50
- Otherwise the Nokogiri gem, which Webrat depends on, won't install properly.
51
-
52
- == Install for Rails
53
-
54
- To install the latest release as a gem:
55
-
56
- sudo gem install webrat
57
-
58
- To install the latest code as a plugin: (_Note:_ This may be less stable than using a released version)
59
-
60
- script/plugin install git://github.com/brynary/webrat.git
61
-
62
- In your test_helper.rb or env.rb (for Cucumber) add:
63
-
64
- require "webrat"
65
-
66
- Webrat.configure do |config|
67
- config.mode = :rails
68
- end
69
-
70
- == Install with Merb
71
-
72
- Merb 1.0 has built-in, seamless Webrat support. Just start using
73
- methods from Webrat::Session in your specs.
74
-
75
- == Authors
76
-
77
- - Maintained by {Bryan Helmkamp}[mailto:bryan@brynary.com]
78
- - Original code written by {Seth Fitzsimmons}[mailto:seth@mojodna.net]
79
- - Initial development was sponsored by EastMedia[http://www.eastmedia.com]
80
- - Many other contributors. See attributions in History.txt
81
-
82
- == License
83
-
84
- Copyright (c) 2007-2008 Bryan Helmkamp, Seth Fitzsimmons.
85
- See MIT-LICENSE.txt in this directory.