
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Any available API in the world deserves a wrapper gem right?
Add this line to your application's Gemfile:
gem 'ipaddresslabs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ipaddresslabs
You can call locate
method like this:
Ipaddresslabs.locate("177.142.170.45")
And it will return a JSON object like this:
{
"query_status" : {
"query_status_code" : "OK",
"query_status_description" : "Query successfully performed."
},
"ip_address" : "177.142.170.45",
"geolocation_data" : {
"continent_code" : "SA",
"continent_name" : "South America",
"country_code_iso3166alpha3" : "BRA",
"country_code_iso3166alpha2" : "BR",
"country_code_iso3166numeric" : "76",
"country_code_fips10-4" : "BR",
"country_name" : "Brazil",
"region_code" : "BR21",
"region_name" : "Rio de Janeiro",
"city" : "Rio De Janeiro",
"postal_code" : "-",
"metro_code" : "-",
"area_code" : "-",
"latitude" : -22.9,
"longitude" : -43.2333,
"isp" : "Virtua",
"organization" : "Virtua"
}
}
You need to set an environment variable to get this work:
ENV["IPADDRESSLABS_KEY"] = "your_ipaddresslabs_key"
Or set in secrets.yml file
development:
ipaddresslabs_key: your_ipaddresslabs_key
test:
ipaddresslabs_key: your_ipaddresslabs_key
production:
ipaddresslabs_key: your_ipaddresslabs_key
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that ipaddresslabs 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.