Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: EmergeAdapt/refineree
base: 98462d3685
...
head fork: EmergeAdapt/refineree
compare: ab1014c986
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 211 files changed
  • 0 commit comments
  • 1 contributor
Showing with 498 additions and 4,575 deletions.
  1. +1 −0  .rspec
  2. +20 −44 Gemfile
  3. +128 −96 Gemfile.lock
  4. +17 −0 Guardfile
  5. +1 −2  README.rdoc
  6. +17 −4 Rakefile
  7. BIN  app/assets/images/rails.png
  8. +0 −15 app/assets/javascripts/application.js
  9. +0 −14 app/assets/stylesheets/application.css
  10. +0 −3  app/controllers/application_controller.rb
  11. +5 −0 app/controllers/refinery/admin/refineree_controller.rb
  12. +8 −15 app/controllers/spree/base_controller_decorator.rb
  13. +0 −2  app/helpers/application_helper.rb
  14. 0  app/mailers/.gitkeep
  15. 0  app/models/.gitkeep
  16. +0 −33 app/views/layouts/application.html.erb
  17. +0 −26 app/views/layouts/full_page_layout.html.erb
  18. +0 −26 app/views/refinery/pages/full_page_template.html.erb
  19. +0 −4 app/views/refinery/pages/show.html.erb
  20. +0 −4 config.ru
  21. +0 −72 config/application.rb
  22. +0 −6 config/boot.rb
  23. +0 −25 config/database.yml
  24. +0 −7 config/environment.rb
  25. +0 −37 config/environments/development.rb
  26. +0 −71 config/environments/production.rb
  27. +0 −37 config/environments/test.rb
  28. +4 −2 config/initializers/active_record_initializer.rb
  29. +0 −7 config/initializers/backtrace_silencers.rb
  30. +0 −231 config/initializers/devise.rb
  31. +0 −15 config/initializers/inflections.rb
  32. +0 −5 config/initializers/mime_types.rb
  33. +0 −11 config/initializers/refinery/blog.rb
  34. +0 −48 config/initializers/refinery/core.rb
  35. +0 −15 config/initializers/refinery/i18n.rb
  36. +0 −41 config/initializers/refinery/images.rb
  37. +0 −54 config/initializers/refinery/pages.rb
  38. +0 −26 config/initializers/refinery/resources.rb
  39. +0 −7 config/initializers/secret_token.rb
  40. +0 −8 config/initializers/session_store.rb
  41. +0 −12 config/initializers/spree.rb
  42. +0 −14 config/initializers/wrap_parameters.rb
  43. +0 −5 config/locales/en.yml
  44. +1 −79 config/routes.rb
  45. +0 −2  config/spree.yml
  46. +0 −44 db/migrate/20120330082359_create_refinerycms_authentication_schema.refinery_authentication.rb
  47. +0 −16 db/migrate/20120330082360_create_refinerycms_images_schema.refinery_images.rb
  48. +0 −14 db/migrate/20120330082361_create_refinerycms_resources_schema.refinery_resources.rb
  49. +0 −59 db/migrate/20120330082362_create_refinerycms_pages_schema.refinery_pages.rb
  50. +0 −24 db/migrate/20120330082363_create_seo_meta.seo_meta_engine.rb
  51. +0 −53 db/migrate/20120330093531_create_blog_structure.refinery_blog.rb
  52. +0 −8 db/migrate/20120330093532_add_user_id_to_blog_posts.refinery_blog.rb
  53. +0 −29 db/migrate/20120330093533_acts_as_taggable_on_migration.refinery_blog.rb
  54. +0 −7 db/migrate/20120330093534_add_cached_slugs.refinery_blog.rb
  55. +0 −6 db/migrate/20120330093535_add_custom_url_field_to_blog_posts.refinery_blog.rb
  56. +0 −7 db/migrate/20120330093536_add_custom_teaser_field_to_blog_posts.refinery_blog.rb
  57. +0 −15 db/migrate/20120330093537_add_primary_key_to_categorizations.refinery_blog.rb
  58. +0 −8 db/migrate/20120330093538_add_source_url_to_blog_posts.refinery_blog.rb
  59. +0 −9 db/migrate/20120330093539_add_access_count_to_posts.refinery_blog.rb
  60. +0 −10 db/migrate/20120330093540_add_slug_to_posts_and_categories.refinery_blog.rb
  61. +0 −17 db/migrate/20120330093541_create_refinerycms_settings_schema.refinery_settings.rb
  62. +0 −390 db/migrate/20120330100246_spree_zero_nine_zero.spree.rb
  63. +0 −7 db/migrate/20120330100247_create_indexes_for_inventory_units.spree.rb
  64. +0 −50 db/migrate/20120330100248_add_count_on_hand_to_variants_and_products.spree.rb
  65. +0 −47 db/migrate/20120330100249_change_taxons_to_nested_set.spree.rb
  66. +0 −55 db/migrate/20120330100250_move_to_configurable_gateways.spree.rb
  67. +0 −16 db/migrate/20120330100251_add_open_id_authentication_tables.spree.rb
  68. +0 −25 db/migrate/20120330100252_add_openid_field_to_users.spree.rb
  69. +0 −11 db/migrate/20120330100253_change_preference_value_type.spree.rb
  70. +0 −13 db/migrate/20120330100254_create_billing_integrations.spree.rb
  71. +0 −40 db/migrate/20120330100255_charge_refactoring.spree.rb
  72. +0 −12 db/migrate/20120330100256_add_some_indexes.spree.rb
  73. +0 −6 db/migrate/20120330100257_checkout_state_machine.spree.rb
  74. +0 −6 db/migrate/20120330100258_state_for_shipments.spree.rb
  75. +0 −13 db/migrate/20120330100259_make_state_events_polymorphic.spree.rb
  76. +0 −6 db/migrate/20120330100260_ship_address_id_for_checkouts.spree.rb
  77. +0 −6 db/migrate/20120330100261_shipping_method_id_for_checkouts.spree.rb
  78. +0 −15 db/migrate/20120330100262_creditcard_last_four_digits.spree.rb
  79. +0 −16 db/migrate/20120330100263_populate_legacy_shipment_state.spree.rb
  80. +0 −6 db/migrate/20120330100264_add_cost_price.spree.rb
  81. +0 −26 db/migrate/20120330100265_shipment_id_for_inventory_units.spree.rb
  82. +0 −7 db/migrate/20120330100266_cim_fields_for_creditcards.spree.rb
  83. +0 −13 db/migrate/20120330100267_create_return_authorizations.spree.rb
  84. +0 −6 db/migrate/20120330100268_add_return_authorization_to_inventory_units.spree.rb
  85. +0 −11 db/migrate/20120330100269_create_trackers.spree.rb
  86. +0 −6 db/migrate/20120330100270_creditcard_id_for_creditcard_txns.spree.rb
  87. +0 −6 db/migrate/20120330100271_original_creditcard_txn_id_for_creditcard_txns.spree.rb
  88. +0 −7 db/migrate/20120330100272_add_test_mode_to_billing_integration.spree.rb
  89. +0 −17 db/migrate/20120330100273_create_payment_methods.spree.rb
  90. +0 −43 db/migrate/20120330100274_polymorphic_payments.spree.rb
  91. +0 −12 db/migrate/20120330100275_change_payments_payment_method_to_belongs_to.spree.rb
  92. +0 −24 db/migrate/20120330100276_assign_creditcard_txns_to_payment.spree.rb
  93. +0 −16 db/migrate/20120330100277_sti_for_transactions.spree.rb
  94. +0 −17 db/migrate/20120330100278_drop_billing_integrations.spree.rb
  95. +0 −15 db/migrate/20120330100279_deleted_at_for_payment_methods.spree.rb
  96. +0 −7 db/migrate/20120330100280_add_adjustments_index.spree.rb
  97. +0 −6 db/migrate/20120330100281_add_alt_text_to_images.spree.rb
  98. +0 −14 db/migrate/20120330100282_fix_existing_coupon_credits.spree.rb
  99. +0 −6 db/migrate/20120330100283_add_display_to_payment_methods.spree.rb
  100. +0 −9 db/migrate/20120330100284_add_addresses_checkouts_indexes.spree.rb
  101. +0 −18 db/migrate/20120330100285_add_icon_to_taxons.spree.rb
  102. +0 −12 db/migrate/20120330100286_add_description_to_taxons.spree.rb
  103. +0 −6 db/migrate/20120330100287_index_for_shipments_number.spree.rb
  104. +0 −6 db/migrate/20120330100288_add_index_on_users_persistence_token.spree.rb
  105. +0 −6 db/migrate/20120330100289_add_default_to_tax_categories.spree.rb
  106. +0 −6 db/migrate/20120330100290_add_display_to_shipping_methods.spree.rb
  107. +0 −6 db/migrate/20120330100291_rename_payment_method_display.spree.rb
  108. +0 −6 db/migrate/20120330100292_rename_preferences_field.spree.rb
  109. +0 −6 db/migrate/20120330100293_add_guest_flag.spree.rb
  110. +0 −10 db/migrate/20120330100294_drop_order_token.spree.rb
  111. +0 −15 db/migrate/20120330100295_payments_state_and_assigned_to_order_only.spree.rb
  112. +0 −7 db/migrate/20120330100296_create_address_keys_for_order.spree.rb
  113. +0 −6 db/migrate/20120330100297_payment_total_for_orders.spree.rb
  114. +0 −6 db/migrate/20120330100298_shipping_method_id_for_orders.spree.rb
  115. +0 −7 db/migrate/20120330100299_add_shipment_and_payment_state.spree.rb
  116. +0 −30 db/migrate/20120330100300_refactor_adjustments.spree.rb
  117. +0 −7 db/migrate/20120330100301_response_code_and_avs_response_for_payments.spree.rb
  118. +0 −6 db/migrate/20120330100302_change_guest_flag_to_anonymous.spree.rb
  119. +0 −6 db/migrate/20120330100303_email_for_orders.spree.rb
  120. +0 −11 db/migrate/20120330100304_create_mail_methods.spree.rb
  121. +0 −6 db/migrate/20120330100305_rename_frozen_to_locked.spree.rb
  122. +0 −11 db/migrate/20120330100306_move_special_instructions_to_orders.spree.rb
  123. +0 −12 db/migrate/20120330100307_create_log_entries.spree.rb
  124. +0 −99 db/migrate/20120330100308_migrate_transactions_to_payment_state.spree.rb
  125. +0 −20 db/migrate/20120330100309_delete_in_progress_orders.spree.rb
  126. +0 −24 db/migrate/20120330100310_migrate_checkout_to_orders.spree.rb
  127. +0 −13 db/migrate/20120330100311_remove_shipped_state.spree.rb
  128. +0 −9 db/migrate/20120330100312_prevent_nil_payment_total.spree.rb
  129. +0 −10 db/migrate/20120330100313_prevent_nil_email.spree.rb
  130. +0 −21 db/migrate/20120330100314_generate_anonymous_users.spree.rb
  131. +0 −13 db/migrate/20120330100315_update_order_state.spree.rb
  132. +0 −12 db/migrate/20120330100316_cleanup_legacy_tables.spree.rb
  133. +0 −12 db/migrate/20120330100317_remove_number_and_cvv_from_credicard.spree.rb
  134. +0 −10 db/migrate/20120330100318_drop_anonymous_field_for_user.spree.rb
  135. +0 −10 db/migrate/20120330100319_renamed_rma_cancelled_state.spree.rb
  136. +0 −14 db/migrate/20120330100320_fix_problematic_index_names.spree.rb
  137. +0 −6 db/migrate/20120330100321_add_position_to_variants.spree.rb
  138. +0 −6 db/migrate/20120330100322_add_next_state_to_state_events.spree.rb
  139. +0 −6 db/migrate/20120330100323_add_position_to_option_types.spree.rb
  140. +0 −20 db/migrate/20120330100324_remove_trailing_slashes_in_taxon_permalinks.spree.rb
  141. +0 −15 db/migrate/20120330100325_create_activators.spree.rb
  142. +0 −6 db/migrate/20120330100326_eligible_for_adjustments.spree.rb
  143. +0 −50 db/migrate/20120330100327_namespace_top_level_models.spree.rb
  144. +0 −53 db/migrate/20120330100328_migrate_namespaced_polymorphic_models.spree.rb
  145. +0 −10 db/migrate/20120330100329_make_adjustments_polymorphic.spree.rb
  146. +0 −6 db/migrate/20120330100330_add_company_to_addresses.spree.rb
  147. +0 −6 db/migrate/20120330100331_add_inc_tax_to_tax_rates.spree.rb
  148. +0 −6 db/migrate/20120330100332_rename_inc_price_attribute.spree.rb
  149. +0 −6 db/migrate/20120330100333_add_default_tax_zone.spree.rb
  150. +0 −8 db/migrate/20120330100334_associate_shipping_methods_and_shipping_categories.spree.rb
  151. +0 −8 db/migrate/20120330100335_add_match_rules_to_shipping_methods.spree.rb
  152. +0 −49 db/migrate/20120330100336_new_preferences.spree.rb
  153. +0 −10 db/migrate/20120330100337_rename_state_events_to_state_changes.spree.rb
  154. +0 −6 db/migrate/20120330100338_add_deleted_at_to_tax_category.spree.rb
  155. +0 −36 db/migrate/20120330100339_migrate_images_from_products_to_variants.spree.rb
  156. +0 −40 db/migrate/20120330100340_rename_columns_for_devise.spree_auth.rb
  157. +0 −12 db/migrate/20120330100341_convert_user_remember_field.spree_auth.rb
  158. +0 −14 db/migrate/20120330100342_create_tokenized_permissions.spree_auth.rb
  159. +0 −17 db/migrate/20120330100343_tokens_for_legacy_orders.spree_auth.rb
  160. +0 −6 db/migrate/20120330100344_namespace_tokenized_permission.spree_auth.rb
  161. +0 −25 db/migrate/20120330100345_migrate_tokenized_permissions.spree_auth.rb
  162. +0 −6 db/migrate/20120330100346_add_reset_password_sent_at_to_spree_users.spree_auth.rb
  163. +0 −6 db/migrate/20120330100347_add_api_key_to_users.spree_api.rb
  164. +0 −11 db/migrate/20120330100348_rename_coupons_to_promotions.spree_promo.rb
  165. +0 −25 db/migrate/20120330100349_create_promotion_rules.spree_promo.rb
  166. +0 −6 db/migrate/20120330100350_match_policy_for_promotions.spree_promo.rb
  167. +0 −15 db/migrate/20120330100351_create_promotion_rules_users.spree_promo.rb
  168. +0 −6 db/migrate/20120330100352_name_for_promotions.spree_promo.rb
  169. +0 −10 db/migrate/20120330100353_update_calculable_type_for_promotions.spree_promo.rb
  170. +0 −10 db/migrate/20120330100354_migrate_adjustments.spree_promo.rb
  171. +0 −23 db/migrate/20120330100355_promotion_changes_to_subclass_of_activator.spree_promo.rb
  172. +0 −10 db/migrate/20120330100356_create_promotion_actions.spree_promo.rb
  173. +0 −11 db/migrate/20120330100357_create_promotion_action_line_items.spree_promo.rb
  174. +0 −86 db/migrate/20120330100358_namespace_promo_tables.spree_promo.rb
  175. +0 −12 db/migrate/20120330100359_create_spree_pending_promotions.spree_promo.rb
  176. +0 −30 db/migrate/20120330100360_content_visited_event.spree_promo.rb
  177. +0 −802 db/schema.rb
  178. +1 −17 db/seeds.rb
  179. +0 −2  doc/README_FOR_APP
  180. 0  lib/assets/.gitkeep
  181. +36 −0 lib/generators/refinery/refineree_generator.rb
  182. +21 −0 lib/refinery/refineree.rb
  183. +23 −0 lib/refinery/refineree/engine.rb
  184. +1 −0  lib/refinerycms-refineree.rb
  185. +6 −0 lib/spree/core/controller_helpers_decorator.rb
  186. 0  lib/tasks/.gitkeep
  187. +13 −0 lib/tasks/refinery/refineree.rake
  188. +13 −0 lib/tasks/refinery/refinerees.rake
  189. 0  log/.gitkeep
  190. +0 −26 public/404.html
  191. +0 −26 public/422.html
  192. +0 −25 public/500.html
  193. 0  public/favicon.ico
  194. +0 −14 public/robots.txt
  195. +10 −0 readme.md
  196. +18 −0 refinerycms-refineree.gemspec
  197. +0 −6 script/rails
  198. +93 −0 spec/requests/home_page_spec.rb
  199. +14 −0 spec/requests/pagination_bug_spec.rb
  200. +33 −0 spec/spec_helper.rb
  201. +6 −0 tasks/rspec.rake
  202. +8 −0 tasks/testing.rake
  203. 0  test/fixtures/.gitkeep
  204. 0  test/functional/.gitkeep
  205. 0  test/integration/.gitkeep
  206. +0 −12 test/performance/browsing_test.rb
  207. +0 −13 test/test_helper.rb
  208. 0  test/unit/.gitkeep
  209. 0  vendor/assets/javascripts/.gitkeep
  210. 0  vendor/assets/stylesheets/.gitkeep
  211. 0  vendor/plugins/.gitkeep
View
1  .rspec
@@ -0,0 +1 @@
+--colour
View
64 Gemfile
@@ -1,53 +1,29 @@
-source 'https://rubygems.org'
+source "http://rubygems.org"
-gem 'rails', '3.2.2'
-
-# Bundle edge Rails instead:
-# gem 'rails', :git => 'git://github.com/rails/rails.git'
+gemspec
+gem 'refinerycms', '~> 2.0.0'
gem 'sqlite3'
+gem 'spree', :git => 'https://github.com/spree/spree.git', :ref => 'HEAD'
-
-# Gems used only for assets and not required
-# in production environments by default.
+# Refinery/rails should pull in the proper versions of these
group :assets do
- gem 'sass-rails', '~> 3.2.3'
- gem 'coffee-rails', '~> 3.2.1'
- gem 'compass-rails'
- gem 'zurb-foundation'
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
- # gem 'therubyracer'
-
- gem 'uglifier', '>= 1.0.3'
+ gem 'sass-rails'
+ gem 'coffee-rails'
+ gem 'uglifier'
end
gem 'jquery-rails'
-
-# To use ActiveModel has_secure_password
-# gem 'bcrypt-ruby', '~> 3.0.0'
-
-# To use Jbuilder templates for JSON
-# gem 'jbuilder'
-
-# Use unicorn as the app server
-# gem 'unicorn'
-
-# Deploy with Capistrano
-# gem 'capistrano'
-
-# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
-
-
-# Refinery CMS
-gem 'refinerycms', '~> 2.0.0'
-gem 'spree', :git => 'https://github.com/spree/spree.git', :ref => 'HEAD'
-gem 'spree_refinery_auth', :git => 'https://github.com/jipiboily/spree_refinery_auth.git'
-# Specify additional Refinery CMS Extensions here (all optional):
-gem 'refinerycms-i18n', '~> 2.0.0'
-
-gem 'refinerycms-blog', '~> 2.0.0'
-# gem 'refinerycms-inquiries', '~> 2.0.0'
-# gem 'refinerycms-search', '~> 2.0.0'
-# gem 'refinerycms-page-images', '~> 2.0.0'gem 'spree'
+group :development, :test do
+ gem 'refinerycms-testing', '~> 2.0.0'
+ gem 'factory_girl_rails'
+ gem 'generator_spec'
+ gem 'rspec-rails'
+ gem 'capybara'
+ gem 'guard-spork'
+
+
+ gem 'rb-inotify', '>= 0.5.1'
+ gem 'libnotify', '~> 0.1.3'
+end
View
224 Gemfile.lock
@@ -1,13 +1,6 @@
GIT
- remote: https://github.com/jipiboily/spree_refinery_auth.git
- revision: 36fb2e2fbae8e08259d87a4e95f7c8e140d8af31
- specs:
- spree_refinery_auth (1.1.0.beta)
- spree_core (= 1.1.0.beta)
-
-GIT
remote: https://github.com/spree/spree.git
- revision: 81afb0b321c57c1c55d37b8aadc509c332ce23d4
+ revision: f4f86fd69cfa35af140c9faedb4858199a1a81f5
ref: HEAD
specs:
spree (1.1.0.beta)
@@ -37,7 +30,7 @@ GIT
kaminari (>= 0.13.0)
nested_set (= 1.7.0)
paperclip (~> 2.7.0)
- rails (= 3.2.2)
+ rails (>= 3.2.2, <= 3.2.3)
ransack (~> 0.6.0)
state_machine (= 1.1.2)
stringex (~> 1.3.2)
@@ -51,20 +44,26 @@ GIT
spree_sample (1.1.0.beta)
spree_core (= 1.1.0.beta)
+PATH
+ remote: .
+ specs:
+ refinerycms-refineree (1.0)
+ refinerycms-core (~> 2.0.2)
+
GEM
- remote: https://rubygems.org/
+ remote: http://rubygems.org/
specs:
- actionmailer (3.2.2)
- actionpack (= 3.2.2)
- mail (~> 2.4.0)
- actionpack (3.2.2)
- activemodel (= 3.2.2)
- activesupport (= 3.2.2)
+ actionmailer (3.2.3)
+ actionpack (= 3.2.3)
+ mail (~> 2.4.4)
+ actionpack (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
- rack-cache (~> 1.1)
+ rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
active_utils (1.0.3)
@@ -78,28 +77,26 @@ GEM
i18n
json (>= 1.5.1)
money (<= 3.7.1)
- activemodel (3.2.2)
- activesupport (= 3.2.2)
+ activemodel (3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
- activerecord (3.2.2)
- activemodel (= 3.2.2)
- activesupport (= 3.2.2)
+ activerecord (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
- activeresource (3.2.2)
- activemodel (= 3.2.2)
- activesupport (= 3.2.2)
- activesupport (3.2.2)
+ activeresource (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
- acts-as-taggable-on (2.2.2)
- rails (~> 3.0)
acts_as_indexed (0.7.8)
acts_as_list (0.1.4)
arel (3.0.2)
awesome_nested_set (2.1.2)
activerecord (>= 3.0.0)
- aws-sdk (1.3.6)
+ aws-sdk (1.3.9)
httparty (~> 0.7)
json (~> 1.4)
nokogiri (>= 1.4.4)
@@ -110,7 +107,15 @@ GEM
builder (>= 2.0.0)
builder (3.0.0)
cancan (1.6.7)
- chunky_png (1.2.5)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.3.1)
+ ffi (~> 1.0.6)
cocaine (0.2.1)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
@@ -119,12 +124,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.2.0)
- compass (0.12.1)
- chunky_png (~> 1.2)
- fssm (>= 0.2.7)
- sass (~> 3.1)
- compass-rails (1.0.1)
- compass (~> 0.12.0)
+ database_cleaner (0.7.2)
deface (0.8.0)
nokogiri (~> 1.5.0)
rails (>= 3.0.9)
@@ -133,19 +133,33 @@ GEM
orm_adapter (~> 0.0.3)
railties (~> 3.1)
warden (~> 1.1.1)
+ diff-lcs (1.1.3)
dragonfly (0.9.11)
rack
erubis (2.7.0)
execjs (1.3.0)
multi_json (~> 1.0)
+ factory_girl (2.6.4)
+ activesupport (>= 2.3.9)
+ factory_girl_rails (1.7.0)
+ factory_girl (~> 2.6.0)
+ railties (>= 3.0.0)
ffaker (1.12.1)
- filters_spam (0.3)
+ ffi (1.0.11)
friendly_id (4.0.4)
- fssm (0.2.8.1)
+ generator_spec (0.8.5)
+ rails (>= 3.0, < 4.0)
+ rspec-rails
globalize3 (0.2.0)
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
paper_trail (~> 2)
+ guard (1.0.1)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-spork (0.5.2)
+ guard (>= 0.10.0)
+ spork (>= 0.8.4)
highline (1.6.11)
hike (1.2.1)
httparty (0.8.1)
@@ -161,6 +175,8 @@ GEM
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
+ libnotify (0.1.4)
+ ffi (>= 0.6.2)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -193,19 +209,17 @@ GEM
rack
rack-test (0.6.1)
rack (>= 1.0)
- rails (3.2.2)
- actionmailer (= 3.2.2)
- actionpack (= 3.2.2)
- activerecord (= 3.2.2)
- activeresource (= 3.2.2)
- activesupport (= 3.2.2)
+ rails (3.2.3)
+ actionmailer (= 3.2.3)
+ actionpack (= 3.2.3)
+ activerecord (= 3.2.3)
+ activeresource (= 3.2.3)
+ activesupport (= 3.2.3)
bundler (~> 1.0)
- railties (= 3.2.2)
- rails_autolink (1.0.6)
- rails (~> 3.1)
- railties (3.2.2)
- actionpack (= 3.2.2)
- activesupport (= 3.2.2)
+ railties (= 3.2.3)
+ railties (3.2.3)
+ actionpack (= 3.2.3)
+ activesupport (= 3.2.3)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
@@ -215,27 +229,23 @@ GEM
actionpack (~> 3.0)
activerecord (~> 3.0)
polyamorous (~> 0.5.0)
+ rb-inotify (0.8.8)
+ ffi (>= 0.5.0)
rdoc (3.12)
json (~> 1.4)
- refinerycms (2.0.2)
+ refinerycms (2.0.3)
bundler (~> 1.0)
- refinerycms-authentication (= 2.0.2)
- refinerycms-core (= 2.0.2)
- refinerycms-dashboard (= 2.0.2)
- refinerycms-images (= 2.0.2)
- refinerycms-pages (= 2.0.2)
- refinerycms-resources (= 2.0.2)
- refinerycms-authentication (2.0.2)
+ refinerycms-authentication (= 2.0.3)
+ refinerycms-core (= 2.0.3)
+ refinerycms-dashboard (= 2.0.3)
+ refinerycms-images (= 2.0.3)
+ refinerycms-pages (= 2.0.3)
+ refinerycms-resources (= 2.0.3)
+ refinerycms-authentication (2.0.3)
devise (~> 2.0.0)
- refinerycms-core (= 2.0.2)
- refinerycms-blog (2.0.1)
- acts-as-taggable-on
- filters_spam (~> 0.2)
- rails_autolink
- refinerycms-core (~> 2.0.1)
- refinerycms-settings (~> 2.0.1)
- seo_meta (~> 1.2.0)
- refinerycms-core (2.0.2)
+ orm_adapter (~> 0.0.7)
+ refinerycms-core (= 2.0.3)
+ refinerycms-core (2.0.3)
acts_as_indexed (~> 0.7.7)
awesome_nested_set (~> 2.1.0)
coffee-rails (~> 3.2.1)
@@ -247,35 +257,55 @@ GEM
truncate_html (~> 0.5)
uglifier (>= 1.0.3)
will_paginate (~> 3.0.2)
- refinerycms-dashboard (2.0.2)
- refinerycms-core (= 2.0.2)
- refinerycms-i18n (2.0.0)
- refinerycms-core (~> 2.0.0)
- routing-filter (>= 0.2.3)
- refinerycms-images (2.0.2)
+ refinerycms-dashboard (2.0.3)
+ refinerycms-core (= 2.0.3)
+ refinerycms-images (2.0.3)
dragonfly (~> 0.9.8)
rack-cache (>= 0.5.3)
- refinerycms-core (= 2.0.2)
- refinerycms-pages (2.0.2)
+ refinerycms-core (= 2.0.3)
+ refinerycms-pages (2.0.3)
awesome_nested_set (~> 2.1.0)
babosa (!= 0.3.6)
- refinerycms-core (= 2.0.2)
- seo_meta (~> 1.2.0)
- refinerycms-resources (2.0.2)
+ refinerycms-core (= 2.0.3)
+ seo_meta (~> 1.3.0)
+ refinerycms-resources (2.0.3)
dragonfly (~> 0.9.8)
rack-cache (>= 0.5.3)
- refinerycms-core (= 2.0.2)
- refinerycms-settings (2.0.1)
- refinerycms-core (~> 2.0.1)
- routing-filter (0.3.0)
- actionpack
+ refinerycms-core (= 2.0.3)
+ refinerycms-testing (2.0.3)
+ capybara (~> 1.1.0)
+ database_cleaner (~> 0.7.1)
+ factory_girl_rails (~> 1.7.0)
+ rack-test (~> 0.6.0)
+ refinerycms-core (= 2.0.3)
+ rspec-rails (~> 2.8.1)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ rspec-rails (2.8.1)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.8.0)
+ rubyzip (0.9.6.1)
sass (3.1.15)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
- seo_meta (1.2.0)
+ selenium-webdriver (2.20.0)
+ childprocess (>= 0.2.5)
+ ffi (~> 1.0)
+ multi_json (~> 1.0)
+ rubyzip
+ seo_meta (1.3.0)
railties (>= 3.0.0)
+ spork (0.9.0)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
@@ -297,24 +327,26 @@ GEM
warden (1.1.1)
rack (>= 1.0)
will_paginate (3.0.3)
- zurb-foundation (2.2.0.2)
- jquery-rails (>= 1.0)
- rails (~> 3.1)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
- coffee-rails (~> 3.2.1)
- compass-rails
+ capybara
+ coffee-rails
+ factory_girl_rails
+ generator_spec
+ guard-spork
jquery-rails
- rails (= 3.2.2)
+ libnotify (~> 0.1.3)
+ rb-inotify (>= 0.5.1)
refinerycms (~> 2.0.0)
- refinerycms-blog (~> 2.0.0)
- refinerycms-i18n (~> 2.0.0)
- sass-rails (~> 3.2.3)
+ refinerycms-refineree!
+ refinerycms-testing (~> 2.0.0)
+ rspec-rails
+ sass-rails
spree!
- spree_refinery_auth!
sqlite3
- uglifier (>= 1.0.3)
- zurb-foundation
+ uglifier
View
17 Guardfile
@@ -0,0 +1,17 @@
+guard 'rspec', :version => 2, :cli => "--color --drb --format Fuubar", :all_on_start => false, :all_after_pass => false do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
View
3  README.rdoc
@@ -4,5 +4,4 @@ todo
- spree_refinery_auth needs looked / tested
- add seed part
-- create all pages based on routes spree currently uses
- -- spree e-commerce pages cannot be deleted by CMS manager
- --
+ -- spree e-commerce pages cannot be deleted by CMS manager
View
21 Rakefile
@@ -1,7 +1,20 @@
#!/usr/bin/env rake
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
-require File.expand_path('../config/application', __FILE__)
+ENGINE_PATH = File.dirname(__FILE__)
+APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
-Spreefinery::Application.load_tasks
+if File.exists?(APP_RAKEFILE)
+ load 'rails/tasks/engine.rake'
+end
+
+require "refinerycms-testing"
+Refinery::Testing::Railtie.load_tasks
+Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH)
+
+load File.expand_path('../tasks/testing.rake', __FILE__)
+load File.expand_path('../tasks/rspec.rake', __FILE__)
View
BIN  app/assets/images/rails.png
Deleted file not rendered
View
15 app/assets/javascripts/application.js
@@ -1,15 +0,0 @@
-// This is a manifest file that'll be compiled into application.js, which will include all the files
-// listed below.
-//
-// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
-// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
-//
-// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
-// the compiled file.
-//
-// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
-// GO AFTER THE REQUIRES BELOW.
-//
-//= require jquery
-//= require jquery_ujs
-//= require_tree .
View
14 app/assets/stylesheets/application.css
@@ -1,14 +0,0 @@
-/*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the top of the
- * compiled file, but it's generally better to create a new file per style scope.
- *
- *= require_self
- *= require foundation
- *= require_tree .
-*/
View
3  app/controllers/application_controller.rb
@@ -1,3 +0,0 @@
-class ApplicationController < ActionController::Base
- protect_from_forgery
-end
View
5 app/controllers/refinery/admin/refineree_controller.rb
@@ -0,0 +1,5 @@
+class Refinery::Admin::Refineree < ::Refinery::AdminController
+ def index
+ render :nothing
+ end
+end
View
23 app/controllers/spree/base_controller_decorator.rb
@@ -3,21 +3,14 @@
layout 'layouts/application'
def find_page
- puts "I AM HERE YAH BASS"
+ return if self.class.to_s[/^Spree::Admin/]
- url = url_for(:action => params[:action], :controller => params[:controller], :only_path => true, :locale => 'en').gsub(/\?locale(.*)/, '')
-
- if self.class.to_s[/^Spree::Admin/]
- return
- end
-
- @page = Refinery::Page.find_by_link_url(url)
-
-
- if @page.nil?
- @page = Refinery::Page.find_by_slug("products")
- end
-
- self.class.layout @page.layout_template if @page.layout_template.present?
+ url = url_for(:action => params[:action], :controller => params[:controller], :only_path => true, :locale => 'en').gsub(/\?locale(.*)/, '').gsub(/^\/\//, '/')
+
+ @page = Refinery::Page.find_by_link_url(url) ||
+ Refinery::Page.find_by_title("spree default")
+
+ self.class.layout @page.layout_template if @page.present? && @page.layout_template.present?
end
+
end
View
2  app/helpers/application_helper.rb
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
View
0  app/mailers/.gitkeep
No changes.
View
0  app/models/.gitkeep
No changes.
View
33 app/views/layouts/application.html.erb
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<%= render '/refinery/html_tag' %>
- <% site_bar = render('/refinery/site_bar', :head => true) -%>
- <%= render '/refinery/head' %>
- <body>
- <%= site_bar -%>
- <%= render '/refinery/ie6check' if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
- <div id="page_container">
- <header id="header">
- <%= render '/refinery/header' -%>
- </header>
- <section id="page">
- <div class="row">
- <div class="left-sidebar three columns">
- <h3>Left sidebar</h3>
- <%= raw @page.content_for(:left_body) %>
- </div>
- <div class="main-content six columns">
- <%= yield %>
- </div>
- <div class="right-sidebar three columns">
- <h3>Right sidebar</h3>
- <%= raw @page.content_for(:right_body) %>
- </div>
- </div>
- </section>
- <footer>
- <%= render '/refinery/footer' -%>
- </footer>
- </div>
- <%= render '/refinery/javascripts' %>
- </body>
-</html>
View
26 app/views/layouts/full_page_layout.html.erb
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<%= render '/refinery/html_tag' %>
- <% site_bar = render('/refinery/site_bar', :head => true) -%>
- <%= render '/refinery/head' %>
- <body>
- <%= site_bar -%>
- <%= render '/refinery/ie6check' if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
- <div id="page_container">
- <header id="header">
- <%= render '/refinery/header' -%>
- </header>
- <section id="page">
- <div class="row">
- <div class="main-content twelve columns">
- <h3>Main Content</h3>
- <%= yield %>
- </div>
- </div>
- </section>
- <footer>
- <%= render '/refinery/footer' -%>
- </footer>
- </div>
- <%= render '/refinery/javascripts' %>
- </body>
-</html>
View
26 app/views/refinery/pages/full_page_template.html.erb
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<%= render '/refinery/html_tag' %>
- <% site_bar = render('/refinery/site_bar', :head => true) -%>
- <%= render '/refinery/head' %>
- <body>
- <%= site_bar -%>
- <%= render '/refinery/ie6check' if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
- <div id="page_container">
- <header id="header">
- <%= render '/refinery/header' -%>
- </header>
- <section id="page">
- <div class="row">
- <div class="main-content twelve columns">
- <h3>Main Content</h3>
- <%= yield %>
- </div>
- </div>
- </section>
- <footer>
- <%= render '/refinery/footer' -%>
- </footer>
- </div>
- <%= render '/refinery/javascripts' %>
- </body>
-</html>
View
4 app/views/refinery/pages/show.html.erb
@@ -1,4 +0,0 @@
-<h3>Main Content</h3>
-<%= raw @page.content_for(:middle_body) %>
-
-
View
4 config.ru
@@ -1,4 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment', __FILE__)
-run Spreefinery::Application
View
72 config/application.rb
@@ -1,72 +0,0 @@
-require File.expand_path('../boot', __FILE__)
-
-require 'rails/all'
-
-if defined?(Bundler)
- # If you precompile assets before deploying to production, use this line
- Bundler.require(*Rails.groups(:assets => %w(development test)))
- # If you want your assets lazily compiled in production, use this line
- # Bundler.require(:default, :assets, Rails.env)
-end
-
-module Spreefinery
- class Application < Rails::Application
-
- config.to_prepare do
- # Load application's model / class decorators
- Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
- Rails.configuration.cache_classes ? require(c) : load(c)
- end
-
- # Load application's view overrides
- Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
- Rails.configuration.cache_classes ? require(c) : load(c)
- end
- end
-
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
-
- # Custom directories with classes and modules you want to be autoloadable.
- # config.autoload_paths += %W(#{config.root}/extras)
-
- # Only load the plugins named here, in the order given (default is alphabetical).
- # :all can be used as a placeholder for all plugins not explicitly named.
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Activate observers that should always be running.
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
-
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
- # config.time_zone = 'Central Time (US & Canada)'
-
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
- # config.i18n.default_locale = :de
-
- # Configure the default encoding used in templates for Ruby 1.9.
- config.encoding = "utf-8"
-
- # Configure sensitive parameters which will be filtered from the log file.
- config.filter_parameters += [:password]
-
- # Use SQL instead of Active Record's schema dumper when creating the database.
- # This is necessary if your schema can't be completely dumped by the schema dumper,
- # like if you have constraints or database-specific column types
- # config.active_record.schema_format = :sql
-
- # Enforce whitelist mode for mass assignment.
- # This will create an empty whitelist of attributes available for mass-assignment for all models
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
- # parameters by using an attr_accessible or attr_protected declaration.
- # config.active_record.whitelist_attributes = true
-
- # Enable the asset pipeline
- config.assets.enabled = true
-
- # Version of your assets, change this if you want to expire all your assets
- config.assets.version = '1.0'
- end
-end
View
6 config/boot.rb
@@ -1,6 +0,0 @@
-require 'rubygems'
-
-# Set up gems listed in the Gemfile.
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-
-require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
View
25 config/database.yml
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-development:
- adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
-
-production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
View
7 config/environment.rb
@@ -1,7 +0,0 @@
-# Load the rails application
-require File.expand_path('../application', __FILE__)
-
-# Initialize the rails application
-Spreefinery::Application.initialize!
-
-ActiveRecord::Base.include_root_in_json = true
View
37 config/environments/development.rb
@@ -1,37 +0,0 @@
-Spreefinery::Application.configure do
- # Settings specified here will take precedence over those in config/application.rb
-
- # In the development environment your application's code is reloaded on
- # every request. This slows down response time but is perfect for development
- # since you don't have to restart the web server when you make code changes.
- config.cache_classes = false
-
- # Log error messages when you accidentally call methods on nil.
- config.whiny_nils = true
-
- # Show full error reports and disable caching
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Don't care if the mailer can't send
- config.action_mailer.raise_delivery_errors = false
-
- # Print deprecation notices to the Rails logger
- config.active_support.deprecation = :log
-
- # Only use best-standards-support built into browsers
- config.action_dispatch.best_standards_support = :builtin
-
- # Raise exception on mass assignment protection for Active Record models
- config.active_record.mass_assignment_sanitizer = :strict
-
- # Log the query plan for queries taking more than this (works
- # with SQLite, MySQL, and PostgreSQL)
- config.active_record.auto_explain_threshold_in_seconds = 0.5
-
- # Do not compress assets
- config.assets.compress = false
-
- # Expands the lines which load the assets
- config.assets.debug = true
-end
View
71 config/environments/production.rb
@@ -1,71 +0,0 @@
-Spreefinery::Application.configure do
-
- # Refinery has set config.assets.initialize_on_precompile = false by default.
- #config.assets.initialize_on_precompile = false
-
- # Settings specified here will take precedence over those in config/application.rb
-
- # Code is not reloaded between requests
- config.cache_classes = true
-
- # Full error reports are disabled and caching is turned on
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Disable Rails's static asset server (Apache or nginx will already do this)
- config.serve_static_assets = false
-
- # Compress JavaScripts and CSS
- #config.assets.compress = true
-
- # Don't fallback to assets pipeline if a precompiled asset is missed
- #config.assets.compile = true
-
- # Generate digests for assets URLs
- config.assets.digest = true
-
- # Defaults to Rails.root.join("public/assets")
- # config.assets.manifest = YOUR_PATH
-
- # Specifies the header that your server uses for sending files
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
-
- # See everything in the log (default is :info)
- # config.log_level = :debug
-
- # Prepend all log lines with the following tags
- # config.log_tags = [ :subdomain, :uuid ]
-
- # Use a different logger for distributed setups
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
-
- # Use a different cache store in production
- # config.cache_store = :mem_cache_store
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
- # config.action_controller.asset_host = "http://assets.example.com"
-
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
- # config.assets.precompile += %w( search.js )
-
- # Disable delivery errors, bad email addresses will be ignored
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable threaded mode
- # config.threadsafe!
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation can not be found)
- config.i18n.fallbacks = true
-
- # Send deprecation notices to registered listeners
- config.active_support.deprecation = :notify
-
- # Log the query plan for queries taking more than this (works
- # with SQLite, MySQL, and PostgreSQL)
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
-end
View
37 config/environments/test.rb
@@ -1,37 +0,0 @@
-Spreefinery::Application.configure do
- # Settings specified here will take precedence over those in config/application.rb
-
- # The test environment is used exclusively to run your application's
- # test suite. You never need to work with it otherwise. Remember that
- # your test database is "scratch space" for the test suite and is wiped
- # and recreated between test runs. Don't rely on the data there!
- config.cache_classes = true
-
- # Configure static asset server for tests with Cache-Control for performance
- config.serve_static_assets = true
- config.static_cache_control = "public, max-age=3600"
-
- # Log error messages when you accidentally call methods on nil
- config.whiny_nils = true
-
- # Show full error reports and disable caching
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Raise exceptions instead of rendering exception templates
- config.action_dispatch.show_exceptions = false
-
- # Disable request forgery protection in test environment
- config.action_controller.allow_forgery_protection = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Raise exception on mass assignment protection for Active Record models
- config.active_record.mass_assignment_sanitizer = :strict
-
- # Print deprecation notices to the stderr
- config.active_support.deprecation = :stderr
-end
View
6 config/initializers/active_record_initializer.rb
@@ -1,2 +1,4 @@
-ActiveRecord::Relation.send :include, Kaminari::PageScopeMethods
-ActiveRecord::Relation.send :include, Kaminari::ActiveRecordRelationMethods
+if defined? Kaminari
+ ActiveRecord::Relation.send :include, Kaminari::PageScopeMethods
+ ActiveRecord::Relation.send :include, Kaminari::ActiveRecordRelationMethods
+end
View
7 config/initializers/backtrace_silencers.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
View
231 config/initializers/devise.rb
@@ -1,231 +0,0 @@
-require 'devise'
-
-# Use this hook to configure devise mailer, warden hooks and so forth.
-# Many of these configuration options can be set straight in your model.
-Devise.setup do |config|
- # ==> Mailer Configuration
- # Configure the e-mail address which will be shown in Devise::Mailer,
- # note that it will be overwritten if you use your own mailer class with default "from" parameter.
- # config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
-
- # Configure the class responsible to send e-mails.
- # config.mailer = "Devise::Mailer"
-
- # Automatically apply schema changes in tableless databases
- config.apply_schema = false
-
- # ==> ORM configuration
- # Load and configure the ORM. Supports :active_record (default) and
- # :mongoid (bson_ext recommended) by default. Other ORMs may be
- # available as additional gems.
- require 'devise/orm/active_record'
-
- # ==> Configuration for any authentication mechanism
- # Configure which keys are used when authenticating a user. The default is
- # just :email. You can configure it to use [:username, :subdomain], so for
- # authenticating a user, both parameters are required. Remember that those
- # parameters are used only when authenticating and not when retrieving from
- # session. If you need permissions, you should implement that in a before filter.
- # You can also supply a hash where the value is a boolean determining whether
- # or not authentication should be aborted when the value is not present.
- config.authentication_keys = [ :login ]
-
- # Configure parameters from the request object used for authentication. Each entry
- # given should be a request method and it will automatically be passed to the
- # find_for_authentication method and considered in your model lookup. For instance,
- # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
- # The same considerations mentioned for authentication_keys also apply to request_keys.
- # config.request_keys = []
-
- # Configure which authentication keys should be case-insensitive.
- # These keys will be downcased upon creating or modifying a user and when used
- # to authenticate or find a user. Default is :email.
- config.case_insensitive_keys = []
-
- # Configure which authentication keys should have whitespace stripped.
- # These keys will have whitespace before and after removed upon creating or
- # modifying a user and when used to authenticate or find a user. Default is :email.
- # config.strip_whitespace_keys = [ :email ]
-
- # Tell if authentication through request.params is enabled. True by default.
- # It can be set to an array that will enable params authentication only for the
- # given stratragies, for example, `config.params_authenticatable = [:database]` will
- # enable it only for database (email + password) authentication.
- # config.params_authenticatable = true
-
- # Tell if authentication through HTTP Basic Auth is enabled. False by default.
- # It can be set to an array that will enable http authentication only for the
- # given stratragies, for example, `config.http_authenticatable = [:token]` will
- # enable it only for token authentication.
- # config.http_authenticatable = false
-
- # If http headers should be returned for AJAX requests. True by default.
- # config.http_authenticatable_on_xhr = true
-
- # The realm used in Http Basic Authentication. "Application" by default.
- # config.http_authentication_realm = "Application"
-
- # It will change confirmation, password recovery and other workflows
- # to behave the same regardless if the e-mail provided was right or wrong.
- # Does not affect registerable.
- # config.paranoid = true
-
- # By default Devise will store the user in session. You can skip storage for
- # :http_auth and :token_auth by adding those symbols to the array below.
- # Notice that if you are skipping storage for all authentication paths, you
- # may want to disable generating routes to Devise's sessions controller by
- # passing :skip => :sessions to `devise_for` in your config/routes.rb
- config.skip_session_storage = [:http_auth]
-
- # ==> Configuration for :database_authenticatable
- # For bcrypt, this is the cost for hashing the password and defaults to 10. If
- # using other encryptors, it sets how many times you want the password re-encrypted.
- #
- # Limiting the stretches to just one in testing will increase the performance of
- # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
- # a value less than 10 in other environments.
- config.stretches = Rails.env.test? ? 1 : 10
-
- # Setup a pepper to generate the encrypted password.
- # config.pepper = <%= SecureRandom.hex(64).inspect %>
-
- # ==> Configuration for :confirmable
- # A period that the user is allowed to access the website even without
- # confirming his account. For instance, if set to 2.days, the user will be
- # able to access the website for two days without confirming his account,
- # access will be blocked just in the third day. Default is 0.days, meaning
- # the user cannot access the website without confirming his account.
- # config.allow_unconfirmed_access_for = 2.days
-
- # If true, requires any email changes to be confirmed (exctly the same way as
- # initial account confirmation) to be applied. Requires additional unconfirmed_email
- # db field (see migrations). Until confirmed new email is stored in
- # unconfirmed email column, and copied to email column on successful confirmation.
- # config.reconfirmable = true
-
- # Defines which key will be used when confirming an account
- # config.confirmation_keys = [ :email ]
-
- # ==> Configuration for :rememberable
- # The time the user will be remembered without asking for credentials again.
- # config.remember_for = 2.weeks
-
- # If true, extends the user's remember period when remembered via cookie.
- # config.extend_remember_period = false
-
- # If true, uses the password salt as remember token. This should be turned
- # to false if you are not using database authenticatable.
- config.use_salt_as_remember_token = true
-
- # Options to be passed to the created cookie. For instance, you can set
- # :secure => true in order to force SSL only cookies.
- # config.cookie_options = {}
-
- # ==> Configuration for :validatable
- # Range for password length. Default is 6..128.
- config.password_length = 4..128
-
- # Email regex used to validate email formats. It simply asserts that
- # an one (and only one) @ exists in the given string. This is mainly
- # to give user feedback and not to assert the e-mail validity.
- # config.email_regexp = /\A[^@]+@[^@]+\z/
-
- # ==> Configuration for :timeoutable
- # The time you want to timeout the user session without activity. After this
- # time the user will be asked for credentials again. Default is 30 minutes.
- # config.timeout_in = 30.minutes
-
- # ==> Configuration for :lockable
- # Defines which strategy will be used to lock an account.
- # :failed_attempts = Locks an account after a number of failed attempts to sign in.
- # :none = No lock strategy. You should handle locking by yourself.
- # config.lock_strategy = :failed_attempts
-
- # Defines which key will be used when locking and unlocking an account
- # config.unlock_keys = [ :email ]
-
- # Defines which strategy will be used to unlock an account.
- # :email = Sends an unlock link to the user email
- # :time = Re-enables login after a certain amount of time (see :unlock_in below)
- # :both = Enables both strategies
- # :none = No unlock strategy. You should handle unlocking by yourself.
- # config.unlock_strategy = :both
-
- # Number of authentication tries before locking an account if lock_strategy
- # is failed attempts.
- # config.maximum_attempts = 20
-
- # Time interval to unlock the account if :time is enabled as unlock_strategy.
- # config.unlock_in = 1.hour
-
- # ==> Configuration for :recoverable
- #
- # Defines which key will be used when recovering the password for an account
- # config.reset_password_keys = [ :email ]
-
- # Time interval you can reset your password with a reset password key.
- # Don't put a too small interval or your users won't have the time to
- # change their passwords.
- config.reset_password_within = 6.hours
-
- # ==> Configuration for :encryptable
- # Allow you to use another encryption algorithm besides bcrypt (default). You can use
- # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
- # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
- # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
- # REST_AUTH_SITE_KEY to pepper)
- # config.encryptor = :sha512
-
- # ==> Configuration for :token_authenticatable
- # Defines name of the authentication token params key
- # config.token_authentication_key = :auth_token
-
- # ==> Scopes configuration
- # Turn scoped views on. Before rendering "sessions/new", it will first check for
- # "users/sessions/new". It's turned off by default because it's slower if you
- # are using only default views.
- # config.scoped_views = false
-
- # Configure the default scope given to Warden. By default it's the first
- # devise role declared in your routes (usually :user).
- # config.default_scope = :user
-
- # Configure sign_out behavior.
- # Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
- # The default is true, which means any logout action will sign out all active scopes.
- # config.sign_out_all_scopes = true
-
- # ==> Navigation configuration
- # Lists the formats that should be treated as navigational. Formats like
- # :html, should redirect to the sign in page when the user does not have
- # access, but formats like :xml or :json, should return 401.
- #
- # If you have any extra navigational formats, like :iphone or :mobile, you
- # should add them to the navigational formats lists.
- #
- # The "*/*" below is required to match Internet Explorer requests.
- # config.navigational_formats = ["*/*", :html]
-
- # The default HTTP method used to sign out a resource. Default is :delete.
- config.sign_out_via = :delete
-
- # ==> OmniAuth
- # Add a new OmniAuth provider. Check the wiki for more information on setting
- # up on your models and hooks.
- # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
-
- # ==> Warden configuration
- # If you want to use other strategies, that are not supported by Devise, or
- # change the failure app, you can configure them inside the config.warden block.
- #
- # config.warden do |manager|
- # manager.intercept_401 = false
- # manager.default_strategies(:scope => :user).unshift :some_external_strategy
- # end
-
- # Please do not change the router_name away from :refinery
- # otherwise Refinery may not function properly. Thanks!
- config.authentication_keys = [ :email ]
- config.router_name = :spree
-
-end
View
15 config/initializers/inflections.rb
@@ -1,15 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-#
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.acronym 'RESTful'
-# end
View
5 config/initializers/mime_types.rb
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
View
11 config/initializers/refinery/blog.rb
@@ -1,11 +0,0 @@
-Refinery::Blog.configure do |config|
- # config.validate_source_url = false
-
- # config.comments_per_page = 10
-
- # config.posts_per_page = 10
-
- # config.post_teaser_length = 250
-
- # config.share_this_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-end
View
48 config/initializers/refinery/core.rb
@@ -1,48 +0,0 @@
-Refinery::Core.configure do |config|
- # When true will rescue all not found errors and display a friendly error page
- config.rescue_not_found = Rails.env.production?
-
- # When true will use Amazon's Simple Storage Service instead of
- # the default file system for storing resources and images
- config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
-
- # Whenever Refinery caches anything and can set a cache key, it will add
- # a prefix to the cache key containing the string you set here.
- # config.base_cache_key = :refinery
-
- # Site name
- # config.site_name = "Company Name"
-
- # This activates Google Analytics tracking within your website. If this
- # config is left blank or set to UA-xxxxxx-x then no remote calls to
- # Google Analytics are made.
- # config.google_analytics_page_code = "UA-xxxxxx-x"
-
- # Enable/disable authenticity token on frontend
- # config.authenticity_token_on_frontend = true
-
- # Hide/show child pages in menu
- # config.menu_hide_children = false
-
- # CSS class selectors for menu helper
- # config.menu_css = {:selected=>"selected", :first=>"first", :last=>"last"}
-
- # Should set this if concerned about DOS attacks. See
- # http://markevans.github.com/dragonfly/file.Configuration.html#Configuration
- # config.dragonfly_secret = "601466cd80bc9137f05311956efc5aafd3fb00da6309e6e3"
-
- # Show/hide IE6 upgrade message in the backend
- # config.ie6_upgrade_message_enabled = true
-
- # Show/hide browser update message in the backend
- # config.show_internet_explorer_upgrade_message = false
-
- # Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
- # config.wymeditor_whitelist_tags = {}
-
- # Register extra javascript for backend
- # config.register_javascript "prototype-rails"
-
- # Register extra stylesheet for backend (optional options)
- # config.register_stylesheet "custom", :media => 'screen'
-end
View
15 config/initializers/refinery/i18n.rb
@@ -1,15 +0,0 @@
-# encoding: utf-8
-
-Refinery::I18n.configure do |config|
- # config.enabled = true
-
- # config.default_locale = :en
-
- # config.current_locale = :en
-
- # config.default_frontend_locale = :en
-
- # config.frontend_locales = [:en]
-
- # config.locales = {:en=>"English", :fr=>"Français", :nl=>"Nederlands", :"pt-BR"=>"Português", :da=>"Dansk", :nb=>"Norsk Bokmål", :sl=>"Slovenian", :es=>"Español", :it=>"Italiano", :de=>"Deutsch", :lv=>"Latviski", :ru=>"Русский", :sv=>"Svenska", :pl=>"Polski", :"zh-CN"=>"Simplified Chinese", :"zh-TW"=>"Traditional Chinese", :el=>"Ελληνικά", :rs=>"Srpski", :cs=>"Česky", :sk=>"Slovenský", :ja=>"日本語", :bg=>"Български"}
-end
View
41 config/initializers/refinery/images.rb
@@ -1,41 +0,0 @@
-Refinery::Images.configure do |config|
- # Configures the maximum allowed upload size (in bytes) for an image
- # config.max_image_size = 5242880
-
- # Configure how many images per page should be displayed when a dialog is presented that contains images
- # config.pages_per_dialog = 18
-
- # Configure how many images per page should be displayed when a dialog is presented that
- # contains images and image resize options
- # config.pages_per_dialog_that_have_size_options = 12
-
- # Configure how many images per page should be displayed in the list of images in the admin area
- # config.pages_per_admin_index = 20
-
- # Configure image sizes
- # config.user_image_sizes = {:small=>"110x110>", :medium=>"225x255>", :large=>"450x450>"}
-
- # Configure image view options
- # config.image_views = [:grid, :list]
-
- # Configure default image view
- # config.preferred_image_view = :grid
-
- # Configure S3 (you can also use ENV for this)
- # The s3_backend setting by default defers to the core setting for this but can be set just for images.
- # config.s3_backend = Refinery::Core.s3_backend
- # config.s3_bucket_name = ENV['S3_BUCKET']
- # config.s3_access_key_id = ENV['S3_KEY']
- # config.s3_secret_access_key = ENV['S3_SECRET']
- # config.s3_region = ENV['S3_REGION]
-
- # Configure Dragonfly
- # This is where in the middleware stack to insert the Dragonfly middleware
- # config.dragonfly_insert_before = "ActionDispatch::Callbacks"
- # config.dragonfly_secret = "601466cd80bc9137f05311956efc5aafd3fb00da6309e6e3"
- # If you decide to trust file extensions replace :ext below with :format
- # config.dragonfly_url_format = "/system/images/:job/:basename.:ext"
- # config.datastore_root_path = "/Users/charlie/dev/code/spreefinery/public/system/refinery/images"
- # config.trust_file_extensions = false
-
-end
View
54 config/initializers/refinery/pages.rb
@@ -1,54 +0,0 @@
-Refinery::Pages.configure do |config|
- #config.default_parts = [“Left Body”, “Middle Body”, “Right Body”]
- # Configure specific page templates
- config.types.register :full_page do |full_page|
- full_page.parts = ["Body"]
- full_page.template = 'pages/full_page_template'
- end
-
- # Configure global page default parts
- config.default_parts = ["Middle Body", "Left Body", "Right Body"]
-
- # Configure whether to allow adding new page parts
- config.new_page_parts = true
-
- # Configure whether to enable marketable_urls
- # config.marketable_urls = true
-
- # Configure how many pages per page should be displayed when a dialog is presented that contains a links to pages
- # config.pages_per_dialog = 14
-
- # Configure how many pages per page should be displayed in the list of pages in the admin area
- # config.pages_per_admin_index = 20
-
- # Configure whether to strip diacritics from Western characters
- # config.approximate_ascii = false
-
- # Configure whether to strip non-ASCII characters from the friendly_id string
- # config.strip_non_ascii = false
-
- # Set this to true if you want to override slug which automatically gets generated
- # when you create a page
- # config.use_custom_slugs = false
-
- # Set this to true if you want backend pages to be cached
- # config.cache_pages_backend = false
-
- # Set this to true to activate full-page-cache
- # config.cache_pages_full = false
-
- # Set this to true to fully expand the page hierarchy in the admin
- # config.auto_expand_admin_tree = true
-
- config.layout_template_whitelist = ["application", "full_page_layout"]
-
- config.view_template_whitelist = ["home", "show", "full_page_template"]
-
- config.use_layout_templates = true
-
- config.use_view_templates = true
-
- # config.page_title = {:chain_page_title=>false, :ancestors=>{:separator=>" | ", :class=>"ancestors", :tag=>"span"}, :page_title=>{:class=>nil, :tag=>nil, :wrap_if_not_chained=>false}}
-
- # config.absolute_page_links = false
-end
View
26 config/initializers/refinery/resources.rb
@@ -1,26 +0,0 @@
-Refinery::Resources.configure do |config|
- # Configures the maximum allowed upload size (in bytes) for a file upload
- # config.max_file_size = 52428800
-
- # Configure how many resources per page should be displayed when a dialog is presented that contains resources
- # config.pages_per_dialog = 12
-
- # Configure how many resources per page should be displayed in the list of resources in the admin area
- # config.pages_per_admin_index = 20
-
- # Configure S3 (you can also use ENV for this)
- # The s3_backend setting by default defers to the core setting for this but can be set just for resources.
- # config.s3_backend = Refinery::Core.s3_backend
- # config.s3_bucket_name = ENV['S3_BUCKET']
- # config.s3_access_key_id = ENV['S3_KEY']
- # config.s3_secret_access_key = ENV['S3_SECRET']
- # config.s3_region = ENV['S3_REGION]
-
- # Configure Dragonfly
- # This is where in the middleware stack to insert the Dragonfly middleware
- # config.dragonfly_insert_before = "ActionDispatch::Callbacks"
- # config.dragonfly_secret = "601466cd80bc9137f05311956efc5aafd3fb00da6309e6e3"
- # config.dragonfly_url_format = "/system/resources/:job/:basename.:format"
- # config.datastore_root_path = "/Users/charlie/dev/code/spreefinery/public/system/refinery/resources"
-
-end
View
7 config/initializers/secret_token.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-Spreefinery::Application.config.secret_token = '4cc164fce582a6fe3267514c5cb945287880749ecea50f4cfc91eb2f44c0192c3721cadb6b3e50e3cef15915ec05c2d5b692c4899008d95be33be0aef23f5597'
View
8 config/initializers/session_store.rb
@@ -1,8 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Spreefinery::Application.config.session_store :cookie_store, key: '_spreefinery_session'
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rails generate session_migration")
-# Spreefinery::Application.config.session_store :active_record_store
View
12 config/initializers/spree.rb
@@ -1,12 +0,0 @@
-# Configure Spree Preferences
-#
-# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
-# If you would like users to be able to update a setting with the Admin it should NOT be set here.
-#
-# In order to initialize a setting do:
-# config.setting_name = 'new value'
-Spree.config do |config|
- # Example:
- # Uncomment to override the default site name.
- # config.site_name = "Spree Demo Site"
-end
View
14 config/initializers/wrap_parameters.rb
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-#
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json]
-end
-
-# Disable root element in JSON by default.
-ActiveSupport.on_load(:active_record) do
- self.include_root_in_json = false
-end
View
5 config/locales/en.yml
@@ -1,5 +0,0 @@
-# Sample localization file for English. Add more files in this directory for other locales.
-# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
-
-en:
- hello: "Hello world"
View
80 config/routes.rb
@@ -1,80 +1,2 @@
-Spreefinery::Application.routes.draw do
-
- # This line mounts Refinery's routes at the root of your application.
- # This means, any requests to the root URL of your application will go to Refinery::PagesController#home.
- # If you would like to change where this extension is mounted, simply change the :at option to something different.
- #
- # We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery"
- root :to => 'refinery/pages#home', :module => 'Refinery::Core'
- mount Spree::Core::Engine, :at => '/'
- mount Refinery::Core::Engine, :at => '/'
-
-
-
-
- # This line mounts Spree's routes at the root of your application.
- # This means, any requests to URLs such as /products, will go to Spree::ProductsController.
- # If you would like to change where this engine is mounted, simply change the :at option to something different.
- #
- # We ask that you don't use the :as option here, as Spree relies on it being the default of "spree"
-
-
-
-
- # The priority is based upon order of creation:
- # first created -> highest priority.
-
- # Sample of regular route:
- # match 'products/:id' => 'catalog#view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
-
- # Sample resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
- #
- # collection do
- # get 'sold'
- # end
- # end
-
- # Sample resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
-
- # Sample resource route with more complex sub-resources
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', :on => :collection
- # end
- # end
-
- # Sample resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
-
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => 'welcome#index'
-
- # See how all your routes lay out with "rake routes"
-
- # This is a legacy wild controller route that's not recommended for RESTful applications.
- # Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id))(.:format)'
+Refinery::Refineree::Engine.routes.draw do
end
View
2  config/spree.yml
@@ -1,2 +0,0 @@
----
-version: 1.1.0.beta
View
44 db/migrate/20120330082359_create_refinerycms_authentication_schema.refinery_authentication.rb
@@ -1,44 +0,0 @@
-# This migration comes from refinery_authentication (originally 20100913234705)
-class CreateRefinerycmsAuthenticationSchema < ActiveRecord::Migration
- def change
- # Postgres apparently requires the roles_users table to exist before creating the roles table.
- create_table :refinery_roles_users, :id => false do |t|
- t.integer :user_id
- t.integer :role_id
- end
-
- add_index :refinery_roles_users, [:role_id, :user_id]
- add_index :refinery_roles_users, [:user_id, :role_id]
-
- create_table :refinery_roles do |t|
- t.string :title
- end
-
- create_table :refinery_user_plugins do |t|
- t.integer :user_id
- t.string :name
- t.integer :position
- end
-
- add_index :refinery_user_plugins, :name
- add_index :refinery_user_plugins, [:user_id, :name], :unique => true
-
- create_table :refinery_users do |t|
- t.string :username, :null => false
- t.string :email, :null => false
- t.string :encrypted_password, :null => false
- t.datetime :current_sign_in_at
- t.datetime :last_sign_in_at
- t.string :current_sign_in_ip
- t.string :last_sign_in_ip
- t.integer :sign_in_count
- t.datetime :remember_created_at
- t.string :reset_password_token
- t.datetime :reset_password_sent_at
-
- t.timestamps
- end
-
- add_index :refinery_users, :id
- end
-end
View
16 db/migrate/20120330082360_create_refinerycms_images_schema.refinery_images.rb
@@ -1,16 +0,0 @@
-# This migration comes from refinery_images (originally 20100913234707)
-class CreateRefinerycmsImagesSchema < ActiveRecord::Migration
- def change
- create_table :refinery_images do |t|
- t.string :image_mime_type
- t.string :image_name
- t.integer :image_size
- t.integer :image_width
- t.integer :image_height
- t.string :image_uid
- t.string :image_ext
-
- t.timestamps
- end
- end
-end
View
14 db/migrate/20120330082361_create_refinerycms_resources_schema.refinery_resources.rb
@@ -1,14 +0,0 @@
-# This migration comes from refinery_resources (originally 20100913234709)
-class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration
- def change
- create_table :refinery_resources do |t|
- t.string :file_mime_type
- t.string :file_name
- t.integer :file_size
- t.string :file_uid
- t.string :file_ext
-
- t.timestamps
- end
- end
-end
View
59 db/migrate/20120330082362_create_refinerycms_pages_schema.refinery_pages.rb
@@ -1,59 +0,0 @@
-# This migration comes from refinery_pages (originally 20100913234708)
-class CreateRefinerycmsPagesSchema < ActiveRecord::Migration
- def up
- create_table :refinery_page_parts do |t|
- t.integer :refinery_page_id
- t.string :title
- t.text :body
- t.integer :position
-
- t.timestamps
- end
-
- add_index :refinery_page_parts, :id
- add_index :refinery_page_parts, :refinery_page_id
-
- create_table :refinery_pages do |t|
- t.integer :parent_id
- t.string :path
- t.string :slug
- t.boolean :show_in_menu, :default => true
- t.string :link_url
- t.string :menu_match
- t.boolean :deletable, :default => true
- t.boolean :draft, :default => false
- t.boolean :skip_to_first_child, :default => false
- t.integer :lft
- t.integer :rgt
- t.integer :depth
- t.string :view_template
- t.string :layout_template
-
- t.timestamps
- end
-
- add_index :refinery_pages, :depth
- add_index :refinery_pages, :id
- add_index :refinery_pages, :lft
- add_index :refinery_pages, :parent_id
- add_index :refinery_pages, :rgt
-
- Refinery::PagePart.create_translation_table!({
- :body => :text
- })
-
- Refinery::Page.create_translation_table!({
- :title => :string,
- :custom_slug => :string,
- :menu_title => :string,
- :slug => :string
- })
- end
-
- def down
- drop_table :refinery_page_parts
- drop_table :refinery_pages
- Refinery::PagePart.drop_translation_table!
- Refinery::Page.drop_translation_table!
- end
-end
View
24 db/migrate/20120330082363_create_seo_meta.seo_meta_engine.rb
@@ -1,24 +0,0 @@
-# This migration comes from seo_meta_engine (originally 20110329222114)
-class CreateSeoMeta < ActiveRecord::Migration
-
- def self.up
- create_table :seo_meta do |t|
- t.integer :seo_meta_id
- t.string :seo_meta_type
-
- t.string :browser_title
- t.string :meta_keywords
- t.text :meta_description
-
- t.timestamps
- end
-
- add_index :seo_meta, :id
- add_index :seo_meta, [:seo_meta_id, :seo_meta_type]
- end
-
- def self.down
- drop_table :seo_meta
- end
-
-end
View
53 db/migrate/20120330093531_create_blog_structure.refinery_blog.rb
@@ -1,53 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223522)
-class CreateBlogStructure < ActiveRecord::Migration
-
- def up
- create_table Refinery::Blog::Post.table_name, :id => true do |t|
- t.string :title
- t.text :body
- t.boolean :draft
- t.datetime :published_at
- t.timestamps
- end
-
- add_index Refinery::Blog::Post.table_name, :id
-
- create_table Refinery::Blog::Comment.table_name, :id => true do |t|
- t.integer :blog_post_id
- t.boolean :spam
- t.string :name
- t.string :email
- t.text :body
- t.string :state
- t.timestamps
- end
-
- add_index Refinery::Blog::Comment.table_name, :id
-
- create_table Refinery::Blog::Category.table_name, :id => true do |t|
- t.string :title
- t.timestamps
- end
-
- add_index Refinery::Blog::Category.table_name, :id
-
- create_table Refinery::Categorization.table_name, :id => true do |t|
- t.integer :blog_category_id
- t.integer :blog_post_id
- end
-
- add_index Refinery::Categorization.table_name, [:blog_category_id, :blog_post_id], :name => 'index_blog_categories_blog_posts_on_bc_and_bp'
- end
-
- def down
- Refinery::UserPlugin.destroy_all({:name => "refinerycms_blog"})
-
- Refinery::Page.delete_all({:link_url => "/blog"})
-
- drop_table Refinery::Blog::Post.table_name
- drop_table Refinery::Blog::Comment.table_name
- drop_table Refinery::Category.table_name
- drop_table Refinery::Categorization.table_name
- end
-
-end
View
8 db/migrate/20120330093532_add_user_id_to_blog_posts.refinery_blog.rb
@@ -1,8 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223523)
-class AddUserIdToBlogPosts < ActiveRecord::Migration
-
- def change
- add_column Refinery::Blog::Post.table_name, :user_id, :integer
- end
-
-end
View
29 db/migrate/20120330093533_acts_as_taggable_on_migration.refinery_blog.rb
@@ -1,29 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223524)
-class ActsAsTaggableOnMigration < ActiveRecord::Migration
- def up
- create_table :tags do |t|
- t.string :name
- end
-
- create_table :taggings do |t|
- t.references :tag
-
- # You should make sure that the column created is
- # long enough to store the required class names.
- t.references :taggable, :polymorphic => true
- t.references :tagger, :polymorphic => true
-
- t.string :context
-
- t.datetime :created_at
- end
-
- add_index :taggings, :tag_id
- add_index :taggings, [:taggable_id, :taggable_type, :context]
- end
-
- def down
- drop_table :taggings
- drop_table :tags
- end
-end
View
7 db/migrate/20120330093534_add_cached_slugs.refinery_blog.rb
@@ -1,7 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223526)
-class AddCachedSlugs < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Category.table_name, :cached_slug, :string
- add_column Refinery::Blog::Post.table_name, :cached_slug, :string
- end
-end
View
6 db/migrate/20120330093535_add_custom_url_field_to_blog_posts.refinery_blog.rb
@@ -1,6 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223527)
-class AddCustomUrlFieldToBlogPosts < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Post.table_name, :custom_url, :string
- end
-end
View
7 db/migrate/20120330093536_add_custom_teaser_field_to_blog_posts.refinery_blog.rb
@@ -1,7 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223528)
-class AddCustomTeaserFieldToBlogPosts < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Post.table_name, :custom_teaser, :text
- end
-end
-
View
15 db/migrate/20120330093537_add_primary_key_to_categorizations.refinery_blog.rb
@@ -1,15 +0,0 @@
-# This migration comes from refinery_blog (originally 20110803223529)
-class AddPrimaryKeyToCategorizations < ActiveRecord::Migration
- def up
- unless Refinery::Categorization.column_names.include?("id")
- add_column Refinery::Categorization.table_name, :id, :primary_key
- end
- end
-
- def down
- if Refinery::Categorization.column_names.include?("id")
- remove_column Refinery::Categorization.table_name, :id
- end
- end
-end
-
View
8 db/migrate/20120330093538_add_source_url_to_blog_posts.refinery_blog.rb
@@ -1,8 +0,0 @@
-# This migration comes from refinery_blog (originally 20120103055909)
-class AddSourceUrlToBlogPosts < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Post.table_name, :source_url, :string
- add_column Refinery::Blog::Post.table_name, :source_url_title, :string
-
- end
-end
View
9 db/migrate/20120330093539_add_access_count_to_posts.refinery_blog.rb
@@ -1,9 +0,0 @@
-# This migration comes from refinery_blog (originally 20120223022021)
-class AddAccessCountToPosts < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Post.table_name, :access_count, :integer, :default => 0
-
- add_index Refinery::Blog::Post.table_name, :access_count
-
- end
-end
View
10 db/migrate/20120330093540_add_slug_to_posts_and_categories.refinery_blog.rb
@@ -1,10 +0,0 @@
-# This migration comes from refinery_blog (originally 20120227022021)
-class AddSlugToPostsAndCategories < ActiveRecord::Migration
- def change
- add_column Refinery::Blog::Post.table_name, :slug, :string
- add_index Refinery::Blog::Post.table_name, :slug
-
- add_column Refinery::Blog::Category.table_name, :slug, :string
- add_index Refinery::Blog::Category.table_name, :slug
- end
-end
View
17 db/migrate/20120330093541_create_refinerycms_settings_schema.refinery_settings.rb
@@ -1,17 +0,0 @@
-# This migration comes from refinery_settings (originally 20100913234710)
-class CreateRefinerycmsSettingsSchema < ActiveRecord::Migration
- def change
- create_table :refinery_settings do |t|
- t.string :name
- t.text :value
- t.boolean :destroyable, :default => true
- t.string :scoping
- t.boolean :restricted, :default => false
- t.string :form_value_type
-
- t.timestamps
- end
-
- add_index :refinery_settings, :name
- end
-end
View
390 db/migrate/20120330100246_spree_zero_nine_zero.spree.rb
@@ -1,390 +0,0 @@
-# This migration comes from spree (originally 20090823005402)
-class SpreeZeroNineZero < ActiveRecord::Migration
- # This is a legacy migration consolidating all of the database changes needed as of Spree 0.9.0
- # (See http://railsdog.lighthouseapp.com/projects/31096-spree/tickets/772)
-
- def change
- create_table :addresses, :force => true do |t|
- t.string :firstname,