Skip to content

Commit

Permalink
Merge pull request #7 from dribbble/new-version
Browse files Browse the repository at this point in the history
Bump to v0.3.0
  • Loading branch information
pbyrne authored Feb 16, 2024
2 parents 64bd6c3 + 26c9ecf commit 5f283aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

## [0.3.0] - 2024-02-16

- Add `#clear` method to flush all cached entries on the instance.

## [0.2.0] - 2024-02-14

- **BREAKING**: Changes `MemoPad::Memo#call` to `MemoPad::Memo#fetch` to more closely match interfaces like `ActiveSupport::Cache`.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
memo_pad (0.2.0)
memo_pad (0.3.0)

GEM
remote: https://rubygems.org/
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ def precache_things(things)
end
```

You can also flush the whole of the cache on an instance.

```ruby
foo.memo_pad.clear
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down
2 changes: 1 addition & 1 deletion lib/memo_pad/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module MemoPad
VERSION = "0.2.0"
VERSION = "0.3.0"
end

0 comments on commit 5f283aa

Please sign in to comment.