hjhart / the_rotten_pirate

Automatic torrent downloader (movie lists come from Rotten Tomatoes, torrents and ratings come from The Pirate Bay)
103 stars 12 forks source link

Math.log not backwards compatible with 1.8.7 #2

Closed hjhart closed 12 years ago

hjhart commented 12 years ago

Receiving this error in specs.

    3) Rank score should have a higher ranking if there are 10 9.125's than if there is 2 10s.
    Failure/Error: rank_higher.score.should > rank_lower.score
    ArgumentError:
    wrong number of arguments (2 for 1)
     # ./lib/rank.rb:13:in `log'
     # ./lib/rank.rb:13:in `score'
     # ./spec/rank_spec.rb:25

In Ruby 1.9.2 the second argument sets the base. Replicate for 1.8.7.

hjhart commented 12 years ago

If you're experiencing this error an upgrade to ruby 1.9.2 would fix this.