Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
date_select_separator
Advanced tools
Add separators to data_select and datetime_select on Ruby on Rails.
Add this line to your application's Gemfile:
gem 'date_select_separator'
And then execute:
$ bundle
Add translations to your locale file like below.
ja:
datetime:
separators:
year: 年
month: 月
day: 日
hour: 時
minute: 分
second: 秒
Add use_separators: true
option to data_select or datetime_select.
# Add a separator after each select_tags
<%= f.date_select :birthday, use_month_numbers: true, use_separators: true %>
<%= f.datetime_select :birthday, use_month_numbers: true, time_separator: '', use_separators: true %>
# Add a separator to each option_tags except month. Month is used a value like ja.data.month_names
<%= f.date_select :birthday, use_separators: { inline: true } %>
<%= f.datetime_select :birthday, time_separator: '', use_separators: { inline: true } %>
# Options: html_tag, class_prefix, translations, wrapper_select_tag etc
<%= f.date_select :birthday, use_month_numbers: true, use_separators: { html_tag: :div, class_prefix: 'foo_' } %>
<%= f.date_select :birthday, use_month_numbers: true, use_separators: { year: 'yy', month: 'mm', day: 'dd' } %>
<%= f.date_select :birthday, use_month_numbers: true, use_separators: { wrapper_select_tag: true } %>
<%= f.date_select :birthday, use_month_numbers: true, use_separators: { wrapper_select_tag: { html_tag: :span, class_prefix: 'foo_' }} %>
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that date_select_separator 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.