Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
pugin-components-ruby is a component-based pattern design library created by the Parliamentary Digital Service that holds all of the reusable partials for elements of the UK Parliament's microservices.
NOTE: This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.
pugin-components-ruby requires the following:
Within your rails application, add the below to your Gemfile
.
gem 'pugin'
This gem's main function is to expose front-end components and assets to the host application's asset pipeline.
Once you add the gem to your Gemfile
run:
bundle install
Now all of the view components should be available within your host application.
<%= render partial: 'pugin/components/status' %>
Add the following line into the application controller within your host application
layout 'pugin/layouts/pugin'
When rendering using the Parliamentary layout, if you'd like to document rel-alternates like so:
<link rel="alternate" type="application/rdf+json" href="https://api.example.com/some/url" />
<link rel="alternate" type="application/rdf+xml" href="https://api.example.com/some/other/url" />
You can do so automatically by setting Pugin.alternates
.
Within your controller:
alternates = [
{ type: 'application/rdf+json', href: 'https://api.example.com/some/url' },
{ type: 'application/rdf+xml', href: 'https://api.example.com/some/other/url' }
]
Pugin.alternates = alternates
To clone the repository and set up the dependencies, run the following:
git clone https://github.com/ukparliament/pugin-components-ruby.git
cd pugin-components-ruby
bundle install
We use RSpec as our testing framework and tests can be run using:
bundle exec rake
If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)pugin-components-ruby is licensed under the Open Parliament Licence.
FAQs
Unknown package
We found that pugin 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.