<commit_before>require 'haml-rails'
require 'mini_magick'
require 'carrierwave'
require 'bootstrap-sass'
require 'jquery-rails'
require 'acts_as_list'
require 'rhinoart'
require "rhinoart/utils"

module Rhinobook
  class Engine < ::Rails::Engine
    isolate_namespace Rhinobook

    initializer "rhinobook.init" do |app|

      Rhinoart::User::ADMIN_PANEL_ROLE_BOOKS_MANAGER = "Books Manager"
      Rhinoart::User::ADMIN_PANEL_ROLES << Rhinoart::User::ADMIN_PANEL_ROLE_BOOKS_MANAGER


      Rhinoart::Menu::MainMenu.add_item({
        icon: 'fa-icon-picture',
        link: proc{ rhinobook.books_path },
        label: 'rhinoart_gallery._GALLERY',
        allowed: proc{ can?(:manage, :books) },
        active: proc{ 
        	controller_name == 'books' ||  
        	controller_name == 'chapters' ||  
        	controller_name == 'domains' ||  
        	controller_name == 'pages' ||  
        	controller_name == 'statuses'
        }
      })
    end
  end
end<commit_msg>Update for rhinoart 4.2<commit_after>require 'haml-rails'
require 'mini_magick'
require 'carrierwave'
require 'bootstrap-sass'
require 'jquery-rails'
require 'acts_as_list'
require 'rhinoart'
require "rhinoart/utils"

module Rhinobook
  class Engine < ::Rails::Engine
    isolate_namespace Rhinobook

    initializer "rhinobook.init" do |app|

      Rhinoart::User::ADMIN_PANEL_ROLE_BOOKS_MANAGER = "Books Manager"
      Rhinoart::User::ADMIN_PANEL_ROLES << Rhinoart::User::ADMIN_PANEL_ROLE_BOOKS_MANAGER


      Rhinoart::Menu::MainMenu.add_item({
        icon: 'fa-icon-book',
        link: proc{ rhinobook.books_path },
        label: 'rhinoart_gallery.books',
        allowed: proc{ can?(:manage, :books) },
        active: proc{ 
        	controller_name == 'books' ||  
        	controller_name == 'chapters' ||  
        	controller_name == 'domains' ||  
        	controller_name == 'pages' ||  
        	controller_name == 'statuses'
        }
      })
    end
  end
end
{'fraction_non_alphanumeric': 0.11924257932446264, 'fraction_numerical': 0.0010235414534288639, 'mean_word_length': 3.1862955032119915, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2323766', 'n_tokens_mistral': 701, 'n_tokens_neox': 675, 'n_words': 120}