
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
rails_dialog
is sass mixin for rails to implement a dialog easily. This gem is based on sass-dialog.
You can try how this works here.
(This demonstration is based on sass-dialog version, but works in the same way.)
Put these lines in your Gemfile and run the bundle command to install.
gem 'sass-rails'
gem 'compass-rails'
gem 'rails_dialog'
Import rails_dialog
. (This is example of application.css.scss
)
@import 'compass';
@import 'rails_dialog';
####HTML
Write nested div tags to express a dialog. Outer one needs a id attribute and a class attribute. In addition, link or button to show dialog is necessary.
<div id="dialog" class="dialog">
<div>
<!-- Content in dialog -->
<h2>Dialog</h2>
<div>
<a href="javascript:void(0);" id="hide-link">Hide Dialog</a>
</div>
</div>
</div>
<a href="javascript:void(0);" id="show-link">Show Dialog</a>
Include dialog
mixin. You have to specify width and height of dialog as parameters.
.dialog {
@include dialog(700px, 400px);
}
Javascript shows and hides the dialog.
$ ->
$('#show-link').click ->
$('#dialog').show()
$('#hide-link').click ->
$('#dialog').hide()
FAQs
Unknown package
We found that rails_dialog 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.