Sha256: 3b1c9a076eb1c235625fda4444a9118b2717239ca44c479009f8867085db1f36

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module Bankai
  module Generators
    # :nodoc:
    class JsonGenerator < Base
      def add_oj
        gem 'oj'
        execute_command :bundle, 'install'

        initializer 'oj.rb' do
          "# frozen_string_literal: true\n\n" \
            'Oj.optimize_rails'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bankai-0.13.1 lib/bankai/generators/json_generator.rb
bankai-0.13.0 lib/bankai/generators/json_generator.rb
bankai-0.12.1 lib/bankai/generators/json_generator.rb
bankai-0.12.0 lib/bankai/generators/json_generator.rb
bankai-0.11.0 lib/bankai/generators/json_generator.rb
bankai-0.10.0 lib/bankai/generators/json_generator.rb
bankai-0.9.1 lib/bankai/generators/json_generator.rb