
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem provide you library to validate, parsing, format and normalize phone number, detect phone network in Vietnam.
It uses the super awesome Phony gem (https://github.com/floere/phony).
Add this line to your application's Gemfile:
gem 'cogi_phony'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cogi_phony
Check if a string is a valid phone number.
CogiPhony.validate? '+14037089189' # => true
Normalize phone numer to international format.
CogiPhony.normalize '+1 (403) 708-9189' # => '+14037089189'
Format formats phone numbers according to the predominant format of a country.
CogiPhony.format '+84933081090' # => +84 93 3081090
CogiPhony.format '+84933081090', format: 'global' # => '+84 93 3081090'
CogiPhony.format '+84933081090', format: 'vietnam' # => '093 3081090'
Extract country code from phone number.
CogiPhony.country_code_from_number '+84933081090' # => '84'
Check if phone number is Vietnam mobile phone format
CogiPhony.vn_mobile_phone? '+84933081090' # => true
Return phone provider from phone number.
CogiPhony.phone_to_provider '+84933081090' # => 'Mobifone'
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Don't forget to add tests and run rspec before creating a pull request :)
See all contributors on https://github.com/hoahm/cogi_phony/graphs/contributors.
FAQs
Unknown package
We found that cogi_phony 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 clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.