Sha256: 1a80444b701206478e8ef33bfc390b8d32972a2b0a78f3e636c0b5d0bb14ed12

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

require 'bundler'

module Gurney
  module Source
    class RubyVersion < Base

    def initialize(ruby_version:)
      @ruby_version = ruby_version&.strip
    end

    def present?
      @ruby_version && @ruby_version.size > 0
    end

    def dependencies
      if present?
        [Dependency.new(ecosystem: 'ruby', name: 'ruby', version: @ruby_version)]
      end
    end

    private

    attr_reader :gemfile_lock

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gurney_client-0.4.0 lib/gurney/source/ruby_version.rb
gurney_client-0.3.0 lib/gurney/source/ruby_version.rb
gurney_client-0.2.3 lib/gurney/source/ruby_version.rb
gurney_client-0.2.2 lib/gurney/source/ruby_version.rb
gurney_client-0.2.1 lib/gurney/source/ruby_version.rb
gurney_client-0.2.0 lib/gurney/source/ruby_version.rb