Sha256: de6734da5613615175a25d7badd9ca2c43aec8c8570e88a9deb22bd40912e4e6

Contents?: true

Size: 972 Bytes

Versions: 43

Compression:

Stored size: 972 Bytes

Contents

module Marty::Diagnostic; class Version < Base
  diagnostic_fn do
    begin
      message = `cd #{Rails.root.to_s}; git describe --tags --always;`.strip
    rescue
      message = error("Failed accessing git")
    end
    rbv = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
    {
      'Marty'                   => Marty::VERSION,
      'Delorean'                => Delorean::VERSION,
      'Mcfly'                   => Mcfly::VERSION,
      'Git'                     => message,
      'Rails'                   => Rails.version,
      'Netzke Core'             => Netzke::Core::VERSION,
      'Netzke Basepack'         => Netzke::Basepack::VERSION,
      'Ruby'                    => rbv,
      'RubyGems'                => Gem::VERSION,
      'Database Schema Version' => db_schema,
      'Environment'             => Rails.env,
    }
  end

  def self.db_schema
    begin
      Database.db_schema
    rescue => e
      error(e.message)
    end
  end
end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
marty-2.5.2 other/marty/diagnostic/version.rb
marty-2.5.1 other/marty/diagnostic/version.rb
marty-2.5.0 other/marty/diagnostic/version.rb
marty-2.4.9 other/marty/diagnostic/version.rb
marty-2.4.8 other/marty/diagnostic/version.rb
marty-2.4.7 other/marty/diagnostic/version.rb
marty-2.4.6 other/marty/diagnostic/version.rb
marty-2.4.5 other/marty/diagnostic/version.rb
marty-2.4.4 other/marty/diagnostic/version.rb
marty-2.4.3 other/marty/diagnostic/version.rb
marty-2.4.2 other/marty/diagnostic/version.rb
marty-2.4.1 other/marty/diagnostic/version.rb
marty-2.4.0 other/marty/diagnostic/version.rb
marty-2.3.15 other/marty/diagnostic/version.rb
marty-2.3.14 other/marty/diagnostic/version.rb
marty-2.3.13 other/marty/diagnostic/version.rb
marty-2.3.12 other/marty/diagnostic/version.rb
marty-2.3.11 other/marty/diagnostic/version.rb
marty-2.3.10 other/marty/diagnostic/version.rb
marty-2.3.9 other/marty/diagnostic/version.rb