Sha256: 2cbafba732c6e80ca6ea448daac82a2b6179c86c59de4c315ae54839ad51aef9

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

#!/usr/bin/env ruby

require 'yaml'

# rubocop's TargetRubyVersion should be the oldest version in .travis.yml

target = YAML.load_file('.rubocop.yml')['AllCops']['TargetRubyVersion'].to_s
oldest = YAML.load_file('.travis.yml')['rvm'].min

exit 1 unless oldest.start_with?(target)

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
userstack-0.1.0 bin/validate-target-ruby-version.rb
useragent_api-0.1.3 bin/validate-target-ruby-version.rb
gist_updater-0.4.6 bin/validate-target-ruby-version.rb