spree 0.11.2 → 0.11.3

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 (249) hide show
  1. data/Rakefile +9 -8
  2. data/app/controllers/admin/base_controller.rb +31 -0
  3. data/app/controllers/admin/general_settings_controller.rb +9 -0
  4. data/app/controllers/admin/orders_controller.rb +8 -3
  5. data/app/controllers/admin/payments_controller.rb +8 -3
  6. data/app/controllers/admin/shipments_controller.rb +7 -2
  7. data/app/models/address.rb +42 -25
  8. data/app/models/app_configuration.rb +3 -0
  9. data/app/models/billing_integration.rb +1 -1
  10. data/app/models/line_item.rb +1 -1
  11. data/app/models/payment.rb +1 -1
  12. data/app/models/product_group.rb +8 -4
  13. data/app/models/spree/alert.rb +13 -0
  14. data/config/boot.rb +1 -1
  15. data/config/environment.rb +3 -3
  16. data/config/environments/test.rb +1 -1
  17. data/config/locales/en_spree.yml +3 -0
  18. data/config/routes.rb +2 -1
  19. data/lib/generators/extension/templates/Rakefile +1 -1
  20. data/lib/plugins/option_tags_with_disable/Rakefile +1 -1
  21. data/lib/spree.rb +2 -2
  22. data/lib/spree/checkout/action_options.rb +2 -2
  23. data/lib/spree/extension_loader.rb +1 -1
  24. data/lib/spree/initializer.rb +3 -2
  25. data/lib/validation_group.rb +2 -2
  26. data/vendor/extensions/api/Rakefile +1 -1
  27. data/vendor/extensions/overview_dashboard/Rakefile +1 -1
  28. data/vendor/extensions/payment_gateway/Rakefile +1 -1
  29. data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net.rb +8 -2
  30. data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +6 -0
  31. data/vendor/extensions/theme_default/Rakefile +1 -1
  32. data/vendor/extensions/theme_default/app/views/admin/adjustments/_form.html.erb +0 -3
  33. data/vendor/extensions/theme_default/app/views/admin/adjustments/new.html.erb +3 -0
  34. data/vendor/extensions/theme_default/app/views/admin/general_settings/edit.html.erb +8 -0
  35. data/vendor/extensions/theme_default/app/views/admin/general_settings/show.html.erb +5 -0
  36. data/vendor/extensions/theme_default/app/views/admin/shared/_alert.html.erb +11 -0
  37. data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +1 -1
  38. data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +30 -1
  39. data/vendor/plugins/acts_as_tree/Rakefile +1 -1
  40. data/vendor/plugins/attribute_fu/Rakefile +1 -1
  41. data/vendor/plugins/auto_complete/Rakefile +1 -1
  42. data/vendor/plugins/awesome_nested_set/Rakefile +1 -1
  43. data/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb +3 -3
  44. data/vendor/plugins/delegate_belongs_to/Rakefile +1 -1
  45. data/vendor/plugins/enumerable_constants/Rakefile +1 -1
  46. data/vendor/plugins/find_by_param/Rakefile +1 -1
  47. data/vendor/plugins/in_place_editing/Rakefile +1 -1
  48. data/vendor/plugins/jrails_auto_complete/Rakefile +1 -1
  49. data/vendor/plugins/mail_queue/Rakefile +1 -1
  50. data/vendor/plugins/open_id_authentication/Rakefile +1 -1
  51. data/vendor/plugins/resource_controller/lib/resource_controller/action_options.rb +1 -1
  52. data/vendor/plugins/resource_controller/lib/resource_controller/failable_action_options.rb +1 -1
  53. data/vendor/plugins/resource_controller/test/app/controllers/accounts_controller.rb +6 -0
  54. data/vendor/plugins/resource_controller/test/app/controllers/application.rb +7 -0
  55. data/vendor/plugins/resource_controller/test/app/controllers/cms/options_controller.rb +3 -0
  56. data/vendor/plugins/resource_controller/test/app/controllers/cms/personnel_controller.rb +2 -0
  57. data/vendor/plugins/resource_controller/test/app/controllers/cms/photos_controller.rb +6 -0
  58. data/vendor/plugins/resource_controller/test/app/controllers/cms/products_controller.rb +3 -0
  59. data/vendor/plugins/resource_controller/test/app/controllers/comments_controller.rb +3 -0
  60. data/vendor/plugins/resource_controller/test/app/controllers/images_controller.rb +4 -0
  61. data/vendor/plugins/resource_controller/test/app/controllers/options_controller.rb +8 -0
  62. data/vendor/plugins/resource_controller/test/app/controllers/people_controller.rb +9 -0
  63. data/vendor/plugins/resource_controller/test/app/controllers/photos_controller.rb +11 -0
  64. data/vendor/plugins/resource_controller/test/app/controllers/posts_controller.rb +10 -0
  65. data/vendor/plugins/resource_controller/test/app/controllers/projects_controller.rb +3 -0
  66. data/vendor/plugins/resource_controller/test/app/controllers/somethings_controller.rb +3 -0
  67. data/vendor/plugins/resource_controller/test/app/controllers/tags_controller.rb +13 -0
  68. data/vendor/plugins/resource_controller/test/app/controllers/users_controller.rb +12 -0
  69. data/vendor/plugins/resource_controller/test/app/helpers/accounts_helper.rb +2 -0
  70. data/vendor/plugins/resource_controller/test/app/helpers/application_helper.rb +3 -0
  71. data/vendor/plugins/resource_controller/test/app/helpers/cms/products_helper.rb +2 -0
  72. data/vendor/plugins/resource_controller/test/app/helpers/comments_helper.rb +2 -0
  73. data/vendor/plugins/resource_controller/test/app/helpers/images_helper.rb +2 -0
  74. data/vendor/plugins/resource_controller/test/app/helpers/options_helper.rb +2 -0
  75. data/vendor/plugins/resource_controller/test/app/helpers/people_helper.rb +2 -0
  76. data/vendor/plugins/resource_controller/test/app/helpers/photos_helper.rb +2 -0
  77. data/vendor/plugins/resource_controller/test/app/helpers/posts_helper.rb +2 -0
  78. data/vendor/plugins/resource_controller/test/app/helpers/projects_helper.rb +2 -0
  79. data/vendor/plugins/resource_controller/test/app/helpers/somethings_helper.rb +2 -0
  80. data/vendor/plugins/resource_controller/test/app/helpers/tags_helper.rb +2 -0
  81. data/vendor/plugins/resource_controller/test/app/helpers/users_helper.rb +2 -0
  82. data/vendor/plugins/resource_controller/test/app/models/account.rb +4 -0
  83. data/vendor/plugins/resource_controller/test/app/models/comment.rb +3 -0
  84. data/vendor/plugins/resource_controller/test/app/models/image.rb +3 -0
  85. data/vendor/plugins/resource_controller/test/app/models/option.rb +3 -0
  86. data/vendor/plugins/resource_controller/test/app/models/personnel.rb +3 -0
  87. data/vendor/plugins/resource_controller/test/app/models/photo.rb +5 -0
  88. data/vendor/plugins/resource_controller/test/app/models/post.rb +3 -0
  89. data/vendor/plugins/resource_controller/test/app/models/product.rb +3 -0
  90. data/vendor/plugins/resource_controller/test/app/models/project.rb +2 -0
  91. data/vendor/plugins/resource_controller/test/app/models/something.rb +2 -0
  92. data/vendor/plugins/resource_controller/test/app/models/tag.rb +3 -0
  93. data/vendor/plugins/resource_controller/test/app/models/user.rb +3 -0
  94. data/vendor/plugins/resource_controller/test/app/views/accounts/_form.html.erb +4 -0
  95. data/vendor/plugins/resource_controller/test/app/views/accounts/edit.html.erb +14 -0
  96. data/vendor/plugins/resource_controller/test/app/views/accounts/new.html.erb +12 -0
  97. data/vendor/plugins/resource_controller/test/app/views/accounts/show.html.erb +5 -0
  98. data/vendor/plugins/resource_controller/test/app/views/cms/options/edit.rhtml +17 -0
  99. data/vendor/plugins/resource_controller/test/app/views/cms/options/index.rhtml +20 -0
  100. data/vendor/plugins/resource_controller/test/app/views/cms/options/new.rhtml +16 -0
  101. data/vendor/plugins/resource_controller/test/app/views/cms/options/show.rhtml +8 -0
  102. data/vendor/plugins/resource_controller/test/app/views/cms/photos/edit.rhtml +17 -0
  103. data/vendor/plugins/resource_controller/test/app/views/cms/photos/index.rhtml +20 -0
  104. data/vendor/plugins/resource_controller/test/app/views/cms/photos/new.rhtml +16 -0
  105. data/vendor/plugins/resource_controller/test/app/views/cms/photos/show.rhtml +8 -0
  106. data/vendor/plugins/resource_controller/test/app/views/cms/products/edit.rhtml +17 -0
  107. data/vendor/plugins/resource_controller/test/app/views/cms/products/index.rhtml +20 -0
  108. data/vendor/plugins/resource_controller/test/app/views/cms/products/new.rhtml +16 -0
  109. data/vendor/plugins/resource_controller/test/app/views/cms/products/show.rhtml +8 -0
  110. data/vendor/plugins/resource_controller/test/app/views/comments/edit.rhtml +27 -0
  111. data/vendor/plugins/resource_controller/test/app/views/comments/index.rhtml +24 -0
  112. data/vendor/plugins/resource_controller/test/app/views/comments/new.rhtml +26 -0
  113. data/vendor/plugins/resource_controller/test/app/views/comments/show.rhtml +18 -0
  114. data/vendor/plugins/resource_controller/test/app/views/images/_form.html.erb +4 -0
  115. data/vendor/plugins/resource_controller/test/app/views/images/edit.html.erb +14 -0
  116. data/vendor/plugins/resource_controller/test/app/views/images/new.html.erb +12 -0
  117. data/vendor/plugins/resource_controller/test/app/views/layouts/application.rhtml +17 -0
  118. data/vendor/plugins/resource_controller/test/app/views/layouts/comments.rhtml +17 -0
  119. data/vendor/plugins/resource_controller/test/app/views/layouts/options.rhtml +17 -0
  120. data/vendor/plugins/resource_controller/test/app/views/layouts/people.rhtml +17 -0
  121. data/vendor/plugins/resource_controller/test/app/views/layouts/photos.rhtml +17 -0
  122. data/vendor/plugins/resource_controller/test/app/views/layouts/projects.rhtml +17 -0
  123. data/vendor/plugins/resource_controller/test/app/views/layouts/somethings.rhtml +17 -0
  124. data/vendor/plugins/resource_controller/test/app/views/layouts/tags.rhtml +17 -0
  125. data/vendor/plugins/resource_controller/test/app/views/options/_form.html.erb +8 -0
  126. data/vendor/plugins/resource_controller/test/app/views/options/edit.html.erb +16 -0
  127. data/vendor/plugins/resource_controller/test/app/views/options/index.html.erb +21 -0
  128. data/vendor/plugins/resource_controller/test/app/views/options/new.html.erb +12 -0
  129. data/vendor/plugins/resource_controller/test/app/views/options/show.html.erb +10 -0
  130. data/vendor/plugins/resource_controller/test/app/views/people/edit.rhtml +17 -0
  131. data/vendor/plugins/resource_controller/test/app/views/people/index.rhtml +20 -0
  132. data/vendor/plugins/resource_controller/test/app/views/people/new.rhtml +16 -0
  133. data/vendor/plugins/resource_controller/test/app/views/people/show.rhtml +8 -0
  134. data/vendor/plugins/resource_controller/test/app/views/photos/edit.rhtml +17 -0
  135. data/vendor/plugins/resource_controller/test/app/views/photos/index.rhtml +20 -0
  136. data/vendor/plugins/resource_controller/test/app/views/photos/new.rhtml +16 -0
  137. data/vendor/plugins/resource_controller/test/app/views/photos/show.rhtml +8 -0
  138. data/vendor/plugins/resource_controller/test/app/views/posts/edit.rhtml +22 -0
  139. data/vendor/plugins/resource_controller/test/app/views/posts/index.rhtml +22 -0
  140. data/vendor/plugins/resource_controller/test/app/views/posts/new.rhtml +21 -0
  141. data/vendor/plugins/resource_controller/test/app/views/posts/show.rhtml +13 -0
  142. data/vendor/plugins/resource_controller/test/app/views/projects/edit.rhtml +17 -0
  143. data/vendor/plugins/resource_controller/test/app/views/projects/index.rhtml +20 -0
  144. data/vendor/plugins/resource_controller/test/app/views/projects/new.rhtml +16 -0
  145. data/vendor/plugins/resource_controller/test/app/views/projects/show.rhtml +8 -0
  146. data/vendor/plugins/resource_controller/test/app/views/somethings/edit.rhtml +17 -0
  147. data/vendor/plugins/resource_controller/test/app/views/somethings/index.rhtml +20 -0
  148. data/vendor/plugins/resource_controller/test/app/views/somethings/new.rhtml +16 -0
  149. data/vendor/plugins/resource_controller/test/app/views/somethings/show.rhtml +8 -0
  150. data/vendor/plugins/resource_controller/test/app/views/tags/edit.rhtml +17 -0
  151. data/vendor/plugins/resource_controller/test/app/views/tags/index.rhtml +20 -0
  152. data/vendor/plugins/resource_controller/test/app/views/tags/index.rjs +0 -0
  153. data/vendor/plugins/resource_controller/test/app/views/tags/new.rhtml +16 -0
  154. data/vendor/plugins/resource_controller/test/app/views/tags/show.rhtml +8 -0
  155. data/vendor/plugins/resource_controller/test/app/views/users/edit.rhtml +17 -0
  156. data/vendor/plugins/resource_controller/test/app/views/users/index.rhtml +20 -0
  157. data/vendor/plugins/resource_controller/test/app/views/users/new.rhtml +16 -0
  158. data/vendor/plugins/resource_controller/test/app/views/users/show.rhtml +8 -0
  159. data/vendor/plugins/resource_controller/test/config/boot.rb +109 -0
  160. data/vendor/plugins/resource_controller/test/config/database.yml +9 -0
  161. data/vendor/plugins/resource_controller/test/config/environment.rb +47 -0
  162. data/vendor/plugins/resource_controller/test/config/environments/development.rb +21 -0
  163. data/vendor/plugins/resource_controller/test/config/environments/test.rb +19 -0
  164. data/vendor/plugins/resource_controller/test/config/initializers/inflections.rb +14 -0
  165. data/vendor/plugins/resource_controller/test/config/routes.rb +61 -0
  166. data/vendor/plugins/resource_controller/test/db/migrate/001_create_posts.rb +12 -0
  167. data/vendor/plugins/resource_controller/test/db/migrate/002_create_products.rb +11 -0
  168. data/vendor/plugins/resource_controller/test/db/migrate/003_create_comments.rb +13 -0
  169. data/vendor/plugins/resource_controller/test/db/migrate/004_create_options.rb +13 -0
  170. data/vendor/plugins/resource_controller/test/db/migrate/005_create_photos.rb +11 -0
  171. data/vendor/plugins/resource_controller/test/db/migrate/006_create_tags.rb +17 -0
  172. data/vendor/plugins/resource_controller/test/db/migrate/007_create_somethings.rb +11 -0
  173. data/vendor/plugins/resource_controller/test/db/migrate/008_create_accounts.rb +11 -0
  174. data/vendor/plugins/resource_controller/test/db/migrate/009_add_account_id_to_photos.rb +9 -0
  175. data/vendor/plugins/resource_controller/test/db/migrate/010_create_projects.rb +11 -0
  176. data/vendor/plugins/resource_controller/test/db/migrate/011_create_images.rb +12 -0
  177. data/vendor/plugins/resource_controller/test/db/migrate/012_create_users.rb +11 -0
  178. data/vendor/plugins/resource_controller/test/db/migrate/013_create_personnel.rb +11 -0
  179. data/vendor/plugins/resource_controller/test/db/migrate/014_add_personnel_id_to_photos.rb +9 -0
  180. data/vendor/plugins/resource_controller/test/db/schema.rb +78 -0
  181. data/vendor/plugins/resource_controller/test/script/console +3 -0
  182. data/vendor/plugins/resource_controller/test/script/destroy +3 -0
  183. data/vendor/plugins/resource_controller/test/script/generate +3 -0
  184. data/vendor/plugins/resource_controller/test/script/server +3 -0
  185. data/vendor/plugins/resource_controller/test/test/fixtures/accounts.yml +7 -0
  186. data/vendor/plugins/resource_controller/test/test/fixtures/comments.yml +11 -0
  187. data/vendor/plugins/resource_controller/test/test/fixtures/images.yml +6 -0
  188. data/vendor/plugins/resource_controller/test/test/fixtures/options.yml +9 -0
  189. data/vendor/plugins/resource_controller/test/test/fixtures/personnel.yml +5 -0
  190. data/vendor/plugins/resource_controller/test/test/fixtures/photos.yml +9 -0
  191. data/vendor/plugins/resource_controller/test/test/fixtures/photos_tags.yml +3 -0
  192. data/vendor/plugins/resource_controller/test/test/fixtures/posts.yml +9 -0
  193. data/vendor/plugins/resource_controller/test/test/fixtures/products.yml +7 -0
  194. data/vendor/plugins/resource_controller/test/test/fixtures/projects.yml +7 -0
  195. data/vendor/plugins/resource_controller/test/test/fixtures/somethings.yml +7 -0
  196. data/vendor/plugins/resource_controller/test/test/fixtures/tags.yml +7 -0
  197. data/vendor/plugins/resource_controller/test/test/fixtures/users.yml +5 -0
  198. data/vendor/plugins/resource_controller/test/test/functional/cms/options_controller_test.rb +23 -0
  199. data/vendor/plugins/resource_controller/test/test/functional/cms/photos_controller_test.rb +43 -0
  200. data/vendor/plugins/resource_controller/test/test/functional/cms/products_controller_test.rb +23 -0
  201. data/vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb +26 -0
  202. data/vendor/plugins/resource_controller/test/test/functional/images_controller_test.rb +37 -0
  203. data/vendor/plugins/resource_controller/test/test/functional/people_controller_test.rb +34 -0
  204. data/vendor/plugins/resource_controller/test/test/functional/photos_controller_test.rb +130 -0
  205. data/vendor/plugins/resource_controller/test/test/functional/posts_controller_test.rb +34 -0
  206. data/vendor/plugins/resource_controller/test/test/functional/projects_controller_test.rb +18 -0
  207. data/vendor/plugins/resource_controller/test/test/functional/somethings_controller_test.rb +28 -0
  208. data/vendor/plugins/resource_controller/test/test/functional/tags_controller_test.rb +64 -0
  209. data/vendor/plugins/resource_controller/test/test/functional/users_controller_test.rb +24 -0
  210. data/vendor/plugins/resource_controller/test/test/test_helper.rb +12 -0
  211. data/vendor/plugins/resource_controller/test/test/unit/accessors_test.rb +110 -0
  212. data/vendor/plugins/resource_controller/test/test/unit/account_test.rb +7 -0
  213. data/vendor/plugins/resource_controller/test/test/unit/action_options_test.rb +109 -0
  214. data/vendor/plugins/resource_controller/test/test/unit/base_test.rb +11 -0
  215. data/vendor/plugins/resource_controller/test/test/unit/comment_test.rb +10 -0
  216. data/vendor/plugins/resource_controller/test/test/unit/failable_action_options_test.rb +77 -0
  217. data/vendor/plugins/resource_controller/test/test/unit/helpers/current_objects_test.rb +133 -0
  218. data/vendor/plugins/resource_controller/test/test/unit/helpers/internal_test.rb +106 -0
  219. data/vendor/plugins/resource_controller/test/test/unit/helpers/nested_test.rb +86 -0
  220. data/vendor/plugins/resource_controller/test/test/unit/helpers/singleton_current_objects_test.rb +68 -0
  221. data/vendor/plugins/resource_controller/test/test/unit/helpers/singleton_nested_test.rb +77 -0
  222. data/vendor/plugins/resource_controller/test/test/unit/helpers/singleton_urls_test.rb +67 -0
  223. data/vendor/plugins/resource_controller/test/test/unit/helpers/urls_test.rb +75 -0
  224. data/vendor/plugins/resource_controller/test/test/unit/helpers_test.rb +25 -0
  225. data/vendor/plugins/resource_controller/test/test/unit/image_test.rb +7 -0
  226. data/vendor/plugins/resource_controller/test/test/unit/option_test.rb +10 -0
  227. data/vendor/plugins/resource_controller/test/test/unit/photo_test.rb +10 -0
  228. data/vendor/plugins/resource_controller/test/test/unit/post_test.rb +10 -0
  229. data/vendor/plugins/resource_controller/test/test/unit/project_test.rb +10 -0
  230. data/vendor/plugins/resource_controller/test/test/unit/response_collector_test.rb +49 -0
  231. data/vendor/plugins/resource_controller/test/test/unit/something_test.rb +10 -0
  232. data/vendor/plugins/resource_controller/test/test/unit/tag_test.rb +10 -0
  233. data/vendor/plugins/resource_controller/test/test/unit/urligence_test.rb +203 -0
  234. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/Rakefile +32 -0
  235. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/bin/convert_to_should_syntax +40 -0
  236. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/init.rb +3 -0
  237. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda.rb +43 -0
  238. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/active_record_helpers.rb +580 -0
  239. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/color.rb +77 -0
  240. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/controller_tests.rb +467 -0
  241. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/html.rb +201 -0
  242. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/xml.rb +170 -0
  243. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/gem/proc_extensions.rb +14 -0
  244. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/gem/shoulda.rb +239 -0
  245. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/general.rb +118 -0
  246. data/vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/private_helpers.rb +22 -0
  247. data/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +2 -2
  248. data/vendor/plugins/unobtrusive_date_picker/Rakefile +1 -1
  249. metadata +270 -145
@@ -0,0 +1,118 @@
1
+ module ThoughtBot # :nodoc:
2
+ module Shoulda # :nodoc:
3
+ module General
4
+ def self.included(other) # :nodoc:
5
+ other.class_eval do
6
+ extend ThoughtBot::Shoulda::General::ClassMethods
7
+ end
8
+ end
9
+
10
+ module ClassMethods
11
+ # Loads all fixture files (<tt>test/fixtures/*.yml</tt>)
12
+ def load_all_fixtures
13
+ all_fixtures = Dir.glob(File.join(Test::Unit::TestCase.fixture_path, "*.yml")).collect do |f|
14
+ File.basename(f, '.yml').to_sym
15
+ end
16
+ fixtures *all_fixtures
17
+ end
18
+ end
19
+
20
+ # Prints a message to stdout, tagged with the name of the calling method.
21
+ def report!(msg = "")
22
+ puts("#{caller.first}: #{msg}")
23
+ end
24
+
25
+ # Asserts that two arrays contain the same elements, the same number of times. Essentially ==, but unordered.
26
+ #
27
+ # assert_same_elements([:a, :b, :c], [:c, :a, :b]) => passes
28
+ def assert_same_elements(a1, a2, msg = nil)
29
+ [:select, :inject, :size].each do |m|
30
+ [a1, a2].each {|a| assert_respond_to(a, m, "Are you sure that #{a.inspect} is an array? It doesn't respond to #{m}.") }
31
+ end
32
+
33
+ assert a1h = a1.inject({}) { |h,e| h[e] = a1.select { |i| i == e }.size; h }
34
+ assert a2h = a2.inject({}) { |h,e| h[e] = a2.select { |i| i == e }.size; h }
35
+
36
+ assert_equal(a1h, a2h, msg)
37
+ end
38
+
39
+ # Asserts that the given collection contains item x. If x is a regular expression, ensure that
40
+ # at least one element from the collection matches x. +extra_msg+ is appended to the error message if the assertion fails.
41
+ #
42
+ # assert_contains(['a', '1'], /\d/) => passes
43
+ # assert_contains(['a', '1'], 'a') => passes
44
+ # assert_contains(['a', '1'], /not there/) => fails
45
+ def assert_contains(collection, x, extra_msg = "")
46
+ collection = [collection] unless collection.is_a?(Array)
47
+ msg = "#{x.inspect} not found in #{collection.to_a.inspect} #{extra_msg}"
48
+ case x
49
+ when Regexp: assert(collection.detect { |e| e =~ x }, msg)
50
+ else assert(collection.include?(x), msg)
51
+ end
52
+ end
53
+
54
+ # Asserts that the given collection does not contain item x. If x is a regular expression, ensure that
55
+ # none of the elements from the collection match x.
56
+ def assert_does_not_contain(collection, x, extra_msg = "")
57
+ collection = [collection] unless collection.is_a?(Array)
58
+ msg = "#{x.inspect} found in #{collection.to_a.inspect} " + extra_msg
59
+ case x
60
+ when Regexp: assert(!collection.detect { |e| e =~ x }, msg)
61
+ else assert(!collection.include?(x), msg)
62
+ end
63
+ end
64
+
65
+ # Asserts that the given object can be saved
66
+ #
67
+ # assert_save User.new(params)
68
+ def assert_save(obj)
69
+ assert obj.save, "Errors: #{pretty_error_messages obj}"
70
+ obj.reload
71
+ end
72
+
73
+ # Asserts that the given object is valid
74
+ #
75
+ # assert_valid User.new(params)
76
+ def assert_valid(obj)
77
+ assert obj.valid?, "Errors: #{pretty_error_messages obj}"
78
+ end
79
+
80
+ # Asserts that an email was delivered. Can take a block that can further
81
+ # narrow down the types of emails you're expecting.
82
+ #
83
+ # assert_sent_email
84
+ #
85
+ # Passes if ActionMailer::Base.deliveries has an email
86
+ #
87
+ # assert_sent_email do |email|
88
+ # email.subject =~ /hi there/ && email.to.include?('none@none.com')
89
+ # end
90
+ #
91
+ # Passes if there is an email with subject containing 'hi there' and
92
+ # 'none@none.com' as one of the recipients.
93
+ #
94
+ def assert_sent_email
95
+ emails = ActionMailer::Base.deliveries
96
+ assert !emails.empty?, "No emails were sent"
97
+ if block_given?
98
+ matching_emails = emails.select {|email| yield email }
99
+ assert !matching_emails.empty?, "None of the emails matched."
100
+ end
101
+ end
102
+
103
+ # Asserts that no ActionMailer mails were delivered
104
+ #
105
+ # assert_did_not_send_email
106
+ def assert_did_not_send_email
107
+ msg = "Sent #{ActionMailer::Base.deliveries.size} emails.\n"
108
+ ActionMailer::Base.deliveries.each { |m| msg << " '#{m.subject}' sent to #{m.to.to_sentence}\n" }
109
+ assert ActionMailer::Base.deliveries.empty?, msg
110
+ end
111
+
112
+ def pretty_error_messages(obj)
113
+ obj.errors.map { |a, m| "#{a} #{m} (#{obj.send(a).inspect})" }
114
+ end
115
+
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,22 @@
1
+ module ThoughtBot # :nodoc:
2
+ module Shoulda # :nodoc:
3
+ module Private # :nodoc:
4
+ # Returns the values for the entries in the args hash who's keys are listed in the wanted array.
5
+ # Will raise if there are keys in the args hash that aren't listed.
6
+ def get_options!(args, *wanted)
7
+ ret = []
8
+ opts = (args.last.is_a?(Hash) ? args.pop : {})
9
+ wanted.each {|w| ret << opts.delete(w)}
10
+ raise ArgumentError, "Unsupported options given: #{opts.keys.join(', ')}" unless opts.keys.empty?
11
+ return *ret
12
+ end
13
+
14
+ # Returns the model class constant, as determined by the test class name.
15
+ #
16
+ # class TestUser; model_class; end => User
17
+ def model_class
18
+ self.name.gsub(/Test$/, '').constantize
19
+ end
20
+ end
21
+ end
22
+ end
@@ -47,11 +47,11 @@ module SslRequirement
47
47
 
48
48
  private
49
49
  def dvp_mode?
50
- ENV['RAILS_ENV'] == 'development'
50
+ Rails.env.development?
51
51
  end
52
52
 
53
53
  def test_mode?
54
- ENV['RAILS_ENV'] == 'test' || ENV['RAILS_ENV'] == 'cucumber'
54
+ Rails.env.test? || Rails.env.cucumber?
55
55
  end
56
56
 
57
57
  # don't require ssl in development or test mode
@@ -1,5 +1,5 @@
1
1
  require 'rake'
2
- require 'rake/rdoctask'
2
+ require 'rdoc/task'
3
3
  require 'rubygems'
4
4
  require 'spec/rake/spectask'
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
5
- prerelease: false
4
+ hash: 53
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 2
10
- version: 0.11.2
9
+ - 3
10
+ version: 0.11.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Schofield
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-01 00:00:00 -04:00
19
- default_executable: spree
18
+ date: 2011-10-24 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rake
@@ -26,34 +25,50 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 1
28
+ hash: 63
30
29
  segments:
31
30
  - 0
32
- - 7
33
- - 1
34
- version: 0.7.1
31
+ - 9
32
+ - 2
33
+ version: 0.9.2
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: rails
37
+ name: rdoc
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 43
45
+ segments:
46
+ - 3
47
+ - 9
48
+ - 4
49
+ version: 3.9.4
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rails
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
41
56
  none: false
42
57
  requirements:
43
58
  - - "="
44
59
  - !ruby/object:Gem::Version
45
- hash: 19
60
+ hash: 27
46
61
  segments:
47
62
  - 2
48
63
  - 3
49
- - 8
50
- version: 2.3.8
64
+ - 12
65
+ version: 2.3.12
51
66
  type: :runtime
52
- version_requirements: *id002
67
+ version_requirements: *id003
53
68
  - !ruby/object:Gem::Dependency
54
69
  name: rack
55
70
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
57
72
  none: false
58
73
  requirements:
59
74
  - - ">="
@@ -65,11 +80,11 @@ dependencies:
65
80
  - 0
66
81
  version: 1.1.0
67
82
  type: :runtime
68
- version_requirements: *id003
83
+ version_requirements: *id004
69
84
  - !ruby/object:Gem::Dependency
70
85
  name: highline
71
86
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
87
+ requirement: &id005 !ruby/object:Gem::Requirement
73
88
  none: false
74
89
  requirements:
75
90
  - - "="
@@ -81,11 +96,11 @@ dependencies:
81
96
  - 1
82
97
  version: 1.5.1
83
98
  type: :runtime
84
- version_requirements: *id004
99
+ version_requirements: *id005
85
100
  - !ruby/object:Gem::Dependency
86
101
  name: authlogic
87
102
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
103
+ requirement: &id006 !ruby/object:Gem::Requirement
89
104
  none: false
90
105
  requirements:
91
106
  - - "="
@@ -97,11 +112,11 @@ dependencies:
97
112
  - 3
98
113
  version: 2.1.3
99
114
  type: :runtime
100
- version_requirements: *id005
115
+ version_requirements: *id006
101
116
  - !ruby/object:Gem::Dependency
102
117
  name: authlogic-oid
103
118
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
119
+ requirement: &id007 !ruby/object:Gem::Requirement
105
120
  none: false
106
121
  requirements:
107
122
  - - "="
@@ -113,27 +128,27 @@ dependencies:
113
128
  - 4
114
129
  version: 1.0.4
115
130
  type: :runtime
116
- version_requirements: *id006
131
+ version_requirements: *id007
117
132
  - !ruby/object:Gem::Dependency
118
133
  name: activemerchant
119
134
  prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
135
+ requirement: &id008 !ruby/object:Gem::Requirement
121
136
  none: false
122
137
  requirements:
123
138
  - - "="
124
139
  - !ruby/object:Gem::Version
125
- hash: 1
140
+ hash: 11
126
141
  segments:
127
142
  - 1
128
- - 5
129
- - 1
130
- version: 1.5.1
143
+ - 7
144
+ - 0
145
+ version: 1.7.0
131
146
  type: :runtime
132
- version_requirements: *id007
147
+ version_requirements: *id008
133
148
  - !ruby/object:Gem::Dependency
134
149
  name: activerecord-tableless
135
150
  prerelease: false
136
- requirement: &id008 !ruby/object:Gem::Requirement
151
+ requirement: &id009 !ruby/object:Gem::Requirement
137
152
  none: false
138
153
  requirements:
139
154
  - - "="
@@ -145,11 +160,11 @@ dependencies:
145
160
  - 0
146
161
  version: 0.1.0
147
162
  type: :runtime
148
- version_requirements: *id008
163
+ version_requirements: *id009
149
164
  - !ruby/object:Gem::Dependency
150
165
  name: less
151
166
  prerelease: false
152
- requirement: &id009 !ruby/object:Gem::Requirement
167
+ requirement: &id010 !ruby/object:Gem::Requirement
153
168
  none: false
154
169
  requirements:
155
170
  - - "="
@@ -161,11 +176,11 @@ dependencies:
161
176
  - 20
162
177
  version: 1.2.20
163
178
  type: :runtime
164
- version_requirements: *id009
179
+ version_requirements: *id010
165
180
  - !ruby/object:Gem::Dependency
166
181
  name: stringex
167
182
  prerelease: false
168
- requirement: &id010 !ruby/object:Gem::Requirement
183
+ requirement: &id011 !ruby/object:Gem::Requirement
169
184
  none: false
170
185
  requirements:
171
186
  - - "="
@@ -177,11 +192,11 @@ dependencies:
177
192
  - 3
178
193
  version: 1.0.3
179
194
  type: :runtime
180
- version_requirements: *id010
195
+ version_requirements: *id011
181
196
  - !ruby/object:Gem::Dependency
182
197
  name: chronic
183
198
  prerelease: false
184
- requirement: &id011 !ruby/object:Gem::Requirement
199
+ requirement: &id012 !ruby/object:Gem::Requirement
185
200
  none: false
186
201
  requirements:
187
202
  - - "="
@@ -193,11 +208,11 @@ dependencies:
193
208
  - 3
194
209
  version: 0.2.3
195
210
  type: :runtime
196
- version_requirements: *id011
211
+ version_requirements: *id012
197
212
  - !ruby/object:Gem::Dependency
198
213
  name: whenever
199
214
  prerelease: false
200
- requirement: &id012 !ruby/object:Gem::Requirement
215
+ requirement: &id013 !ruby/object:Gem::Requirement
201
216
  none: false
202
217
  requirements:
203
218
  - - "="
@@ -209,11 +224,11 @@ dependencies:
209
224
  - 7
210
225
  version: 0.3.7
211
226
  type: :runtime
212
- version_requirements: *id012
227
+ version_requirements: *id013
213
228
  - !ruby/object:Gem::Dependency
214
229
  name: searchlogic
215
230
  prerelease: false
216
- requirement: &id013 !ruby/object:Gem::Requirement
231
+ requirement: &id014 !ruby/object:Gem::Requirement
217
232
  none: false
218
233
  requirements:
219
234
  - - "="
@@ -225,27 +240,27 @@ dependencies:
225
240
  - 5
226
241
  version: 2.3.5
227
242
  type: :runtime
228
- version_requirements: *id013
243
+ version_requirements: *id014
229
244
  - !ruby/object:Gem::Dependency
230
245
  name: will_paginate
231
246
  prerelease: false
232
- requirement: &id014 !ruby/object:Gem::Requirement
247
+ requirement: &id015 !ruby/object:Gem::Requirement
233
248
  none: false
234
249
  requirements:
235
250
  - - "="
236
251
  - !ruby/object:Gem::Version
237
- hash: 31
252
+ hash: 35
238
253
  segments:
239
254
  - 2
240
255
  - 3
241
- - 14
242
- version: 2.3.14
256
+ - 16
257
+ version: 2.3.16
243
258
  type: :runtime
244
- version_requirements: *id014
259
+ version_requirements: *id015
245
260
  - !ruby/object:Gem::Dependency
246
261
  name: state_machine
247
262
  prerelease: false
248
- requirement: &id015 !ruby/object:Gem::Requirement
263
+ requirement: &id016 !ruby/object:Gem::Requirement
249
264
  none: false
250
265
  requirements:
251
266
  - - "="
@@ -257,11 +272,11 @@ dependencies:
257
272
  - 2
258
273
  version: 0.9.2
259
274
  type: :runtime
260
- version_requirements: *id015
275
+ version_requirements: *id016
261
276
  - !ruby/object:Gem::Dependency
262
277
  name: faker
263
278
  prerelease: false
264
- requirement: &id016 !ruby/object:Gem::Requirement
279
+ requirement: &id017 !ruby/object:Gem::Requirement
265
280
  none: false
266
281
  requirements:
267
282
  - - "="
@@ -273,11 +288,11 @@ dependencies:
273
288
  - 1
274
289
  version: 0.3.1
275
290
  type: :runtime
276
- version_requirements: *id016
291
+ version_requirements: *id017
277
292
  - !ruby/object:Gem::Dependency
278
293
  name: paperclip
279
294
  prerelease: false
280
- requirement: &id017 !ruby/object:Gem::Requirement
295
+ requirement: &id018 !ruby/object:Gem::Requirement
281
296
  none: false
282
297
  requirements:
283
298
  - - "="
@@ -290,11 +305,11 @@ dependencies:
290
305
  - 1
291
306
  version: 2.3.1.1
292
307
  type: :runtime
293
- version_requirements: *id017
308
+ version_requirements: *id018
294
309
  - !ruby/object:Gem::Dependency
295
310
  name: ruby-openid
296
311
  prerelease: false
297
- requirement: &id018 !ruby/object:Gem::Requirement
312
+ requirement: &id019 !ruby/object:Gem::Requirement
298
313
  none: false
299
314
  requirements:
300
315
  - - ">="
@@ -306,7 +321,7 @@ dependencies:
306
321
  - 4
307
322
  version: 2.0.4
308
323
  type: :runtime
309
- version_requirements: *id018
324
+ version_requirements: *id019
310
325
  description: The most flexible commerce platform available - designed from the ground up to be as open and extensible as possible.
311
326
  email: sean@railsdog.com
312
327
  executables:
@@ -450,6 +465,7 @@ files:
450
465
  - app/models/shipping_charge.rb
451
466
  - app/models/shipping_method.rb
452
467
  - app/models/shipping_rate.rb
468
+ - app/models/spree/alert.rb
453
469
  - app/models/state.rb
454
470
  - app/models/state_event.rb
455
471
  - app/models/state_monitor.rb
@@ -1155,6 +1171,7 @@ files:
1155
1171
  - vendor/extensions/theme_default/app/views/admin/shared/_additional_field.html.erb
1156
1172
  - vendor/extensions/theme_default/app/views/admin/shared/_address.html.erb
1157
1173
  - vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb
1174
+ - vendor/extensions/theme_default/app/views/admin/shared/_alert.html.erb
1158
1175
  - vendor/extensions/theme_default/app/views/admin/shared/_calculator_fields.html.erb
1159
1176
  - vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb
1160
1177
  - vendor/extensions/theme_default/app/views/admin/shared/_edit_resource_links.html.erb
@@ -2058,6 +2075,200 @@ files:
2058
2075
  - vendor/plugins/resource_controller/lib/urligence.rb
2059
2076
  - vendor/plugins/resource_controller/rails/init.rb
2060
2077
  - vendor/plugins/resource_controller/resource_controller.gemspec
2078
+ - vendor/plugins/resource_controller/test/app/controllers/accounts_controller.rb
2079
+ - vendor/plugins/resource_controller/test/app/controllers/application.rb
2080
+ - vendor/plugins/resource_controller/test/app/controllers/cms/options_controller.rb
2081
+ - vendor/plugins/resource_controller/test/app/controllers/cms/personnel_controller.rb
2082
+ - vendor/plugins/resource_controller/test/app/controllers/cms/photos_controller.rb
2083
+ - vendor/plugins/resource_controller/test/app/controllers/cms/products_controller.rb
2084
+ - vendor/plugins/resource_controller/test/app/controllers/comments_controller.rb
2085
+ - vendor/plugins/resource_controller/test/app/controllers/images_controller.rb
2086
+ - vendor/plugins/resource_controller/test/app/controllers/options_controller.rb
2087
+ - vendor/plugins/resource_controller/test/app/controllers/people_controller.rb
2088
+ - vendor/plugins/resource_controller/test/app/controllers/photos_controller.rb
2089
+ - vendor/plugins/resource_controller/test/app/controllers/posts_controller.rb
2090
+ - vendor/plugins/resource_controller/test/app/controllers/projects_controller.rb
2091
+ - vendor/plugins/resource_controller/test/app/controllers/somethings_controller.rb
2092
+ - vendor/plugins/resource_controller/test/app/controllers/tags_controller.rb
2093
+ - vendor/plugins/resource_controller/test/app/controllers/users_controller.rb
2094
+ - vendor/plugins/resource_controller/test/app/helpers/accounts_helper.rb
2095
+ - vendor/plugins/resource_controller/test/app/helpers/application_helper.rb
2096
+ - vendor/plugins/resource_controller/test/app/helpers/cms/products_helper.rb
2097
+ - vendor/plugins/resource_controller/test/app/helpers/comments_helper.rb
2098
+ - vendor/plugins/resource_controller/test/app/helpers/images_helper.rb
2099
+ - vendor/plugins/resource_controller/test/app/helpers/options_helper.rb
2100
+ - vendor/plugins/resource_controller/test/app/helpers/people_helper.rb
2101
+ - vendor/plugins/resource_controller/test/app/helpers/photos_helper.rb
2102
+ - vendor/plugins/resource_controller/test/app/helpers/posts_helper.rb
2103
+ - vendor/plugins/resource_controller/test/app/helpers/projects_helper.rb
2104
+ - vendor/plugins/resource_controller/test/app/helpers/somethings_helper.rb
2105
+ - vendor/plugins/resource_controller/test/app/helpers/tags_helper.rb
2106
+ - vendor/plugins/resource_controller/test/app/helpers/users_helper.rb
2107
+ - vendor/plugins/resource_controller/test/app/models/account.rb
2108
+ - vendor/plugins/resource_controller/test/app/models/comment.rb
2109
+ - vendor/plugins/resource_controller/test/app/models/image.rb
2110
+ - vendor/plugins/resource_controller/test/app/models/option.rb
2111
+ - vendor/plugins/resource_controller/test/app/models/personnel.rb
2112
+ - vendor/plugins/resource_controller/test/app/models/photo.rb
2113
+ - vendor/plugins/resource_controller/test/app/models/post.rb
2114
+ - vendor/plugins/resource_controller/test/app/models/product.rb
2115
+ - vendor/plugins/resource_controller/test/app/models/project.rb
2116
+ - vendor/plugins/resource_controller/test/app/models/something.rb
2117
+ - vendor/plugins/resource_controller/test/app/models/tag.rb
2118
+ - vendor/plugins/resource_controller/test/app/models/user.rb
2119
+ - vendor/plugins/resource_controller/test/app/views/accounts/_form.html.erb
2120
+ - vendor/plugins/resource_controller/test/app/views/accounts/edit.html.erb
2121
+ - vendor/plugins/resource_controller/test/app/views/accounts/new.html.erb
2122
+ - vendor/plugins/resource_controller/test/app/views/accounts/show.html.erb
2123
+ - vendor/plugins/resource_controller/test/app/views/cms/options/edit.rhtml
2124
+ - vendor/plugins/resource_controller/test/app/views/cms/options/index.rhtml
2125
+ - vendor/plugins/resource_controller/test/app/views/cms/options/new.rhtml
2126
+ - vendor/plugins/resource_controller/test/app/views/cms/options/show.rhtml
2127
+ - vendor/plugins/resource_controller/test/app/views/cms/photos/edit.rhtml
2128
+ - vendor/plugins/resource_controller/test/app/views/cms/photos/index.rhtml
2129
+ - vendor/plugins/resource_controller/test/app/views/cms/photos/new.rhtml
2130
+ - vendor/plugins/resource_controller/test/app/views/cms/photos/show.rhtml
2131
+ - vendor/plugins/resource_controller/test/app/views/cms/products/edit.rhtml
2132
+ - vendor/plugins/resource_controller/test/app/views/cms/products/index.rhtml
2133
+ - vendor/plugins/resource_controller/test/app/views/cms/products/new.rhtml
2134
+ - vendor/plugins/resource_controller/test/app/views/cms/products/show.rhtml
2135
+ - vendor/plugins/resource_controller/test/app/views/comments/edit.rhtml
2136
+ - vendor/plugins/resource_controller/test/app/views/comments/index.rhtml
2137
+ - vendor/plugins/resource_controller/test/app/views/comments/new.rhtml
2138
+ - vendor/plugins/resource_controller/test/app/views/comments/show.rhtml
2139
+ - vendor/plugins/resource_controller/test/app/views/images/_form.html.erb
2140
+ - vendor/plugins/resource_controller/test/app/views/images/edit.html.erb
2141
+ - vendor/plugins/resource_controller/test/app/views/images/new.html.erb
2142
+ - vendor/plugins/resource_controller/test/app/views/layouts/application.rhtml
2143
+ - vendor/plugins/resource_controller/test/app/views/layouts/comments.rhtml
2144
+ - vendor/plugins/resource_controller/test/app/views/layouts/options.rhtml
2145
+ - vendor/plugins/resource_controller/test/app/views/layouts/people.rhtml
2146
+ - vendor/plugins/resource_controller/test/app/views/layouts/photos.rhtml
2147
+ - vendor/plugins/resource_controller/test/app/views/layouts/projects.rhtml
2148
+ - vendor/plugins/resource_controller/test/app/views/layouts/somethings.rhtml
2149
+ - vendor/plugins/resource_controller/test/app/views/layouts/tags.rhtml
2150
+ - vendor/plugins/resource_controller/test/app/views/options/_form.html.erb
2151
+ - vendor/plugins/resource_controller/test/app/views/options/edit.html.erb
2152
+ - vendor/plugins/resource_controller/test/app/views/options/index.html.erb
2153
+ - vendor/plugins/resource_controller/test/app/views/options/new.html.erb
2154
+ - vendor/plugins/resource_controller/test/app/views/options/show.html.erb
2155
+ - vendor/plugins/resource_controller/test/app/views/people/edit.rhtml
2156
+ - vendor/plugins/resource_controller/test/app/views/people/index.rhtml
2157
+ - vendor/plugins/resource_controller/test/app/views/people/new.rhtml
2158
+ - vendor/plugins/resource_controller/test/app/views/people/show.rhtml
2159
+ - vendor/plugins/resource_controller/test/app/views/photos/edit.rhtml
2160
+ - vendor/plugins/resource_controller/test/app/views/photos/index.rhtml
2161
+ - vendor/plugins/resource_controller/test/app/views/photos/new.rhtml
2162
+ - vendor/plugins/resource_controller/test/app/views/photos/show.rhtml
2163
+ - vendor/plugins/resource_controller/test/app/views/posts/edit.rhtml
2164
+ - vendor/plugins/resource_controller/test/app/views/posts/index.rhtml
2165
+ - vendor/plugins/resource_controller/test/app/views/posts/new.rhtml
2166
+ - vendor/plugins/resource_controller/test/app/views/posts/show.rhtml
2167
+ - vendor/plugins/resource_controller/test/app/views/projects/edit.rhtml
2168
+ - vendor/plugins/resource_controller/test/app/views/projects/index.rhtml
2169
+ - vendor/plugins/resource_controller/test/app/views/projects/new.rhtml
2170
+ - vendor/plugins/resource_controller/test/app/views/projects/show.rhtml
2171
+ - vendor/plugins/resource_controller/test/app/views/somethings/edit.rhtml
2172
+ - vendor/plugins/resource_controller/test/app/views/somethings/index.rhtml
2173
+ - vendor/plugins/resource_controller/test/app/views/somethings/new.rhtml
2174
+ - vendor/plugins/resource_controller/test/app/views/somethings/show.rhtml
2175
+ - vendor/plugins/resource_controller/test/app/views/tags/edit.rhtml
2176
+ - vendor/plugins/resource_controller/test/app/views/tags/index.rhtml
2177
+ - vendor/plugins/resource_controller/test/app/views/tags/index.rjs
2178
+ - vendor/plugins/resource_controller/test/app/views/tags/new.rhtml
2179
+ - vendor/plugins/resource_controller/test/app/views/tags/show.rhtml
2180
+ - vendor/plugins/resource_controller/test/app/views/users/edit.rhtml
2181
+ - vendor/plugins/resource_controller/test/app/views/users/index.rhtml
2182
+ - vendor/plugins/resource_controller/test/app/views/users/new.rhtml
2183
+ - vendor/plugins/resource_controller/test/app/views/users/show.rhtml
2184
+ - vendor/plugins/resource_controller/test/config/boot.rb
2185
+ - vendor/plugins/resource_controller/test/config/database.yml
2186
+ - vendor/plugins/resource_controller/test/config/environment.rb
2187
+ - vendor/plugins/resource_controller/test/config/environments/development.rb
2188
+ - vendor/plugins/resource_controller/test/config/environments/test.rb
2189
+ - vendor/plugins/resource_controller/test/config/initializers/inflections.rb
2190
+ - vendor/plugins/resource_controller/test/config/routes.rb
2191
+ - vendor/plugins/resource_controller/test/db/migrate/001_create_posts.rb
2192
+ - vendor/plugins/resource_controller/test/db/migrate/002_create_products.rb
2193
+ - vendor/plugins/resource_controller/test/db/migrate/003_create_comments.rb
2194
+ - vendor/plugins/resource_controller/test/db/migrate/004_create_options.rb
2195
+ - vendor/plugins/resource_controller/test/db/migrate/005_create_photos.rb
2196
+ - vendor/plugins/resource_controller/test/db/migrate/006_create_tags.rb
2197
+ - vendor/plugins/resource_controller/test/db/migrate/007_create_somethings.rb
2198
+ - vendor/plugins/resource_controller/test/db/migrate/008_create_accounts.rb
2199
+ - vendor/plugins/resource_controller/test/db/migrate/009_add_account_id_to_photos.rb
2200
+ - vendor/plugins/resource_controller/test/db/migrate/010_create_projects.rb
2201
+ - vendor/plugins/resource_controller/test/db/migrate/011_create_images.rb
2202
+ - vendor/plugins/resource_controller/test/db/migrate/012_create_users.rb
2203
+ - vendor/plugins/resource_controller/test/db/migrate/013_create_personnel.rb
2204
+ - vendor/plugins/resource_controller/test/db/migrate/014_add_personnel_id_to_photos.rb
2205
+ - vendor/plugins/resource_controller/test/db/schema.rb
2206
+ - vendor/plugins/resource_controller/test/script/console
2207
+ - vendor/plugins/resource_controller/test/script/destroy
2208
+ - vendor/plugins/resource_controller/test/script/generate
2209
+ - vendor/plugins/resource_controller/test/script/server
2210
+ - vendor/plugins/resource_controller/test/test/fixtures/accounts.yml
2211
+ - vendor/plugins/resource_controller/test/test/fixtures/comments.yml
2212
+ - vendor/plugins/resource_controller/test/test/fixtures/images.yml
2213
+ - vendor/plugins/resource_controller/test/test/fixtures/options.yml
2214
+ - vendor/plugins/resource_controller/test/test/fixtures/personnel.yml
2215
+ - vendor/plugins/resource_controller/test/test/fixtures/photos.yml
2216
+ - vendor/plugins/resource_controller/test/test/fixtures/photos_tags.yml
2217
+ - vendor/plugins/resource_controller/test/test/fixtures/posts.yml
2218
+ - vendor/plugins/resource_controller/test/test/fixtures/products.yml
2219
+ - vendor/plugins/resource_controller/test/test/fixtures/projects.yml
2220
+ - vendor/plugins/resource_controller/test/test/fixtures/somethings.yml
2221
+ - vendor/plugins/resource_controller/test/test/fixtures/tags.yml
2222
+ - vendor/plugins/resource_controller/test/test/fixtures/users.yml
2223
+ - vendor/plugins/resource_controller/test/test/functional/cms/options_controller_test.rb
2224
+ - vendor/plugins/resource_controller/test/test/functional/cms/photos_controller_test.rb
2225
+ - vendor/plugins/resource_controller/test/test/functional/cms/products_controller_test.rb
2226
+ - vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
2227
+ - vendor/plugins/resource_controller/test/test/functional/images_controller_test.rb
2228
+ - vendor/plugins/resource_controller/test/test/functional/people_controller_test.rb
2229
+ - vendor/plugins/resource_controller/test/test/functional/photos_controller_test.rb
2230
+ - vendor/plugins/resource_controller/test/test/functional/posts_controller_test.rb
2231
+ - vendor/plugins/resource_controller/test/test/functional/projects_controller_test.rb
2232
+ - vendor/plugins/resource_controller/test/test/functional/somethings_controller_test.rb
2233
+ - vendor/plugins/resource_controller/test/test/functional/tags_controller_test.rb
2234
+ - vendor/plugins/resource_controller/test/test/functional/users_controller_test.rb
2235
+ - vendor/plugins/resource_controller/test/test/test_helper.rb
2236
+ - vendor/plugins/resource_controller/test/test/unit/accessors_test.rb
2237
+ - vendor/plugins/resource_controller/test/test/unit/account_test.rb
2238
+ - vendor/plugins/resource_controller/test/test/unit/action_options_test.rb
2239
+ - vendor/plugins/resource_controller/test/test/unit/base_test.rb
2240
+ - vendor/plugins/resource_controller/test/test/unit/comment_test.rb
2241
+ - vendor/plugins/resource_controller/test/test/unit/failable_action_options_test.rb
2242
+ - vendor/plugins/resource_controller/test/test/unit/helpers/current_objects_test.rb
2243
+ - vendor/plugins/resource_controller/test/test/unit/helpers/internal_test.rb
2244
+ - vendor/plugins/resource_controller/test/test/unit/helpers/nested_test.rb
2245
+ - vendor/plugins/resource_controller/test/test/unit/helpers/singleton_current_objects_test.rb
2246
+ - vendor/plugins/resource_controller/test/test/unit/helpers/singleton_nested_test.rb
2247
+ - vendor/plugins/resource_controller/test/test/unit/helpers/singleton_urls_test.rb
2248
+ - vendor/plugins/resource_controller/test/test/unit/helpers/urls_test.rb
2249
+ - vendor/plugins/resource_controller/test/test/unit/helpers_test.rb
2250
+ - vendor/plugins/resource_controller/test/test/unit/image_test.rb
2251
+ - vendor/plugins/resource_controller/test/test/unit/option_test.rb
2252
+ - vendor/plugins/resource_controller/test/test/unit/photo_test.rb
2253
+ - vendor/plugins/resource_controller/test/test/unit/post_test.rb
2254
+ - vendor/plugins/resource_controller/test/test/unit/project_test.rb
2255
+ - vendor/plugins/resource_controller/test/test/unit/response_collector_test.rb
2256
+ - vendor/plugins/resource_controller/test/test/unit/something_test.rb
2257
+ - vendor/plugins/resource_controller/test/test/unit/tag_test.rb
2258
+ - vendor/plugins/resource_controller/test/test/unit/urligence_test.rb
2259
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/Rakefile
2260
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/bin/convert_to_should_syntax
2261
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/init.rb
2262
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda.rb
2263
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/active_record_helpers.rb
2264
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/color.rb
2265
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/controller_tests.rb
2266
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/html.rb
2267
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/xml.rb
2268
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/gem/proc_extensions.rb
2269
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/gem/shoulda.rb
2270
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/general.rb
2271
+ - vendor/plugins/resource_controller/test/vendor/plugins/shoulda/lib/shoulda/private_helpers.rb
2061
2272
  - vendor/plugins/resource_controller/uninstall.rb
2062
2273
  - vendor/plugins/ssl_requirement/README
2063
2274
  - vendor/plugins/ssl_requirement/lib/ssl_requirement.rb
@@ -2117,13 +2328,11 @@ files:
2117
2328
  - vendor/plugins/unobtrusive_date_picker/spec/tag_matcher.rb
2118
2329
  - vendor/plugins/unobtrusive_date_picker/spec/unobtrusive_date_picker_spec.rb
2119
2330
  - vendor/plugins/unobtrusive_date_picker/uninstall.rb
2120
- has_rdoc: true
2121
2331
  homepage: http://github.com/railsdog/spree
2122
2332
  licenses: []
2123
2333
 
2124
2334
  post_install_message:
2125
2335
  rdoc_options:
2126
- - --charset=UTF-8
2127
2336
  - --exclude
2128
2337
  - app
2129
2338
  - --exclude
@@ -2139,14 +2348,14 @@ rdoc_options:
2139
2348
  - --exclude
2140
2349
  - log
2141
2350
  - --exclude
2351
+ - pkg
2352
+ - --exclude
2142
2353
  - public
2143
2354
  - --exclude
2144
2355
  - script
2145
2356
  - --exclude
2146
2357
  - test
2147
2358
  - --exclude
2148
- - tmp
2149
- - --exclude
2150
2359
  - vendor
2151
2360
  require_paths:
2152
2361
  - lib
@@ -2171,93 +2380,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2171
2380
  requirements: []
2172
2381
 
2173
2382
  rubyforge_project: spree
2174
- rubygems_version: 1.3.7
2383
+ rubygems_version: 1.8.10
2175
2384
  signing_key:
2176
2385
  specification_version: 3
2177
2386
  summary: Open Source E-Commerce for Ruby on Rails
2178
- test_files:
2179
- - test/factories/address_factory.rb
2180
- - test/factories/adjustments_factory.rb
2181
- - test/factories/checkout_factory.rb
2182
- - test/factories/country_factory.rb
2183
- - test/factories/coupon_factory.rb
2184
- - test/factories/creditcard_factory.rb
2185
- - test/factories/inventory_unit_factory.rb
2186
- - test/factories/line_item_factory.rb
2187
- - test/factories/options_factory.rb
2188
- - test/factories/order_factory.rb
2189
- - test/factories/payment_factory.rb
2190
- - test/factories/preference_factory.rb
2191
- - test/factories/product_factory.rb
2192
- - test/factories/product_group_factory.rb
2193
- - test/factories/role_factory.rb
2194
- - test/factories/shipment_factory.rb
2195
- - test/factories/shipping_category_factory.rb
2196
- - test/factories/shipping_method_factory.rb
2197
- - test/factories/tax_category_factory.rb
2198
- - test/factories/tax_rate_factory.rb
2199
- - test/factories/taxon_factory.rb
2200
- - test/factories/taxonomy_factory.rb
2201
- - test/factories/user_factory.rb
2202
- - test/factories/variant_factory.rb
2203
- - test/factories/zone_factory.rb
2204
- - test/functional/admin/adjustments_controller_test.rb
2205
- - test/functional/admin/checkouts_controller_test.rb
2206
- - test/functional/admin/configurations_controller_test.rb
2207
- - test/functional/admin/line_items_controller_test.rb
2208
- - test/functional/admin/payments_controller_test.rb
2209
- - test/functional/admin/product_groups_controller_test.rb
2210
- - test/functional/admin/products_controller_test.rb
2211
- - test/functional/admin/reports_controller_test.rb
2212
- - test/functional/admin/return_authorizations_controller_test.rb
2213
- - test/functional/admin/shipments_controller_test.rb
2214
- - test/functional/calculators_controller_test.rb
2215
- - test/functional/checkouts_controller_test.rb
2216
- - test/functional/line_items_controller_test.rb
2217
- - test/functional/products_controller_test.rb
2218
- - test/functional/users_controller_test.rb
2219
- - test/integration/checkout_test.rb
2220
- - test/integration/searching_test.rb
2221
- - test/shoulda_macros/should_redirect.rb
2222
- - test/test_helper.rb
2223
- - test/unit/address_test.rb
2224
- - test/unit/adjustment_test.rb
2225
- - test/unit/charge_test.rb
2226
- - test/unit/checkout_test.rb
2227
- - test/unit/country_test.rb
2228
- - test/unit/coupon_test.rb
2229
- - test/unit/credit_test.rb
2230
- - test/unit/creditcard_payment_test.rb
2231
- - test/unit/creditcard_test.rb
2232
- - test/unit/factories_test.rb
2233
- - test/unit/flat_percent_item_total_test.rb
2234
- - test/unit/flat_rate_calculators_test.rb
2235
- - test/unit/flexi_rate_calculator_test.rb
2236
- - test/unit/has_calculator_test.rb
2237
- - test/unit/helpers/admin/adjustments_helper_test.rb
2238
- - test/unit/helpers/admin/credits_helper_test.rb
2239
- - test/unit/helpers/admin/return_authorizations_helper_test.rb
2240
- - test/unit/helpers/calculators_helper_test.rb
2241
- - test/unit/helpers/products_helper_test.rb
2242
- - test/unit/helpers/spree/base_helper_test.rb
2243
- - test/unit/inventory_unit_test.rb
2244
- - test/unit/line_item_test.rb
2245
- - test/unit/order_mailer_test.rb
2246
- - test/unit/order_state_test.rb
2247
- - test/unit/order_test.rb
2248
- - test/unit/payment_test.rb
2249
- - test/unit/per_item_calculator_test.rb
2250
- - test/unit/preference_definition_test.rb
2251
- - test/unit/preference_test.rb
2252
- - test/unit/product_group_test.rb
2253
- - test/unit/product_scope_test.rb
2254
- - test/unit/product_test.rb
2255
- - test/unit/return_authorization_test.rb
2256
- - test/unit/sales_tax_calculator_test.rb
2257
- - test/unit/shipment_test.rb
2258
- - test/unit/shipping_method_test.rb
2259
- - test/unit/state_event_test.rb
2260
- - test/unit/state_test.rb
2261
- - test/unit/tax_rate_test.rb
2262
- - test/unit/variant_test.rb
2263
- - test/unit/vat_calculator_test.rb
2387
+ test_files: []
2388
+