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.
- checksums.yaml +4 -4
- data/.hound.yml +7 -0
- data/.rubocop.yml +164 -799
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
- data/app/controllers/alchemy/admin/contents_controller.rb +4 -3
- data/app/controllers/alchemy/admin/pages_controller.rb +7 -6
- data/app/helpers/alchemy/elements_helper.rb +13 -5
- data/app/models/alchemy/element.rb +1 -1
- data/app/models/alchemy/page/page_scopes.rb +8 -0
- data/app/views/alchemy/essences/_essence_select_editor.html.erb +2 -4
- data/lib/alchemy/controller_actions.rb +2 -0
- data/lib/alchemy/version.rb +1 -1
- data/spec/controllers/admin/contents_controller_spec.rb +9 -3
- data/spec/controllers/admin/pages_controller_spec.rb +26 -8
- data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +1 -0
- data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +1 -0
- data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +1 -0
- data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +1 -0
- data/spec/dummy/spec/javascripts +1 -0
- data/spec/helpers/elements_helper_spec.rb +18 -2
- data/spec/spec_helper.rb +1 -1
- metadata +5 -5
- data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -380
- data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
- data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
- data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
- data/spec/support/rspec-activemodel-mocks_patch.rb +0 -8
@@ -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
|