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

parse_a_changelog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse_a_changelog

  • 1.3.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

parse-a-changelog

This gem can be used to validate that a file conforms to the Keep a Changelog standard. It does this by defining a Keep a Changelog grammar and using the treetop parsing DSL to parse a changelog file according to that grammar.

Usage

Add parse_a_changelog to your Gemfile and bundle install or install it directly with:

gem install parse_a_changelog

The gem includes a binary that can be run with the changelog file as its single argument:

parse path/to/changelog

Or you can use the gem directly in your Ruby code:

result = ParseAChangelog::parse("path/to/changelog")

Finally, here is an example bash script that runs parse-a-changelog on the current directory in a Docker container, which can be useful for including changelog validation in a CI pipeline:

#!/bin/bash -ex

docker run \
  --rm \
  --volume "${PWD}/CHANGELOG.md":/CHANGELOG.md \
  cyberark/parse-a-changelog

Development

We welcome contributions of all kinds to parse-a-changelog. See our contributing guide.

Testing

Make sure you have the rspec gem installed in your current gem set then run the tests like so:

$ rspec
..................

Finished in 0.02494 seconds (files took 0.21634 seconds to load)
18 examples, 0 failures

Releasing

  1. Create a branch
  2. Determine the appropriate version using semver and update the VERSION file.
  3. Move the contents of the Unreleased section in CHANGELOG.md into a new section using the current release version and date.
  4. Update the links at the bottom of CHANGELOG.md.
  5. Commit these changes with a commit message about bumping the version.
  6. Run git tag <release-version> && git push origin --tags
  7. Create a PR to have the release approved and merged.
  8. Build the gem: gem build parse_a_changelog.gemspec
  9. Push the gem: gem push parse_a_changelog-<release-version>.gem (this may require setting up publishing credentials)

License

The parse-a-changelog gem is licensed under Apache License 2.0 - see LICENSE for more details.

FAQs

Package last updated on 12 Nov 2024

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