refinerycms-core 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/app/views/refinery/admin/_head.html.erb +2 -2
- data/app/views/refinery/admin/_javascripts.html.erb +1 -1
- data/lib/refinery/core/authorisation_adapter.rb +2 -0
- data/lib/refinery/version.rb +1 -1
- data/spec/features/refinery/admin/custom_assets_spec.rb +15 -7
- data/spec/support/fixtures/custom_css.css +0 -0
- data/spec/support/fixtures/custom_js.js +0 -0
- metadata +6 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa69c80ba92533a1d3f40570315e835397c7635f
|
4
|
+
data.tar.gz: 43b2204819e877802ffedbd655ab90ebcbc0a070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbf6c99e35e1e908f9f8f266229f957132c1b3cba6a79e1362e93e1c7723ae80ec929bc3e1a590126702c378076d10c1c1562a87a57b41303ee68b3a7f8d0ab
|
7
|
+
data.tar.gz: 419e5eeb7e5a2288c47696fae277510fcb7d346717804ec006ad4d518c0a479861d7355db61043ee336214fc6ab2f3a5c7a9596d9366297dd0f4cdb271631e4c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -6,10 +6,10 @@
|
|
6
6
|
<%= csrf_meta_tags %>
|
7
7
|
<%= stylesheet_link_tag 'refinery/refinery' %>
|
8
8
|
<% visual_editor_stylesheets.each do |css| %>
|
9
|
-
<%= stylesheet_link_tag css.path,
|
9
|
+
<%= stylesheet_link_tag css.path, css.options %>
|
10
10
|
<% end %>
|
11
11
|
<% custom_stylesheets.each do |css| %>
|
12
|
-
<%= stylesheet_link_tag css.path,
|
12
|
+
<%= stylesheet_link_tag css.path, css.options %>
|
13
13
|
<% end %>
|
14
14
|
<%= yield :stylesheets %>
|
15
15
|
<%= render 'refinery/admin/javascripts' %>
|
data/lib/refinery/version.rb
CHANGED
@@ -1,32 +1,40 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
module Refinery
|
4
|
-
describe "custom", :
|
4
|
+
describe "custom", type: :feature do
|
5
5
|
refinery_login
|
6
|
+
|
7
|
+
let(:custom_js){ Refinery.roots('refinery/core').join('spec/support/fixtures/custom_js.js') }
|
8
|
+
let(:custom_css){ Refinery.roots('refinery/core').join('spec/support/fixtures/custom_css.css') }
|
9
|
+
|
10
|
+
before do
|
11
|
+
Rails.application.config.assets.precompile += %W( #{custom_js} #{custom_css} )
|
12
|
+
end
|
13
|
+
|
6
14
|
after do
|
7
|
-
Refinery::Core.javascripts.reject! { |j| %
|
8
|
-
Refinery::Core.stylesheets.reject! { |s| %
|
15
|
+
Refinery::Core.javascripts.reject! { |j| %W[#{custom_js}].include?(j) }
|
16
|
+
Refinery::Core.stylesheets.reject! { |s| %W[#{custom_css}].include?(s.path) }
|
9
17
|
end
|
10
18
|
|
11
19
|
context "javascripts" do
|
12
20
|
before do
|
13
|
-
::Refinery::Core.config.register_javascript(
|
21
|
+
::Refinery::Core.config.register_javascript(custom_js)
|
14
22
|
end
|
15
23
|
|
16
24
|
it "should be rendered when specified" do
|
17
25
|
visit Refinery::Core.backend_path
|
18
|
-
expect(page.body.include?('custom_js
|
26
|
+
expect(page.body.include?('custom_js')).to be
|
19
27
|
end
|
20
28
|
end
|
21
29
|
|
22
30
|
context "stylesheets" do
|
23
31
|
before do
|
24
|
-
::Refinery::Core.config.register_stylesheet(
|
32
|
+
::Refinery::Core.config.register_stylesheet(custom_css)
|
25
33
|
end
|
26
34
|
|
27
35
|
it "should be rendered when specified" do
|
28
36
|
visit Refinery::Core.backend_path
|
29
|
-
expect(page.body
|
37
|
+
expect(page.body.include?('custom_css')).to be
|
30
38
|
end
|
31
39
|
end
|
32
40
|
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -32,7 +32,7 @@ cert_chain:
|
|
32
32
|
jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
|
33
33
|
5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date: 2017-
|
35
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: refinerycms-i18n
|
@@ -658,6 +658,8 @@ files:
|
|
658
658
|
- spec/lib/refinery/users_manager_spec.rb
|
659
659
|
- spec/presenters/refinery/translated_field_presenter_spec.rb
|
660
660
|
- spec/support/database_cleaner.rb
|
661
|
+
- spec/support/fixtures/custom_css.css
|
662
|
+
- spec/support/fixtures/custom_js.js
|
661
663
|
- spec/support/fixtures/invalid_engine.rb
|
662
664
|
- spec/support/fixtures/valid_engine.rb
|
663
665
|
- spec/support/refinery.rb
|
@@ -729,6 +731,8 @@ test_files:
|
|
729
731
|
- spec/lib/refinery/users_manager_spec.rb
|
730
732
|
- spec/presenters/refinery/translated_field_presenter_spec.rb
|
731
733
|
- spec/support/database_cleaner.rb
|
734
|
+
- spec/support/fixtures/custom_css.css
|
735
|
+
- spec/support/fixtures/custom_js.js
|
732
736
|
- spec/support/fixtures/invalid_engine.rb
|
733
737
|
- spec/support/fixtures/valid_engine.rb
|
734
738
|
- spec/support/refinery.rb
|
metadata.gz.sig
CHANGED
Binary file
|