Sha256: 9d556d4e8867717f50fe0ca768f699fcd46142aba9076069bb825a0ee4a0c310

Contents?: true

Size: 368 Bytes

Versions: 24

Compression:

Stored size: 368 Bytes

Contents

module Rails
  class Ruby
    include SmartProperties

    VERSION_STRING = /ruby ([\d\.]+)/

    property :ctx, accepts: ShopifyCLI::Context, required: true

    class << self
      def version(ctx)
        require "semantic/semantic"
        out, _ = ctx.capture2("ruby", "-v")
        Semantic::Version.new(VERSION_STRING.match(out)[1])
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
shopify-cli-2.14.0 lib/project_types/rails/ruby.rb
shopify-cli-2.13.0 lib/project_types/rails/ruby.rb
shopify-cli-2.12.0 lib/project_types/rails/ruby.rb
shopify-cli-2.11.2 lib/project_types/rails/ruby.rb
shopify-cli-2.11.1 lib/project_types/rails/ruby.rb
shopify-cli-2.11.0 lib/project_types/rails/ruby.rb
shopify-cli-2.10.2 lib/project_types/rails/ruby.rb
shopify-cli-2.10.1 lib/project_types/rails/ruby.rb
shopify-cli-2.10.0 lib/project_types/rails/ruby.rb
shopify-cli-2.9.0 lib/project_types/rails/ruby.rb
shopify-cli-2.8.0 lib/project_types/rails/ruby.rb
shopify-cli-2.7.4 lib/project_types/rails/ruby.rb
shopify-cli-2.7.3 lib/project_types/rails/ruby.rb
shopify-cli-2.7.2 lib/project_types/rails/ruby.rb
shopify-cli-2.7.1 lib/project_types/rails/ruby.rb
shopify-cli-2.7.0 lib/project_types/rails/ruby.rb
shopify-cli-2.6.6 lib/project_types/rails/ruby.rb
shopify-cli-2.6.5 lib/project_types/rails/ruby.rb
shopify-cli-2.6.4 lib/project_types/rails/ruby.rb
shopify-cli-2.6.3 lib/project_types/rails/ruby.rb