From 40d2b76d524024807554b97f3e3907c90b1a5f46 Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Sun, 29 Oct 2023 07:31:22 -1000 Subject: [PATCH 1/2] Update readme Remove note about usage with Elixir 1.3 (1.4 was released in 2017 and I highly doubt many people are still using it) Also remove the "If available in Hex" line since this library is available in Hex --- README.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 84d9c29..342fc2a 100644 --- a/README.md +++ b/README.md @@ -6,22 +6,11 @@ This is inspired by the Kickstarter's Rack::Attack middleware for Ruby. ## Installation -If [available in Hex](https://hex.pm/docs/publish), the package can be installed as: - - 1. Add `plug_attack` to your list of dependencies in `mix.exs`: + Add `plug_attack` to your list of dependencies in `mix.exs`: ```elixir def deps do - [{:plug_attack, "~> 0.4.2"}] -end -``` - - 2. If using Elixir 1.3, ensure that `plug_attack` is started before your application - (this step is no longer applicable to Elixir 1.4+): - -```elixir -def application do - [applications: [:plug_attack]] + [{:plug_attack, "~> 0.4.3"}] end ``` From 33e3fd2678db9a9dc32035c7c73c80cfb7eecdb6 Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Sun, 29 Oct 2023 08:11:06 -1000 Subject: [PATCH 2/2] Remove outdated worker specification --- README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.md b/README.md index 342fc2a..82e7dd7 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,6 @@ our supervision tree. This can be achieved by adding following to the supervision tree: ```elixir -children = [ - # other children - worker(PlugAttack.Storage.Ets, [MyApp.PlugAttack.Storage, [clean_period: 60_000]]) -] - -# or using child specifications: - children = [ {PlugAttack.Storage.Ets, name: MyApp.PlugAttack.Storage, clean_period: 60_000} ]