Sha256: 5394fd20100d592eb09c10937a1ca3a7537e34c079c16c3b90564bb89cd6b1aa

Contents?: true

Size: 451 Bytes

Versions: 12

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module RailsAdmin
  module Support
    class ESModuleProcessor
      def self.instance
        @instance ||= new
      end

      def self.call(input)
        instance.call(input)
      end

      def initialize; end

      def call(input)
        return unless input[:name] == 'rails_admin/application'

        input[:data].gsub(/^((?:import|export) .+)$/) { "// #{Regexp.last_match(1)}" }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_admin-3.3.0 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.2.1 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.2.0 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.2.0.rc lib/rails_admin/support/es_module_processor.rb
rails_admin-3.2.0.beta lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.4 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.3 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.2 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.1 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.0 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.0.rc2 lib/rails_admin/support/es_module_processor.rb
rails_admin-3.1.0.rc lib/rails_admin/support/es_module_processor.rb