Skip to content

Commit

Permalink
Preparing for v0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
gchan committed Apr 2, 2022
1 parent faa69d0 commit 126332e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
0.5.0 / unreleased
0.5.0 / 2022-04-02
------
* Support different sized blocklists as an option. Thanks roberttravispierce!
* Renamed password_blacklist to password_blocklist.

0.4.1 / 2022-04-02
------
* Added a post-install message and deprecation message regarding renaming
this library.
* No other functional changes.

0.4.0 / 2021-08-10
------
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ checker.blocklisted?("pokemon")

password_blocklist supports MRI Ruby 2.5+ and Ruby 3.x. The specific Ruby versions we build and test on can be found on this Github Action [workflow file](https://github.com/gchan/password_blocklist/blob/main/.github/workflow/ruby.yml).

## Migrating to v0.5.0

This library was renamed to password_blocklist in v0.5.0

To easily migrate across:

1. Update your Gemfile to use `password_blocklist` and run `bundle`
2. Rename all instances of original Module
```bash
sed -i s/PasswordBlacklist/PasswordBlocklist/g ./**/*.rb
```
3. Rename all method calls
```bash
sed -i s/blacklisted?/blocklisted?/g ./**/*.rb
```
4. One last rename
```bash
sed -i s/password_blacklist/password_blocklist/g ./**/*.rb
```
5. Verify the correct files have been updated and your code remains
functional

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` or `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Use `bin/benchmark` to run some benchmarks.
Expand Down
1 change: 0 additions & 1 deletion checksums/password_blocklist-0.0.1.pre.gem.sha512

This file was deleted.

2 changes: 1 addition & 1 deletion lib/password_blocklist/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PasswordBlocklist
VERSION = '0.0.1.pre'
VERSION = '0.5.0'
end

0 comments on commit 126332e

Please sign in to comment.