refinerycms-core 3.0.6 → 4.0.0

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: 54905bf441f5cec6679998d3159184707e4c0717
4
- data.tar.gz: 206ca811bae7f8a983a61221ef7b8a05cb1997ec
3
+ metadata.gz: b66220b4f74303327aea521ea84d4f55d04f2ed0
4
+ data.tar.gz: e8973e66118a66affbd539d3c977d5f8fde7dd06
5
5
  SHA512:
6
- metadata.gz: aa6b2fc6616687a2fdb4f2b38f532ed4977cc320c8f49886389e75f01e7faf65d473f4f17d7cbe5c8761bc141b86d9d57fe7a23293c755d1b1b5f806929607cf
7
- data.tar.gz: ec0266f41d3096bc88da963561891dfa8060854b4804ff4080dacf71b31e55cdc19e903d972118a9222aefa67e7b525819338f6d2a8dbf4c6c5e1510cbbb0644
6
+ metadata.gz: 4dad9797f9c4657a32d88d53f24d7e8a572725052de48f74696040fb1025e1b563b880d0388fba44412f5527729d106a00416a6d253db59c5e887b88e6961c26
7
+ data.tar.gz: b67575d0d484ecdf99edba59dca4f87be0fda8e94dd198b409b8772c6d4f7a2a54753dcd35ae0bae3de255f4aa53c5210b61cb82c37e59681824273e4fafe048
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,14 @@
1
+ //= link_tree ../images
2
+
3
+ //= link refinery/refinery.js
4
+ //= link refinery/sortable_list.js
5
+ //= link refinery/nestedsortables.js
6
+ //= link refinery/serializelist.js
7
+ //= link refinery/tree.js
8
+ //= link admin.js
9
+ //= link modernizr-min.js
10
+
11
+ //= link refinery/refinery.css
12
+ //= link refinery/formatting.css
13
+ //= link refinery/site_bar.css
14
+ //= link refinery/theme.css
@@ -167,7 +167,9 @@ trigger_reordering_content_section = function(e, enable) {
167
167
  };
168
168
 
169
169
  submit_and_continue = function(e, redirect_to) {
170
- visual_editor_update();
170
+ if( typeof(visual_editor_update) == "function" ) {
171
+ visual_editor_update();
172
+ }
171
173
 
172
174
  $('#continue_editing').val(true);
173
175
  $('#flash').hide();
@@ -631,7 +633,10 @@ var page_options = {
631
633
 
632
634
  page_options.tabs.tabs("option", "active", -1);
633
635
 
634
- visual_editor_init();
636
+ if( typeof(visual_editor_init) == "function" ) {
637
+ visual_editor_init();
638
+ }
639
+
635
640
 
636
641
  // Wipe the title and increment the index counter by one.
637
642
  $('#new_page_part_index').val(parseInt($('#new_page_part_index').val(), 10) + 1);
@@ -101,7 +101,7 @@ body.dialog #content .search_form {
101
101
  color: #000;
102
102
  border: 4px solid #22A7F2;
103
103
  width: auto;
104
- z-index: 1;
104
+ z-index: 3;
105
105
  #dialog_loading {
106
106
  position: fixed;
107
107
  top: 50%;
@@ -1037,30 +1037,38 @@ a img {
1037
1037
  border: 0px none;
1038
1038
  }
1039
1039
 
1040
+
1040
1041
  /* page parts */
1042
+
1043
+ ul#page_parts,
1044
+ ul#page_parts_controls {
1045
+ margin: 0;
1046
+ padding: 0;
1047
+ }
1048
+
1041
1049
  ul#page_parts {
1042
1050
  float: left;
1043
1051
  width: 92%;
1052
+ z-index: 1;
1044
1053
  }
1045
- ul#page_parts, ul#page_parts_controls {
1046
- margin: 0;
1047
- padding: 0;
1048
- }
1054
+
1049
1055
  ul#page_parts_controls {
1050
1056
  float: right;
1051
1057
  margin: 20px 3px 0 0;
1058
+ z-index: 2;
1059
+
1060
+ li {
1061
+ list-style: none;
1062
+ float: right;
1063
+ margin: 0 3px;
1064
+
1065
+ a {
1066
+ border: 0px none;
1067
+ }
1068
+ }
1052
1069
  }
1053
- ul#page_parts_controls li {
1054
- list-style: none;
1055
- float: right;
1056
- margin: 0 3px;
1057
- }
1058
- ul#page_parts_controls li a {
1059
- border: 0px none;
1060
- }
1061
- ul#page_parts_controls img {
1062
- vertical-align: middle;
1063
- }
1070
+
1071
+
1064
1072
  #page-tabs.ui-sortable.reordering {
1065
1073
  li {
1066
1074
  cursor: move;
@@ -36,7 +36,7 @@ module ::Refinery
36
36
  end
37
37
 
38
38
  def url_params
39
- params.reject { |key, value| /(action)|(controller)/ === key}.
39
+ params.to_unsafe_h.reject { |key, value| /(action)|(controller)/ === key}.
40
40
  merge :id => nil
41
41
  end
42
42
 
@@ -13,7 +13,8 @@ module Refinery
13
13
  # They are all 16x16 so this is the default but is able to be overriden with supplied options.
14
14
  def refinery_icon_tag(filename, options = {})
15
15
  filename = "#{filename}.png" unless filename.split('.').many?
16
- image_tag "refinery/icons/#{filename}", {:width => 16, :height => 16}.merge(options)
16
+ path = image_path "refinery/icons/#{filename}", skip_pipeline: true
17
+ image_tag path, {:width => 16, :height => 16}.merge(options)
17
18
  end
18
19
 
19
20
  def action_icon(action, url, title, options={})
@@ -8,13 +8,13 @@
8
8
  <body id="<%= canonical_id @page %>" class="<%= view_template_class @page %>">
9
9
  <%= site_bar -%>
10
10
  <div id="page_container">
11
- <header id="header">
11
+ <header id="header" role="banner">
12
12
  <%= render "/refinery/header" -%>
13
13
  </header>
14
- <section id="page">
14
+ <main id="page" role="main">
15
15
  <%= yield %>
16
- </section>
17
- <footer>
16
+ </main>
17
+ <footer role="contentinfo">
18
18
  <%= render "/refinery/footer" -%>
19
19
  </footer>
20
20
  </div>
@@ -1,4 +1,13 @@
1
- <h1 id='logo'>
2
- <%= link_to Refinery::Core.site_name, refinery.root_path %>
3
- </h1>
4
- <%= Refinery::Pages::MenuPresenter.new(refinery_menu_pages, self).to_html %>
1
+ <%= content_tag :div, id: "logo", itemscope: "", itemtype: "http://schema.org/Organization" do %>
2
+ <%= link_to refinery.root_path, itemprop: "url" do %>
3
+ <%= Refinery::Core.site_name %>
4
+ <% end %>
5
+ <% end %>
6
+
7
+ <% cache [I18n.locale, 'main_menu', @page, Refinery::Page.fast_menu.map(&:updated_at).max] do %>
8
+ <%=
9
+ main_menu = Refinery::Pages::MenuPresenter.new(refinery_menu_pages, self)
10
+ main_menu.menu_role = 'navigation'
11
+ main_menu.to_html
12
+ %>
13
+ <% end %>
@@ -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, css.options %>
9
+ <%= stylesheet_link_tag css.path, { skip_pipeline: true }.merge(css.options) %>
10
10
  <% end %>
11
11
  <% custom_stylesheets.each do |css| %>
12
- <%= stylesheet_link_tag css.path, css.options %>
12
+ <%= stylesheet_link_tag css.path, { skip_pipeline: true }.merge(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 %>
13
+ <%= javascript_include_tag js, skip_pipeline: true %>
14
14
  <% end %>
15
15
  <%= yield :javascripts %>
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile << 'refinery_core_manifest.js'
@@ -16,6 +16,7 @@ en:
16
16
  created: '%{what} was successfully added.'
17
17
  updated: '%{what} was successfully updated.'
18
18
  destroyed: '%{what} was successfully removed.'
19
+ not_destroyed: '%{what} was not removed.'
19
20
  site_bar:
20
21
  log_out: Log out
21
22
  switch_to_your_website: Switch to your website
@@ -14,7 +14,7 @@ module Refinery
14
14
  end
15
15
 
16
16
  PASSTHROUGH_OPTIONS = [
17
- :skip_active_record, :skip_javascript, :database, :javascript, :quiet, :pretend, :force, :skip
17
+ :skip_active_record, :skip_javascript, :skip_action_cable, :skip_action_mailer, :database, :javascript, :quiet, :pretend, :force, :skip
18
18
  ]
19
19
 
20
20
  def generate_test_dummy
@@ -22,6 +22,8 @@ module Refinery
22
22
  opts[:database] = 'sqlite3' if opts[:database].blank?
23
23
  opts[:force] = true
24
24
  opts[:skip_bundle] = true
25
+ opts[:skip_action_cable] = true
26
+ opts[:skip_action_mailer] = true
25
27
 
26
28
  invoke Rails::Generators::AppGenerator, [ File.expand_path(dummy_path, destination_root) ], opts
27
29
  end
@@ -36,10 +36,12 @@ module Refinery
36
36
  'rails generate refinery:engine'
37
37
  end
38
38
 
39
- def reject_file_with_skip_frontend?(file)
40
- (skip_frontend? && (file.to_s.include?('app') && file.to_s.scan(/admin|models|mailers/).empty?)) ||
41
- reject_file_without_skip_frontend?(file)
39
+ def reject_file?(file)
40
+ (skip_frontend? && in_frontend_directory?(file)) || super
41
+ end
42
+
43
+ def in_frontend_directory?(file)
44
+ file.to_s.include?('app') && file.to_s.scan(/admin|models|mailers/).empty?
42
45
  end
43
- alias_method_chain :reject_file?, :skip_frontend
44
46
  end
45
47
  end
@@ -1,4 +1,4 @@
1
- class Create<%= namespacing %><%= class_name.pluralize %> < ActiveRecord::Migration
1
+ class Create<%= namespacing %><%= class_name.pluralize %> < ActiveRecord::Migration[<%= "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}" %>]
2
2
 
3
3
  def up
4
4
  create_table :refinery_<%= "#{namespacing.underscore}_" if table_name != namespacing.underscore.pluralize -%><%= table_name %> do |t|
@@ -3,6 +3,7 @@ require 'active_record'
3
3
  require 'action_controller'
4
4
  require 'rbconfig'
5
5
  require 'font-awesome-sass'
6
+ require 'jquery-rails'
6
7
 
7
8
  module Refinery
8
9
  require 'refinery/errors'
@@ -63,7 +63,7 @@ module Refinery
63
63
  end
64
64
  end
65
65
 
66
- initializer "refinery.routes", :after => :set_routes_reloader_hook do |app|
66
+ initializer "refinery.routes" do |app|
67
67
  Refinery::Core::Engine.routes.append do
68
68
  get "#{Refinery::Core.backend_route}/*path" => 'admin#error_404'
69
69
  end
@@ -77,41 +77,6 @@ module Refinery
77
77
  ].flatten
78
78
  end
79
79
 
80
- # set assets to be precompiled
81
- config.to_prepare do
82
-
83
- # scripts
84
- Rails.application.config.assets.precompile += %w(
85
- refinery/*.js
86
- refinery/icons/*
87
- modernizr-min.js
88
- admin.js
89
- )
90
-
91
- # stylesheets
92
- Rails.application.config.assets.precompile += %w(
93
- refinery/refinery.css
94
- refinery/formatting.css
95
- refinery/site_bar.css
96
- refinery/theme.css
97
- )
98
-
99
- # images
100
- Rails.application.config.assets.precompile += %w(
101
- refinery/images/*
102
- refinery/refinery-cms-logo.svg
103
- )
104
-
105
- # fonts
106
- Rails.application.config.assets.precompile += %w(
107
- font-awesome/fontawesome-webfont.eot
108
- font-awesome/fontawesome-webfont.woff2
109
- font-awesome/fontawesome-webfont.woff
110
- font-awesome/fontawesome-webfont.ttf
111
- font-awesome/fontawesome-webfont.svg
112
- )
113
- end
114
-
115
80
  # active model fields which may contain sensitive data to filter
116
81
  initializer "refinery.params.filter" do |app|
117
82
  app.config.filter_parameters += [:password, :password_confirmation]
@@ -49,7 +49,6 @@ module Refinery
49
49
 
50
50
  def crudify(model_name, options = {})
51
51
  options = ::Refinery::Crud.default_options(model_name).merge(options)
52
- Refinery.deprecate :xhr_paging, when: '3.1' if options[:xhr_paging]
53
52
  class_name = options[:class_name]
54
53
  singular_name = options[:singular_name]
55
54
  plural_name = options[:plural_name]
@@ -166,8 +165,8 @@ module Refinery
166
165
  # then render only the collection of items.
167
166
  def render_partial_response?
168
167
  if request.xhr?
169
- render :text => render_to_string(:partial => '#{plural_name}', :layout => false).html_safe,
170
- :layout => 'refinery/flash' and return false
168
+ render plain: render_to_string(partial: '#{plural_name}', layout: false).html_safe,
169
+ layout: 'refinery/flash' and return false
171
170
  end
172
171
  end
173
172
 
@@ -283,7 +282,7 @@ module Refinery
283
282
  # Based upon https://github.com/matenia/jQuery-Awesome-Nested-Set-Drag-and-Drop
284
283
  def update_positions
285
284
  previous = nil
286
- params[:ul].each do |_, list|
285
+ params.to_unsafe_h[:ul].each do |_, list|
287
286
  list.each do |index, hash|
288
287
  moved_item_id = hash['id'][/\\d+\\z/]
289
288
  @current_#{singular_name} = #{class_name}.find_by_id(moved_item_id)
@@ -329,7 +328,7 @@ module Refinery
329
328
  end
330
329
 
331
330
  def after_update_positions
332
- render :nothing => true
331
+ head :ok
333
332
  end
334
333
 
335
334
  protected :after_update_positions
@@ -29,15 +29,6 @@ module Refinery
29
29
  ::I18n.translate(['refinery', 'plugins', name, 'description'].join('.'))
30
30
  end
31
31
 
32
- # Stores information that can be used to retrieve the latest activities of this plugin
33
- def activity=(_)
34
- Refinery.deprecate('Refinery::Plugin#activity=', when: '3.1')
35
- end
36
-
37
- def dashboard=(_)
38
- Refinery.deprecate('Refinery::Plugin#dashboard=', when: '3.1')
39
- end
40
-
41
32
  # Used to highlight the current tab in the admin interface
42
33
  def highlighted?(params)
43
34
  !!(params[:controller].try(:gsub, "admin/", "") =~ menu_match)
@@ -1,8 +1,8 @@
1
1
  module Refinery
2
2
  class Version
3
- @major = 3
3
+ @major = 4
4
4
  @minor = 0
5
- @tiny = 6
5
+ @tiny = 0
6
6
  @build = nil
7
7
 
8
8
  class << self
@@ -13,8 +13,8 @@ module Refinery
13
13
  end
14
14
 
15
15
  def required_ruby_version
16
- '>= 2.0.0'
16
+ '>= 2.2.2'
17
17
  end
18
18
  end
19
19
  end
20
- end
20
+ end
@@ -2,7 +2,7 @@
2
2
  require File.expand_path('../../core/lib/refinery/version', __FILE__)
3
3
 
4
4
  version = Refinery::Version.to_s
5
- rails_version = ['>= 4.2.3', '< 5.0']
5
+ rails_version = ['>= 5.1.0', '< 5.2']
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
@@ -22,20 +22,20 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.required_ruby_version = Refinery::Version.required_ruby_version
24
24
 
25
- s.add_dependency 'refinerycms-i18n', '~> 3.0.0'
26
- s.add_dependency 'awesome_nested_set', '~> 3.0.0'
25
+ s.add_dependency 'refinerycms-i18n', ['~> 4.0', '>= 4.0.0']
26
+ s.add_dependency 'awesome_nested_set', ['~> 3.0', '>= 3.0.0']
27
27
  s.add_dependency 'railties', rails_version
28
28
  s.add_dependency 'activerecord', rails_version
29
29
  s.add_dependency 'actionpack', rails_version
30
30
  s.add_dependency 'truncate_html', '~> 0.9'
31
- s.add_dependency 'will_paginate', '~> 3.0.2'
31
+ s.add_dependency 'will_paginate', '~> 3.1', '>= 3.1.0'
32
32
  s.add_dependency 'sass-rails', '>= 4.0', '< 5.1'
33
33
  s.add_dependency 'font-awesome-sass', '>= 4.3.0', '< 5.0'
34
34
  s.add_dependency 'coffee-rails', ['~> 4.0', '>= 4.0.0']
35
- s.add_dependency 'jquery-rails', '>= 2.3.0'
36
- s.add_dependency 'jquery-ui-rails', '~> 5.0.0'
37
- s.add_dependency 'decorators', '~> 2.0.0'
38
- s.add_dependency 'zilch-authorisation'
35
+ s.add_dependency 'jquery-rails', '~> 4.3', '>= 4.3.1'
36
+ s.add_dependency 'jquery-ui-rails', '~> 5.0', '>= 5.0.0'
37
+ s.add_dependency 'decorators', '~> 2.0', '>= 2.0.0'
38
+ s.add_dependency 'zilch-authorisation', '~> 0', '>= 0.0.1'
39
39
 
40
40
  s.cert_chain = [File.expand_path("../../certs/parndt.pem", __FILE__)]
41
41
  if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
@@ -4,7 +4,7 @@ module Refinery
4
4
  module Admin
5
5
  class DummyController < Refinery::AdminController
6
6
  def index
7
- render :nothing => true
7
+ head :ok
8
8
  end
9
9
  end
10
10
  end
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  module Refinery
4
- describe "dialog", :type => :feature do
4
+ describe "dialog", type: :feature do
5
5
  refinery_login
6
6
 
7
7
  context "links" do
@@ -17,7 +17,7 @@ module Refinery
17
17
  include ::Refinery::ApplicationController
18
18
 
19
19
  def index
20
- render :nothing => true
20
+ head :ok
21
21
  end
22
22
  end
23
23
 
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  ActiveRecord::Schema.define do
4
- create_table :refinery_crud_dummies, :force => true do |t|
4
+ create_table :refinery_crud_dummies, force: true do |t|
5
5
  t.integer :parent_id
6
6
  t.integer :lft
7
7
  t.integer :rgt
@@ -20,7 +20,7 @@ module Refinery
20
20
  end
21
21
 
22
22
  module Refinery
23
- describe CrudDummyController, :type => :controller do
23
+ describe CrudDummyController, type: :controller do
24
24
  before do
25
25
  @routes = ActionDispatch::Routing::RouteSet.new.tap do |r|
26
26
  r.draw do
@@ -40,12 +40,12 @@ module Refinery
40
40
  let!(:crud_dummy_three) { Refinery::CrudDummy.create! }
41
41
 
42
42
  it "orders dummies" do
43
- post :update_positions, {
44
- "ul" => {
45
- "0" => {
46
- "0" => {"id" => "crud_dummy_#{crud_dummy_three.id}"},
47
- "1" => {"id" => "crud_dummy_#{crud_dummy_two.id}"},
48
- "2" => {"id" => "crud_dummy_#{crud_dummy_one.id}"}
43
+ post :update_positions, params: {
44
+ "ul": {
45
+ "0": {
46
+ "0": {"id": "crud_dummy_#{crud_dummy_three.id}"},
47
+ "1": {"id": "crud_dummy_#{crud_dummy_two.id}"},
48
+ "2": {"id": "crud_dummy_#{crud_dummy_one.id}"}
49
49
  }
50
50
  }
51
51
  }
@@ -64,23 +64,23 @@ module Refinery
64
64
  end
65
65
 
66
66
  it "orders nested dummies" do
67
- nested_crud_dummy_one = Refinery::CrudDummy.create! :parent_id => crud_dummy_one.id
68
- nested_crud_dummy_two = Refinery::CrudDummy.create! :parent_id => crud_dummy_one.id
69
-
70
- post :update_positions, {
71
- "ul" => {
72
- "0" => {
73
- "0" => {
74
- "id" => "crud_dummy_#{crud_dummy_three.id}",
75
- "children" => {
76
- "0" => {
77
- "0" => {"id" => "crud_dummy_#{nested_crud_dummy_one.id}"},
78
- "1" => {"id" => "crud_dummy_#{nested_crud_dummy_two.id}"}
67
+ nested_crud_dummy_one = Refinery::CrudDummy.create! parent_id: crud_dummy_one.id
68
+ nested_crud_dummy_two = Refinery::CrudDummy.create! parent_id: crud_dummy_one.id
69
+
70
+ post :update_positions, params: {
71
+ "ul": {
72
+ "0": {
73
+ "0": {
74
+ "id": "crud_dummy_#{crud_dummy_three.id}",
75
+ "children": {
76
+ "0": {
77
+ "0": {"id": "crud_dummy_#{nested_crud_dummy_one.id}"},
78
+ "1": {"id": "crud_dummy_#{nested_crud_dummy_two.id}"}
79
79
  }
80
80
  }
81
81
  },
82
- "1" => {"id" => "crud_dummy_#{crud_dummy_two.id}"},
83
- "2" => {"id" => "crud_dummy_#{crud_dummy_one.id}"}
82
+ "1": {"id": "crud_dummy_#{crud_dummy_two.id}"},
83
+ "2": {"id": "crud_dummy_#{crud_dummy_one.id}"}
84
84
  }
85
85
  }
86
86
  }
@@ -117,12 +117,12 @@ module Refinery
117
117
  # sorted above #2 if we are sorting by strings.
118
118
  11.times do |n|
119
119
  dummy << Refinery::CrudDummy.create!
120
- dummy_params[n.to_s] = {"id" => "crud_dummy_#{dummy[n].id}"}
120
+ dummy_params[n.to_s] = {"id": "crud_dummy_#{dummy[n].id}"}
121
121
  end
122
122
 
123
- post :update_positions, { "ul" => { "0" => dummy_params } }
123
+ post :update_positions, params: { "ul": { "0": dummy_params } }
124
124
 
125
- expect(dummy.last.reload.lft).to eq(21)
125
+ expect(dummy.last.reload.lft).to eq(5)
126
126
  end
127
127
  end
128
128
 
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: 3.0.6
4
+ version: 4.0.0
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-10-02 00:00:00.000000000 Z
35
+ date: 2017-09-29 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: refinerycms-i18n
@@ -40,19 +40,28 @@ dependencies:
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: 3.0.0
43
+ version: '4.0'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 4.0.0
44
47
  type: :runtime
45
48
  prerelease: false
46
49
  version_requirements: !ruby/object:Gem::Requirement
47
50
  requirements:
48
51
  - - "~>"
49
52
  - !ruby/object:Gem::Version
50
- version: 3.0.0
53
+ version: '4.0'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 4.0.0
51
57
  - !ruby/object:Gem::Dependency
52
58
  name: awesome_nested_set
53
59
  requirement: !ruby/object:Gem::Requirement
54
60
  requirements:
55
61
  - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.0'
64
+ - - ">="
56
65
  - !ruby/object:Gem::Version
57
66
  version: 3.0.0
58
67
  type: :runtime
@@ -60,6 +69,9 @@ dependencies:
60
69
  version_requirements: !ruby/object:Gem::Requirement
61
70
  requirements:
62
71
  - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.0'
74
+ - - ">="
63
75
  - !ruby/object:Gem::Version
64
76
  version: 3.0.0
65
77
  - !ruby/object:Gem::Dependency
@@ -68,60 +80,60 @@ dependencies:
68
80
  requirements:
69
81
  - - ">="
70
82
  - !ruby/object:Gem::Version
71
- version: 4.2.3
83
+ version: 5.1.0
72
84
  - - "<"
73
85
  - !ruby/object:Gem::Version
74
- version: '5.0'
86
+ version: '5.2'
75
87
  type: :runtime
76
88
  prerelease: false
77
89
  version_requirements: !ruby/object:Gem::Requirement
78
90
  requirements:
79
91
  - - ">="
80
92
  - !ruby/object:Gem::Version
81
- version: 4.2.3
93
+ version: 5.1.0
82
94
  - - "<"
83
95
  - !ruby/object:Gem::Version
84
- version: '5.0'
96
+ version: '5.2'
85
97
  - !ruby/object:Gem::Dependency
86
98
  name: activerecord
87
99
  requirement: !ruby/object:Gem::Requirement
88
100
  requirements:
89
101
  - - ">="
90
102
  - !ruby/object:Gem::Version
91
- version: 4.2.3
103
+ version: 5.1.0
92
104
  - - "<"
93
105
  - !ruby/object:Gem::Version
94
- version: '5.0'
106
+ version: '5.2'
95
107
  type: :runtime
96
108
  prerelease: false
97
109
  version_requirements: !ruby/object:Gem::Requirement
98
110
  requirements:
99
111
  - - ">="
100
112
  - !ruby/object:Gem::Version
101
- version: 4.2.3
113
+ version: 5.1.0
102
114
  - - "<"
103
115
  - !ruby/object:Gem::Version
104
- version: '5.0'
116
+ version: '5.2'
105
117
  - !ruby/object:Gem::Dependency
106
118
  name: actionpack
107
119
  requirement: !ruby/object:Gem::Requirement
108
120
  requirements:
109
121
  - - ">="
110
122
  - !ruby/object:Gem::Version
111
- version: 4.2.3
123
+ version: 5.1.0
112
124
  - - "<"
113
125
  - !ruby/object:Gem::Version
114
- version: '5.0'
126
+ version: '5.2'
115
127
  type: :runtime
116
128
  prerelease: false
117
129
  version_requirements: !ruby/object:Gem::Requirement
118
130
  requirements:
119
131
  - - ">="
120
132
  - !ruby/object:Gem::Version
121
- version: 4.2.3
133
+ version: 5.1.0
122
134
  - - "<"
123
135
  - !ruby/object:Gem::Version
124
- version: '5.0'
136
+ version: '5.2'
125
137
  - !ruby/object:Gem::Dependency
126
138
  name: truncate_html
127
139
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +154,20 @@ dependencies:
142
154
  requirements:
143
155
  - - "~>"
144
156
  - !ruby/object:Gem::Version
145
- version: 3.0.2
157
+ version: '3.1'
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 3.1.0
146
161
  type: :runtime
147
162
  prerelease: false
148
163
  version_requirements: !ruby/object:Gem::Requirement
149
164
  requirements:
150
165
  - - "~>"
151
166
  - !ruby/object:Gem::Version
152
- version: 3.0.2
167
+ version: '3.1'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 3.1.0
153
171
  - !ruby/object:Gem::Dependency
154
172
  name: sass-rails
155
173
  requirement: !ruby/object:Gem::Requirement
@@ -214,21 +232,30 @@ dependencies:
214
232
  name: jquery-rails
215
233
  requirement: !ruby/object:Gem::Requirement
216
234
  requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '4.3'
217
238
  - - ">="
218
239
  - !ruby/object:Gem::Version
219
- version: 2.3.0
240
+ version: 4.3.1
220
241
  type: :runtime
221
242
  prerelease: false
222
243
  version_requirements: !ruby/object:Gem::Requirement
223
244
  requirements:
245
+ - - "~>"
246
+ - !ruby/object:Gem::Version
247
+ version: '4.3'
224
248
  - - ">="
225
249
  - !ruby/object:Gem::Version
226
- version: 2.3.0
250
+ version: 4.3.1
227
251
  - !ruby/object:Gem::Dependency
228
252
  name: jquery-ui-rails
229
253
  requirement: !ruby/object:Gem::Requirement
230
254
  requirements:
231
255
  - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '5.0'
258
+ - - ">="
232
259
  - !ruby/object:Gem::Version
233
260
  version: 5.0.0
234
261
  type: :runtime
@@ -236,6 +263,9 @@ dependencies:
236
263
  version_requirements: !ruby/object:Gem::Requirement
237
264
  requirements:
238
265
  - - "~>"
266
+ - !ruby/object:Gem::Version
267
+ version: '5.0'
268
+ - - ">="
239
269
  - !ruby/object:Gem::Version
240
270
  version: 5.0.0
241
271
  - !ruby/object:Gem::Dependency
@@ -243,6 +273,9 @@ dependencies:
243
273
  requirement: !ruby/object:Gem::Requirement
244
274
  requirements:
245
275
  - - "~>"
276
+ - !ruby/object:Gem::Version
277
+ version: '2.0'
278
+ - - ">="
246
279
  - !ruby/object:Gem::Version
247
280
  version: 2.0.0
248
281
  type: :runtime
@@ -250,22 +283,31 @@ dependencies:
250
283
  version_requirements: !ruby/object:Gem::Requirement
251
284
  requirements:
252
285
  - - "~>"
286
+ - !ruby/object:Gem::Version
287
+ version: '2.0'
288
+ - - ">="
253
289
  - !ruby/object:Gem::Version
254
290
  version: 2.0.0
255
291
  - !ruby/object:Gem::Dependency
256
292
  name: zilch-authorisation
257
293
  requirement: !ruby/object:Gem::Requirement
258
294
  requirements:
259
- - - ">="
295
+ - - "~>"
260
296
  - !ruby/object:Gem::Version
261
297
  version: '0'
298
+ - - ">="
299
+ - !ruby/object:Gem::Version
300
+ version: 0.0.1
262
301
  type: :runtime
263
302
  prerelease: false
264
303
  version_requirements: !ruby/object:Gem::Requirement
265
304
  requirements:
266
- - - ">="
305
+ - - "~>"
267
306
  - !ruby/object:Gem::Version
268
307
  version: '0'
308
+ - - ">="
309
+ - !ruby/object:Gem::Version
310
+ version: 0.0.1
269
311
  description: The core of Refinery CMS. This handles the common functionality and is
270
312
  required by most extensions
271
313
  email: refinerycms@p.arndt.io
@@ -273,6 +315,7 @@ executables: []
273
315
  extensions: []
274
316
  extra_rdoc_files: []
275
317
  files:
318
+ - app/assets/config/refinery_core_manifest.js
276
319
  - app/assets/images/favicon.ico
277
320
  - app/assets/images/refinery/add.png
278
321
  - app/assets/images/refinery/admin_bg.png
@@ -400,7 +443,6 @@ files:
400
443
  - app/helpers/refinery/custom_assets_helper.rb
401
444
  - app/helpers/refinery/html_truncation_helper.rb
402
445
  - app/helpers/refinery/image_helper.rb
403
- - app/helpers/refinery/menu_helper.rb
404
446
  - app/helpers/refinery/meta_helper.rb
405
447
  - app/helpers/refinery/pagination_helper.rb
406
448
  - app/helpers/refinery/site_bar_helper.rb
@@ -446,6 +488,7 @@ files:
446
488
  - app/views/refinery/admin/dialog_success.html.erb
447
489
  - app/views/refinery/admin/dialogs/show.html.erb
448
490
  - app/views/refinery/sitemap/index.xml.builder
491
+ - config/initializers/assets.rb
449
492
  - config/initializers/will_paginate_monkeypatch.rb
450
493
  - config/locales/ar.yml
451
494
  - config/locales/bg.yml
@@ -637,7 +680,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
637
680
  requirements:
638
681
  - - ">="
639
682
  - !ruby/object:Gem::Version
640
- version: 2.0.0
683
+ version: 2.2.2
641
684
  required_rubygems_version: !ruby/object:Gem::Requirement
642
685
  requirements:
643
686
  - - ">="
metadata.gz.sig CHANGED
Binary file
@@ -1,17 +0,0 @@
1
- module Refinery
2
- module MenuHelper
3
-
4
- # Adds conditional caching
5
- def cache_if(condition, name = {}, &block)
6
- if condition
7
- cache(name, &block)
8
- else
9
- yield
10
- end
11
-
12
- # for <%= style helpers vs <% style
13
- nil
14
- end
15
-
16
- end
17
- end