Skip to content
Browse files

Initial commit, re-adding repository for the purposes of fixing a pri…

…vacy screwup
  • Loading branch information...
0 parents commit 286ed243bd057e3473b7ad814fa053f314106162 @infil00p committed Jan 8, 2012
Showing with 23,987 additions and 0 deletions.
  1. +35 −0 Gemfile
  2. +24 −0 LICENCE
  3. +13 −0 README.md
  4. +7 −0 Rakefile
  5. +2 −0 app/assets/javascripts/home.js
  6. +4 −0 app/assets/stylesheets/home.css
  7. BIN app/controllers/.requests_controller.rb.swp
  8. +85 −0 app/controllers/addresses_controller.rb
  9. +85 −0 app/controllers/agencies_controller.rb
  10. +3 −0 app/controllers/application_controller.rb
  11. +85 −0 app/controllers/documents_controller.rb
  12. +85 −0 app/controllers/events_controller.rb
  13. +8 −0 app/controllers/home_controller.rb
  14. +106 −0 app/controllers/orders_controller.rb
  15. +10 −0 app/controllers/payments_controller.rb
  16. +102 −0 app/controllers/requests_controller.rb
  17. +9 −0 app/controllers/start_controller.rb
  18. +2 −0 app/helpers/addresses_helper.rb
  19. +2 −0 app/helpers/agencies_helper.rb
  20. +2 −0 app/helpers/application_helper.rb
  21. +2 −0 app/helpers/documents_helper.rb
  22. +2 −0 app/helpers/events_helper.rb
  23. +2 −0 app/helpers/home_helper.rb
  24. +2 −0 app/helpers/orders_helper.rb
  25. +2 −0 app/helpers/payments_helper.rb
  26. +2 −0 app/helpers/requests_helper.rb
  27. +2 −0 app/helpers/start_helper.rb
  28. +4 −0 app/models/address.rb
  29. +9 −0 app/models/admin.rb
  30. +4 −0 app/models/agency.rb
  31. +5 −0 app/models/document.rb
  32. +5 −0 app/models/event.rb
  33. +4 −0 app/models/order.rb
  34. +53 −0 app/models/payment.rb
  35. +44 −0 app/models/request.rb
  36. +32 −0 app/models/user.rb
  37. +38 −0 app/views/addresses/_form.html.erb
  38. +6 −0 app/views/addresses/edit.html.erb
  39. +27 −0 app/views/addresses/index.html.erb
  40. +5 −0 app/views/addresses/new.html.erb
  41. +20 −0 app/views/addresses/show.html.erb
  42. +57 −0 app/views/agencies/_form.html.erb
  43. +6 −0 app/views/agencies/edit.html.erb
  44. +25 −0 app/views/agencies/index.html.erb
  45. +5 −0 app/views/agencies/new.html.erb
  46. +15 −0 app/views/agencies/show.html.erb
  47. +17 −0 app/views/documents/_form.html.erb
  48. +6 −0 app/views/documents/edit.html.erb
  49. +21 −0 app/views/documents/index.html.erb
  50. +5 −0 app/views/documents/new.html.erb
  51. +5 −0 app/views/documents/show.html.erb
  52. +17 −0 app/views/events/_form.html.erb
  53. +6 −0 app/views/events/edit.html.erb
  54. +21 −0 app/views/events/index.html.erb
  55. +5 −0 app/views/events/new.html.erb
  56. +5 −0 app/views/events/show.html.erb
  57. +9 −0 app/views/home/index.html.erb
  58. +26 −0 app/views/layouts/application.html.erb
  59. +18 −0 app/views/layouts/start.html.erb
  60. +33 −0 app/views/orders/_form.html.erb
  61. +13 −0 app/views/orders/edit.html.erb
  62. +25 −0 app/views/orders/index.html.erb
  63. +4 −0 app/views/orders/new.html.erb
  64. +87 −0 app/views/orders/show.html.erb
  65. +25 −0 app/views/requests/_edit_form.html.erb
  66. +26 −0 app/views/requests/_form.html.erb
  67. +12 −0 app/views/requests/edit.html.erb
  68. +27 −0 app/views/requests/index.html.erb
  69. +20 −0 app/views/requests/new.html.erb
  70. +5 −0 app/views/requests/show.html.erb
  71. +922 −0 app/views/requests/show.svg.erb
  72. 0 app/views/requests/update.js.erb
  73. +12 −0 app/views/start/index.html.erb
  74. +4 −0 config.ru
  75. +42 −0 config/application.rb
  76. +6 −0 config/boot.rb
  77. +22 −0 config/database.yml
  78. +5 −0 config/environment.rb
  79. +26 −0 config/environments/development.rb
  80. +49 −0 config/environments/production.rb
  81. +35 −0 config/environments/test.rb
  82. +7 −0 config/initializers/backtrace_silencers.rb
  83. +142 −0 config/initializers/devise.rb
  84. +10 −0 config/initializers/inflections.rb
  85. +8 −0 config/initializers/mime_types.rb
  86. +7 −0 config/initializers/secret_token.rb
  87. +8 −0 config/initializers/session_store.rb
  88. +14 −0 config/initializers/wrap_parameters.rb
  89. +39 −0 config/locales/devise.en.yml
  90. +5 −0 config/locales/en.yml
  91. +79 −0 config/routes.rb
  92. +18 −0 db/migrate/20110220192306_create_requests.rb
  93. +13 −0 db/migrate/20110220192327_create_events.rb
  94. +16 −0 db/migrate/20110220192339_create_documents.rb
  95. +26 −0 db/migrate/20110220193051_devise_create_users.rb
  96. +20 −0 db/migrate/20110220194544_create_addresses.rb
  97. +16 −0 db/migrate/20110221070834_create_orders.rb
  98. +22 −0 db/migrate/20110221071520_create_agencies.rb
  99. +26 −0 db/migrate/20110221071851_devise_create_admins.rb
  100. +120 −0 db/schema.rb
  101. +7 −0 db/seeds.rb
  102. +2 −0 doc/README_FOR_APP
  103. +19 −0 hpricot/ruby/1.9.1/bin/erubis
  104. +19 −0 hpricot/ruby/1.9.1/bin/rackup
  105. +19 −0 hpricot/ruby/1.9.1/bin/rails
  106. +19 −0 hpricot/ruby/1.9.1/bin/rake
  107. +19 −0 hpricot/ruby/1.9.1/bin/rake2thor
  108. +19 −0 hpricot/ruby/1.9.1/bin/thor
  109. +19 −0 hpricot/ruby/1.9.1/bin/tt
  110. BIN hpricot/ruby/1.9.1/cache/abstract-1.0.0.gem
  111. BIN hpricot/ruby/1.9.1/cache/actionmailer-3.0.4.gem
  112. BIN hpricot/ruby/1.9.1/cache/actionpack-3.0.4.gem
  113. BIN hpricot/ruby/1.9.1/cache/activemodel-3.0.4.gem
  114. BIN hpricot/ruby/1.9.1/cache/activerecord-3.0.4.gem
  115. BIN hpricot/ruby/1.9.1/cache/activeresource-3.0.4.gem
  116. BIN hpricot/ruby/1.9.1/cache/activesupport-3.0.4.gem
  117. BIN hpricot/ruby/1.9.1/cache/arel-2.0.8.gem
  118. BIN hpricot/ruby/1.9.1/cache/bcrypt-ruby-2.1.4.gem
  119. BIN hpricot/ruby/1.9.1/cache/builder-2.1.2.gem
  120. BIN hpricot/ruby/1.9.1/cache/devise-1.1.7.gem
  121. BIN hpricot/ruby/1.9.1/cache/dispatcher-0.0.1.gem
  122. BIN hpricot/ruby/1.9.1/cache/erubis-2.6.6.gem
  123. BIN hpricot/ruby/1.9.1/cache/hpricot-0.8.4.gem
  124. BIN hpricot/ruby/1.9.1/cache/i18n-0.5.0.gem
  125. BIN hpricot/ruby/1.9.1/cache/mail-2.2.15.gem
  126. BIN hpricot/ruby/1.9.1/cache/mime-types-1.16.gem
  127. BIN hpricot/ruby/1.9.1/cache/polyglot-0.3.1.gem
  128. BIN hpricot/ruby/1.9.1/cache/rack-1.2.1.gem
  129. BIN hpricot/ruby/1.9.1/cache/rack-mount-0.6.13.gem
  130. BIN hpricot/ruby/1.9.1/cache/rack-test-0.5.7.gem
  131. BIN hpricot/ruby/1.9.1/cache/rails-3.0.4.gem
  132. BIN hpricot/ruby/1.9.1/cache/railties-3.0.4.gem
  133. BIN hpricot/ruby/1.9.1/cache/rake-0.9.2.gem
  134. BIN hpricot/ruby/1.9.1/cache/sqlite3-1.3.3.gem
  135. BIN hpricot/ruby/1.9.1/cache/thor-0.14.6.gem
  136. BIN hpricot/ruby/1.9.1/cache/treetop-1.4.9.gem
  137. BIN hpricot/ruby/1.9.1/cache/tzinfo-0.3.24.gem
  138. BIN hpricot/ruby/1.9.1/cache/warden-1.0.3.gem
  139. +3 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/ChangeLog
  140. +57 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/README.txt
  141. +48 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/abstract.gemspec
  142. +75 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/lib/abstract.rb
  143. +1,331 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/setup.rb
  144. +91 −0 hpricot/ruby/1.9.1/gems/abstract-1.0.0/test/test.rb
  145. +424 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/CHANGELOG
  146. +21 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/MIT-LICENSE
  147. +147 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/README.rdoc
  148. +52 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer.rb
  149. +26 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/adv_attr_accessor.rb
  150. +776 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/base.rb
  151. +30 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/collector.rb
  152. +86 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/delivery_methods.rb
  153. +147 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/deprecated_api.rb
  154. +22 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/log_subscriber.rb
  155. +41 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/mail_helper.rb
  156. +259 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/old_api.rb
  157. +26 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/railtie.rb
  158. +76 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/test_case.rb
  159. +61 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/test_helper.rb
  160. +34 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/tmail_compat.rb
  161. +10 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/action_mailer/version.rb
  162. +15 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/rails/generators/mailer/USAGE
  163. +16 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/rails/generators/mailer/mailer_generator.rb
  164. +16 −0 hpricot/ruby/1.9.1/gems/actionmailer-3.0.4/lib/rails/generators/mailer/templates/mailer.rb
  165. +5,336 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/CHANGELOG
  166. +21 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/MIT-LICENSE
  167. +342 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/README.rdoc
  168. +27 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller.rb
  169. +9 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/asset_paths.rb
  170. +196 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/base.rb
  171. +114 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/callbacks.rb
  172. +32 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/collector.rb
  173. +169 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/helpers.rb
  174. +363 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/layouts.rb
  175. +13 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/logger.rb
  176. +170 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/rendering.rb
  177. +13 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/translation.rb
  178. +70 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/view_paths.rb
  179. +77 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller.rb
  180. +235 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/base.rb
  181. +84 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/caching.rb
  182. +183 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/caching/actions.rb
  183. +106 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/caching/fragments.rb
  184. +165 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/caching/pages.rb
  185. +96 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/caching/sweeping.rb
  186. +3 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated.rb
  187. +143 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated/base.rb
  188. +28 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated/dispatcher.rb
  189. +2 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated/integration_test.rb
  190. +1 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated/performance_test.rb
  191. +14 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/deprecated/url_writer.rb
  192. +56 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/log_subscriber.rb
  193. +182 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal.rb
  194. +70 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/compatibility.rb
  195. +86 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/conditional_get.rb
  196. +16 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/cookies.rb
  197. +46 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/exceptions.rb
  198. +28 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/flash.rb
  199. +32 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/head.rb
  200. +117 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/helpers.rb
  201. +48 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/hide_actions.rb
  202. +460 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/http_authentication.rb
  203. +21 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/implicit_render.rb
  204. +100 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/instrumentation.rb
  205. +304 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/mime_responds.rb
  206. +26 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/rack_delegation.rb
  207. +93 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/redirecting.rb
  208. +97 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/renderers.rb
  209. +56 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/rendering.rb
  210. +126 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/request_forgery_protection.rb
  211. +22 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/rescue.rb
  212. +245 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/responder.rb
  213. +9 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/session_management.rb
  214. +157 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/streaming.rb
  215. +41 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/testing.rb
  216. +28 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/url_for.rb
  217. +39 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/middleware.rb
  218. +66 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/railtie.rb
  219. +91 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/record_identifier.rb
  220. +492 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/test_case.rb
  221. +20 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner.rb
  222. +68 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/document.rb
  223. +532 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/node.rb
  224. +176 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
  225. +828 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/selector.rb
  226. +107 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/tokenizer.rb
  227. +11 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/vendor/html-scanner/html/version.rb
  228. +95 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch.rb
  229. +140 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/cache.rb
  230. +57 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/filter_parameters.rb
  231. +33 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/headers.rb
  232. +90 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/mime_negotiation.rb
  233. +230 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/mime_type.rb
  234. +23 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/mime_types.rb
  235. +72 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/parameter_filter.rb
  236. +79 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/parameters.rb
  237. +260 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/request.rb
  238. +198 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/response.rb
  239. +48 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/upload.rb
  240. +112 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/http/url.rb
  241. +22 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/best_standards_support.rb
  242. +50 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/callbacks.rb
  243. +314 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/cookies.rb
  244. +196 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/flash.rb
  245. +18 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/head.rb
  246. +80 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/params_parser.rb
  247. +51 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/remote_ip.rb
  248. +26 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/rescue.rb
  249. +256 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/session/abstract_store.rb
  250. +95 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/session/cookie_store.rb
  251. +56 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/session/mem_cache_store.rb
  252. +158 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/show_exceptions.rb
  253. +90 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/stack.rb
  254. +44 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/static.rb
  255. +31 −0 .../gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
  256. +26 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb
  257. +10 −0 ...ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
  258. +29 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/layout.erb
  259. +2 −0 ...1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb
  260. +10 −0 ...by/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
  261. +21 −0 ...y/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb
  262. +2 −0 ...y/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
  263. +12 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/railtie.rb
  264. +282 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/routing.rb
  265. +525 −0 hpricot/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_dispatch/routing/deprecated_mapper.rb
Sorry, we could not display the entire diff because too many files (3,337) changed.
35 Gemfile
@@ -0,0 +1,35 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
+# gem 'ruby-debug'
+# gem 'ruby-debug19'
+
+gem 'devise'
+gem 'dispatcher'
+gem 'activemerchant'
+
+# Bundle the extra gems:
+# gem 'bj'
+gem 'nokogiri'
+# gem 'sqlite3-ruby', :require => 'sqlite3'
+# gem 'aws-s3', :require => 'aws/s3'
+
+# Bundle gems for the local environment. Make sure to
+# put test-only gems in this group so their generators
+# and rake tasks are available in development mode:
+# group :development, :test do
+# gem 'webrat'
+# end
24 LICENCE
@@ -0,0 +1,24 @@
+Copyright (c) 2012, Joe Bowser
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of the original developer nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 README.md
@@ -0,0 +1,13 @@
+ATIPper
+===============================
+An interface to get around Government Fail
+
+This is the software for a sevice where we print ATI requests, stuff them
+into envelopes, and send them off for the customer.
+
+This was originally supposed to be a beer-money business, but I have decided to
+clean this up and open source this. This is how I can send large volumes of ATIP
+requests to government agencies to help keep them accountable. This software
+is unfinished and probably needs a ton of work before it's really useful beyond
+a single user, but this makes things much easier than messing around with a PDF
+on the Treasury Board's website.
7 Rakefile
@@ -0,0 +1,7 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+require 'rake'
+
+Atipper::Application.load_tasks
2 app/assets/javascripts/home.js
@@ -0,0 +1,2 @@
+// Place all the behaviors and hooks related to the matching controller here.
+// All this logic will automatically be available in application.js.
4 app/assets/stylesheets/home.css
@@ -0,0 +1,4 @@
+/*
+ Place all the styles related to the matching controller here.
+ They will automatically be included in application.css.
+*/
BIN app/controllers/.requests_controller.rb.swp
Binary file not shown.
85 app/controllers/addresses_controller.rb
@@ -0,0 +1,85 @@
+class AddressesController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /addresses
+ # GET /addresses.xml
+ def index
+ @addresses = Address.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @addresses }
+ end
+ end
+
+ # GET /addresses/1
+ # GET /addresses/1.xml
+ def show
+ @address = Address.find(params[:id])
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @address }
+ end
+ end
+
+ # GET /addresses/new
+ # GET /addresses/new.xml
+ def new
+ @address = Address.new
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @address }
+ end
+ end
+
+ # GET /addresses/1/edit
+ def edit
+ @address = Address.find(params[:id])
+ end
+
+ # POST /addresses
+ # POST /addresses.xml
+ def create
+ @address = Address.new(params[:address])
+
+ respond_to do |format|
+ if @address.save
+ format.html { redirect_to(@address, :notice => 'Address was successfully created.') }
+ format.xml { render :xml => @address, :status => :created, :location => @address }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @address.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /addresses/1
+ # PUT /addresses/1.xml
+ def update
+ @address = Address.find(params[:id])
+
+ respond_to do |format|
+ if @address.update_attributes(params[:address])
+ format.html { redirect_to(@address, :notice => 'Address was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @address.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /addresses/1
+ # DELETE /addresses/1.xml
+ def destroy
+ @address = Address.find(params[:id])
+ @address.destroy
+
+ respond_to do |format|
+ format.html { redirect_to(addresses_url) }
+ format.xml { head :ok }
+ end
+ end
+end
85 app/controllers/agencies_controller.rb
@@ -0,0 +1,85 @@
+class AgenciesController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /agencies
+ # GET /agencies.xml
+ def index
+ @agencies = Agency.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @agencies }
+ end
+ end
+
+ # GET /agencies/1
+ # GET /agencies/1.xml
+ def show
+ @agency = Agency.find(params[:id])
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @agency }
+ end
+ end
+
+ # GET /agencies/new
+ # GET /agencies/new.xml
+ def new
+ @agency = Agency.new
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @agency }
+ end
+ end
+
+ # GET /agencies/1/edit
+ def edit
+ @agency = Agency.find(params[:id])
+ end
+
+ # POST /agencies
+ # POST /agencies.xml
+ def create
+ @agency = Agency.new(params[:agency])
+
+ respond_to do |format|
+ if @agency.save
+ format.html { redirect_to(@agency, :notice => 'Agency was successfully created.') }
+ format.xml { render :xml => @agency, :status => :created, :location => @agency }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @agency.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /agencies/1
+ # PUT /agencies/1.xml
+ def update
+ @agency = Agency.find(params[:id])
+
+ respond_to do |format|
+ if @agency.update_attributes(params[:agency])
+ format.html { redirect_to(@agency, :notice => 'Agency was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @agency.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /agencies/1
+ # DELETE /agencies/1.xml
+ def destroy
+ @agency = Agency.find(params[:id])
+ @agency.destroy
+
+ respond_to do |format|
+ format.html { redirect_to(agencies_url) }
+ format.xml { head :ok }
+ end
+ end
+end
3 app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
85 app/controllers/documents_controller.rb
@@ -0,0 +1,85 @@
+class DocumentsController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /documents
+ # GET /documents.xml
+ def index
+ @documents = Document.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @documents }
+ end
+ end
+
+ # GET /documents/1
+ # GET /documents/1.xml
+ def show
+ @document = Document.find(params[:id])
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @document }
+ end
+ end
+
+ # GET /documents/new
+ # GET /documents/new.xml
+ def new
+ @document = Document.new
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @document }
+ end
+ end
+
+ # GET /documents/1/edit
+ def edit
+ @document = Document.find(params[:id])
+ end
+
+ # POST /documents
+ # POST /documents.xml
+ def create
+ @document = Document.new(params[:document])
+
+ respond_to do |format|
+ if @document.save
+ format.html { redirect_to(@document, :notice => 'Document was successfully created.') }
+ format.xml { render :xml => @document, :status => :created, :location => @document }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @document.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /documents/1
+ # PUT /documents/1.xml
+ def update
+ @document = Document.find(params[:id])
+
+ respond_to do |format|
+ if @document.update_attributes(params[:document])
+ format.html { redirect_to(@document, :notice => 'Document was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @document.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /documents/1
+ # DELETE /documents/1.xml
+ def destroy
+ @document = Document.find(params[:id])
+ @document.destroy
+
+ respond_to do |format|
+ format.html { redirect_to(documents_url) }
+ format.xml { head :ok }
+ end
+ end
+end
85 app/controllers/events_controller.rb
@@ -0,0 +1,85 @@
+class EventsController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /events
+ # GET /events.xml
+ def index
+ @events = Event.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @events }
+ end
+ end
+
+ # GET /events/1
+ # GET /events/1.xml
+ def show
+ @event = Event.find(params[:id])
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @event }
+ end
+ end
+
+ # GET /events/new
+ # GET /events/new.xml
+ def new
+ @event = Event.new
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @event }
+ end
+ end
+
+ # GET /events/1/edit
+ def edit
+ @event = Event.find(params[:id])
+ end
+
+ # POST /events
+ # POST /events.xml
+ def create
+ @event = Event.new(params[:event])
+
+ respond_to do |format|
+ if @event.save
+ format.html { redirect_to(@event, :notice => 'Event was successfully created.') }
+ format.xml { render :xml => @event, :status => :created, :location => @event }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @event.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /events/1
+ # PUT /events/1.xml
+ def update
+ @event = Event.find(params[:id])
+
+ respond_to do |format|
+ if @event.update_attributes(params[:event])
+ format.html { redirect_to(@event, :notice => 'Event was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @event.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /events/1
+ # DELETE /events/1.xml
+ def destroy
+ @event = Event.find(params[:id])
+ @event.destroy
+
+ respond_to do |format|
+ format.html { redirect_to(events_url) }
+ format.xml { head :ok }
+ end
+ end
+end
8 app/controllers/home_controller.rb
@@ -0,0 +1,8 @@
+class HomeController < ApplicationController
+ before_filter :authenticate_user!
+
+ def index
+ @events = current_user.events
+ end
+
+end
106 app/controllers/orders_controller.rb
@@ -0,0 +1,106 @@
+class OrdersController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /orders
+ # GET /orders.xml
+ def index
+ if(current_user.is_admin?)
+ @orders = Order.all
+ else
+ @orders = current_user.orders
+ end
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @orders }
+ end
+ end
+
+ # GET /orders/1
+ # GET /orders/1.xml
+ def show
+ @order = Order.find(params[:id])
+ @requests = @order.requests
+ @bill_addr = Address.new
+ @ship_addr = Address.new
+
+ if(current_user.is_admin? || @order.user == current_user)
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @order }
+ end
+ else
+ redirect_to(orders_url)
+ end
+ end
+
+ # GET /orders/new
+ # GET /orders/new.xml
+ def new
+ @order = Order.new
+ @order.user = current_user
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @order }
+ end
+ end
+
+ # GET /orders/1/edit
+ def edit
+ @order = Order.find(params[:id])
+ if(@order.user != current_user && !current_user.is_admin?)
+ redirect_to(orders_url)
+ end
+ end
+
+ # POST /orders
+ # POST /orders.xml
+ def create
+ @order = Order.new(params[:order])
+ @user = current_user
+
+ respond_to do |format|
+ if @order.save
+ format.html { redirect_to(@order, :notice => 'Order was successfully created.') }
+ format.xml { render :xml => @order, :status => :created, :location => @order }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @order.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /orders/1
+ # PUT /orders/1.xml
+ def update
+ @order = Order.find(params[:id])
+ if(@order.user == current_user || current_user.is_admin?)
+ respond_to do |format|
+ if @order.update_attributes(params[:order])
+ format.html { redirect_to(@order, :notice => 'Order was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @order.errors, :status => :unprocessable_entity }
+ end
+ end
+ else
+ redirect_to(orders_url)
+ end
+ end
+
+ # DELETE /orders/1
+ # DELETE /orders/1.xml
+ def destroy
+ @order = Order.find(params[:id])
+ if(@order.user == current_user || current_user.is_admin?)
+ @order.destroy
+ end
+
+ respond_to do |format|
+ format.html { redirect_to(orders_url) }
+ format.xml { head :ok }
+ end
+ end
+end
10 app/controllers/payments_controller.rb
@@ -0,0 +1,10 @@
+class PaymentsController < ApplicationController
+
+ def create
+ payment = Payment.new(params[:payment])
+ if(payment.process)
+ format.html { redirect_to(@order) :notice => "Your payment has been processed }
+ end
+ end
+
+end
102 app/controllers/requests_controller.rb
@@ -0,0 +1,102 @@
+class RequestsController < ApplicationController
+ before_filter :authenticate_user!
+
+ # GET /requests
+ # GET /requests.xml
+ def index
+ if(current_user.is_admin?)
+ @requests = Request.all
+ else
+ @requests = current_user.requests
+ end
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @requests }
+ end
+ end
+
+ # GET /requests/1
+ # GET /requests/1.xml
+ def show
+ @request = Request.find(params[:id])
+ @address = @request.user.addresses.first
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.svg
+ end
+ end
+
+ # GET /requests/new
+ # GET /requests/new.xml
+ def new
+ @request = Request.new
+ @request.user = current_user
+ @agencies = Agency.find(:all)
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @request }
+ end
+ end
+
+ # GET /requests/1/edit
+ def edit
+ @request = Request.find(params[:id])
+ if(@request.user != current_user && !current_user.is_admin?)
+ redirect_to(:index)
+ end
+ end
+
+ # POST /requests
+ # POST /requests.xml
+ def create
+ @request = Request.new(params[:request])
+ @request.user = current_user
+
+ respond_to do |format|
+ if @request.save
+ format.html { redirect_to(@request, :notice => 'Request was successfully created.') }
+ format.xml { render :xml => @request, :status => :created, :location => @request }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @request.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /requests/1
+ # PUT /requests/1.xml
+ def update
+ @request = Request.find(params[:id])
+
+
+ if(@request.user == current_user || !current_user.is_admin)
+ respond_to do |format|
+ if @request.update_attributes(params[:request])
+ format.html { redirect_to(@request, :notice => 'Request was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @request.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+ end
+
+ # DELETE /requests/1
+ # DELETE /requests/1.xml
+ def destroy
+ @request = Request.find(params[:id])
+
+ if(@request.user == current_user || current_user.is_admin?)
+ @request.destroy
+ end
+
+ respond_to do |format|
+ format.html { redirect_to(requests_url) }
+ format.xml { head :ok }
+ end
+ end
+end
9 app/controllers/start_controller.rb
@@ -0,0 +1,9 @@
+class StartController < ApplicationController
+
+ def index
+ if(user_signed_in?)
+ redirect_to('/home/index.html')
+ end
+ end
+
+end
2 app/helpers/addresses_helper.rb
@@ -0,0 +1,2 @@
+module AddressesHelper
+end
2 app/helpers/agencies_helper.rb
@@ -0,0 +1,2 @@
+module AgenciesHelper
+end
2 app/helpers/application_helper.rb
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
2 app/helpers/documents_helper.rb
@@ -0,0 +1,2 @@
+module DocumentsHelper
+end
2 app/helpers/events_helper.rb
@@ -0,0 +1,2 @@
+module EventsHelper
+end
2 app/helpers/home_helper.rb
@@ -0,0 +1,2 @@
+module HomeHelper
+end
2 app/helpers/orders_helper.rb
@@ -0,0 +1,2 @@
+module OrdersHelper
+end
2 app/helpers/payments_helper.rb
@@ -0,0 +1,2 @@
+module PaymentsHelper
+end
2 app/helpers/requests_helper.rb
@@ -0,0 +1,2 @@
+module RequestsHelper
+end
2 app/helpers/start_helper.rb
@@ -0,0 +1,2 @@
+module StartHelper
+end
4 app/models/address.rb
@@ -0,0 +1,4 @@
+class Address < ActiveRecord::Base
+ belongs_to :user
+
+end
9 app/models/admin.rb
@@ -0,0 +1,9 @@
+class Admin < ActiveRecord::Base
+ # Include default devise modules. Others available are:
+ # :token_authenticatable, :confirmable, :lockable and :timeoutable
+ devise :database_authenticatable, :registerable,
+ :recoverable, :rememberable, :trackable, :validatable
+
+ # Setup accessible (or protected) attributes for your model
+ attr_accessible :email, :password, :password_confirmation, :remember_me
+end
4 app/models/agency.rb
@@ -0,0 +1,4 @@
+class Agency < ActiveRecord::Base
+ has_many :requests
+
+end
5 app/models/document.rb
@@ -0,0 +1,5 @@
+class Document < ActiveRecord::Base
+
+ belongs_to :event
+
+end
5 app/models/event.rb
@@ -0,0 +1,5 @@
+class Event < ActiveRecord::Base
+
+ belongs_to :request
+
+end
4 app/models/order.rb
@@ -0,0 +1,4 @@
+class Order < ActiveRecord::Base
+ has_many :requests
+ belongs_to :user
+end
53 app/models/payment.rb
@@ -0,0 +1,53 @@
+# This is my attempt at keeping this PCI Complaint
+# We don't save ANY Credit Card info, and we keep track of the IDs
+# Despite the fuckery, we will probably launch with PayPal, but offer others as soon as we can afford it
+
+class Payment
+ attr_accessor :cc, :month, :year, :fname, :lname, :cvv
+
+
+ #Since we aren't actually using ActiveRecord, we don't get this for free
+ def initialize(params)
+ self.cc = params[:cc]
+ self.month = params[:month]
+ self.year = params[:year]
+ self.fname = params[:fname]
+ self.lname = params[:lname]
+ self.cvv params[:cvv]
+ end
+
+ def process
+ order = Order.find(self.order_id)
+ # Create a new credit card object with the variables in memory
+ credit_card = ActiveMerchant::Billing::CreditCard.new(
+ :number => self.cc,
+ :month => self.month,
+ :year => self.year,
+ :first_name => self.fname,
+ :last_name => self.lname,
+ :verification_value => self.cvv
+ )
+
+ if credit_card.valid?
+ # Create a gateway object to the TrustCommerce service
+ gateway = ActiveMerchant::Billing::TrustCommerceGateway.new(
+ :login => 'TestMerchant',
+ :password => 'password'
+ )
+
+ # Authorize for $10 dollars (1000 cents)
+ response = gateway.authorize(1000, credit_card)
+
+ if response.success?
+ # Capture the money
+ gateway.capture(1000, response.authorization)
+ order.status = "processed"
+ order.save
+ else
+ raise StandardError, response.message
+ end
+ end
+
+ end
+
+end
44 app/models/request.rb
@@ -0,0 +1,44 @@
+class Request < ActiveRecord::Base
+
+ has_many :events
+ has_many :documents, :through => :events
+ belongs_to :agency
+ belongs_to :order
+ belongs_to :user
+
+
+ def show_svg_description
+ lines = word_wrap(self.description, :line_width => 72).split("\n")
+ y_var = -345.64261
+ output = ""
+ lines.each do |line|
+ if(line != lines[0])
+ y_var += 15;
+ end
+ output += '<tspan x="36.751877" y="' + y_var.to_s + '" id="tspan3219" style="font-size:14.39999962px">'
+ output += line
+ output += '</tspan>'
+ end
+ output
+ end
+
+ def setOrder=(bool)
+ if(bool)
+ self.order = current_user.current_order
+ end
+ end
+
+ # File actionpack/lib/action_view/helpers/text_helper.rb, line 217
+ def word_wrap(text, *args)
+ options = args.extract_options!
+ unless args.blank?
+ options[:line_width] = args[0] || 80
+ end
+ options.reverse_merge!(:line_width => 80)
+
+ text.split("\n").collect do |line|
+ line.length > options[:line_width] ? line.gsub(/(.{1,#{options[:line_width]}})(\s+|$)/, "\\1\n").strip : line
+ end * "\n"
+ end
+
+end
32 app/models/user.rb
@@ -0,0 +1,32 @@
+class User < ActiveRecord::Base
+ # Include default devise modules. Others available are:
+ # :token_authenticatable, :confirmable, :lockable and :timeoutable
+ devise :database_authenticatable, :registerable,
+ :recoverable, :rememberable, :trackable, :validatable
+
+ # Setup accessible (or protected) attributes for your model
+ attr_accessible :email, :password, :password_confirmation, :remember_me
+
+ has_many :requests
+ has_many :orders
+ has_many :addresses
+ has_many :events, :through => :requests
+ has_one :user
+
+ after_create :create_order
+
+ def is_admin?
+ true
+ end
+
+ # There should only be one pending order
+ def current_order
+ pending = self.orders.where(:status => 'PENDING')
+ pending.first
+ end
+
+ def create_order
+ Order.create(:user => self)
+ end
+
+end
38 app/views/addresses/_form.html.erb
@@ -0,0 +1,38 @@
+<%= form_for(@address) do |f| %>
+ <% if @address.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@address.errors.count, "error") %> prohibited this address from being saved:</h2>
+
+ <ul>
+ <% @address.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="field">
+ <%= f.label :name %><br />
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :address1 %><br />
+ <%= f.text_field :address1 %>
+ </div>
+ <div class="field">
+ <%= f.label :address2 %><br />
+ <%= f.text_field :address2 %>
+ </div>
+ <div class="field">
+ <%= f.label :prov %><br />
+ <%= f.text_field :prov %>
+ </div>
+ <div class="field">
+ <%= f.label :city %><br />
+ <%= f.text_field :city %>
+ </div>
+
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
6 app/views/addresses/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing address</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @address %> |
+<%= link_to 'Back', addresses_path %>
27 app/views/addresses/index.html.erb
@@ -0,0 +1,27 @@
+<h1>Listing addresses</h1>
+
+<table>
+ <tr>
+ <th>Name</th>
+ <th>Address1</th>
+ <th>Address2</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @addresses.each do |address| %>
+ <tr>
+ <td><%= address.name %></td>
+ <td><%= address.address1 %></td>
+ <td><%= address.address2 %></td>
+ <td><%= link_to 'Show', address %></td>
+ <td><%= link_to 'Edit', edit_address_path(address) %></td>
+ <td><%= link_to 'Destroy', address, :confirm => 'Are you sure?', :method => :delete %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Address', new_address_path %>
5 app/views/addresses/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New address</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', addresses_path %>
20 app/views/addresses/show.html.erb
@@ -0,0 +1,20 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+ <b>Name:</b>
+ <%= @address.name %>
+</p>
+
+<p>
+ <b>Address1:</b>
+ <%= @address.address1 %>
+</p>
+
+<p>
+ <b>Address2:</b>
+ <%= @address.address2 %>
+</p>
+
+
+<%= link_to 'Edit', edit_address_path(@address) %> |
+<%= link_to 'Back', addresses_path %>
57 app/views/agencies/_form.html.erb
@@ -0,0 +1,57 @@
+<%= form_for(@agency) do |f| %>
+ <% if @agency.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@agency.errors.count, "error") %> prohibited this agency from being saved:</h2>
+
+ <ul>
+ <% @agency.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="field">
+ <%= f.label :name %><br />
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :address_1 %><br />
+ <%= f.text_field :address_1 %>
+ </div>
+ <div class="field">
+ <%= f.label :address_2 %><br />
+ <%= f.text_field :address_2 %>
+ </div>
+ <div class="field">
+ <%= f.label :address_3 %><br />
+ <%= f.text_field :address_3 %>
+ </div>
+ <div class="field">
+ <%= f.label :city %><br />
+ <%= f.text_field :city %>
+ </div>
+ <div class="field">
+ <%= f.label :prov %><br />
+ <%= f.text_field :prov %>
+ </div>
+ <div class="field">
+ <%= f.label :postal %><br />
+ <%= f.text_field :postal %>
+ </div>
+ <div class="field">
+ <%= f.label :phone %><br />
+ <%= f.text_field :phone %>
+ </div>
+ <div class="field">
+ <%= f.label :fax %><br />
+ <%= f.text_field :fax %>
+ </div>
+ <div class="field">
+ <%= f.label :email %><br />
+ <%= f.text_field :email %>
+ </div>
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
6 app/views/agencies/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing agency</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @agency %> |
+<%= link_to 'Back', agencies_path %>
25 app/views/agencies/index.html.erb
@@ -0,0 +1,25 @@
+<h1>Listing agencies</h1>
+
+<table>
+ <tr>
+ <th>Name</th>
+ <th>Email</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @agencies.each do |agency| %>
+ <tr>
+ <td><%= agency.name %></td>
+ <td><%= agency.email %></td>
+ <td><%= link_to 'Show', agency %></td>
+ <td><%= link_to 'Edit', edit_agency_path(agency) %></td>
+ <td><%= link_to 'Destroy', agency, :confirm => 'Are you sure?', :method => :delete %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Agency', new_agency_path %>
5 app/views/agencies/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New agency</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', agencies_path %>
15 app/views/agencies/show.html.erb
@@ -0,0 +1,15 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+ <b>Name:</b>
+ <%= @agency.name %>
+</p>
+
+<p>
+ <b>Email:</b>
+ <%= @agency.email %>
+</p>
+
+
+<%= link_to 'Edit', edit_agency_path(@agency) %> |
+<%= link_to 'Back', agencies_path %>
17 app/views/documents/_form.html.erb
@@ -0,0 +1,17 @@
+<%= form_for(@document) do |f| %>
+ <% if @document.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@document.errors.count, "error") %> prohibited this document from being saved:</h2>
+
+ <ul>
+ <% @document.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
6 app/views/documents/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing document</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @document %> |
+<%= link_to 'Back', documents_path %>
21 app/views/documents/index.html.erb
@@ -0,0 +1,21 @@
+<h1>Listing documents</h1>
+
+<table>
+ <tr>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @documents.each do |document| %>
+ <tr>
+ <td><%= link_to 'Show', document %></td>
+ <td><%= link_to 'Edit', edit_document_path(document) %></td>
+ <td><%= link_to 'Destroy', document, :confirm => 'Are you sure?', :method => :delete %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Document', new_document_path %>
5 app/views/documents/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New document</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', documents_path %>
5 app/views/documents/show.html.erb
@@ -0,0 +1,5 @@
+<p id="notice"><%= notice %></p>
+
+
+<%= link_to 'Edit', edit_document_path(@document) %> |
+<%= link_to 'Back', documents_path %>
17 app/views/events/_form.html.erb
@@ -0,0 +1,17 @@
+<%= form_for(@event) do |f| %>
+ <% if @event.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>
+
+ <ul>
+ <% @event.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
6 app/views/events/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing event</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @event %> |
+<%= link_to 'Back', events_path %>
21 app/views/events/index.html.erb
@@ -0,0 +1,21 @@
+<h1>Listing events</h1>
+
+<table>
+ <tr>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @events.each do |event| %>
+ <tr>
+ <td><%= link_to 'Show', event %></td>
+ <td><%= link_to 'Edit', edit_event_path(event) %></td>
+ <td><%= link_to 'Destroy', event, :confirm => 'Are you sure?', :method => :delete %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Event', new_event_path %>
5 app/views/events/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New event</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', events_path %>
5 app/views/events/show.html.erb
@@ -0,0 +1,5 @@
+<p id="notice"><%= notice %></p>
+
+
+<%= link_to 'Edit', edit_event_path(@event) %> |
+<%= link_to 'Back', events_path %>
9 app/views/home/index.html.erb
@@ -0,0 +1,9 @@
+<div class="left_menu">
+ <ul>
+ <li><a href="/requests/new">Create a new request</a></li>
+ <li><a href="/requests/">Send requests to the government</a></li>
+ <li>Search all replies</li>
+ </ul>
+</div>
+<div id='event_list'>
+</div>
26 app/views/layouts/application.html.erb
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>ATIP Finder</title>
+ <link href="/stylesheets/application.css" rel="stylesheet" />
+ <%= javascript_include_tag :defaults %>
+ <%= csrf_meta_tag %>
+</head>
+<body>
+ <div class="header">
+ <ul class="menu">
+ <li>Home</li>
+ <li>New Request</li>
+ <li>Request Status</li>
+ <li>Logout</li>
+ </ul>
+ </div>
+ <div class="content">
+ <%= yield %>
+ </div>
+ <div class="footer">
+ <%= yield :footer %>
+ <span class="copyright">Copyright 2011</span>
+ </div>
+</body>
+</html>
18 app/views/layouts/start.html.erb
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>ATIP Finder</title>
+ <link href="/stylesheets/application.css" rel="stylesheet" />
+ <%= javascript_include_tag :defaults %>
+ <%= csrf_meta_tag %>
+</head>
+<body>
+ <div class="pitch_content">
+ <%= yield %>
+ </div>
+ <div class="footer">
+ <%= yield :footer %>
+ <span class="copyright">Copyright 2011</span>
+ </div>
+</body>
+</html>
33 app/views/orders/_form.html.erb
@@ -0,0 +1,33 @@
+<%= form_for(@order) do |f| %>
+ <% if @order.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@order.errors.count, "error") %> prohibited this order from being saved:</h2>
+
+ <ul>
+ <% @order.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="field">
+ <%= f.label :request_id %><br />
+ <%= f.text_field :request_id %>
+ </div>
+ <div class="field">
+ <%= f.label :tx_id %><br />
+ <%= f.text_field :tx_id %>
+ </div>
+ <div class="field">
+ <%= f.label :amount %><br />
+ <%= f.text_field :amount %>
+ </div>
+ <div class="field">
+ <%= f.label :status %><br />
+ <%= f.text_field :status %>
+ </div>
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
13 app/views/orders/edit.html.erb
@@ -0,0 +1,13 @@
+<h1>Order Summary</h1>
+
+<div id="stage_one">
+<table>
+<tr>
+<th>Agency</th><th>Text of the Request</th><th>Delete</th>
+</tr>
+</table>
+
+<button>Submit Order</button>
+
+<%= link_to 'Show', @order %> |
+<%= link_to 'Back', orders_path %>
25 app/views/orders/index.html.erb
@@ -0,0 +1,25 @@
+<h1>Listing orders</h1>
+
+<table>
+ <tr>
+ <th>Tx</th>
+ <th>Amount</th>
+ <th>Status</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @orders.each do |order| %>
+ <tr>
+ <td><%= order.request_id %></td>
+ <td><%= order.tx_id %></td>
+ <td><%= order.amount %></td>
+ <td><%= order.status %></td>
+ <td><%= link_to 'Show', order %></td>
+ <td><%= link_to 'Edit', edit_order_path(order) %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
4 app/views/orders/new.html.erb
@@ -0,0 +1,4 @@
+<h1>New order</h1>
+
+
+<%= link_to 'Back', orders_path %>
87 app/views/orders/show.html.erb
@@ -0,0 +1,87 @@
+<h1>Order Summary</h1>
+
+<div id="step_1">
+<table>
+<tr><th>Agency</th><th>Description</th><th>Filing Cost</th><th>Remove</th></tr>
+<% @requests.each do |request| %>
+ <tr>
+ <td><%= request.agency.name %></td>
+ <td><%= request.description %></td>
+ <td>5.00</td>
+ <td><input id="remove_req_<%= request.id %>" type="checkbox"></td>
+ </tr>
+<% end %>
+<tr><td colspan="2">Total:</td><td></td><td></td></tr>
+</table>
+<button class="proceed">Submit</button>
+<%= link_to 'Back', orders_path %>
+</div>
+<div id="step_2" style="display:none;">
+<h1>Enter your address information</h1>
+<%= form_for(@bill_addr) do |f| %>
+ <div class="left_pane">
+ <div class="field">
+ <%= f.label :name %><br />
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :address1 %><br />
+ <%= f.text_field :address1 %>
+ </div>
+ <div class="field">
+ <%= f.label :address2 %><br />
+ <%= f.text_field :address2 %>
+ </div>
+ <div class="field">
+ <%= f.label :prov %><br />
+ <%= f.text_field :prov %>
+ </div>
+ </div>
+<% end %>
+<%= form_for(@ship_addr) do |f| %>
+ <div class="right_pane">
+ <div class="field">
+ <%= f.label :name %><br />
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :address1 %><br />
+ <%= f.text_field :address1 %>
+ </div>
+ <div class="field">
+ <%= f.label :address2 %><br />
+ <%= f.text_field :address2 %>
+ </div>
+ </div>
+ <div class="field">
+ <%= f.label :prov %><br />
+ <%= f.text_field :prov %>
+ </div>
+<% end %>
+<button class="proceed">Submit</button>
+</div>
+<div id="step_3" style="display:none">
+<h1>Enter your credit card information</h1>
+ <div class="left_pane">
+ GIVE US MONEY, FOOL!!!
+ <div>
+ <div class="right_pane">
+ <div class="field">
+ <input type="text" id="payment_cc" name="payment[cc]" />
+ </div>
+ <div class="field">
+ <input type="text" id="payment_cvv" name="payment[cvv]" />
+ </div>
+ <div class="field">
+ <input type="text" id="payment_fname" name="payment[fname]" />
+ </div>
+ <div class="field">
+ <input type="text" id="payment_lname" name="payment[lname]" />
+ </div>
+ <div class="field">
+ <input type="text" id="payment_month" name="payment[month]" />
+ <input type="text" id="payment_year" name="payment[year]" />
+ </div>
+ <button>Submit<button>
+ </div>
+</div>
25 app/views/requests/_edit_form.html.erb
@@ -0,0 +1,25 @@
+<%= form_for(@request) do |f| %>
+ <% if @request.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@request.errors.count, "error") %> prohibited this request from being saved:</h2>
+
+ <ul>
+ <% @request.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div>
+ </div>
+ <div>
+ <%= f.text_area :description %>
+ </div>
+ <div>
+ </div>
+
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
26 app/views/requests/_form.html.erb
@@ -0,0 +1,26 @@
+<%= form_for(@request) do |f| %>
+ <% if @request.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@request.errors.count, "error") %> prohibited this request from being saved:</h2>
+
+ <ul>
+ <% @request.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div>
+ <label>Government Agency:</label><br />
+ <%= select_tag("request[agency_id]", options_from_collection_for_select(@agencies, :id, :name)) %>
+ </div>
+ <label>Request Text:</label>
+ <div>
+ <%= f.text_area :description, { :cols => 80 } %>
+ </div>
+
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
12 app/views/requests/edit.html.erb
@@ -0,0 +1,12 @@
+<h1>Editing Request</h1>
+
+<div class="form">
+<%= render 'edit_form' %>
+</div>
+<div class="help">
+<h3>Editing requests</h3>
+<p>Please take the time to edit the request, since requests can't be edited once they are sent to the Governemnt Agency. If you wish to change which Government Agency, it is advisable to create a new request. This request will remain pending until it is sent</p>
+<h3>Sending Requests:</h3>
+<p>Sending the request will add the request to the cart to be processed. No requests will be sent to the government until we have received payment.</p>
+<%= link_to 'Show', @request%> |
+<%= link_to 'Back', request_path %>
27 app/views/requests/index.html.erb
@@ -0,0 +1,27 @@
+<h1>Listing requests</h1>
+<input type="hidden" id="form_token" value="<%= form_authenticity_token %>" />
+
+<table>
+ <tr>
+ <th></th>
+ <th>Agency</th>
+ <th>Request Text</th>
+ <th>Status</th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @requests.each do |request| %>
+ <tr>
+ <td><input type="checkbox" id="request_<%= request.id %>" class="request_box"></input></td>
+ <td><%= request.agency.name %></td>
+ <td><%= link_to request.description, edit_request_path(request) %></td>
+ <td><%= request.status %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Request', new_request_path %>
+<a href="#" id="add_requests">Add Requests to Order</a>
20 app/views/requests/new.html.erb
@@ -0,0 +1,20 @@
+<h1>New request</h1>
+
+<div class="form">
+<%= render 'form' %>
+</div>
+<div class="help">
+<h3>Step 1</h3>
+<p>Please select the agency that you wish to request information from. These Federal Government agencies and
+crown corporations are subject to the Access to Information Act</p>
+<h3>Step 2</h3>
+<p>Write your request. This question should be short, but should contain the basic information:</p>
+<ul>
+ <li>Description of what you are looking for</li>
+ <li>Date the information may have been logged</li>
+ <li>Location of the information (i.e.: Which RCMP detatchment)</li>
+</ul>
+<p>Note: Vague requests will cause fees to increase. While we are happy to facilitate the payment of
+additional fees, it is advisable to avoid this if at all possible</p>
+</div>
+<%= link_to 'Back', requests_path %>
5 app/views/requests/show.html.erb
@@ -0,0 +1,5 @@
+<p id="notice"><%= notice %></p>
+
+
+<%= link_to 'Edit', edit_request_path(@request) %> |
+<%= link_to 'Back', request_path %>
922 app/views/requests/show.svg.erb
@@ -0,0 +1,922 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ width="765"
+ height="990"
+ id="svg2"
+ xml:space="preserve"><metadata
+ id="metadata8"><rdf:RDF><cc:Work
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
+ id="defs6" /><g
+ transform="matrix(1.25,0,0,-1.25,0,990)"
+ id="g10"><g
+ transform="matrix(28.8,0,0,-19.68,35.52,756)"
+ id="g12"><image
+ xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAaCAYAAADbhS54AAAABHNCSVQICAgIfAhkiAAABedJREFUSInNl71vE90Sxn9n9+xuvI4TO0gpqEEoIiQSLUg0VHQUiIIKUSD+BChCQY2UkgqhFFTpEAUFiIaKIuJDVOlocKJ82949e77ewvccbAji1W3uHcmyvbvzcWaeeWZWeO89gLUWYwxFUTAp1lrSNMV7jxACYwxSynjfGEOSJFhrybIM5xzGGPI8j7rhO4j3PuoJIUiSZMrnaDRCGGP8pBJAVVVorSnLMgahtaaua/I8pygKTk5O6HQ6nCbhEJP28jw/NYimabDWUtc1s7OzZFkGgPDee+ccQohoTGsdH3DOAcSshENUVUWr1cJ7j7UWKSXW2uh80oYxBucceZ6jtSZNU5Ikoa5rZmZmpgJVSuGcIwFiiZRSsSTWWnZ3dzHG8J9q473He0+/349BCSHi/cksBXHOobUmz3NgDA2lFAAzMzPxd7BRFAWtVguhlPKTSgFPb9++5cWLF1RVRZqmKKWYn5/HOYdzjpcvX045DyWqqoosy6ZwGBxrrVlfX+fjx4+kaYoxhjRNKYoCYwzXrl3j/v3742DruvZBrLXee++11n59fd0DvixLPzs76wFfFIUH/NiP98fHx95a65umifqfPn3yW1tb3jnntdZ+UgaDgb9586YHfJIk0Vaaph7wd+/e9d57r5TycrILQzclSRKxNBqNpoCaJEnEXafTicC21qK15vPnzwwGAy5evIhzDu99xFq73cZaCxArEzKdZRmtViviWYYUSymncCCEQEo5hR9jDFmW0TRNLFlRFNG4EIJ+v8/e3t5vzdM0DXmex/+TmA3Nl6bpz2YTQkwpBPAbYyLwkyT5jb8mOUgpxZs3b+j3+/R6PVqtFtvb22xubsaMT3ZkqE7Ifjh08JUkCdMIPUUC2EPQAFLKKSIuioLbt2/HTAKsra1RFAW7u7sAHB4e0u12o0673Y7UcJokp16dECklrVYrYi9ksmkajDHs7Ozw+vVrjo6OUEqRZRkLCwvAmJMePnwIQLfbZW9vL3biYDBAa/1Hv38NzBhDVVWRoWEM3DzPMcawsbHBvXv3EEJEztrf34+Hev78OQ8ePODw8JAzZ84ARELu9Xr/fWCdTodWq0WWZRHk1lr29/f59u0bT548od/vR7AvLi5G3QDoZ8+e8erVK75//05RFKRpipSSg4ODP/r9K8ZOTk5+uzY3N8fCwgI/fvzg+Pg4dirAzs5OfE5rHUfTlStXOHv2LM65mPl2u81wODzV77/CGDA1S5VSNE3DYDAgTVO01ly4cCGCO7D50tIS7XYbgHfv3kW2D/b+FNS/CiwYmtwKkiQhz3PKsmRzc5MbN26wtraGEIKyLLHWkiQJT58+5dy5c2xsbLCysgKMKxBG0K8DfCoh8HNGBqIF4kkDHkLHhWcODw9ZXl5meXmZ69evo7Xm+Pg4AruqKs6fP8/79++Zm5sjSZI49EPZkyRBShk7Nc9zmqYZ47mu61imLMsQQkRshKDDBhCu1XXN/Px8PF2WZWxvb7O0tESn08EYw6VLl/jy5QvdbjeuTEII2u02ZVkC43EXKmKtZTQaxb1NBn6azFyWZfETgBqmQaCEMErCvdXVVba2trhz5w4fPnyIMxNgOBwipYx7WGD7wPRCCIqiiPacc8gQVOCpMEh/JUBrbcROKIlzjsFgQLfbRUrJcDjk0aNHfP36lcFgwOzsLDDeu8IoUkrF6RCCgJ9zE8aNIUP0YYCHUllr49hRSkWlsiwjeLMso9vtsrOzw+LiIp1Oh9XVVVZXV3HOcXBwQK/Xi0ENh8N4cCBuJeF9I/hwziGVUlMPw5girl69yuPHj+P+PzMzQ13XFEURAeq9p65rFhcXUUrFgxwdHTE/P0+v14sOw2p969YtVlZWYubDai6E4PLly3FVEtZaH8oZjAQWV0pFMAbx3nNwcBDn4aRUVYWUkizLYrYm9YKdX19WThMRXt9C9KFDw//wCbtZMBhaPOzzTdMgpfztLSg01Gg0imMtlHbSZ1VVlGUZV/kY2P+b/JX5/1fyD17TH66XDQu1AAAAAElFTkSuQmCC"
+ width="1"
+ height="1"
+ transform="matrix(1,0,0,-1,0,1)"
+ id="image14" /></g><text
+ transform="matrix(1,0,0,-1,71.28,746.16)"
+ id="text16"><tspan
+ x="0 6.1961598 10.63408 14.62848 19.066401 21.738159 26.176081 32.807838 37.245762 41.683681"
+ y="0"
+ id="tspan18"
+ style="font-size:7.92000008px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial">Government</tspan><tspan
+ x="0 4.4009199 6.60008 8.7601404 14.47578 18.876699 23.27762 27.678539 32.07946"
+ y="6.96"
+ id="tspan20"
+ style="font-size:7.92000008px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial">of Canada</tspan><tspan
+ x="54.959999 61.156559 65.594879 70.033203 74.028 78.466316 81.138481 85.576797 90.015121 96.647278 101.0856 105.52392"
+ y="0"
+ id="tspan22"
+ style="font-size:7.92000008px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial">Gouvernement</tspan><tspan
+ x="54.959999 59.355621 63.75124 65.911201 71.621536 76.017159 80.412781 84.808403 89.204018"
+ y="6.96"
+ id="tspan24"
+ style="font-size:7.92000008px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial">du Canada</tspan></text>
+
+<text
+ transform="matrix(1,0,0,-1,502.56,708.72)"
+ id="text26"><tspan
+ x="0 3.6276 7.5911999 11.8848 13.5648 16.8624 20.16 23.49 25.482 28.812 32.141998 33.821999 35.813999 40.139999 43.470001 46.464001 48.125999 49.806 53.136002 56.466 59.796001 63.125999 64.788002 68.117996 71.447998"
+ y="0"
+ id="tspan28"
+ style="font-size:6px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial">TBC 350-57 (Rev. 1997/11)</tspan></text>
+
+<text
+ transform="matrix(1,0,0,-1,102.48,594)"
+ id="text30"><tspan
+ x="0 11.52326 20.377239 29.23122 38.085201 46.939178 55.793159 60.3531 65.621239"
+ y="0"
+ id="tspan32"
+ style="font-size:16.07999992px;font-variant:normal;font-weight:bold;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial Bold">Access to</tspan><tspan
+ x="-42.720001 -38.325859 -28.57708 -23.29854 -13.54976 -7.3707399 6.84828 15.71266 20.991199 25.38534 35.134121 44.8829 49.682838 61.216499 70.080879"
+ y="18.24"
+ id="tspan34"
+ style="font-size:16.07999992px;font-variant:normal;font-weight:bold;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Arial Black;-inkscape-font-specification:Arial Bold">Information Act</tspan></text>
+