wbailey / command_line_reporter

A gem for making it easy to produce a report while a ruby script is executing
Apache License 2.0
432 stars 23 forks source link

Missing Ruby version requirement in GemSpec #30

Open leoarnold opened 7 years ago

leoarnold commented 7 years ago

This gem will install without error on Ruby 1.9.3 since it does not specify a requirement towards the Ruby version. It will however not work with Ruby 1.9.3 because you are using the %i[array of symbols] literal introduced in Ruby 2.0.

My suggestion would be to run your CI tests against

rvm:
- 2.0.0
- 2.1.9
- 2.2.7
- 2.3.4
- 2.4.1

and to add a Ruby version requirement to your GemSpec:

   gem.required_ruby_version = '~> 2.0'

You could also adapt the syntax of your gem to work on Ruby 1.9.3 if you want still want to support that version.