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