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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b66220b4f74303327aea521ea84d4f55d04f2ed0
4
- data.tar.gz: e8973e66118a66affbd539d3c977d5f8fde7dd06
3
+ metadata.gz: fa69c80ba92533a1d3f40570315e835397c7635f
4
+ data.tar.gz: 43b2204819e877802ffedbd655ab90ebcbc0a070
5
5
  SHA512:
6
- metadata.gz: 4dad9797f9c4657a32d88d53f24d7e8a572725052de48f74696040fb1025e1b563b880d0388fba44412f5527729d106a00416a6d253db59c5e887b88e6961c26
7
- data.tar.gz: b67575d0d484ecdf99edba59dca4f87be0fda8e94dd198b409b8772c6d4f7a2a54753dcd35ae0bae3de255f4aa53c5210b61cb82c37e59681824273e4fafe048
6
+ metadata.gz: dcbf6c99e35e1e908f9f8f266229f957132c1b3cba6a79e1362e93e1c7723ae80ec929bc3e1a590126702c378076d10c1c1562a87a57b41303ee68b3a7f8d0ab
7
+ data.tar.gz: 419e5eeb7e5a2288c47696fae277510fcb7d346717804ec006ad4d518c0a479861d7355db61043ee336214fc6ab2f3a5c7a9596d9366297dd0f4cdb271631e4c
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, { skip_pipeline: true }.merge(css.options) %>
9
+ <%= stylesheet_link_tag css.path, css.options %>
10
10
  <% end %>
11
11
  <% custom_stylesheets.each do |css| %>
12
- <%= stylesheet_link_tag css.path, { skip_pipeline: true }.merge(css.options) %>
12
+ <%= stylesheet_link_tag css.path, css.options %>
13
13
  <% end %>
14
14
  <%= yield :stylesheets %>
15
15
  <%= render 'refinery/admin/javascripts' %>
@@ -10,6 +10,6 @@
10
10
  <% end %>
11
11
  <%= yield :after_javascript_libraries -%>
12
12
  <% custom_javascripts.each do |js| %>
13
- <%= javascript_include_tag js, skip_pipeline: true %>
13
+ <%= javascript_include_tag js %>
14
14
  <% end %>
15
15
  <%= yield :javascripts %>
@@ -1,3 +1,5 @@
1
+ require 'refinery/core/nil_user'
2
+
1
3
  module Refinery
2
4
  module Core
3
5
  class AuthorisationAdapter < Zilch::Authorisation::Adapters::Default
@@ -2,7 +2,7 @@ module Refinery
2
2
  class Version
3
3
  @major = 4
4
4
  @minor = 0
5
- @tiny = 0
5
+ @tiny = 1
6
6
  @build = nil
7
7
 
8
8
  class << self
@@ -1,32 +1,40 @@
1
1
  require "spec_helper"
2
2
 
3
3
  module Refinery
4
- describe "custom", :type => :feature do
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| %w[custom_js].include?(j) }
8
- Refinery::Core.stylesheets.reject! { |s| %w[custom_css].include?(s.path) }
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('custom_js')
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.js')).to be
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('custom_css')
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).to include('custom_css.css')
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.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-09-29 00:00:00.000000000 Z
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