Skip to content

Commit

Permalink
Deprecate support for Ruby versions earlier than v1.9
Browse files Browse the repository at this point in the history
This is long overdue. Extended maintenance of Ruby v1.8.7 ended on 31
Jul 2014 [1]. Actually dropping support will allow significant
simplification of the code.

See #325.

[1]: https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/
  • Loading branch information
floehopper committed Nov 23, 2019
1 parent 2ad3031 commit c5f8496
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/mocha.rb
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
require 'mocha/version'
require 'mocha/ruby_version'
require 'mocha/deprecation'

if Mocha::PRE_RUBY_V19
Mocha::Deprecation.warning(
'Versions of Ruby earlier than v1.9 will not be supported in future versions of Mocha.'
)
end

0 comments on commit c5f8496

Please sign in to comment.