openminds / ruby-mollom Goto Github PK
View Code? Open in Web Editor NEWa Ruby class for easy interfacing with the mollom.com open API for spam detection and content quality assesment.
Home Page: http://mollom.rubyforge.org/
License: MIT License
a Ruby class for easy interfacing with the mollom.com open API for spam detection and content quality assesment.
Home Page: http://mollom.rubyforge.org/
License: MIT License
Aloha! :)
There's a new Ruby/Rails gem https://github.com/hernan/rest_mollom, which integrates with Mollom's REST API http://mollom.com/api -- are you aware of that?
It's partially based on the code of this XML-RPC library. Would you be interested in merging that new library into this one and joining efforts? :)
Thanks,
sun / Mollom
server_list
is expected to force refresh if the argument is true. However, it does it when the argument is false, due to a bad if clause.
The related test_server_list_force_reload
doesn't need to change because it was wrong too, but becomes valid when fixing the code. The first call to server_list
results in a refresh, the second doesn't as it is cached. The third call forces refresh, bringing the total to 2, as specified in the expectation.
The patch is this simple:
--- a/lib/mollom.rb
+++ b/lib/mollom.rb
@@ -137,7 +137,7 @@ class Mollom
# mollom.server_list
# # => [{:proto=>"http", :host=>"88.151.243.81"}, {:proto=>"http", :host=>"82.103.131.136"}]
def server_list refresh = false
- return @server_list if @server_list && refresh
+ return @server_list if @server_list && ! refresh
STATIC_SERVER_LIST.each do |static_server|
@server_list = get_server_list_from(static_server)
return @server_list if @server_list
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.