spree 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree might be problematic. Click here for more details.

Files changed (959) hide show
  1. data/CHANGELOG +44 -11
  2. data/CONTRIBUTORS +1 -1
  3. data/INSTALL +4 -5
  4. data/README.markdown +1 -34
  5. data/app/controllers/admin/base_controller.rb +6 -0
  6. data/app/controllers/admin/configurations_controller.rb +7 -1
  7. data/app/controllers/admin/creditcard_payments_controller.rb +6 -56
  8. data/app/controllers/admin/products_controller.rb +9 -0
  9. data/app/controllers/admin/prototypes_controller.rb +4 -8
  10. data/app/controllers/admin/shipments_controller.rb +37 -0
  11. data/{vendor/extensions/shipping/app → app}/controllers/admin/shipping_categories_controller.rb +1 -1
  12. data/{vendor/extensions/shipping/app → app}/controllers/admin/shipping_methods_controller.rb +1 -1
  13. data/app/controllers/admin/users_controller.rb +6 -3
  14. data/app/controllers/admin/zones_controller.rb +17 -36
  15. data/app/controllers/application.rb +74 -12
  16. data/app/controllers/content_controller.rb +4 -0
  17. data/app/controllers/orders_controller.rb +52 -26
  18. data/app/controllers/password_resets_controller.rb +44 -0
  19. data/app/controllers/spree/base_controller.rb +1 -1
  20. data/app/controllers/states_controller.rb +8 -10
  21. data/app/controllers/taxons_controller.rb +0 -6
  22. data/app/controllers/user_sessions_controller.rb +38 -0
  23. data/app/controllers/users_controller.rb +29 -14
  24. data/app/helpers/admin/base_helper.rb +127 -4
  25. data/app/helpers/admin/orders_helper.rb +1 -1
  26. data/{vendor/extensions/shipping/app → app}/helpers/admin/shipping_categories_helper.rb +0 -0
  27. data/{vendor/extensions/shipping/app → app}/helpers/admin/shipping_methods_helper.rb +0 -0
  28. data/app/helpers/admin/zones_helper.rb +4 -4
  29. data/app/helpers/application_helper.rb +0 -13
  30. data/app/helpers/orders_helper.rb +0 -11
  31. data/app/helpers/spree/base_helper.rb +51 -3
  32. data/app/helpers/taxons_helper.rb +13 -12
  33. data/app/models/address.rb +0 -1
  34. data/app/models/app_configuration.rb +4 -1
  35. data/app/models/country.rb +2 -2
  36. data/app/models/creditcard.rb +10 -6
  37. data/app/models/creditcard_payment.rb +1 -0
  38. data/app/models/image.rb +1 -1
  39. data/app/models/line_item.rb +2 -0
  40. data/app/models/option_type.rb +1 -0
  41. data/app/models/order.rb +51 -29
  42. data/app/models/order_mailer.rb +4 -4
  43. data/app/models/product.rb +27 -1
  44. data/app/models/product_property.rb +0 -1
  45. data/app/models/property.rb +3 -0
  46. data/app/models/prototype.rb +1 -0
  47. data/app/models/shipment.rb +13 -17
  48. data/app/models/tax_category.rb +1 -0
  49. data/app/models/user.rb +32 -117
  50. data/app/models/user_mailer.rb +11 -0
  51. data/app/models/user_session.rb +2 -0
  52. data/app/models/variant.rb +6 -2
  53. data/app/models/zone.rb +34 -18
  54. data/app/models/zone_member.rb +9 -3
  55. data/app/views/account/login.html.erb +2 -0
  56. data/app/views/admin/configurations/index.html.erb +1 -1
  57. data/app/views/admin/creditcard_payments/edit.html.erb +11 -9
  58. data/app/views/admin/creditcard_payments/new.html.erb +14 -27
  59. data/app/views/admin/general_settings/edit.html.erb +28 -11
  60. data/app/views/admin/general_settings/show.html.erb +29 -16
  61. data/app/views/admin/inventory_settings/edit.html.erb +20 -11
  62. data/app/views/admin/inventory_settings/show.html.erb +9 -11
  63. data/app/views/admin/mail_settings/edit.html.erb +109 -80
  64. data/app/views/admin/mail_settings/show.html.erb +55 -41
  65. data/app/views/admin/option_types/_form.html.erb +18 -22
  66. data/app/views/admin/option_types/_option_value.html.erb +1 -1
  67. data/app/views/admin/option_types/available.html.erb +26 -30
  68. data/app/views/admin/option_types/edit.html.erb +5 -2
  69. data/app/views/admin/option_types/index.html.erb +36 -35
  70. data/app/views/admin/option_types/new.html.erb +7 -4
  71. data/app/views/admin/option_types/selected.html.erb +28 -28
  72. data/app/views/admin/orders/index.html.erb +86 -112
  73. data/app/views/admin/orders/show.html.erb +31 -51
  74. data/app/views/admin/overview/index.html.erb +1 -1
  75. data/app/views/admin/payments/index.html.erb +14 -6
  76. data/app/views/admin/product_properties/_product_property.html.erb +1 -1
  77. data/app/views/admin/product_properties/index.html.erb +21 -16
  78. data/app/views/admin/products/_form.html.erb +79 -71
  79. data/app/views/admin/products/_images.html.erb +27 -30
  80. data/app/views/admin/products/_option_types.html.erb +2 -2
  81. data/app/views/admin/products/_properties_form.erb +7 -0
  82. data/app/views/admin/products/edit.html.erb +9 -6
  83. data/app/views/admin/products/index.html.erb +79 -67
  84. data/app/views/admin/products/new.html.erb +51 -5
  85. data/app/views/admin/properties/_form.html.erb +12 -14
  86. data/app/views/admin/properties/edit.html.erb +3 -2
  87. data/app/views/admin/properties/index.html.erb +26 -17
  88. data/app/views/admin/properties/new.html.erb +5 -3
  89. data/app/views/admin/prototypes/_form.html.erb +38 -15
  90. data/app/views/admin/prototypes/available.html.erb +7 -7
  91. data/app/views/admin/prototypes/edit.html.erb +2 -2
  92. data/app/views/admin/prototypes/index.html.erb +24 -16
  93. data/app/views/admin/prototypes/new.html.erb +4 -2
  94. data/app/views/admin/reports/index.html.erb +18 -23
  95. data/app/views/admin/reports/sales_total.html.erb +25 -26
  96. data/app/views/admin/shared/_additional_field.html.erb +5 -0
  97. data/app/views/admin/shared/_address.html.erb +13 -0
  98. data/app/views/admin/shared/_configuration_menu.html.erb +18 -0
  99. data/app/views/admin/shared/_edit_resource_links.html.erb +4 -0
  100. data/app/views/admin/shared/_form_address.html.erb +50 -0
  101. data/app/views/admin/shared/_new_resource_links.html.erb +4 -0
  102. data/app/views/admin/shared/_order_details.html.erb +36 -0
  103. data/{vendor/plugins/has_many_polymorphs/test/fixtures/eaters_foodstuffs.yml → app/views/admin/shared/_order_sub_menu.html.erb} +0 -0
  104. data/app/views/admin/shared/_order_tabs.html.erb +27 -0
  105. data/app/views/admin/shared/_product_sub_menu.html.erb +8 -0
  106. data/app/views/admin/shared/_product_tabs.html.erb +35 -0
  107. data/app/views/admin/shared/_report_criteria.html.erb +23 -0
  108. data/app/views/admin/shared/_show_resource_links.html.erb +5 -0
  109. data/app/views/admin/shipments/_details.html.erb +19 -0
  110. data/app/views/admin/shipments/_form.html.erb +21 -0
  111. data/app/views/admin/shipments/edit.html.erb +12 -0
  112. data/{vendor/extensions/shipping/app → app}/views/admin/shipments/index.html.erb +8 -8
  113. data/app/views/admin/shipments/new.html.erb +14 -0
  114. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_categories/_form.html.erb +0 -0
  115. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_categories/edit.html.erb +1 -1
  116. data/app/views/admin/shipping_categories/index.html.erb +27 -0
  117. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_categories/new.html.erb +1 -1
  118. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_methods/_form.html.erb +1 -1
  119. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_methods/edit.html.erb +1 -1
  120. data/app/views/admin/shipping_methods/index.html.erb +34 -0
  121. data/{vendor/extensions/shipping/app → app}/views/admin/shipping_methods/new.html.erb +1 -1
  122. data/app/views/admin/states/_form.html.erb +9 -10
  123. data/app/views/admin/states/_state_list.html.erb +10 -7
  124. data/app/views/admin/states/edit.html.erb +4 -2
  125. data/app/views/admin/states/index.html.erb +11 -4
  126. data/app/views/admin/states/new.html.erb +4 -2
  127. data/app/views/admin/tax_categories/_form.html.erb +9 -11
  128. data/app/views/admin/tax_categories/edit.html.erb +4 -2
  129. data/app/views/admin/tax_categories/index.html.erb +19 -9
  130. data/app/views/admin/tax_categories/new.html.erb +4 -2
  131. data/app/views/admin/tax_categories/show.html.erb +1 -0
  132. data/app/views/admin/taxonomies/_form.html.erb +5 -9
  133. data/app/views/admin/taxonomies/_list.html.erb +4 -4
  134. data/app/views/admin/taxonomies/_yui_head.html.erb +2 -16
  135. data/app/views/admin/taxonomies/edit.html.erb +13 -12
  136. data/app/views/admin/taxonomies/index.html.erb +11 -2
  137. data/app/views/admin/taxonomies/new.html.erb +7 -4
  138. data/app/views/admin/taxons/_taxon_table.html.erb +9 -9
  139. data/app/views/admin/taxons/available.js.erb +8 -8
  140. data/app/views/admin/taxons/selected.html.erb +10 -9
  141. data/app/views/admin/users/_form.html.erb +35 -36
  142. data/app/views/admin/users/edit.html.erb +3 -3
  143. data/app/views/admin/users/index.html.erb +45 -47
  144. data/app/views/admin/users/new.html.erb +5 -5
  145. data/app/views/admin/users/show.html.erb +8 -5
  146. data/app/views/admin/variants/_form.html.erb +36 -31
  147. data/app/views/admin/variants/edit.html.erb +5 -4
  148. data/app/views/admin/variants/index.html.erb +52 -50
  149. data/app/views/admin/variants/new.html.erb +3 -3
  150. data/app/views/admin/zones/_country_member.html.erb +5 -0
  151. data/app/views/admin/zones/_form.html.erb +26 -65
  152. data/app/views/admin/zones/_member_type.html.erb +15 -0
  153. data/app/views/admin/zones/_state_member.html.erb +5 -0
  154. data/app/views/admin/zones/_zone_member.html.erb +5 -0
  155. data/app/views/admin/zones/edit.html.erb +6 -4
  156. data/app/views/admin/zones/index.html.erb +18 -7
  157. data/app/views/admin/zones/new.html.erb +6 -4
  158. data/app/views/{checkout → content}/cvv.html.erb +0 -2
  159. data/app/views/layouts/admin.html.erb +75 -60
  160. data/app/views/layouts/application.html.erb +51 -75
  161. data/app/views/orders/_billing.html.erb +53 -0
  162. data/app/views/orders/_checkout_form.html.erb +14 -0
  163. data/app/views/{checkout/_confirm_order.erb → orders/_confirmation.html.erb} +3 -1
  164. data/app/views/orders/_form.html.erb +1 -2
  165. data/app/views/orders/_line_item.html.erb +15 -16
  166. data/app/views/orders/_payment.html.erb +30 -0
  167. data/app/views/orders/_registration.html.erb +60 -0
  168. data/app/views/orders/_shipping.html.erb +54 -0
  169. data/app/views/orders/_shipping_method.html.erb +10 -0
  170. data/app/views/orders/checkout.html.erb +15 -0
  171. data/app/views/orders/edit.html.erb +20 -20
  172. data/app/views/orders/new.html.erb +9 -8
  173. data/app/views/orders/show.html.erb +2 -4
  174. data/app/views/password_resets/edit.html.erb +12 -0
  175. data/app/views/password_resets/new.html.erb +11 -0
  176. data/app/views/products/_cart_form.html.erb +46 -0
  177. data/app/views/products/_properties.html.erb +8 -0
  178. data/app/views/products/_thumbnails.html.erb +27 -5
  179. data/app/views/products/index.html.erb +3 -8
  180. data/app/views/products/show.html.erb +23 -68
  181. data/app/views/shared/_footer.html.erb +8 -3
  182. data/app/views/shared/_login.html.erb +17 -16
  183. data/app/views/shared/_login_bar.html.erb +6 -0
  184. data/app/views/shared/_new_resource_links.html.erb +1 -1
  185. data/app/views/shared/_order_details.html.erb +8 -8
  186. data/app/views/shared/_products.html.erb +21 -17
  187. data/app/views/shared/_store_menu.html.erb +2 -5
  188. data/app/views/shared/_taxonomies.html.erb +8 -5
  189. data/app/views/states/index.js.erb +1 -10
  190. data/app/views/taxons/_taxon.html.erb +2 -3
  191. data/app/views/taxons/show.html.erb +10 -6
  192. data/app/views/user_mailer/password_reset_instructions.erb +9 -0
  193. data/app/views/{account → user_sessions}/authorization_failure.html.erb +0 -0
  194. data/app/views/user_sessions/new.html.erb +6 -0
  195. data/app/views/users/_form.html.erb +16 -23
  196. data/app/views/users/new.html.erb +11 -19
  197. data/config/boot.rb +1 -1
  198. data/config/database.yml +5 -5
  199. data/config/database.yml.example +2 -2
  200. data/config/environment.rb +11 -24
  201. data/config/initializers/backtrace_silencers.rb +7 -0
  202. data/config/initializers/compass.rb +8 -0
  203. data/config/initializers/inflections.rb +10 -0
  204. data/config/initializers/mime_types.rb +0 -3
  205. data/config/initializers/new_rails_defaults.rb +19 -0
  206. data/config/initializers/session_store.rb +15 -0
  207. data/config/locales/de.yml +57 -2
  208. data/config/locales/de_rails.yml +27 -7
  209. data/config/locales/en-GB.yml +59 -4
  210. data/config/locales/en-GB_rails.yml +6 -6
  211. data/config/locales/en-US.yml +60 -5
  212. data/config/locales/en-US_rails.yml +80 -39
  213. data/config/locales/es.yml +318 -263
  214. data/config/locales/es_rails.yml +26 -8
  215. data/config/locales/fr-FR.yml +55 -0
  216. data/config/locales/fr-FR_rails.yml +51 -43
  217. data/config/locales/it.yml +57 -2
  218. data/config/locales/it_rails.yml +60 -18
  219. data/config/locales/nb-NO.yml +67 -469
  220. data/config/locales/nl-BE.yml +522 -0
  221. data/config/locales/nl-BE_rails.yml +155 -0
  222. data/config/locales/pl.yml +57 -2
  223. data/config/locales/pt-BR.yml +272 -217
  224. data/config/locales/pt-BR_rails.yml +132 -98
  225. data/config/locales/pt-PT.yml +56 -1
  226. data/config/locales/pt-PT_rails.yml +25 -4
  227. data/config/locales/ru-RU.yml +56 -1
  228. data/config/locales/ru-RU_rails.yml +156 -110
  229. data/config/routes.rb +17 -8
  230. data/config/spree_permissions.yml +8 -5
  231. data/{vendor/extensions/shipping/db → db}/migrate/20081003211336_create_shipping_methods.rb +0 -0
  232. data/{vendor/extensions/shipping/db → db}/migrate/20081003233427_create_shipping_categories.rb +0 -0
  233. data/{vendor/extensions/shipping/db → db}/migrate/20081015001711_create_shipments.rb +0 -0
  234. data/{vendor/extensions/shipping/db → db}/migrate/20081023134446_add_product_dimensions.rb +0 -0
  235. data/{vendor/extensions/shipping/db → db}/migrate/20081205155619_add_shipped_at_property.rb +0 -0
  236. data/{vendor/extensions/shipping/db → db}/migrate/20081221201510_create_shipping_addresses.rb +0 -0
  237. data/db/migrate/20090302221152_give_all_users_user_role.rb +1 -0
  238. data/db/migrate/20090320113300_authlogic_changes.rb +24 -0
  239. data/db/migrate/20090324164010_create_option_types_prototypes.rb +12 -0
  240. data/db/migrate/20090401120636_meta_data_fields_for_products.rb +11 -0
  241. data/db/migrate/20090401203712_remove_hmp_stuff_in_zones.rb +12 -0
  242. data/db/migrate/{20080706233224_create_eu_vat_zone.rb → 20090401223217_create_eu_vat_zone_again.rb} +8 -3
  243. data/db/migrate/20090402002244_add_user_login.rb +17 -0
  244. data/db/migrate/20090402161055_add_order_token.rb +13 -0
  245. data/db/migrate/20090402200317_add_email_to_order.rb +19 -0
  246. data/db/migrate/20090406174645_refactor_addresses.rb +53 -0
  247. data/db/migrate/20090420021303_remove_viewable_id_from_products.rb +10 -0
  248. data/db/migrate/20090427000000_upgrade_taxons.rb +14 -0
  249. data/db/sample/addresses.yml +24 -14
  250. data/db/sample/creditcards.yml +2 -1
  251. data/db/sample/orders.yml +4 -1
  252. data/db/sample/products.yml +9 -9
  253. data/{vendor/extensions/shipping/db → db}/sample/shipments.yml +2 -1
  254. data/{vendor/extensions/shipping/db → db}/sample/shipping_categories.yml +0 -0
  255. data/{vendor/extensions/shipping/db → db}/sample/shipping_methods.yml +0 -0
  256. data/db/sample/users.yml +2 -1
  257. data/db/sample/zone_members.yml +16 -0
  258. data/{vendor/extensions/shipping/db → db}/sample/zones.yml +0 -0
  259. data/lib/easy_role_requirement_system.rb +32 -1
  260. data/lib/generators/generator_base_extension.rb +2 -2
  261. data/lib/generators/instance/instance_generator.rb +13 -9
  262. data/lib/generators/instance/templates/session_store.rb +15 -0
  263. data/lib/plugins/extension_patches/lib/fixture_loading_extension.rb +3 -1
  264. data/lib/plugins/monkey_patches/init.rb +1 -0
  265. data/lib/plugins/monkey_patches/lib/monkey_patches.rb +59 -0
  266. data/{vendor/plugins/calendar_date_select → lib/plugins/option_tags_with_disable}/MIT-LICENSE +20 -20
  267. data/lib/plugins/option_tags_with_disable/README.rdoc +35 -0
  268. data/lib/plugins/option_tags_with_disable/Rakefile +23 -0
  269. data/lib/plugins/option_tags_with_disable/init.rb +1 -0
  270. data/lib/plugins/option_tags_with_disable/lib/option_tags_will_disable.rb +85 -0
  271. data/lib/plugins/option_tags_with_disable/test/option_tags_will_disable_test.rb +72 -0
  272. data/lib/plugins/option_tags_with_disable/test/test_helper.rb +8 -0
  273. data/lib/role_requirement_system.rb +2 -2
  274. data/lib/spree.rb +2 -2
  275. data/lib/spree/checkout.rb +74 -0
  276. data/lib/spree/initializer.rb +0 -1
  277. data/lib/spree/setup.rb +2 -1
  278. data/{vendor/extensions/shipping/lib → lib}/spree/shipping_error.rb +0 -0
  279. data/lib/tasks/database.rake +2 -0
  280. data/lib/tasks/release.rake +8 -6
  281. data/lib/tasks/upgrade.rake +3 -0
  282. data/public/assets/products/1009/large/IMG_3408.jpg +0 -0
  283. data/public/assets/products/1009/mini/IMG_3408.jpg +0 -0
  284. data/public/assets/products/1009/original/IMG_3408.jpg +0 -0
  285. data/public/assets/products/1009/product/IMG_3408.jpg +0 -0
  286. data/public/assets/products/1009/small/IMG_3408.jpg +0 -0
  287. data/public/images/add-to-cart.png +0 -0
  288. data/public/images/admin/bg/active-tab.png +0 -0
  289. data/public/images/admin/bg/admin_tab_back.png +0 -0
  290. data/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  291. data/public/images/admin/bg/content-back-blue.png +0 -0
  292. data/public/images/admin/bg/content-back-green.png +0 -0
  293. data/public/images/admin/bg/content-back.png +0 -0
  294. data/public/images/admin/bg/flash-error.png +0 -0
  295. data/public/images/admin/bg/flash-notice.png +0 -0
  296. data/public/images/admin/bg/green-stripes.gif +0 -0
  297. data/public/images/admin/bg/green-stripes.png +0 -0
  298. data/public/images/admin/bg/grid_header_back.png +0 -0
  299. data/public/images/admin/bg/grid_header_back_green.png +0 -0
  300. data/public/images/admin/bg/header-bg.png +0 -0
  301. data/public/images/admin/bg/header_bg.jpg +0 -0
  302. data/public/images/admin/bg/menu-current.png +0 -0
  303. data/public/images/admin/bg/red-stripes.gif +0 -0
  304. data/public/images/admin/bg/red-stripes.png +0 -0
  305. data/public/images/admin/bg/spree_50.png +0 -0
  306. data/public/images/admin/bg/subnav-divider.png +0 -0
  307. data/public/images/admin/bg/subnav.png +0 -0
  308. data/public/images/admin/bg/tab-back.png +0 -0
  309. data/public/images/admin/buttons/blue/left_01.png +0 -0
  310. data/public/images/admin/buttons/blue/right_01.png +0 -0
  311. data/public/images/admin/buttons/drag-handle-green.png +0 -0
  312. data/public/images/admin/buttons/green/left_01.png +0 -0
  313. data/public/images/admin/buttons/green/right_01.png +0 -0
  314. data/public/images/admin/buttons/left_01.png +0 -0
  315. data/public/images/admin/buttons/left_01_small.png +0 -0
  316. data/public/images/admin/buttons/orange/left_03.png +0 -0
  317. data/public/images/admin/buttons/orange/right_03.png +0 -0
  318. data/public/images/admin/buttons/right_01.png +0 -0
  319. data/public/images/admin/buttons/right_01_small.png +0 -0
  320. data/public/images/admin/icons/16x16/1.png +0 -0
  321. data/public/images/admin/icons/16x16/10.png +0 -0
  322. data/public/images/admin/icons/16x16/2.png +0 -0
  323. data/public/images/admin/icons/16x16/3.png +0 -0
  324. data/public/images/admin/icons/16x16/4.png +0 -0
  325. data/public/images/admin/icons/16x16/5.png +0 -0
  326. data/public/images/admin/icons/16x16/6.png +0 -0
  327. data/public/images/admin/icons/16x16/7.png +0 -0
  328. data/public/images/admin/icons/16x16/8.png +0 -0
  329. data/public/images/admin/icons/16x16/9.png +0 -0
  330. data/public/images/admin/icons/32x32/1.png +0 -0
  331. data/public/images/admin/icons/32x32/10.png +0 -0
  332. data/public/images/admin/icons/32x32/11.png +0 -0
  333. data/public/images/admin/icons/32x32/2.png +0 -0
  334. data/public/images/admin/icons/32x32/3.png +0 -0
  335. data/public/images/admin/icons/32x32/4.png +0 -0
  336. data/public/images/admin/icons/32x32/5.png +0 -0
  337. data/public/images/admin/icons/32x32/6.png +0 -0
  338. data/public/images/admin/icons/32x32/7.png +0 -0
  339. data/public/images/admin/icons/32x32/8.png +0 -0
  340. data/public/images/admin/icons/32x32/9.png +0 -0
  341. data/public/images/admin/icons/accept.png +0 -0
  342. data/public/images/admin/icons/add.gif +0 -0
  343. data/public/images/admin/icons/add.png +0 -0
  344. data/public/images/admin/icons/arrow-down.gif +0 -0
  345. data/public/images/admin/icons/cross.png +0 -0
  346. data/public/images/admin/icons/delete.gif +0 -0
  347. data/public/images/admin/icons/delete.png +0 -0
  348. data/public/images/admin/icons/drag.gif +0 -0
  349. data/public/images/admin/icons/edit.gif +0 -0
  350. data/public/images/admin/icons/edit.png +0 -0
  351. data/public/images/admin/icons/email.png +0 -0
  352. data/public/images/admin/icons/error.png +0 -0
  353. data/public/images/admin/icons/exclamation.png +0 -0
  354. data/public/images/admin/icons/feed.png +0 -0
  355. data/public/images/admin/icons/pdf.png +0 -0
  356. data/public/images/admin/icons/reorder.gif +0 -0
  357. data/public/images/admin/icons/search.gif +0 -0
  358. data/public/images/admin/icons/send-email.png +0 -0
  359. data/public/images/admin/icons/stop.png +0 -0
  360. data/public/images/admin/icons/tick.png +0 -0
  361. data/public/images/admin/icons/up.gif +0 -0
  362. data/public/images/admin/icons/xls.png +0 -0
  363. data/public/images/admin/tabs/off-left.png +0 -0
  364. data/public/images/admin/tabs/off-right.png +0 -0
  365. data/public/images/admin/tabs/on-left.png +0 -0
  366. data/public/images/admin/tabs/on-right.png +0 -0
  367. data/public/images/bg-button-hover.png +0 -0
  368. data/public/images/bg-button-pressed.png +0 -0
  369. data/public/images/bg-button.gif +0 -0
  370. data/public/images/bg-button.png +0 -0
  371. data/public/images/blue/left_01.png +0 -0
  372. data/public/images/blue/right_01.png +0 -0
  373. data/public/images/body-back.png +0 -0
  374. data/public/images/bottom_shine.png +0 -0
  375. data/public/images/button-dark-hover.png +0 -0
  376. data/public/images/button-dark.png +0 -0
  377. data/public/images/buttons/bg-button-hover.png +0 -0
  378. data/public/images/buttons/bg-button-pressed.png +0 -0
  379. data/public/images/buttons/bg-button.gif +0 -0
  380. data/public/images/buttons/bg-button.png +0 -0
  381. data/public/images/buttons/blue/left_01.png +0 -0
  382. data/public/images/buttons/blue/right_01.png +0 -0
  383. data/public/images/buttons/button-dark-hover.png +0 -0
  384. data/public/images/buttons/button-dark.png +0 -0
  385. data/public/images/buttons/drag-handle-green.png +0 -0
  386. data/public/images/buttons/green/left_01.png +0 -0
  387. data/public/images/buttons/green/right_01.png +0 -0
  388. data/public/images/buttons/left_01.png +0 -0
  389. data/public/images/buttons/left_01_small.png +0 -0
  390. data/public/images/buttons/orange/left_03.png +0 -0
  391. data/public/images/buttons/orange/right_03.png +0 -0
  392. data/public/images/buttons/right_01.png +0 -0
  393. data/public/images/buttons/right_01_small.png +0 -0
  394. data/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  395. data/public/images/buttons/top-shine.png +0 -0
  396. data/public/images/cart-empty.png +0 -0
  397. data/public/images/cart-empty_x32.png +0 -0
  398. data/public/images/cart-full.png +0 -0
  399. data/public/images/cart-full_x32.png +0 -0
  400. data/public/images/checkout.png +0 -0
  401. data/public/images/drag-handle-green.png +0 -0
  402. data/public/images/green/left_01.png +0 -0
  403. data/public/images/green/right_01.png +0 -0
  404. data/public/images/grid.png +0 -0
  405. data/public/images/left_01.png +0 -0
  406. data/public/images/left_01_small.png +0 -0
  407. data/public/images/menu-current.png +0 -0
  408. data/public/images/menu-hover.png +0 -0
  409. data/public/images/orange/left_03.png +0 -0
  410. data/public/images/orange/right_03.png +0 -0
  411. data/public/images/right_01.png +0 -0
  412. data/public/images/right_01_small.png +0 -0
  413. data/public/images/separator.png +0 -0
  414. data/public/images/shadow-top.png +0 -0
  415. data/public/images/shadow_top.png +0 -0
  416. data/public/images/steps/1.png +0 -0
  417. data/public/images/steps/1_small.png +0 -0
  418. data/public/images/steps/2.png +0 -0
  419. data/public/images/steps/2_small.png +0 -0
  420. data/public/images/steps/3.png +0 -0
  421. data/public/images/steps/3_small.png +0 -0
  422. data/public/images/steps/4.png +0 -0
  423. data/public/images/steps/4_small.png +0 -0
  424. data/public/images/steps/5.png +0 -0
  425. data/public/images/steps/5_small.png +0 -0
  426. data/public/images/steps/6.png +0 -0
  427. data/public/images/steps/6_small.png +0 -0
  428. data/public/images/sxsw-ribbon-v1.png +0 -0
  429. data/public/images/top-shine.png +0 -0
  430. data/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  431. data/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  432. data/public/images/update.png +0 -0
  433. data/public/images/wrapper-back-2.png +0 -0
  434. data/public/images/wrapper-back.png +0 -0
  435. data/public/images/yui-menubaritem_submenuindicator.png +0 -0
  436. data/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  437. data/public/images/yui-menuitem_checkbox.png +0 -0
  438. data/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  439. data/public/images/yui-menuitem_submenuindicator.png +0 -0
  440. data/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  441. data/public/images/yui-sprite.png +0 -0
  442. data/public/javascripts/checkout.js +191 -55
  443. data/public/javascripts/nested-attribute.js +25 -0
  444. data/public/javascripts/spree-yui.js +1 -1
  445. data/public/javascripts/yui-includes.js +57 -0
  446. data/public/javascripts/zone.js +48 -0
  447. data/public/stylesheets/admin/admin-forms.css +159 -0
  448. data/public/stylesheets/admin/admin-reset.css +67 -0
  449. data/public/stylesheets/admin/admin-tables.css +31 -0
  450. data/public/stylesheets/admin/admin-typography.css +117 -0
  451. data/public/stylesheets/admin/admin.css +426 -0
  452. data/public/stylesheets/admin/david-admin.css +210 -0
  453. data/public/stylesheets/admin/grids.css +314 -0
  454. data/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  455. data/public/stylesheets/admin/yui-includes.css +14 -0
  456. data/public/stylesheets/compiled/ie.css +25 -0
  457. data/public/stylesheets/compiled/print.css +62 -0
  458. data/public/stylesheets/compiled/screen.css +1615 -0
  459. data/public/stylesheets/sass/ie.sass +3 -0
  460. data/public/stylesheets/sass/print.sass +3 -0
  461. data/public/stylesheets/sass/screen.sass +565 -0
  462. data/{vendor/extensions/shipping/spec/controllers → spec/controllers/admin}/shipments_controller_spec.rb +3 -3
  463. data/{vendor/extensions/shipping/spec → spec}/controllers/admin/shipping_categories_controller_spec.rb +0 -0
  464. data/{vendor/extensions/shipping/spec → spec}/controllers/admin/shipping_methods_controller_spec.rb +0 -0
  465. data/spec/controllers/countries_controller_spec.rb +3 -3
  466. data/spec/controllers/orders_controller_spec.rb +11 -9
  467. data/spec/controllers/states_controller_spec.rb +3 -3
  468. data/spec/helpers/spree/base_helper_spec.rb +5 -5
  469. data/spec/lib/easy_role_requirement_system_spec.rb +2 -2
  470. data/spec/models/address_spec.rb +3 -3
  471. data/spec/models/order_spec.rb +43 -1
  472. data/spec/models/product_property_spec.rb +0 -7
  473. data/spec/models/product_spec.rb +1 -1
  474. data/{vendor/extensions/shipping/spec → spec}/models/shipment_spec.rb +0 -0
  475. data/{vendor/extensions/shipping/spec → spec}/models/shipping_category_spec.rb +0 -0
  476. data/{vendor/extensions/shipping/spec → spec}/models/shipping_method_spec.rb +0 -0
  477. data/{vendor/extensions/shipping/spec → spec}/models/shipping_order_spec.rb +13 -6
  478. data/spec/models/tax_category_spec.rb +1 -1
  479. data/spec/models/zone_spec.rb +46 -42
  480. data/vendor/extensions/localization/app/views/shared/_language_bar.html.erb +8 -10
  481. data/vendor/extensions/localization/localization_extension.rb +2 -2
  482. data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/_form.html.erb +5 -4
  483. data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/edit.html.erb +4 -2
  484. data/vendor/extensions/payment_gateway/app/views/admin/gateway_option_values/_options.html.erb +4 -4
  485. data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +2 -2
  486. data/vendor/extensions/tax_calculator/app/controllers/admin/tax_settings_controller.rb +13 -0
  487. data/vendor/extensions/tax_calculator/app/views/admin/tax_rates/index.html.erb +27 -25
  488. data/vendor/extensions/tax_calculator/app/views/admin/tax_settings/edit.html.erb +17 -0
  489. data/vendor/extensions/tax_calculator/app/views/admin/tax_settings/show.html.erb +14 -0
  490. data/vendor/extensions/tax_calculator/config/locales/en-US.yml +2 -0
  491. data/vendor/extensions/tax_calculator/config/routes.rb +1 -0
  492. data/vendor/extensions/tax_calculator/lib/spree/vat_calculator.rb +3 -8
  493. data/vendor/extensions/tax_calculator/tax_calculator_extension.rb +1 -0
  494. data/vendor/gems/haml-2.1.0/FAQ +138 -0
  495. data/vendor/gems/haml-2.1.0/MIT-LICENSE +20 -0
  496. data/vendor/gems/haml-2.1.0/README.rdoc +332 -0
  497. data/vendor/gems/haml-2.1.0/REVISION +1 -0
  498. data/vendor/gems/haml-2.1.0/Rakefile +185 -0
  499. data/vendor/gems/haml-2.1.0/VERSION +1 -0
  500. data/vendor/gems/haml-2.1.0/bin/css2sass +7 -0
  501. data/vendor/gems/haml-2.1.0/bin/haml +9 -0
  502. data/vendor/gems/haml-2.1.0/bin/html2haml +7 -0
  503. data/vendor/gems/haml-2.1.0/bin/sass +8 -0
  504. data/vendor/gems/haml-2.1.0/extra/haml-mode.el +434 -0
  505. data/vendor/gems/haml-2.1.0/extra/sass-mode.el +98 -0
  506. data/vendor/gems/haml-2.1.0/init.rb +8 -0
  507. data/vendor/gems/haml-2.1.0/lib/haml.rb +1042 -0
  508. data/vendor/gems/haml-2.1.0/lib/haml/buffer.rb +255 -0
  509. data/vendor/gems/haml-2.1.0/lib/haml/engine.rb +268 -0
  510. data/vendor/gems/haml-2.1.0/lib/haml/error.rb +22 -0
  511. data/vendor/gems/haml-2.1.0/lib/haml/exec.rb +395 -0
  512. data/vendor/gems/haml-2.1.0/lib/haml/filters.rb +276 -0
  513. data/vendor/gems/haml-2.1.0/lib/haml/helpers.rb +468 -0
  514. data/vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_extensions.rb +45 -0
  515. data/vendor/gems/haml-2.1.0/lib/haml/helpers/action_view_mods.rb +181 -0
  516. data/vendor/gems/haml-2.1.0/lib/haml/html.rb +218 -0
  517. data/vendor/gems/haml-2.1.0/lib/haml/precompiler.rb +889 -0
  518. data/vendor/gems/haml-2.1.0/lib/haml/shared.rb +45 -0
  519. data/vendor/gems/haml-2.1.0/lib/haml/template.rb +51 -0
  520. data/vendor/gems/haml-2.1.0/lib/haml/template/patch.rb +58 -0
  521. data/vendor/gems/haml-2.1.0/lib/haml/template/plugin.rb +72 -0
  522. data/vendor/gems/haml-2.1.0/lib/haml/util.rb +77 -0
  523. data/vendor/gems/haml-2.1.0/lib/haml/version.rb +47 -0
  524. data/vendor/gems/haml-2.1.0/lib/sass.rb +1062 -0
  525. data/vendor/gems/haml-2.1.0/lib/sass/css.rb +388 -0
  526. data/vendor/gems/haml-2.1.0/lib/sass/engine.rb +499 -0
  527. data/vendor/gems/haml-2.1.0/lib/sass/environment.rb +33 -0
  528. data/vendor/gems/haml-2.1.0/lib/sass/error.rb +35 -0
  529. data/vendor/gems/haml-2.1.0/lib/sass/plugin.rb +203 -0
  530. data/vendor/gems/haml-2.1.0/lib/sass/plugin/merb.rb +56 -0
  531. data/vendor/gems/haml-2.1.0/lib/sass/plugin/rails.rb +24 -0
  532. data/vendor/gems/haml-2.1.0/lib/sass/repl.rb +51 -0
  533. data/vendor/gems/haml-2.1.0/lib/sass/script.rb +38 -0
  534. data/vendor/gems/haml-2.1.0/lib/sass/script/bool.rb +13 -0
  535. data/vendor/gems/haml-2.1.0/lib/sass/script/color.rb +97 -0
  536. data/vendor/gems/haml-2.1.0/lib/sass/script/funcall.rb +28 -0
  537. data/vendor/gems/haml-2.1.0/lib/sass/script/functions.rb +122 -0
  538. data/vendor/gems/haml-2.1.0/lib/sass/script/lexer.rb +152 -0
  539. data/vendor/gems/haml-2.1.0/lib/sass/script/literal.rb +60 -0
  540. data/vendor/gems/haml-2.1.0/lib/sass/script/number.rb +231 -0
  541. data/vendor/gems/haml-2.1.0/lib/sass/script/operation.rb +30 -0
  542. data/vendor/gems/haml-2.1.0/lib/sass/script/parser.rb +142 -0
  543. data/vendor/gems/haml-2.1.0/lib/sass/script/string.rb +42 -0
  544. data/vendor/gems/haml-2.1.0/lib/sass/script/unary_operation.rb +21 -0
  545. data/vendor/gems/haml-2.1.0/lib/sass/script/variable.rb +20 -0
  546. data/vendor/gems/haml-2.1.0/lib/sass/tree/attr_node.rb +64 -0
  547. data/vendor/gems/haml-2.1.0/lib/sass/tree/comment_node.rb +34 -0
  548. data/vendor/gems/haml-2.1.0/lib/sass/tree/debug_node.rb +22 -0
  549. data/vendor/gems/haml-2.1.0/lib/sass/tree/directive_node.rb +50 -0
  550. data/vendor/gems/haml-2.1.0/lib/sass/tree/file_node.rb +27 -0
  551. data/vendor/gems/haml-2.1.0/lib/sass/tree/for_node.rb +29 -0
  552. data/vendor/gems/haml-2.1.0/lib/sass/tree/if_node.rb +27 -0
  553. data/vendor/gems/haml-2.1.0/lib/sass/tree/mixin_def_node.rb +18 -0
  554. data/vendor/gems/haml-2.1.0/lib/sass/tree/mixin_node.rb +34 -0
  555. data/vendor/gems/haml-2.1.0/lib/sass/tree/node.rb +99 -0
  556. data/vendor/gems/haml-2.1.0/lib/sass/tree/rule_node.rb +120 -0
  557. data/vendor/gems/haml-2.1.0/lib/sass/tree/variable_node.rb +24 -0
  558. data/vendor/gems/haml-2.1.0/lib/sass/tree/while_node.rb +20 -0
  559. data/vendor/gems/haml-2.1.0/rails/init.rb +1 -0
  560. data/vendor/gems/haml-2.1.0/test/benchmark.rb +99 -0
  561. data/vendor/gems/haml-2.1.0/test/haml/engine_test.rb +734 -0
  562. data/vendor/gems/haml-2.1.0/test/haml/helper_test.rb +224 -0
  563. data/vendor/gems/haml-2.1.0/test/haml/html2haml_test.rb +92 -0
  564. data/vendor/gems/haml-2.1.0/test/haml/markaby/standard.mab +52 -0
  565. data/vendor/gems/haml-2.1.0/test/haml/mocks/article.rb +6 -0
  566. data/vendor/gems/haml-2.1.0/test/haml/results/content_for_layout.xhtml +15 -0
  567. data/vendor/gems/haml-2.1.0/test/haml/results/eval_suppressed.xhtml +9 -0
  568. data/vendor/gems/haml-2.1.0/test/haml/results/filters.xhtml +62 -0
  569. data/vendor/gems/haml-2.1.0/test/haml/results/helpers.xhtml +93 -0
  570. data/vendor/gems/haml-2.1.0/test/haml/results/helpful.xhtml +10 -0
  571. data/vendor/gems/haml-2.1.0/test/haml/results/just_stuff.xhtml +68 -0
  572. data/vendor/gems/haml-2.1.0/test/haml/results/list.xhtml +12 -0
  573. data/vendor/gems/haml-2.1.0/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
  574. data/vendor/gems/haml-2.1.0/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
  575. data/vendor/gems/haml-2.1.0/test/haml/results/original_engine.xhtml +20 -0
  576. data/vendor/gems/haml-2.1.0/test/haml/results/partial_layout.xhtml +5 -0
  577. data/vendor/gems/haml-2.1.0/test/haml/results/partials.xhtml +21 -0
  578. data/vendor/gems/haml-2.1.0/test/haml/results/render_layout.xhtml +3 -0
  579. data/vendor/gems/haml-2.1.0/test/haml/results/silent_script.xhtml +74 -0
  580. data/vendor/gems/haml-2.1.0/test/haml/results/standard.xhtml +42 -0
  581. data/vendor/gems/haml-2.1.0/test/haml/results/tag_parsing.xhtml +23 -0
  582. data/vendor/gems/haml-2.1.0/test/haml/results/very_basic.xhtml +5 -0
  583. data/vendor/gems/haml-2.1.0/test/haml/results/whitespace_handling.xhtml +89 -0
  584. data/vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_1.rhtml +12 -0
  585. data/vendor/gems/haml-2.1.0/test/haml/rhtml/_av_partial_2.rhtml +8 -0
  586. data/vendor/gems/haml-2.1.0/test/haml/rhtml/action_view.rhtml +62 -0
  587. data/vendor/gems/haml-2.1.0/test/haml/rhtml/standard.rhtml +54 -0
  588. data/vendor/gems/haml-2.1.0/test/haml/template_test.rb +204 -0
  589. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1.haml +9 -0
  590. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_1_ugly.haml +9 -0
  591. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2.haml +5 -0
  592. data/vendor/gems/haml-2.1.0/test/haml/templates/_av_partial_2_ugly.haml +5 -0
  593. data/vendor/gems/haml-2.1.0/test/haml/templates/_layout.erb +3 -0
  594. data/vendor/gems/haml-2.1.0/test/haml/templates/_layout_for_partial.haml +3 -0
  595. data/vendor/gems/haml-2.1.0/test/haml/templates/_partial.haml +8 -0
  596. data/vendor/gems/haml-2.1.0/test/haml/templates/_text_area.haml +3 -0
  597. data/vendor/gems/haml-2.1.0/test/haml/templates/action_view.haml +47 -0
  598. data/vendor/gems/haml-2.1.0/test/haml/templates/action_view_ugly.haml +47 -0
  599. data/vendor/gems/haml-2.1.0/test/haml/templates/breakage.haml +8 -0
  600. data/vendor/gems/haml-2.1.0/test/haml/templates/content_for_layout.haml +10 -0
  601. data/vendor/gems/haml-2.1.0/test/haml/templates/eval_suppressed.haml +11 -0
  602. data/vendor/gems/haml-2.1.0/test/haml/templates/filters.haml +66 -0
  603. data/vendor/gems/haml-2.1.0/test/haml/templates/helpers.haml +95 -0
  604. data/vendor/gems/haml-2.1.0/test/haml/templates/helpful.haml +11 -0
  605. data/vendor/gems/haml-2.1.0/test/haml/templates/just_stuff.haml +83 -0
  606. data/vendor/gems/haml-2.1.0/test/haml/templates/list.haml +12 -0
  607. data/vendor/gems/haml-2.1.0/test/haml/templates/nuke_inner_whitespace.haml +32 -0
  608. data/vendor/gems/haml-2.1.0/test/haml/templates/nuke_outer_whitespace.haml +144 -0
  609. data/vendor/gems/haml-2.1.0/test/haml/templates/original_engine.haml +17 -0
  610. data/vendor/gems/haml-2.1.0/test/haml/templates/partial_layout.haml +3 -0
  611. data/vendor/gems/haml-2.1.0/test/haml/templates/partialize.haml +1 -0
  612. data/vendor/gems/haml-2.1.0/test/haml/templates/partials.haml +12 -0
  613. data/vendor/gems/haml-2.1.0/test/haml/templates/render_layout.haml +2 -0
  614. data/vendor/gems/haml-2.1.0/test/haml/templates/silent_script.haml +40 -0
  615. data/vendor/gems/haml-2.1.0/test/haml/templates/standard.haml +42 -0
  616. data/vendor/gems/haml-2.1.0/test/haml/templates/standard_ugly.haml +42 -0
  617. data/vendor/gems/haml-2.1.0/test/haml/templates/tag_parsing.haml +21 -0
  618. data/vendor/gems/haml-2.1.0/test/haml/templates/very_basic.haml +4 -0
  619. data/vendor/gems/haml-2.1.0/test/haml/templates/whitespace_handling.haml +87 -0
  620. data/vendor/gems/haml-2.1.0/test/linked_rails.rb +12 -0
  621. data/vendor/gems/haml-2.1.0/test/sass/css2sass_test.rb +193 -0
  622. data/vendor/gems/haml-2.1.0/test/sass/engine_test.rb +769 -0
  623. data/vendor/gems/haml-2.1.0/test/sass/functions_test.rb +96 -0
  624. data/vendor/gems/haml-2.1.0/test/sass/more_results/more1.css +9 -0
  625. data/vendor/gems/haml-2.1.0/test/sass/more_results/more1_with_line_comments.css +26 -0
  626. data/vendor/gems/haml-2.1.0/test/sass/more_results/more_import.css +29 -0
  627. data/vendor/gems/haml-2.1.0/test/sass/more_templates/_more_partial.sass +2 -0
  628. data/vendor/gems/haml-2.1.0/test/sass/more_templates/more1.sass +23 -0
  629. data/vendor/gems/haml-2.1.0/test/sass/more_templates/more_import.sass +11 -0
  630. data/vendor/gems/haml-2.1.0/test/sass/plugin_test.rb +208 -0
  631. data/vendor/gems/haml-2.1.0/test/sass/results/alt.css +4 -0
  632. data/vendor/gems/haml-2.1.0/test/sass/results/basic.css +9 -0
  633. data/vendor/gems/haml-2.1.0/test/sass/results/compact.css +5 -0
  634. data/vendor/gems/haml-2.1.0/test/sass/results/complex.css +87 -0
  635. data/vendor/gems/haml-2.1.0/test/sass/results/compressed.css +1 -0
  636. data/vendor/gems/haml-2.1.0/test/sass/results/expanded.css +19 -0
  637. data/vendor/gems/haml-2.1.0/test/sass/results/import.css +29 -0
  638. data/vendor/gems/haml-2.1.0/test/sass/results/line_numbers.css +49 -0
  639. data/vendor/gems/haml-2.1.0/test/sass/results/mixins.css +95 -0
  640. data/vendor/gems/haml-2.1.0/test/sass/results/multiline.css +24 -0
  641. data/vendor/gems/haml-2.1.0/test/sass/results/nested.css +22 -0
  642. data/vendor/gems/haml-2.1.0/test/sass/results/parent_ref.css +13 -0
  643. data/vendor/gems/haml-2.1.0/test/sass/results/script.css +16 -0
  644. data/vendor/gems/haml-2.1.0/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
  645. data/vendor/gems/haml-2.1.0/test/sass/results/subdir/subdir.css +3 -0
  646. data/vendor/gems/haml-2.1.0/test/sass/results/units.css +11 -0
  647. data/vendor/gems/haml-2.1.0/test/sass/script_test.rb +153 -0
  648. data/vendor/gems/haml-2.1.0/test/sass/templates/_partial.sass +2 -0
  649. data/vendor/gems/haml-2.1.0/test/sass/templates/alt.sass +16 -0
  650. data/vendor/gems/haml-2.1.0/test/sass/templates/basic.sass +23 -0
  651. data/vendor/gems/haml-2.1.0/test/sass/templates/bork.sass +2 -0
  652. data/vendor/gems/haml-2.1.0/test/sass/templates/bork2.sass +2 -0
  653. data/vendor/gems/haml-2.1.0/test/sass/templates/compact.sass +17 -0
  654. data/vendor/gems/haml-2.1.0/test/sass/templates/complex.sass +309 -0
  655. data/vendor/gems/haml-2.1.0/test/sass/templates/compressed.sass +15 -0
  656. data/vendor/gems/haml-2.1.0/test/sass/templates/expanded.sass +17 -0
  657. data/vendor/gems/haml-2.1.0/test/sass/templates/import.sass +11 -0
  658. data/vendor/gems/haml-2.1.0/test/sass/templates/importee.sass +19 -0
  659. data/vendor/gems/haml-2.1.0/test/sass/templates/line_numbers.sass +13 -0
  660. data/vendor/gems/haml-2.1.0/test/sass/templates/mixins.sass +76 -0
  661. data/vendor/gems/haml-2.1.0/test/sass/templates/multiline.sass +20 -0
  662. data/vendor/gems/haml-2.1.0/test/sass/templates/nested.sass +25 -0
  663. data/vendor/gems/haml-2.1.0/test/sass/templates/parent_ref.sass +25 -0
  664. data/vendor/gems/haml-2.1.0/test/sass/templates/script.sass +101 -0
  665. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
  666. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
  667. data/vendor/gems/haml-2.1.0/test/sass/templates/subdir/subdir.sass +6 -0
  668. data/vendor/gems/haml-2.1.0/test/sass/templates/units.sass +11 -0
  669. data/vendor/gems/haml-2.1.0/test/test_helper.rb +21 -0
  670. data/vendor/plugins/enumerable_constants/lib/enumerable_constants.rb +1 -1
  671. data/vendor/plugins/find_by_param/README.markdown +1 -1
  672. metadata +544 -427
  673. data/app/controllers/account_controller.rb +0 -31
  674. data/app/controllers/checkout_controller.rb +0 -96
  675. data/app/helpers/payments_helper.rb +0 -2
  676. data/app/helpers/store_helper.rb +0 -3
  677. data/app/helpers/tax_categories_helper.rb +0 -2
  678. data/app/helpers/users_helper.rb +0 -2
  679. data/app/presenters/checkout_presenter.rb +0 -58
  680. data/app/presenters/payment_presenter.rb +0 -3
  681. data/app/views/admin/zones/_country.html.erb +0 -15
  682. data/app/views/admin/zones/_function.rjs +0 -11
  683. data/app/views/admin/zones/_state.html.erb +0 -15
  684. data/app/views/admin/zones/_zone.html.erb +0 -15
  685. data/app/views/admin/zones/index.js.erb +0 -1
  686. data/app/views/admin/zones/show.html.erb +0 -4
  687. data/app/views/checkout/_billing.html.erb +0 -49
  688. data/app/views/checkout/_form.html.erb +0 -33
  689. data/app/views/checkout/_payment.erb +0 -24
  690. data/app/views/checkout/_shipping.html.erb +0 -50
  691. data/app/views/checkout/_shipping_method.html.erb +0 -5
  692. data/app/views/checkout/new.html.erb +0 -6
  693. data/app/views/shared/_address.html.erb +0 -35
  694. data/app/views/shared/_form_address.html.erb +0 -46
  695. data/app/views/shared/_states.html.erb +0 -14
  696. data/app/views/users/index.html.erb +0 -21
  697. data/lib/authenticated_system.rb +0 -124
  698. data/lib/authenticated_test_helper.rb +0 -10
  699. data/public/stylesheets/checkout.css +0 -25
  700. data/public/stylesheets/fullscreen.css +0 -63
  701. data/public/stylesheets/orders/_controller.css +0 -82
  702. data/public/stylesheets/prototypes/_controller.css +0 -9
  703. data/public/stylesheets/spree-admin.css +0 -563
  704. data/public/stylesheets/spree.css +0 -420
  705. data/spec/helpers/tax_categories_helper_spec.rb +0 -11
  706. data/spec/views/admin/mail_settings/edit.html.erb_spec.rb +0 -14
  707. data/spec/views/admin/mail_settings/show.html.erb_spec.rb +0 -12
  708. data/spec/views/admin/products/edit.html.erb_spec.rb +0 -88
  709. data/spec/views/admin/variants/eidt.html.erb_spec.rb +0 -90
  710. data/vendor/extensions/shipping/README.markdown +0 -3
  711. data/vendor/extensions/shipping/Rakefile +0 -120
  712. data/vendor/extensions/shipping/app/controllers/admin/shipments_controller.rb +0 -68
  713. data/vendor/extensions/shipping/app/models/shipment_presenter.rb +0 -3
  714. data/vendor/extensions/shipping/app/views/admin/shipments/_form.html.erb +0 -35
  715. data/vendor/extensions/shipping/app/views/admin/shipments/edit.html.erb +0 -11
  716. data/vendor/extensions/shipping/app/views/admin/shipments/new.html.erb +0 -12
  717. data/vendor/extensions/shipping/app/views/admin/shipping_categories/index.html.erb +0 -24
  718. data/vendor/extensions/shipping/app/views/admin/shipping_methods/index.html.erb +0 -28
  719. data/vendor/extensions/shipping/config/locales/de.yml +0 -25
  720. data/vendor/extensions/shipping/config/locales/en-GB.yml +0 -25
  721. data/vendor/extensions/shipping/config/locales/en-US.yml +0 -25
  722. data/vendor/extensions/shipping/config/locales/es.yml +0 -25
  723. data/vendor/extensions/shipping/config/locales/it.yml +0 -25
  724. data/vendor/extensions/shipping/config/locales/nb-NO.yml +0 -25
  725. data/vendor/extensions/shipping/config/locales/pl.yml +0 -25
  726. data/vendor/extensions/shipping/config/locales/pt-BR.yml +0 -25
  727. data/vendor/extensions/shipping/config/locales/ru-RU.yml +0 -25
  728. data/vendor/extensions/shipping/config/routes.rb +0 -10
  729. data/vendor/extensions/shipping/db/sample/addresses.yml +0 -14
  730. data/vendor/extensions/shipping/db/sample/zone_members.yml +0 -16
  731. data/vendor/extensions/shipping/lib/spree/shipping_calculator.rb +0 -28
  732. data/vendor/extensions/shipping/lib/tasks/shipping_extension_tasks.rake +0 -29
  733. data/vendor/extensions/shipping/shipping_extension.rb +0 -40
  734. data/vendor/extensions/shipping/spec/spec.opts +0 -6
  735. data/vendor/extensions/shipping/spec/spec_helper.rb +0 -37
  736. data/vendor/extensions/tax_calculator/spec/controllers/admin/tax_rates_controller_spec.rb +0 -22
  737. data/vendor/extensions/tax_calculator/spec/models/order_tax_calc_spec.rb +0 -22
  738. data/vendor/gems/active_presenter-0.0.6/.specification +0 -64
  739. data/vendor/gems/active_presenter-0.0.6/LICENSE +0 -22
  740. data/vendor/gems/active_presenter-0.0.6/README +0 -82
  741. data/vendor/gems/active_presenter-0.0.6/Rakefile +0 -10
  742. data/vendor/gems/active_presenter-0.0.6/lib/active_presenter.rb +0 -7
  743. data/vendor/gems/active_presenter-0.0.6/lib/active_presenter/base.rb +0 -204
  744. data/vendor/gems/active_presenter-0.0.6/lib/active_presenter/version.rb +0 -9
  745. data/vendor/gems/active_presenter-0.0.6/lib/tasks/doc.rake +0 -19
  746. data/vendor/gems/active_presenter-0.0.6/lib/tasks/gem.rake +0 -62
  747. data/vendor/gems/active_presenter-0.0.6/test/base_test.rb +0 -188
  748. data/vendor/gems/active_presenter-0.0.6/test/test_helper.rb +0 -74
  749. data/vendor/plugins/calendar_date_select/History.txt +0 -231
  750. data/vendor/plugins/calendar_date_select/Manifest.txt +0 -42
  751. data/vendor/plugins/calendar_date_select/Rakefile +0 -31
  752. data/vendor/plugins/calendar_date_select/Readme.txt +0 -16
  753. data/vendor/plugins/calendar_date_select/calendar_date_select.gemspec +0 -33
  754. data/vendor/plugins/calendar_date_select/init.rb +0 -1
  755. data/vendor/plugins/calendar_date_select/js_test/functional/cds_test.html +0 -334
  756. data/vendor/plugins/calendar_date_select/js_test/prototype.js +0 -4184
  757. data/vendor/plugins/calendar_date_select/js_test/test.css +0 -40
  758. data/vendor/plugins/calendar_date_select/js_test/unit/cds_helper_methods.html +0 -46
  759. data/vendor/plugins/calendar_date_select/js_test/unittest.js +0 -564
  760. data/vendor/plugins/calendar_date_select/lib/calendar_date_select.rb +0 -33
  761. data/vendor/plugins/calendar_date_select/lib/calendar_date_select/calendar_date_select.rb +0 -116
  762. data/vendor/plugins/calendar_date_select/lib/calendar_date_select/form_helpers.rb +0 -223
  763. data/vendor/plugins/calendar_date_select/lib/calendar_date_select/includes_helper.rb +0 -29
  764. data/vendor/plugins/calendar_date_select/public/blank_iframe.html +0 -2
  765. data/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif +0 -0
  766. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/calendar_date_select.js +0 -443
  767. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_american.js +0 -34
  768. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_db.js +0 -27
  769. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
  770. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
  771. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_finnish.js +0 -32
  772. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -36
  773. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
  774. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_italian.js +0 -24
  775. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/de.js +0 -11
  776. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js +0 -10
  777. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fr.js +0 -10
  778. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pl.js +0 -10
  779. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pt.js +0 -11
  780. data/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ru.js +0 -10
  781. data/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/blue.css +0 -130
  782. data/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/default.css +0 -135
  783. data/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/plain.css +0 -128
  784. data/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/red.css +0 -135
  785. data/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/silver.css +0 -133
  786. data/vendor/plugins/calendar_date_select/spec/calendar_date_select/calendar_date_select_spec.rb +0 -14
  787. data/vendor/plugins/calendar_date_select/spec/calendar_date_select/form_helpers_spec.rb +0 -161
  788. data/vendor/plugins/calendar_date_select/spec/spec_helper.rb +0 -26
  789. data/vendor/plugins/has_many_polymorphs/CHANGELOG +0 -83
  790. data/vendor/plugins/has_many_polymorphs/LICENSE +0 -184
  791. data/vendor/plugins/has_many_polymorphs/Manifest +0 -174
  792. data/vendor/plugins/has_many_polymorphs/README +0 -205
  793. data/vendor/plugins/has_many_polymorphs/Rakefile +0 -28
  794. data/vendor/plugins/has_many_polymorphs/TODO +0 -2
  795. data/vendor/plugins/has_many_polymorphs/examples/hmph.rb +0 -69
  796. data/vendor/plugins/has_many_polymorphs/generators/tagging/tagging_generator.rb +0 -97
  797. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/migration.rb +0 -28
  798. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tag.rb +0 -39
  799. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tag_test.rb +0 -15
  800. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tagging.rb +0 -16
  801. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tagging_extensions.rb +0 -159
  802. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tagging_test.rb +0 -85
  803. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/taggings.yml +0 -23
  804. data/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tags.yml +0 -7
  805. data/vendor/plugins/has_many_polymorphs/init.rb +0 -2
  806. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb +0 -27
  807. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/association.rb +0 -159
  808. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb +0 -70
  809. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/base.rb +0 -60
  810. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb +0 -600
  811. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb +0 -19
  812. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/debugging_tools.rb +0 -103
  813. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/rake_task_redefine_task.rb +0 -35
  814. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/reflection.rb +0 -58
  815. data/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/support_methods.rb +0 -84
  816. data/vendor/plugins/has_many_polymorphs/test/fixtures/bow_wows.yml +0 -10
  817. data/vendor/plugins/has_many_polymorphs/test/fixtures/cats.yml +0 -18
  818. data/vendor/plugins/has_many_polymorphs/test/fixtures/fish.yml +0 -12
  819. data/vendor/plugins/has_many_polymorphs/test/fixtures/frogs.yml +0 -5
  820. data/vendor/plugins/has_many_polymorphs/test/fixtures/keep_your_enemies_close.yml +0 -0
  821. data/vendor/plugins/has_many_polymorphs/test/fixtures/little_whale_pupils.yml +0 -0
  822. data/vendor/plugins/has_many_polymorphs/test/fixtures/people.yml +0 -7
  823. data/vendor/plugins/has_many_polymorphs/test/fixtures/petfoods.yml +0 -11
  824. data/vendor/plugins/has_many_polymorphs/test/fixtures/whales.yml +0 -5
  825. data/vendor/plugins/has_many_polymorphs/test/fixtures/wild_boars.yml +0 -10
  826. data/vendor/plugins/has_many_polymorphs/test/generator/tagging_generator_test.rb +0 -42
  827. data/vendor/plugins/has_many_polymorphs/test/integration/app/README +0 -182
  828. data/vendor/plugins/has_many_polymorphs/test/integration/app/Rakefile +0 -19
  829. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/controllers/application.rb +0 -7
  830. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/controllers/bones_controller.rb +0 -5
  831. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/addresses_helper.rb +0 -2
  832. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/application_helper.rb +0 -3
  833. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/bones_helper.rb +0 -2
  834. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/sellers_helper.rb +0 -28
  835. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/states_helper.rb +0 -2
  836. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/helpers/users_helper.rb +0 -2
  837. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/bone.rb +0 -2
  838. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/double_sti_parent.rb +0 -2
  839. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/double_sti_parent_relationship.rb +0 -2
  840. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/organic_substance.rb +0 -2
  841. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/single_sti_parent.rb +0 -4
  842. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/single_sti_parent_relationship.rb +0 -4
  843. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/stick.rb +0 -2
  844. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/models/stone.rb +0 -2
  845. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/addresses/edit.html.erb +0 -12
  846. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/addresses/index.html.erb +0 -18
  847. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/addresses/new.html.erb +0 -11
  848. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/addresses/show.html.erb +0 -3
  849. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/bones/index.rhtml +0 -5
  850. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/layouts/addresses.html.erb +0 -17
  851. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/layouts/sellers.html.erb +0 -17
  852. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/layouts/states.html.erb +0 -17
  853. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/layouts/users.html.erb +0 -17
  854. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/sellers/edit.html.erb +0 -12
  855. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/sellers/index.html.erb +0 -20
  856. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/sellers/new.html.erb +0 -11
  857. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/sellers/show.html.erb +0 -3
  858. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/edit.html.erb +0 -12
  859. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/index.html.erb +0 -19
  860. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/new.html.erb +0 -11
  861. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/show.html.erb +0 -3
  862. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/users/edit.html.erb +0 -12
  863. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/users/index.html.erb +0 -22
  864. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/users/new.html.erb +0 -11
  865. data/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/users/show.html.erb +0 -3
  866. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/boot.rb +0 -110
  867. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/database.yml +0 -17
  868. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/environment.rb +0 -19
  869. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/environment.rb.canonical +0 -19
  870. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/environments/development.rb +0 -8
  871. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/environments/production.rb +0 -18
  872. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/environments/test.rb +0 -19
  873. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/routes.rb +0 -33
  874. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/ultrasphinx/default.base +0 -56
  875. data/vendor/plugins/has_many_polymorphs/test/integration/app/config/ultrasphinx/development.conf.canonical +0 -155
  876. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/001_create_sticks.rb +0 -11
  877. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/002_create_stones.rb +0 -11
  878. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/003_create_organic_substances.rb +0 -11
  879. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/004_create_bones.rb +0 -8
  880. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/005_create_single_sti_parents.rb +0 -11
  881. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/006_create_double_sti_parents.rb +0 -11
  882. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb +0 -13
  883. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb +0 -14
  884. data/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/009_create_library_model.rb +0 -11
  885. data/vendor/plugins/has_many_polymorphs/test/integration/app/doc/README_FOR_APP +0 -2
  886. data/vendor/plugins/has_many_polymorphs/test/integration/app/generators/commenting_generator_test.rb +0 -83
  887. data/vendor/plugins/has_many_polymorphs/test/integration/app/lib/library_model.rb +0 -2
  888. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/404.html +0 -30
  889. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/500.html +0 -30
  890. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.cgi +0 -10
  891. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.fcgi +0 -24
  892. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.rb +0 -10
  893. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/favicon.ico +0 -0
  894. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/images/rails.png +0 -0
  895. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/index.html +0 -277
  896. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/application.js +0 -2
  897. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/controls.js +0 -833
  898. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/dragdrop.js +0 -942
  899. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/effects.js +0 -1088
  900. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/prototype.js +0 -2515
  901. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/robots.txt +0 -1
  902. data/vendor/plugins/has_many_polymorphs/test/integration/app/public/stylesheets/scaffold.css +0 -74
  903. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/about +0 -3
  904. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/breakpointer +0 -3
  905. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/console +0 -3
  906. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/destroy +0 -3
  907. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/generate +0 -3
  908. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/benchmarker +0 -3
  909. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/profiler +0 -3
  910. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/plugin +0 -3
  911. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/process/inspector +0 -3
  912. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/process/reaper +0 -3
  913. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/process/spawner +0 -3
  914. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/runner +0 -3
  915. data/vendor/plugins/has_many_polymorphs/test/integration/app/script/server +0 -3
  916. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/double_sti_parent_relationships.yml +0 -7
  917. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/double_sti_parents.yml +0 -7
  918. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/organic_substances.yml +0 -5
  919. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/single_sti_parent_relationships.yml +0 -7
  920. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/single_sti_parents.yml +0 -7
  921. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/sticks.yml +0 -7
  922. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/fixtures/stones.yml +0 -7
  923. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/functional/addresses_controller_test.rb +0 -57
  924. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/functional/bones_controller_test.rb +0 -8
  925. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/functional/sellers_controller_test.rb +0 -57
  926. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/functional/states_controller_test.rb +0 -57
  927. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/functional/users_controller_test.rb +0 -57
  928. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/test_helper.rb +0 -8
  929. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/bone_test.rb +0 -8
  930. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/double_sti_parent_relationship_test.rb +0 -8
  931. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/double_sti_parent_test.rb +0 -8
  932. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/organic_substance_test.rb +0 -8
  933. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/single_sti_parent_relationship_test.rb +0 -8
  934. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/single_sti_parent_test.rb +0 -8
  935. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/stick_test.rb +0 -8
  936. data/vendor/plugins/has_many_polymorphs/test/integration/app/test/unit/stone_test.rb +0 -8
  937. data/vendor/plugins/has_many_polymorphs/test/integration/server_test.rb +0 -43
  938. data/vendor/plugins/has_many_polymorphs/test/models/aquatic/fish.rb +0 -5
  939. data/vendor/plugins/has_many_polymorphs/test/models/aquatic/pupils_whale.rb +0 -7
  940. data/vendor/plugins/has_many_polymorphs/test/models/aquatic/whale.rb +0 -15
  941. data/vendor/plugins/has_many_polymorphs/test/models/beautiful_fight_relationship.rb +0 -26
  942. data/vendor/plugins/has_many_polymorphs/test/models/canine.rb +0 -9
  943. data/vendor/plugins/has_many_polymorphs/test/models/cat.rb +0 -5
  944. data/vendor/plugins/has_many_polymorphs/test/models/dog.rb +0 -18
  945. data/vendor/plugins/has_many_polymorphs/test/models/eaters_foodstuff.rb +0 -10
  946. data/vendor/plugins/has_many_polymorphs/test/models/frog.rb +0 -4
  947. data/vendor/plugins/has_many_polymorphs/test/models/kitten.rb +0 -3
  948. data/vendor/plugins/has_many_polymorphs/test/models/parentship.rb +0 -4
  949. data/vendor/plugins/has_many_polymorphs/test/models/person.rb +0 -9
  950. data/vendor/plugins/has_many_polymorphs/test/models/petfood.rb +0 -39
  951. data/vendor/plugins/has_many_polymorphs/test/models/tabby.rb +0 -2
  952. data/vendor/plugins/has_many_polymorphs/test/models/wild_boar.rb +0 -3
  953. data/vendor/plugins/has_many_polymorphs/test/modules/extension_module.rb +0 -9
  954. data/vendor/plugins/has_many_polymorphs/test/modules/other_extension_module.rb +0 -9
  955. data/vendor/plugins/has_many_polymorphs/test/patches/symlinked_plugins_1.2.6.diff +0 -46
  956. data/vendor/plugins/has_many_polymorphs/test/schema.rb +0 -87
  957. data/vendor/plugins/has_many_polymorphs/test/setup.rb +0 -14
  958. data/vendor/plugins/has_many_polymorphs/test/test_helper.rb +0 -51
  959. data/vendor/plugins/has_many_polymorphs/test/unit/has_many_polymorphs_test.rb +0 -714
@@ -0,0 +1,98 @@
1
+ ;;; sass-mode.el --- Major mode for editing Sass files
2
+
3
+ ;; Copyright (c) 2007, 2008 Nathan Weizenbaum
4
+
5
+ ;; Author: Nathan Weizenbaum
6
+ ;; URL: http://github.com/nex3/haml/tree/master
7
+ ;; Version: 1.0
8
+ ;; Keywords: markup, language
9
+
10
+ ;;; Commentary:
11
+
12
+ ;; Because Sass's indentation schema is similar
13
+ ;; to that of YAML and Python, many indentation-related
14
+ ;; functions are similar to those in yaml-mode and python-mode.
15
+
16
+ ;; To install, save this on your load path and add the following to
17
+ ;; your .emacs file:
18
+ ;;
19
+ ;; (require 'sass-mode)
20
+
21
+ ;;; Code:
22
+
23
+ (require 'haml-mode)
24
+
25
+ ;; User definable variables
26
+
27
+ (defgroup sass nil
28
+ "Support for the Sass template language."
29
+ :group 'languages
30
+ :prefix "sass-")
31
+
32
+ (defcustom sass-mode-hook nil
33
+ "Hook run when entering Sass mode."
34
+ :type 'hook
35
+ :group 'sass)
36
+
37
+ (defcustom sass-indent-offset 2
38
+ "Amount of offset per level of indentation."
39
+ :type 'integer
40
+ :group 'sass)
41
+
42
+ (defvar sass-non-block-openers
43
+ '("^ *:[^ \t]+[ \t]+[^ \t]"
44
+ "^ *[^ \t:]+[ \t]*[=:][ \t]*[^ \t]")
45
+ "A list of regexps that match lines of Sass that couldn't have
46
+ text nested beneath them.")
47
+
48
+ ;; Font lock
49
+
50
+ (defconst sass-font-lock-keywords
51
+ '(("^ *\\(\t\\)" 1 'haml-tab-face)
52
+ ("^@.*" 0 font-lock-constant-face)
53
+ ("\\(\'[^']*'\\)" 1 font-lock-string-face append)
54
+ ("\\(\"[^\"]*\"\\)" 1 font-lock-string-face append)
55
+ ("\\(#[0-9a-fA-F]\\{3\\}\\{1,2\\}\\>\\)" 1 font-lock-string-face append)
56
+ ("\\(:[A-Za-z-]+\\|[A-Za-z-]+:\\)" 0 font-lock-constant-face append)
57
+ ("![a-z0-9_-]+" 0 font-lock-variable-name-face append)
58
+ ("^ *\\(/[/*].*\\)$" 1 font-lock-comment-face append)
59
+ ("\\(?:^\\|,\\) *\\(#[a-z0-9_-]+\/?\\)" 1 font-lock-keyword-face)
60
+ ("\\(?:^\\|,\\) *\\(\\.[a-z0-9_-]+\/?\\)" 1 font-lock-type-face)
61
+ ("\\(?:^\\|,\\) *\\(&\\|[a-z0-9_]+\/?\\)" 1 font-lock-function-name-face)
62
+ ("\\([=]\\)" 0 font-lock-preprocessor-face prepend)
63
+ ("\\(?:^\\|,\\) *\\(#[a-z0-9_]+\/?\\)" (1 font-lock-keyword-face)
64
+ ("\\.[a-z0-9_-]+" nil nil (0 font-lock-type-face)))
65
+ ("\\(?:^\\|,\\) *\\(\\.[a-z0-9_]+\/?\\)" (1 font-lock-type-face)
66
+ ("\\.[a-z0-9_-]+" nil nil (0 font-lock-type-face)))
67
+ ("\\(?:^\\|,\\) *\\(\\.[a-z0-9_]+\/?\\)" (1 font-lock-type-face)
68
+ ("\\#[a-z0-9_-]+" nil nil (0 font-lock-keyword-face)))
69
+ ("\\(?:^\\|,\\) *\\(&\\|[a-z0-9_]+\/?\\)" (1 font-lock-function-name-face)
70
+ ("\\.[a-z0-9_-]+" nil nil (0 font-lock-type-face)))
71
+ ("\\(?:^\\|,\\) *\\(&\\|[a-z0-9_]+\/?\\)" (1 font-lock-function-name-face)
72
+ ("\\#[a-z0-9_-]+" nil nil (0 font-lock-keyword-face)))))
73
+
74
+ ;; Constants
75
+
76
+ ;; Mode setup
77
+
78
+ ;;;###autoload
79
+ (define-derived-mode sass-mode haml-mode "Sass"
80
+ "Major mode for editing Sass files."
81
+ (set (make-local-variable 'haml-indent-function) 'sass-indent-p)
82
+ (set (make-local-variable 'haml-indent-offset) sass-indent-offset)
83
+ (setq font-lock-defaults '(sass-font-lock-keywords nil t)))
84
+
85
+ ;; Indentation
86
+
87
+ (defun sass-indent-p ()
88
+ "Returns true if the current line can have lines nested beneath it."
89
+ (loop for opener in sass-non-block-openers
90
+ unless (looking-at opener) return t
91
+ return nil))
92
+
93
+ ;;;###autoload
94
+ (add-to-list 'auto-mode-alist '("\\.sass$" . sass-mode))
95
+
96
+ ;; Setup/Activation
97
+ (provide 'sass-mode)
98
+ ;;; sass-mode.el ends here
@@ -0,0 +1,8 @@
1
+ begin
2
+ require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
3
+ rescue LoadError
4
+ require 'haml' # From gem
5
+ end
6
+
7
+ # Load Haml and Sass
8
+ Haml.init_rails(binding)
@@ -0,0 +1,1042 @@
1
+ dir = File.dirname(__FILE__)
2
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
3
+
4
+ require 'haml/version'
5
+
6
+ # = Haml (XHTML Abstraction Markup Language)
7
+ #
8
+ # Haml is a markup language
9
+ # that's used to cleanly and simply describe the XHTML of any web document,
10
+ # without the use of inline code.
11
+ # Haml functions as a replacement
12
+ # for inline page templating systems such as PHP, ERB, and ASP.
13
+ # However, Haml avoids the need for explicitly coding XHTML into the template,
14
+ # because it is actually an abstract description of the XHTML,
15
+ # with some code to generate dynamic content.
16
+ #
17
+ # == Features
18
+ #
19
+ # * Whitespace active
20
+ # * Well-formatted markup
21
+ # * DRY
22
+ # * Follows CSS conventions
23
+ # * Integrates Ruby code
24
+ # * Implements Rails templates with the .haml extension
25
+ #
26
+ # == Using Haml
27
+ #
28
+ # Haml can be used in three ways:
29
+ # as a plugin for Ruby on Rails,
30
+ # as a standalone Ruby module,
31
+ # and as a command-line tool.
32
+ # The first step for all of these is to install the Haml gem:
33
+ #
34
+ # gem install haml
35
+ #
36
+ # To enable it as a Rails plugin,
37
+ # then run
38
+ #
39
+ # haml --rails path/to/rails/app
40
+ #
41
+ # Once it's installed, all view files with the ".html.haml" extension
42
+ # will be compiled using Haml.
43
+ #
44
+ # To run Haml from the command line, just use
45
+ #
46
+ # haml input.haml output.html
47
+ #
48
+ # Use <tt>haml --help</tt> for full documentation.
49
+ #
50
+ # You can access instance variables in Haml templates
51
+ # the same way you do in ERb templates.
52
+ # Helper methods are also available in Haml templates.
53
+ # For example (this example uses Rails, but the principle for Merb is the same):
54
+ #
55
+ # # file: app/controllers/movies_controller.rb
56
+ #
57
+ # class MoviesController < ApplicationController
58
+ # def index
59
+ # @title = "Teen Wolf"
60
+ # end
61
+ # end
62
+ #
63
+ # -# file: app/views/movies/index.haml
64
+ #
65
+ # #content
66
+ # .title
67
+ # %h1= @title
68
+ # = link_to 'Home', home_url
69
+ #
70
+ # may be compiled to:
71
+ #
72
+ # <div id='content'>
73
+ # <div class='title'>
74
+ # <h1>Teen Wolf</h1>
75
+ # <a href='/'>Home</a>
76
+ # </div>
77
+ # </div>
78
+ #
79
+ # === Ruby Module
80
+ #
81
+ # Haml can also be used completely separately from Rails and ActionView.
82
+ # To do this, install the gem with RubyGems:
83
+ #
84
+ # gem install haml
85
+ #
86
+ # You can then use it by including the "haml" gem in Ruby code,
87
+ # and using Haml::Engine like so:
88
+ #
89
+ # engine = Haml::Engine.new("%p Haml code!")
90
+ # engine.render #=> "<p>Haml code!</p>\n"
91
+ #
92
+ # == Characters with meaning to Haml
93
+ #
94
+ # Various characters, when placed at a certain point in a line,
95
+ # instruct Haml to render different types of things.
96
+ #
97
+ # === XHTML Tags
98
+ #
99
+ # These characters render XHTML tags.
100
+ #
101
+ # ==== %
102
+ #
103
+ # The percent character is placed at the beginning of a line.
104
+ # It's followed immediately by the name of an element,
105
+ # then optionally by modifiers (see below), a space,
106
+ # and text to be rendered inside the element.
107
+ # It creates an element in the form of <tt><element></element></tt>.
108
+ # For example:
109
+ #
110
+ # %one
111
+ # %two
112
+ # %three Hey there
113
+ #
114
+ # is compiled to:
115
+ #
116
+ # <one>
117
+ # <two>
118
+ # <three>Hey there</three>
119
+ # </two>
120
+ # </one>
121
+ #
122
+ # Any string is a valid element name;
123
+ # Haml will automatically generate opening and closing tags for any element.
124
+ #
125
+ # ==== {}
126
+ #
127
+ # Brackets represent a Ruby hash
128
+ # that is used for specifying the attributes of an element.
129
+ # It is literally evaluated as a Ruby hash,
130
+ # so logic will work in it and local variables may be used.
131
+ # Quote characters within the attribute
132
+ # will be replaced by appropriate escape sequences.
133
+ # The hash is placed after the tag is defined.
134
+ # For example:
135
+ #
136
+ # %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
137
+ #
138
+ # is compiled to:
139
+ #
140
+ # <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'></html>
141
+ #
142
+ # Attribute hashes can also be stretched out over multiple lines
143
+ # to accomidate many attributes.
144
+ # However, newlines may only be placed immediately after commas.
145
+ # For example:
146
+ #
147
+ # %script{:type => "text/javascript",
148
+ # :src => "javascripts/script_#{2 + 7}"}
149
+ #
150
+ # is compiled to:
151
+ #
152
+ # <script src='javascripts/script_9' type='text/javascript'></script>
153
+ #
154
+ # ===== Attribute Methods
155
+ #
156
+ # A Ruby method call that returns a hash
157
+ # can be substituted for the hash contents.
158
+ # For example, Haml::Helpers defines the following method:
159
+ #
160
+ # def html_attrs(lang = 'en-US')
161
+ # {:xmlns => "http://www.w3.org/1999/xhtml", 'xml:lang' => lang, :lang => lang}
162
+ # end
163
+ #
164
+ # This can then be used in Haml, like so:
165
+ #
166
+ # %html{html_attrs('fr-fr')}
167
+ #
168
+ # This is compiled to:
169
+ #
170
+ # <html lang='fr-fr' xml:lang='fr-fr' xmlns='http://www.w3.org/1999/xhtml'>
171
+ # </html>
172
+ #
173
+ # You can use as many such attribute methods as you want
174
+ # by separating them with commas,
175
+ # like a Ruby argument list.
176
+ # All the hashes will me merged together, from left to right.
177
+ # For example, if you defined
178
+ #
179
+ # def hash1
180
+ # {:bread => 'white', :filling => 'peanut butter and jelly'}
181
+ # end
182
+ #
183
+ # def hash2
184
+ # {:bread => 'whole wheat'}
185
+ # end
186
+ #
187
+ # then
188
+ #
189
+ # %sandwich{hash1, hash2, :delicious => true}/
190
+ #
191
+ # would compile to:
192
+ #
193
+ # <sandwich bread='whole wheat' delicious='true' filling='peanut butter and jelly' />
194
+ #
195
+ # Note that the Haml attributes list has the same syntax as a Ruby method call.
196
+ # This means that any attribute methods must come before the hash literal.
197
+ #
198
+ # ===== Boolean Attributes
199
+ #
200
+ # Some attributes, such as "checked" for <tt>input</tt> tags or "selected" for <tt>option</tt> tags,
201
+ # are "boolean" in the sense that their values don't matter -
202
+ # it only matters whether or not they're present.
203
+ # In HTML (but not XHTML), these attributes can be written as
204
+ #
205
+ # <input selected>
206
+ #
207
+ # To do this in Haml, just assign a Ruby true value to the attribute:
208
+ #
209
+ # %input{:selected => true}
210
+ #
211
+ # In XHTML, the only valid value for these attributes is the name of the attribute.
212
+ # Thus this will render in XHTML as
213
+ #
214
+ # <input selected='selected'>
215
+ #
216
+ # To set these attributes to false, simply assign them to a Ruby false value.
217
+ # In both XHTML and HTML
218
+ #
219
+ # %input{:selected => false}
220
+ #
221
+ # will just render as
222
+ #
223
+ # <input>
224
+ #
225
+ # ==== . and #
226
+ #
227
+ # The period and pound sign are borrowed from CSS.
228
+ # They are used as shortcuts to specify the <tt>class</tt>
229
+ # and <tt>id</tt> attributes of an element, respectively.
230
+ # Multiple class names can be specified in a similar way to CSS,
231
+ # by chaining the class names together with periods.
232
+ # They are placed immediately after the tag and before an attributes hash.
233
+ # For example:
234
+ #
235
+ # %div#things
236
+ # %span#rice Chicken Fried
237
+ # %p.beans{ :food => 'true' } The magical fruit
238
+ # %h1.class.otherclass#id La La La
239
+ #
240
+ # is compiled to:
241
+ #
242
+ # <div id='things'>
243
+ # <span id='rice'>Chicken Fried</span>
244
+ # <p class='beans' food='true'>The magical fruit</p>
245
+ # <h1 class='class otherclass' id='id'>La La La</h1>
246
+ # </div>
247
+ #
248
+ # And,
249
+ #
250
+ # #content
251
+ # .articles
252
+ # .article.title
253
+ # Doogie Howser Comes Out
254
+ # .article.date
255
+ # 2006-11-05
256
+ # .article.entry
257
+ # Neil Patrick Harris would like to dispel any rumors that he is straight
258
+ #
259
+ # is compiled to:
260
+ #
261
+ # <div id='content'>
262
+ # <div class='articles'>
263
+ # <div class='article title'>Doogie Howser Comes Out</div>
264
+ # <div class='article date'>2006-11-05</div>
265
+ # <div class='article entry'>
266
+ # Neil Patrick Harris would like to dispel any rumors that he is straight
267
+ # </div>
268
+ # </div>
269
+ # </div>
270
+ #
271
+ # ==== Implicit Div Elements
272
+ #
273
+ # Because the div element is used so often, it is the default element.
274
+ # If you only define a class and/or id using the <tt>.</tt> or <tt>#</tt> syntax,
275
+ # a div element is automatically used.
276
+ # For example:
277
+ #
278
+ # #collection
279
+ # .item
280
+ # .description What a cool item!
281
+ #
282
+ # is the same as:
283
+ #
284
+ # %div{:id => collection}
285
+ # %div{:class => 'item'}
286
+ # %div{:class => 'description'} What a cool item!
287
+ #
288
+ # and is compiled to:
289
+ #
290
+ # <div id='collection'>
291
+ # <div class='item'>
292
+ # <div class='description'>What a cool item!</div>
293
+ # </div>
294
+ # </div>
295
+ #
296
+ # ==== /
297
+ #
298
+ # The forward slash character, when placed at the end of a tag definition,
299
+ # causes the tag to be self-closed.
300
+ # For example:
301
+ #
302
+ # %br/
303
+ # %meta{'http-equiv' => 'Content-Type', :content => 'text/html'}/
304
+ #
305
+ # is compiled to:
306
+ #
307
+ # <br />
308
+ # <meta http-equiv='Content-Type' content='text/html' />
309
+ #
310
+ # Some tags are automatically closed, as long as they have no content.
311
+ # +meta+, +img+, +link+, +script+, +br+, and +hr+ tags are closed by default.
312
+ # This list can be customized by setting the <tt>:autoclose</tt> option (see below).
313
+ # For example:
314
+ #
315
+ # %br
316
+ # %meta{'http-equiv' => 'Content-Type', :content => 'text/html'}
317
+ #
318
+ # is also compiled to:
319
+ #
320
+ # <br />
321
+ # <meta http-equiv='Content-Type' content='text/html' />
322
+ #
323
+ # ==== []
324
+ #
325
+ # Square brackets follow a tag definition and contain a Ruby object
326
+ # that is used to set the class and id of that tag.
327
+ # The class is set to the object's class
328
+ # (transformed to use underlines rather than camel case)
329
+ # and the id is set to the object's class, followed by its id.
330
+ # Because the id of an object is normally an obscure implementation detail,
331
+ # this is most useful for elements that represent instances of Models.
332
+ # Additionally, the second argument (if present) will be used as a prefix for
333
+ # both the id and class attributes.
334
+ # For example:
335
+ #
336
+ # # file: app/controllers/users_controller.rb
337
+ #
338
+ # def show
339
+ # @user = CrazyUser.find(15)
340
+ # end
341
+ #
342
+ # -# file: app/views/users/show.haml
343
+ #
344
+ # %div[@user, :greeting]
345
+ # %bar[290]/
346
+ # Hello!
347
+ #
348
+ # is compiled to:
349
+ #
350
+ # <div class='greeting_crazy_user' id='greeting_crazy_user_15'>
351
+ # <bar class='fixnum' id='fixnum_581' />
352
+ # Hello!
353
+ # </div>
354
+ #
355
+ # ==== > and <
356
+ #
357
+ # <tt>></tt> and <tt><</tt> give you more control over the whitespace near a tag.
358
+ # <tt>></tt> will remove all whitespace surrounding a tag,
359
+ # while <tt><</tt> will remove all whitespace immediately within a tag.
360
+ # You can think of them as alligators eating the whitespace:
361
+ # <tt>></tt> faces out of the tag and eats the whitespace on the outside,
362
+ # and <tt><</tt> faces into the tag and eats the whitespace on the inside.
363
+ # They're placed at the end of a tag definition,
364
+ # after class, id, and attribute declarations
365
+ # but before <tt>/</tt> or <tt>=</tt>.
366
+ # For example:
367
+ #
368
+ # %blockquote<
369
+ # %div
370
+ # Foo!
371
+ #
372
+ # is compiled to:
373
+ #
374
+ # <blockquote><div>
375
+ # Foo!
376
+ # </div></blockquote>
377
+ #
378
+ # And:
379
+ #
380
+ # %img
381
+ # %img>
382
+ # %img
383
+ #
384
+ # is compiled to:
385
+ #
386
+ # <img /><img /><img />
387
+ #
388
+ # And:
389
+ #
390
+ # %p<= "Foo\nBar"
391
+ #
392
+ # is compiled to:
393
+ #
394
+ # <p>Foo
395
+ # Bar</p>
396
+ #
397
+ # And finally:
398
+ #
399
+ # %img
400
+ # %pre><
401
+ # foo
402
+ # bar
403
+ # %img
404
+ #
405
+ # is compiled to:
406
+ #
407
+ # <img /><pre>foo
408
+ # bar</pre><img />
409
+ #
410
+ # ==== =
411
+ #
412
+ # <tt>=</tt> is placed at the end of a tag definition,
413
+ # after class, id, and attribute declarations.
414
+ # It's just a shortcut for inserting Ruby code into an element.
415
+ # It works the same as <tt>=</tt> without a tag:
416
+ # it inserts the result of the Ruby code into the template.
417
+ # However, if the result is short enough,
418
+ # it is displayed entirely on one line.
419
+ # For example:
420
+ #
421
+ # %p= "hello"
422
+ #
423
+ # is not quite the same as:
424
+ #
425
+ # %p
426
+ # = "hello"
427
+ #
428
+ # It's compiled to:
429
+ #
430
+ # <p>hello</p>
431
+ #
432
+ # ==== #{}
433
+ #
434
+ # Ruby code can also be interpolated within plain text using <tt>#{}</tt>,
435
+ # similarly to Ruby string interpolation.
436
+ # For example,
437
+ #
438
+ # %p This is #{h quality} cake!
439
+ #
440
+ # is the same as
441
+ #
442
+ # %p= "This is the #{h quality} cake!"
443
+ #
444
+ # and might compile to
445
+ #
446
+ # <p>This is scrumptious cake!</p>
447
+ #
448
+ # Backslashes can be used to escape "#{" strings,
449
+ # but they don't act as escapes anywhere else in the string.
450
+ # For example:
451
+ #
452
+ # %p
453
+ # \\ Look at \\#{h word} lack of backslash: \#{foo}
454
+ #
455
+ # might compile to
456
+ #
457
+ # <p>
458
+ # \\ Look at \yon lack of backslash: #{foo}
459
+ # </p>
460
+ #
461
+ # ==== ~
462
+ #
463
+ # ~ works just like =, except that it runs Haml::Helpers#find_and_preserve on its input.
464
+ # For example,
465
+ #
466
+ # ~ "Foo\n<pre>Bar\nBaz</pre>"
467
+ #
468
+ # is the same as:
469
+ #
470
+ # = find_and_preserve("Foo\n<pre>Bar\nBaz</pre>")
471
+ #
472
+ # and is compiled to:
473
+ #
474
+ # Foo
475
+ # <pre>Bar&#x000A;Baz</pre>
476
+ #
477
+ # See also Whitespace Preservation, below.
478
+ #
479
+ # === XHTML Helpers
480
+ #
481
+ # ==== No Special Character
482
+ #
483
+ # If no special character appears at the beginning of a line,
484
+ # the line is rendered as plain text.
485
+ # For example:
486
+ #
487
+ # %gee
488
+ # %whiz
489
+ # Wow this is cool!
490
+ #
491
+ # is compiled to:
492
+ #
493
+ # <gee>
494
+ # <whiz>
495
+ # Wow this is cool!
496
+ # </whiz>
497
+ # </gee>
498
+ #
499
+ # ==== !!!
500
+ #
501
+ # When describing XHTML documents with Haml,
502
+ # you can have a document type or XML prolog generated automatically
503
+ # by including the characters <tt>!!!</tt>.
504
+ # For example:
505
+ #
506
+ # !!! XML
507
+ # !!!
508
+ # %html
509
+ # %head
510
+ # %title Myspace
511
+ # %body
512
+ # %h1 I am the international space station
513
+ # %p Sign my guestbook
514
+ #
515
+ # is compiled to:
516
+ #
517
+ # <?xml version='1.0' encoding='utf-8' ?>
518
+ # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
519
+ # <html>
520
+ # <head>
521
+ # <title>Myspace</title>
522
+ # </head>
523
+ # <body>
524
+ # <h1>I am the international space station</h1>
525
+ # <p>Sign my guestbook</p>
526
+ # </body>
527
+ # </html>
528
+ #
529
+ # You can also specify the version and type of XHTML after the <tt>!!!</tt>.
530
+ # XHTML 1.0 Strict, Transitional, and Frameset and XHTML 1.1 are supported.
531
+ # The default version is 1.0 and the default type is Transitional.
532
+ # For example:
533
+ #
534
+ # !!! 1.1
535
+ #
536
+ # is compiled to:
537
+ #
538
+ # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
539
+ #
540
+ # and
541
+ #
542
+ # !!! Strict
543
+ #
544
+ # is compiled to:
545
+ #
546
+ # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
547
+ #
548
+ # while
549
+ #
550
+ # !!! Basic
551
+ #
552
+ # is compiled to:
553
+ #
554
+ # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
555
+ #
556
+ # and
557
+ #
558
+ # !!! Mobile
559
+ #
560
+ # is compiled to:
561
+ #
562
+ # <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
563
+ #
564
+ # If you're not using the UTF-8 character set for your document,
565
+ # you can specify which encoding should appear
566
+ # in the XML prolog in a similar way.
567
+ # For example:
568
+ #
569
+ # !!! XML iso-8859-1
570
+ #
571
+ # is compiled to:
572
+ #
573
+ # <?xml version='1.0' encoding='iso-8859-1' ?>
574
+ #
575
+ # ==== /
576
+ #
577
+ # The forward slash character, when placed at the beginning of a line,
578
+ # wraps all text after it in an HTML comment.
579
+ # For example:
580
+ #
581
+ # %peanutbutterjelly
582
+ # / This is the peanutbutterjelly element
583
+ # I like sandwiches!
584
+ #
585
+ # is compiled to:
586
+ #
587
+ # <peanutbutterjelly>
588
+ # <!-- This is the peanutbutterjelly element -->
589
+ # I like sandwiches!
590
+ # </peanutbutterjelly>
591
+ #
592
+ # The forward slash can also wrap indented sections of code. For example:
593
+ #
594
+ # /
595
+ # %p This doesn't render...
596
+ # %div
597
+ # %h1 Because it's commented out!
598
+ #
599
+ # is compiled to:
600
+ #
601
+ # <!--
602
+ # <p>This doesn't render...</p>
603
+ # <div>
604
+ # <h1>Because it's commented out!</h1>
605
+ # </div>
606
+ # -->
607
+ #
608
+ # You can also use Internet Explorer conditional comments
609
+ # (about)[http://www.quirksmode.org/css/condcom.html]
610
+ # by enclosing the condition in square brackets after the <tt>/</tt>.
611
+ # For example:
612
+ #
613
+ # /[if IE]
614
+ # %a{ :href => 'http://www.mozilla.com/en-US/firefox/' }
615
+ # %h1 Get Firefox
616
+ #
617
+ # is compiled to:
618
+ #
619
+ # <!--[if IE]>
620
+ # <a href='http://www.mozilla.com/en-US/firefox/'>
621
+ # <h1>Get Firefox</h1>
622
+ # </a>
623
+ # <![endif]-->
624
+ #
625
+ # ==== \
626
+ #
627
+ # The backslash character escapes the first character of a line,
628
+ # allowing use of otherwise interpreted characters as plain text.
629
+ # For example:
630
+ #
631
+ # %title
632
+ # = @title
633
+ # \- MySite
634
+ #
635
+ # is compiled to:
636
+ #
637
+ # <title>
638
+ # MyPage
639
+ # - MySite
640
+ # </title>
641
+ #
642
+ # ==== |
643
+ #
644
+ # The pipe character designates a multiline string.
645
+ # It's placed at the end of a line
646
+ # and means that all following lines that end with <tt>|</tt>
647
+ # will be evaluated as though they were on the same line.
648
+ # For example:
649
+ #
650
+ # %whoo
651
+ # %hoo I think this might get |
652
+ # pretty long so I should |
653
+ # probably make it |
654
+ # multiline so it doesn't |
655
+ # look awful. |
656
+ # %p This is short.
657
+ #
658
+ # is compiled to:
659
+ #
660
+ # <whoo>
661
+ # <hoo>
662
+ # I think this might get pretty long so I should probably make it multiline so it doesn't look awful.
663
+ # </hoo>
664
+ # <p>This is short</p>
665
+ # </whoo>
666
+ #
667
+ # ==== :
668
+ #
669
+ # The colon character designates a filter.
670
+ # This allows you to pass an indented block of text as input
671
+ # to another filtering program and add the result to the output of Haml.
672
+ # The syntax is simply a colon followed by the name of the filter.
673
+ # For example,
674
+ #
675
+ # %p
676
+ # :markdown
677
+ # Textile
678
+ # =======
679
+ #
680
+ # Hello, *World*
681
+ #
682
+ # is compiled to
683
+ #
684
+ # <p>
685
+ # <h1>Textile</h1>
686
+ #
687
+ # <p>Hello, <em>World</em></p>
688
+ # </p>
689
+ #
690
+ # Filters can have Ruby code interpolated, like with ==.
691
+ # For example,
692
+ #
693
+ # - flavor = "raspberry"
694
+ # #content
695
+ # :textile
696
+ # I *really* prefer _#{h flavor}_ jam.
697
+ #
698
+ # is compiled to
699
+ #
700
+ # <div id='content'>
701
+ # <p>I <strong>really</strong> prefer <em>raspberry</em> jam.</p>
702
+ # </div>
703
+ #
704
+ # Haml has the following filters defined:
705
+ #
706
+ # [plain] Does not parse the filtered text.
707
+ # This is useful for large blocks of text without HTML tags,
708
+ # when you don't want lines starting with <tt>.</tt> or <tt>-</tt>
709
+ # to be parsed.
710
+ #
711
+ # [javascript] Surrounds the filtered text with <script> and CDATA tags.
712
+ # Useful for including inline Javascript.
713
+ #
714
+ # [escaped] Works the same as plain, but HTML-escapes the text
715
+ # before placing it in the document.
716
+ #
717
+ # [ruby] Parses the filtered text with the normal Ruby interpreter.
718
+ # All output sent to <tt>$stdout</tt>, like with +puts+,
719
+ # is output into the Haml document.
720
+ # Not available if the <tt>suppress_eval</tt> option is set to true.
721
+ # The Ruby code is evaluated in the same context as the Haml template.
722
+ #
723
+ # [preserve] Inserts the filtered text into the template with whitespace preserved.
724
+ # <tt>preserve</tt>d blocks of text aren't indented,
725
+ # and newlines are replaced with the HTML escape code for newlines,
726
+ # to preserve nice-looking output.
727
+ # See also Whitespace Preservation, below.
728
+ #
729
+ # [erb] Parses the filtered text with ERB, like an RHTML template.
730
+ # Not available if the <tt>suppress_eval</tt> option is set to true.
731
+ # Embedded Ruby code is evaluated in the same context as the Haml template.
732
+ #
733
+ # [sass] Parses the filtered text with Sass to produce CSS output.
734
+ #
735
+ # [textile] Parses the filtered text with Textile (http://www.textism.com/tools/textile).
736
+ # Only works if RedCloth is installed.
737
+ #
738
+ # [markdown] Parses the filtered text with Markdown (http://daringfireball.net/projects/markdown).
739
+ # Only works if RDiscount, RPeg-Markdown, Maruku, or BlueCloth are installed.
740
+ #
741
+ # [maruku] Parses the filtered text with Maruku, which has some non-standard extensions to Markdown.
742
+ #
743
+ # You can also define your own filters (see Haml::Filters).
744
+ #
745
+ # === Ruby evaluators
746
+ #
747
+ # ==== =
748
+ #
749
+ # The equals character is followed by Ruby code,
750
+ # which is evaluated and the output inserted into the document as plain text.
751
+ # For example:
752
+ #
753
+ # %p
754
+ # = ['hi', 'there', 'reader!'].join " "
755
+ # = "yo"
756
+ #
757
+ # is compiled to:
758
+ #
759
+ # <p>
760
+ # hi there reader!
761
+ # yo
762
+ # </p>
763
+ #
764
+ # If the <tt>:escape_html</tt> option is set, <tt>=</tt> will sanitize any
765
+ # HTML-sensitive characters generated by the script. For example:
766
+ #
767
+ # = '<script>alert("I\'m evil!");</script>'
768
+ #
769
+ # would be compiled to
770
+ #
771
+ # &lt;script&gt;alert(&quot;I'm evil!&quot;);&lt;/script&gt;
772
+ #
773
+ # ==== -
774
+ #
775
+ # The hyphen character makes the text following it into "silent script":
776
+ # Ruby script that is evaluated, but not output.
777
+ #
778
+ # <b>It is not recommended that you use this widely;
779
+ # almost all processing code and logic should be restricted
780
+ # to the Controller, the Helper, or partials.</b>
781
+ #
782
+ # For example:
783
+ #
784
+ # - foo = "hello"
785
+ # - foo << " there"
786
+ # - foo << " you!"
787
+ # %p= foo
788
+ #
789
+ # is compiled to:
790
+ #
791
+ # <p>
792
+ # hello there you!
793
+ # </p>
794
+ #
795
+ # ==== &=
796
+ #
797
+ # An ampersand followed by one or two equals characters
798
+ # evaluates Ruby code just like the equals without the ampersand,
799
+ # but sanitizes any HTML-sensitive characters in the result of the code.
800
+ # For example:
801
+ #
802
+ # &= "I like cheese & crackers"
803
+ #
804
+ # compiles to
805
+ #
806
+ # I like cheese &amp; crackers
807
+ #
808
+ # If the <tt>:escape_html</tt> option is set,
809
+ # &= behaves identically to =.
810
+ #
811
+ # & can also be used on its own so that <tt>#{}</tt> interpolation is escaped.
812
+ # For example,
813
+ #
814
+ # & I like #{"cheese & crackers"}
815
+ #
816
+ # compiles to
817
+ #
818
+ # I like cheese &amp; crackers
819
+ #
820
+ # ==== !=
821
+ #
822
+ # An exclamation mark followed by one or two equals characters
823
+ # evaluates Ruby code just like the equals would,
824
+ # but never sanitizes the HTML.
825
+ #
826
+ # By default, the single equals doesn't sanitize HTML either.
827
+ # However, if the <tt>:escape_html</tt> option is set, = will sanitize the HTML, but != still won't.
828
+ # For example, if <tt>:escape_html</tt> is set:
829
+ #
830
+ # = "I feel <strong>!"
831
+ # != "I feel <strong>!"
832
+ #
833
+ # compiles to
834
+ #
835
+ # I feel &lt;strong&gt;!
836
+ # I feel <strong>!
837
+ #
838
+ # ! can also be used on its own so that <tt>#{}</tt> interpolation is unescaped.
839
+ # For example,
840
+ #
841
+ # ! I feel #{"<strong>"}!
842
+ #
843
+ # compiles to
844
+ #
845
+ # I feel <strong>!
846
+ #
847
+ # ===== Blocks
848
+ #
849
+ # Ruby blocks, like XHTML tags, don't need to be explicitly closed in Haml.
850
+ # Rather, they're automatically closed, based on indentation.
851
+ # A block begins whenever the indentation is increased
852
+ # after a silent script command.
853
+ # It ends when the indentation decreases
854
+ # (as long as it's not an +else+ clause or something similar).
855
+ # For example:
856
+ #
857
+ # - (42...47).each do |i|
858
+ # %p= i
859
+ # %p See, I can count!
860
+ #
861
+ # is compiled to:
862
+ #
863
+ # <p>
864
+ # 42
865
+ # </p>
866
+ # <p>
867
+ # 43
868
+ # </p>
869
+ # <p>
870
+ # 44
871
+ # </p>
872
+ # <p>
873
+ # 45
874
+ # </p>
875
+ # <p>
876
+ # 46
877
+ # </p>
878
+ #
879
+ # Another example:
880
+ #
881
+ # %p
882
+ # - case 2
883
+ # - when 1
884
+ # = "1!"
885
+ # - when 2
886
+ # = "2?"
887
+ # - when 3
888
+ # = "3."
889
+ #
890
+ # is compiled to:
891
+ #
892
+ # <p>
893
+ # 2?
894
+ # </p>
895
+ #
896
+ # ==== -#
897
+ #
898
+ # The hyphen followed immediately by the pound sign
899
+ # signifies a silent comment.
900
+ # Any text following this isn't rendered in the resulting document
901
+ # at all.
902
+ #
903
+ # For example:
904
+ #
905
+ # %p foo
906
+ # -# This is a comment
907
+ # %p bar
908
+ #
909
+ # is compiled to:
910
+ #
911
+ # <p>foo</p>
912
+ # <p>bar</p>
913
+ #
914
+ # You can also nest text beneath a silent comment.
915
+ # None of this text will be rendered.
916
+ # For example:
917
+ #
918
+ # %p foo
919
+ # -#
920
+ # This won't be displayed
921
+ # Nor will this
922
+ # %p bar
923
+ #
924
+ # is compiled to:
925
+ #
926
+ # <p>foo</p>
927
+ # <p>bar</p>
928
+ #
929
+ # == Other Useful Things
930
+ #
931
+ # === Whitespace Preservation
932
+ #
933
+ # Sometimes you don't want Haml to indent all your text.
934
+ # For example, tags like +pre+ and +textarea+ are whitespace-sensitive;
935
+ # indenting the text makes them render wrong.
936
+ #
937
+ # Haml deals with this by "preserving" newlines before they're put into the document --
938
+ # converting them to the XHTML whitespace escape code, <tt>&#x000A;</tt>.
939
+ # Then Haml won't try to re-format the indentation.
940
+ #
941
+ # Literal +textarea+ and +pre+ tags automatically preserve their content.
942
+ # Dynamically can't be caught automatically,
943
+ # and so should be passed through Haml::Helpers#find_and_preserve or the <tt>~</tt> command,
944
+ # which has the same effect (see above).
945
+ #
946
+ # Blocks of literal text can be preserved using the :preserve filter (see above).
947
+ #
948
+ # === Helpers
949
+ #
950
+ # Haml offers a bunch of helpers that are useful
951
+ # for doing stuff like preserving whitespace,
952
+ # creating nicely indented output for user-defined helpers,
953
+ # and other useful things.
954
+ # The helpers are all documented in the Haml::Helpers and Haml::Helpers::ActionViewExtensions modules.
955
+ #
956
+ # === Haml Options
957
+ #
958
+ # Options can be set by setting the <tt>Haml::Template.options</tt> hash
959
+ # in <tt>environment.rb</tt> in Rails...
960
+ #
961
+ # Haml::Template.options[:format] = :html5
962
+ #
963
+ # ...or by setting the <tt>Merb::Plugin.config[:haml]</tt> hash in <tt>init.rb</tt> in Merb...
964
+ #
965
+ # Merb::Plugin.config[:haml][:format] = :html5
966
+ #
967
+ # ...or by passing an options hash to Haml::Engine.new.
968
+ # Available options are:
969
+ #
970
+ # [<tt>:format</tt>] Determines the output format. The default is :xhtml.
971
+ # Other options are :html4 and :html5, which are
972
+ # identical to :xhtml except there are no self-closing tags,
973
+ # XML prolog is ignored and correct DOCTYPEs are generated.
974
+ #
975
+ # [<tt>:escape_html</tt>] Sets whether or not to escape HTML-sensitive characters in script.
976
+ # If this is true, = behaves like &=;
977
+ # otherwise, it behaves like !=.
978
+ # Note that if this is set, != should be used for yielding to subtemplates
979
+ # and rendering partials.
980
+ # Defaults to false.
981
+ #
982
+ # [<tt>:suppress_eval</tt>] Whether or not attribute hashes and Ruby scripts
983
+ # designated by <tt>=</tt> or <tt>~</tt> should be
984
+ # evaluated. If this is true, said scripts are
985
+ # rendered as empty strings. Defaults to false.
986
+ #
987
+ # [<tt>:attr_wrapper</tt>] The character that should wrap element attributes.
988
+ # This defaults to <tt>'</tt> (an apostrophe). Characters
989
+ # of this type within the attributes will be escaped
990
+ # (e.g. by replacing them with <tt>&apos;</tt>) if
991
+ # the character is an apostrophe or a quotation mark.
992
+ #
993
+ # [<tt>:filename</tt>] The name of the Haml file being parsed.
994
+ # This is only used as information when exceptions are raised.
995
+ # This is automatically assigned when working through ActionView,
996
+ # so it's really only useful for the user to assign
997
+ # when dealing with Haml programatically.
998
+ #
999
+ # [<tt>:line</tt>] The line offset of the Haml template being parsed.
1000
+ # This is useful for inline templates,
1001
+ # similar to the last argument to Kernel#eval.
1002
+ #
1003
+ # [<tt>:autoclose</tt>] A list of tag names that should be automatically self-closed
1004
+ # if they have no content.
1005
+ # Defaults to <tt>['meta', 'img', 'link', 'br', 'hr', 'input', 'area', 'param', 'col', 'base']</tt>.
1006
+ #
1007
+ # [<tt>:preserve</tt>] A list of tag names that should automatically have their newlines preserved
1008
+ # using the Haml::Helpers#preserve helper.
1009
+ # This means that any content given on the same line as the tag will be preserved.
1010
+ # For example:
1011
+ #
1012
+ # %textarea= "Foo\nBar"
1013
+ #
1014
+ # compiles to:
1015
+ #
1016
+ # <textarea>Foo&&#x000A;Bar</textarea>
1017
+ #
1018
+ # Defaults to <tt>['textarea', 'pre']</tt>.
1019
+ #
1020
+ # See also Whitespace Preservation, above.
1021
+ #
1022
+ module Haml
1023
+
1024
+ extend Haml::Version
1025
+
1026
+ # A string representing the version of Haml.
1027
+ # A more fine-grained representation is available from Haml.version.
1028
+ VERSION = version[:string] unless defined?(Haml::VERSION)
1029
+
1030
+ # This method is called by init.rb,
1031
+ # which is run by Rails on startup.
1032
+ # We use it rather than putting stuff straight into init.rb
1033
+ # so we can change the initialization behavior
1034
+ # without modifying the file itself.
1035
+ def self.init_rails(binding)
1036
+ # No &method here for Rails 2.1 compatibility
1037
+ %w[haml/template sass sass/plugin].each {|f| require f}
1038
+ end
1039
+ end
1040
+
1041
+ require 'haml/util'
1042
+ require 'haml/engine'