lib/softwear/lib.rb in softwear-lib-3.1.5 vs lib/softwear/lib.rb in softwear-lib-3.3.5

- old
+ new

@@ -1,20 +1,23 @@ -require "softwear/engine" -require "softwear/error_catcher" -require "softwear/library/version" -require "softwear/library/spec" -require "softwear/library/api_controller" -begin - require "softwear/library/enqueue" -rescue LoadError +if (::Rails rescue false) + require "softwear/engine" + require "softwear/library/api_controller" + require "softwear/error_catcher" + require "softwear/library/version" + require "softwear/library/spec" + require "softwear/auth/helper" + require "softwear/auth/model" + require "softwear/auth/belongs_to_user" + require "softwear/auth/spec" + require "softwear/auth/token_authentication" + require "softwear/library/controller_authentication" + begin + require "softwear/library/enqueue" + rescue LoadError + end end -require "softwear/library/controller_authentication" -require "softwear/auth/helper" -require "softwear/auth/model" -require "softwear/auth/belongs_to_user" -require "softwear/auth/spec" -require "softwear/auth/token_authentication" +require "softwear/library/spec_dump" module Softwear module Library GEMFILE_OPENER = "# === BEGIN SOFTWEAR LIB GEMS === #" GEMFILE_CLOSER = "# === END SOFTWEAR LIB GEMS === #"