fanforce-plugin-factory 0.35.2 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  .module-add-initiative-footer { position:absolute; bottom:0; left:0; padding:5px 0; text-align:left; width:100%; margin:0px; overflow:hidden; background: #f2f5f8; @include box-shadow(#ffffff 0 1px 0 inset, #d1d1d1 0 -1px 2px);
2
- &.disabled {
2
+ &.disabled { pointer-events: none;
3
3
  label { @include opacity(.5); }
4
4
  .input-wrapper { @include opacity(.5); cursor: not-allowed; }
5
5
  button { @include opacity(.5); }
@@ -12,7 +12,10 @@
12
12
  @import 'common/mixins';
13
13
  @import 'common/variables';
14
14
  @import 'common/bootstrap-overrides';
15
+
16
+ @import 'common/module-page-loading';
15
17
  @import 'common/module-saving-initiative';
18
+ @import 'common/module-add-initiative-footer';
16
19
 
17
20
  //////////////////////////////////////////////////////////////////////////////////////////////////
18
21
  // BASE STYLES (AS FEW AS POSSIBLE)
@@ -68,11 +68,17 @@ class FanforcePlugin::CoreConfig
68
68
  @dir_name = /\/([^\/]+)\/?$/.match(@root_dir)[1]
69
69
 
70
70
  $: << File.join(@root_dir,'lib') if File.directory?("#{@root_dir}/lib")
71
+ $: << @root_dir if File.directory?("#{@root_dir}")
71
72
 
72
73
  require "#{@root_dir}/config/initializer" if File.exists?("#{@root_dir}/config/initializer.rb")
73
- require "#{@root_dir}/config/routes" if File.exists?("#{@root_dir}/config/routes.rb")
74
-
75
74
  require "#{@root_dir}/initializer" if File.exists?("#{@root_dir}/initializer.rb")
75
+ if File.directory?("#{@root_dir}/initializers")
76
+ Dir["#{@root_dir}/initializers/*.rb"].each {|file| require file }
77
+ end
78
+
79
+ require "#{@root_dir}/config/_routes" if File.exists?("#{@root_dir}/config/_routes.rb")
80
+ require "#{@root_dir}/views/_routes" if File.exists?("#{@root_dir}/views/_routes.rb")
81
+ require "#{@root_dir}/_routes" if File.exists?("#{@root_dir}/_routes.rb")
76
82
  require "#{@root_dir}/routes" if File.exists?("#{@root_dir}/routes.rb")
77
83
 
78
84
  require "#{@factory_root_dir}/routes_#{@type}" if @type and File.exists?("#{@factory_root_dir}/routes_#{@type}.rb")
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module PluginFactory
3
- VERSION = '0.35.2'
3
+ VERSION = '0.36.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-plugin-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.2
4
+ version: 0.36.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: