
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
newbamboo-modmonkey_client
Advanced tools
There is a ruby gem which handles a lot of stuff for you
items and profiles which have corresponding things on the server
database fields
class AddImages < ActiveRecord::Migration
def self.up
create_table :test_images do |t|
t.string :photo_file_name
t.string :mm_key
t.string :mm_approved
t.string :mm_id
t.string :test_user_id
end
end
def self.down
drop_table :test_images
end
end
Adding moderation to the model
class Comment < ActiveRecord::Base
extend ModMonkey::Item::ActMethods
make_moderatable :content_type=>'text',
:profile_info => {
:identifier => lambda{|obj| obj.test_user.email},
:profile_url => lambda{|obj| SITE_URL+"/test_users/#{obj.test_user.id}"}
},
:item_url => lambda{|obj| SITE_URL+"/test_comments/#{obj.id}"},
:editable_attrs => [:body]
def mm_content
{ :body => self.body }
end
end
optional attrs and methods
Specifying these values can be done via: lambdas, symbols or variables
callbacks created automatically for the following:
Though these are automatic, it is usually necessary to think about how failure is handled. Section on this in "Maintenance".
The default behaviour is to switch mm_approved on or off with a modified find. However this could be overridden to destroy the objects completely, or do some other strategy.
usually necessary to apply callbacks to these to cover:
database fields
class CreateTestUsers < ActiveRecord::Migration
def self.up
create_table :test_users do |t|
t.string :email
t.boolean :banned
t.timestamps
end
end
def self.down
drop_table :test_users
end
end
class User < ActiveRecord::Base
extend ModMonkey::Profile::ActMethods
make_moderatable
end
methods called via the options given:
usually necessary to apply callbacks to these to cover:
SECURITY
implementation - AOP
class TestImagesController < ApplicationController
extend ModMonkey::ControllerActMethods
make_moderatable
end
mm_update
update action applies decision etc
Method which can be posted to to add a flag to the item in the queue. Can have an optional reason, if UI supports this.
class TestUsersController < ApplicationController
extend ModMonkey::ProfileControllerActMethods
make_moderatable
end
mm_profile_update checks permission and calls apply_mod_monkey_params
all the callbacks for banning etc
items which are moderated need to have a flags resource which can be posted to - often helpful to have a helper in views
FAQs
Unknown package
We found that newbamboo-modmonkey_client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.