Class: Blakey::Repository::Ruby

Inherits:
Base
  • Object
show all
Defined in:
lib/blakey/repository/ruby.rb

Defined Under Namespace

Classes: GemfileLockParser, RubyVersionFetcher

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #source_overview

Constructor Details

This class inherits a constructor from Blakey::Repository::Base

Instance Method Details

#gem_dependenciesObject



8
9
10
# File 'lib/blakey/repository/ruby.rb', line 8

def gem_dependencies
  gemfile_lock_parser.dependencies
end

#gem_dependency_version(gem_name) ⇒ Object



4
5
6
# File 'lib/blakey/repository/ruby.rb', line 4

def gem_dependency_version(gem_name)
  gem_dependencies.fetch(gem_name, nil)
end

#ruby_versionObject



12
13
14
# File 'lib/blakey/repository/ruby.rb', line 12

def ruby_version
  ruby_version_fetcher.version
end