TheViking 1.0
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.
Installation
Add this line to your application's Gemfile:
gem 'the_viking'
And then execute:
bundle
Or install it yourself as:
gem install the_viking
Usage
@vik = TheViking::Akismet.new(api_key: '1234', blog: 'http://foo.com')
Spam or ham ?
@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: '[email protected]',
comment_content: 'Hello! <a href='http://viagra-for-u.xxx'>I am spammer! Click it!</a>'
)
# additional options
#
# referrer
# comment_author_url
# permalink - url of commented page
# comment_type - may be blank, comment, trackback, pingback, or a made up value like
History
TheViking 1.0.0
4 dec 2015, repack by github.com/the-teacher
1.0.0 2013-03-04
- Recreated new gem using current standards
- Fix some bugs
0.0.3 2008-04-25
- Made contents of script/ executable
0.0.2 2008-04-22
- Changed Manifest to include spec_helper.rb and website
0.0.1 2008-04-22
- Initial release
Contributing
- 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