joshfrench / rakismet

Easy Akismet and TypePad AntiSpam integration for Rails
MIT License
355 stars 46 forks source link

v1.0.1 doesn't work with Rails 2.3.10 (possibly anything pre Rails 3?) #8

Closed bvandenbos closed 13 years ago

bvandenbos commented 13 years ago

The railtie require doesn't work pre rails 3. Blows up as follows:

ruby-1.9.2-p0 :004 > require 'rakismet' 
MissingSourceFile: no such file to load -- rails
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
joshfrench commented 13 years ago

That is correct. From the Readme:

Rakismet 1.0.0 works with Rails 3 and other Rack-based frameworks. Rakismet 0.4.2 is compatible with Rails 2.

There's very little functional difference between 0.4.2 and 1.0.x, most of the rewrite between the two was just to move it to Rails 3. So you wouldn't be missing anything by using 0.4.2 on Rails 2.

bvandenbos commented 13 years ago

Ah. Sorry, I should have paid closer attention to the readme. Thanks!

ben