forked from pool/hawk2
* Add docstring to functions in hawk_test * make-sle16-compatible.patch OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/hawk2?expand=0&rev=286
56 lines
2.1 KiB
Diff
56 lines
2.1 KiB
Diff
Index: hawk2-2.6.5+git.1724254291.33351c16/hawk/Gemfile
|
|
===================================================================
|
|
--- hawk2-2.6.5+git.1724254291.33351c16.orig/hawk/Gemfile
|
|
+++ hawk2-2.6.5+git.1724254291.33351c16/hawk/Gemfile
|
|
@@ -20,7 +20,7 @@ gem "rails", ">= 5.1"
|
|
gem "puma", ">= 4.3.5"
|
|
gem "sass-rails", ">= 5.0"
|
|
gem "virtus", ">= 1.0.1"
|
|
-gem "js-routes", ">= 1.4.1"
|
|
+gem "js-routes", ">= 2.0.0"
|
|
gem "fast_gettext", ">= 1.4"
|
|
gem "gettext_i18n_rails", ">= 1.8"
|
|
gem "gettext_i18n_rails_js", ">= 1.3"
|
|
Index: hawk2-2.6.5+git.1724254291.33351c16/hawk/config/application.rb
|
|
===================================================================
|
|
--- hawk2-2.6.5+git.1724254291.33351c16.orig/hawk/config/application.rb
|
|
+++ hawk2-2.6.5+git.1724254291.33351c16/hawk/config/application.rb
|
|
@@ -44,6 +44,11 @@ module Hawk
|
|
config.middleware.use Rack::Deflater
|
|
end
|
|
|
|
+ JsRoutes.setup do |config|
|
|
+ config.module_type = nil
|
|
+ config.namespace = "Routes"
|
|
+ end
|
|
+
|
|
config.x.hawk_is_sles = system("cat /etc/os-release | grep 'ID=.*sles' >/dev/null 2>&1")
|
|
|
|
def lookup_daemon_dir
|
|
Index: hawk2-2.6.5+git.1724254291.33351c16/hawk/config/boot.rb
|
|
===================================================================
|
|
--- hawk2-2.6.5+git.1724254291.33351c16.orig/hawk/config/boot.rb
|
|
+++ hawk2-2.6.5+git.1724254291.33351c16/hawk/config/boot.rb
|
|
@@ -38,7 +38,7 @@ else
|
|
gem "virtus", version: "~> 1.0"
|
|
require "virtus"
|
|
|
|
- gem "js-routes", version: ">= 1.3.3"
|
|
+ gem "js-routes", version: ">= 2.0.0"
|
|
require "js-routes"
|
|
|
|
gem "fast_gettext", version: "~> 1.4"
|
|
Index: hawk2-2.6.5+git.1724254291.33351c16/hawk/config/environments/development.rb
|
|
===================================================================
|
|
--- hawk2-2.6.5+git.1724254291.33351c16.orig/hawk/config/environments/development.rb
|
|
+++ hawk2-2.6.5+git.1724254291.33351c16/hawk/config/environments/development.rb
|
|
@@ -27,7 +27,7 @@ Rails.application.configure do
|
|
|
|
config.cache_store = :memory_store
|
|
|
|
- config.assets.debug = true
|
|
+ config.assets.debug = false
|
|
config.assets.raise_runtime_errors = true
|
|
config.assets.js_compressor = nil
|
|
config.assets.css_compressor = nil
|