Sha256: 21473a3b034c618ca168adfc3c134c3d6107f9c7b1003c4542e4937731abf459

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

require "json"
require "rubycritic/version"

module Rubycritic
  module Generator
    module Json

      class Simple
        def initialize(analysed_modules)
          @analysed_modules = analysed_modules
        end

        def render
          JSON.dump(data)
        end

        def data
          {
            :metadata => {
              :rubycritic => {
                :version => Rubycritic::VERSION
              }
            },
            :analysed_modules => @analysed_modules
          }
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubycritic-2.2.0 lib/rubycritic/generators/json/simple.rb
rubycritic-2.1.0 lib/rubycritic/generators/json/simple.rb
rubycritic-2.0.0 lib/rubycritic/generators/json/simple.rb