Sha256: 7e8908b707682cf2cd45d1f30d0c3beb913bac93f1af28ce07084eaf56ee4206

Contents?: true

Size: 694 Bytes

Versions: 39

Compression:

Stored size: 694 Bytes

Contents

# to make Foreman#in_rake? helper available if Foreman's lib is available
require 'rails'
require 'angular-rails-templates'

require File.expand_path('bastion/engine', File.dirname(__FILE__))

module Bastion

  @@plugins = {};

  def self.plugins
    @@plugins
  end

  def self.register_plugin(plugin)
    @@plugins[plugin[:name]] = plugin
  end

  def self.config
    base_config = {
      'markTranslated' => SETTINGS[:mark_translated] || false
    }

    Bastion.plugins.each do |name, plugin|
      base_config.merge!(plugin[:config]) if plugin[:config]
    end

    base_config
  end

  def self.localization_path(locale)
    "bastion/angular-i18n/angular-locale_#{locale}.js"
  end

end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
bastion-5.1.1 lib/bastion.rb
bastion-6.0.0 lib/bastion.rb
bastion-5.1.0 lib/bastion.rb
bastion-5.0.10 lib/bastion.rb
bastion-5.0.9 lib/bastion.rb
bastion-5.0.8 lib/bastion.rb
bastion-5.0.7 lib/bastion.rb
bastion-5.0.6 lib/bastion.rb
bastion-5.0.5 lib/bastion.rb
bastion-5.0.4 lib/bastion.rb
bastion-5.0.3 lib/bastion.rb
bastion-5.0.2 lib/bastion.rb
bastion-5.0.1 lib/bastion.rb
bastion-5.0.0 lib/bastion.rb
bastion-4.3.1 lib/bastion.rb
bastion-4.3.0 lib/bastion.rb
bastion-4.2.2 lib/bastion.rb
bastion-4.2.1 lib/bastion.rb
bastion-4.2.0 lib/bastion.rb
bastion-4.1.0 lib/bastion.rb