Akismet anti-spam service for Ruby and Rails
====
- TheViking - is repack of Viking gem without support of Defensio anti-spam service
- Viking gem is a fork of Vikinggem. Bug fix and new feature for this gem should be place here.
Add this line to your application's Gemfile:
gem 'the_viking'
And then execute:
bundle
Or install it yourself as:
gem install the_viking
@vik = TheViking::Akismet.new(api_key: '1234', blog: 'http://foo.com')
@vik.check_comment(
user_ip: '111.222.333.444',
user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0',
comment_author: 'Spammer Bot',
comment_author_email: 'spam@spam-server.com',
comment_content: 'Hello! <a href="http://viagra-for-u.xxx">I am spammer! Click it!</a>'
)
# => {:spam=>true, :message=>"true"} | {:spam=>false, :message=>"false"}
- referrer
- comment_author_url
- permalink - url of commented page
- comment_type - may be blank, comment, trackback, pingback, or a made up value like
4 dec 2014, repack by github.com/the-teacher
- Recreated new gem using current standards
- Fix some bugs
- Made contents of script/ executable
- Changed Manifest to include spec_helper.rb and website
- Initial release
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request