Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crown_marketplace_utils

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crown_marketplace_utils

  • 0.1.0.beta.8
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Crown Marketplace Utilities

Test Status

The Crown Marketplace Utilities gem was created for use in the Crown Marketplace projects at the Crown Commercial Service. This project contains two applications (both use the Ruby on Rails framework):

  • Crown Marketplace
  • Crown Marketplace Legacy

As these projects share a lot of code it was thought useful to put that shared code into it's own gem, thus Crown Marketplace Utilities was created.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add crown_marketplace_utils

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install crown_marketplace_utils

Usage

To use this gem, simply add it to your Gemfile (as described above).

GOV.UK Helper

To include the helper methods from the GovUkHelper module, you can include it in your app/helpers/application_helper.rb like so:

module ApplicationHelper
  include CrownMarketplaceUtils::GovUkHelper
end 

This will give you access to a variety of GDS components to use in your application views. These are based on the components found in GOV.UK Frontend v4.3.1.

Documentation for the helper methods can be found at LINK TO RDOCS

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Future plans

At the moment this Gem only contains view helpers. It would be good in the future to add other kinds of modules to this gem so that they can be shared and managed in one place.

Helpers to create

  • Accordion
  • Breadcrumbs
  • Button
  • Checkboxes
  • CharacterCount
  • DateInput
  • Details
  • ErrorMessage
  • Fieldset
  • File Upload
  • FormGroup
  • Header
  • Hint
  • Label
  • NotificationBanner
  • Pagination
  • Radios
  • Select
  • StepByStepNavigation
  • TextArea
  • TextInput
  • Tag

CCS Helpers to look at after first release

  • CCS Panel
  • CCS Header

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tim-s-ccs/crown_marketplace_utils.

Licence

The gem is available as open source under the terms of the MIT Licence.

FAQs

Package last updated on 13 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc