alchemy_cms 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +7 -0
  3. data/.rubocop.yml +164 -799
  4. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
  5. data/app/controllers/alchemy/admin/contents_controller.rb +4 -3
  6. data/app/controllers/alchemy/admin/pages_controller.rb +7 -6
  7. data/app/helpers/alchemy/elements_helper.rb +13 -5
  8. data/app/models/alchemy/element.rb +1 -1
  9. data/app/models/alchemy/page/page_scopes.rb +8 -0
  10. data/app/views/alchemy/essences/_essence_select_editor.html.erb +2 -4
  11. data/lib/alchemy/controller_actions.rb +2 -0
  12. data/lib/alchemy/version.rb +1 -1
  13. data/spec/controllers/admin/contents_controller_spec.rb +9 -3
  14. data/spec/controllers/admin/pages_controller_spec.rb +26 -8
  15. data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +1 -0
  16. data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +1 -0
  17. data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +1 -0
  18. data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +1 -0
  19. data/spec/dummy/spec/javascripts +1 -0
  20. data/spec/helpers/elements_helper_spec.rb +18 -2
  21. data/spec/spec_helper.rb +1 -1
  22. metadata +5 -5
  23. data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -380
  24. data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
  25. data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
  26. data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
  27. data/spec/support/rspec-activemodel-mocks_patch.rb +0 -8
@@ -1,5 +0,0 @@
1
- class RemoveDoNotIndexFromAlchemyEssenceTexts < ActiveRecord::Migration
2
- def up
3
- remove_column :alchemy_essence_texts, :do_not_index
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class RemoveDoNotIndexFromAlchemyEssenceRichtexts < ActiveRecord::Migration
2
- def up
3
- remove_column :alchemy_essence_richtexts, :do_not_index
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddPublishedAtToAlchemyPages < ActiveRecord::Migration
2
- def change
3
- add_column :alchemy_pages, :published_at, :timestamp
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- # Manually applied the patch from https://github.com/jdelStrother/rspec-activemodel-mocks/commit/1211c347c5a574739616ccadf4b3b54686f9051f
2
- if Gem.loaded_specs['rspec-activemodel-mocks'].version.to_s != "1.0.1"
3
- raise "RSpec-ActiveModel-Mocks version has changed, please check if the behaviour has already been fixed: https://github.com/rspec/rspec-activemodel-mocks/pull/10
4
- If so, this patch might be obsolete-"
5
- end
6
- RSpec::ActiveModel::Mocks::Mocks::ActiveRecordInstanceMethods.class_eval do
7
- alias_method :_read_attribute, :[]
8
- end