]> source.dussan.org Git - redmine.git/commit
fix Ruby 2.2 warning at lib/redmine/scm/adapters/cvs_adapter.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Jan 2015 17:31:01 +0000 (17:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Jan 2015 17:31:01 +0000 (17:31 +0000)
commita9298224b15be4784e171775f932d938bd1c7d21
tree9ae6e1749b90acb69a946e28e880667acc8cbb00
parent9da6bb31c11bb72ec0a4605d5fa6458159110f65
fix Ruby 2.2 warning at lib/redmine/scm/adapters/cvs_adapter.rb

On ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]:

<pre>
lib/redmine/scm/adapters/cvs_adapter.rb:342:
  warning: Comparable#== will no more rescue exceptions of #<=> in the next release.
lib/redmine/scm/adapters/cvs_adapter.rb:342:
  warning: Return nil in #<=> if the comparison is inappropriate or avoid such comparison.
</pre>

git-svn-id: http://svn.redmine.org/redmine/trunk@13831 e93f8b46-1217-0410-a6f0-8f06a7374b81
lib/redmine/scm/adapters/cvs_adapter.rb