From d068aa47cf495b143fbbdfaa754c6ccf91efa77c Mon Sep 17 00:00:00 2001 From: Victor Morandini Stabile Date: Tue, 29 May 2018 15:44:12 -0300 Subject: [PATCH 1/2] require dependencies --- lib/plutus.rb | 3 +++ plutus.gemspec | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/plutus.rb b/lib/plutus.rb index ec12afd9..ea54da71 100644 --- a/lib/plutus.rb +++ b/lib/plutus.rb @@ -1,5 +1,8 @@ # Plutus require "rails" +require "jquery-rails" +require "jquery-ui-rails" +require "kaminari" module Plutus class Engine < Rails::Engine diff --git a/plutus.gemspec b/plutus.gemspec index 1735bb9e..93f817a3 100644 --- a/plutus.gemspec +++ b/plutus.gemspec @@ -20,9 +20,9 @@ Gem::Specification.new do |s| "README.markdown" ] s.add_dependency("rails", "> 4.0") - s.add_dependency("jquery-rails", ">= 3.0") - s.add_dependency("jquery-ui-rails", ">= 4.2.2") - s.add_dependency("kaminari", "~> 1.0") + s.add_dependency("jquery-rails", "~> 4.0") + s.add_dependency("jquery-ui-rails", "~> 5.0") + s.add_dependency("kaminari", "~> 1.1") s.add_development_dependency("yard") s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE", "Rakefile", "README.markdown"] s.homepage = %q{http://github.com/mbulat/plutus} @@ -40,4 +40,3 @@ Gem::Specification.new do |s| else end end - From 4774c0d8fd3e95b9aa99147ceb8ebdca87f1048f Mon Sep 17 00:00:00 2001 From: Victor Morandini Stabile Date: Tue, 12 Jun 2018 11:27:58 -0300 Subject: [PATCH 2/2] decorators support --- lib/plutus.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/plutus.rb b/lib/plutus.rb index ea54da71..e9d15d83 100644 --- a/lib/plutus.rb +++ b/lib/plutus.rb @@ -7,6 +7,12 @@ module Plutus class Engine < Rails::Engine isolate_namespace Plutus + + config.to_prepare do + Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c| + require_dependency(c) + end + end end