Project

the_viking

0.01
No commit activity in last 3 years
No release in over 3 years
TheViking is repack of Viking gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
~> 2.12.0
 Project Readme

TheViking 1.0

Akismet anti-spam service for Ruby and Rails

====

  1. TheViking - is repack of Viking gem without support of Defensio anti-spam service
  2. 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: '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"}

Additional options

  1. referrer
  2. comment_author_url
  3. permalink - url of commented page
  4. comment_type - may be blank, comment, trackback, pingback, or a made up value like

History

TheViking 1.0.0

4 dec 2014, 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request