
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Pingr is a super-simple gem built for the blogit project.
Add this line to your application's Gemfile:
gem 'pingr'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pingr
From within your app (most likely a controller):
def ping_sitemaps
Pingr::Request.new(my_sitemap_url) # This will ping Google and Bing
end
A good way to do this would be using Rails's after filters:
class PostsController < ActionController::Base
after_filter :ping_sitemaps, only: [:create, :update, :destroy]
# ...
private
def ping_sitemaps
Pingr::Request.new(my_sitemap_url)
end
end
You can view the supported search engines and add your own by viewing the code in this directory:
https://github.com/KatanaCode/pingr/tree/master/lib/pingr/search_engines
By default, Pingr is set to :test mode, meaning it won't actually perform the requests. If the Rails environment is :production then the mode is set to :live which will perform requests to the search engines.
You can change this by manually setting Pingr.mode
# in config/initializers/pingr.rb
Pingr.mode = :live if Rails.env =~ /staging|production/
NOTE: Search engines may penalise or black-list you if you perform too many requests - they recommend no more than one per hour.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Katana are web and mobile app developers in Edinburgh, Scotland.
FAQs
Unknown package
We found that pingr 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.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.