Sha256: 12d046ae941aa9bb61fb9536b7f4adcda8bf5d435e740912cd10a70f617565ce

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

#encoding: utf-8
require 'sprockets'
module I18n
  module Js
    class FileDependencyProcessor < Sprockets::Processor
      def self.asset_path_regexp
        @@asset_path_regexp ||= %r{#{I18n::Js.config[:asset_path]}}
      end
      def evaluate(context, locals)
        return data unless context.logical_path =~ self.class.asset_path_regexp
        ::I18n.load_path.each {|path| context.depend_on(path)}
        context.depend_on(I18n::Js.config_path)
        data
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
socialcast-i18n-js-4.0.0.rc8 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc7 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc6 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc5 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc4 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc3 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc2 lib/i18n/js/file_dependency_processor.rb
socialcast-i18n-js-4.0.0.rc1 lib/i18n/js/file_dependency_processor.rb