Sha256: 7036fcd4b23e30fa083b0f90139d1ed0bc3d2f4b0c3dcf317a2cb24d1a34962c
Contents?: true
Size: 368 Bytes
Versions: 20
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
20 entries across 20 versions & 1 rubygems