Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Simple User & Feature Permission Management with APIs.
Usman is a mountable plugin and it requires another full pluggin named kuppayam to run. Kuppayam offers usman the UI skin with basic modules for running like Polymorphic Image and Document Models etc.
Add this line to your application's Gemfile:
gem 'usman'
And then execute:
$ bundle
Or install it yourself as:
$ gem install usman
Usman uses kuppayam skins and hence it requires the basic migrations from kuppayam to run Run the below command to copy the migrations from the kuppayam engine.
$ bundle exec rake railties:install:migrations
This will copy migrations from kuppayam and usman engines which will have migrations to create images, documents, users, features and permissions respectively.
Mount usman engine in your application routes.rb
mount Usman::Engine => "/"
open browser and go to /sign_in url
Specify the railties order if required in main application.rb
config.autoload_paths << "app/services"
config.railties_order = [:main_app, Usman::Engine, Kuppayam::Engine, :all]
run rake task for loading dummy data for users and features to start with.
$ bundle exec rake usman:import:dummy:all verbose=false
["users", "features", "permissions", "roles"]
You could also do it individually but the above command will run in the following order - users, features, permissions, roles. This order is important as features need users to be imported first.
$ bundle exec rake usman:import:dummy:users verbose=false
$ bundle exec rake usman:import:dummy:features verbose=false
$ bundle exec rake usman:import:dummy:permissions verbose=false
$ bundle exec rake usman:import:dummy:roles verbose=false
You could override the seed files with your data. just create db/import_data in your project folder and create the following files filled with your data in the required format (checkout the dummy csvs in usman db/import_data/dummy/features.csv) for the columns required
for e.g:
create users.csv in db/import_data/ foler and fill data in it and run
$ bundle exec rake usman:import:users verbose=false
cd spec/dummy rails db:create db:migrate
rails s -p
rails db:create db:migrate RAILS_ENV
rspec
Visit - https://github.com/right-solutions/usman Feel free to submit a patch
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that usman 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 supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.