Commit graph

460 commits

Author SHA1 Message Date
Gonzalo Rodriguez
63e330f794
Merge pull request #333 from lmansur/style-guide-in-contributing-guide
[Fixes #302] Add a section on Style Guide in the CONTRIBUTING file
2018-04-04 18:13:48 -03:00
Lucas Mansur
a6158b4358 Add a section on Style Guide in the CONTRIBUTING guide 2018-03-30 16:30:43 -03:00
Lucas Mansur
11e9557ccb [Fixes #302] Initial style guide adoption (#330)
* Initial Rubocop configuration

* Fix Rubocop layout offenses for lib

* Fix some spec offenses

* Fix leftover layout offenses
2018-03-30 16:08:00 -03:00
Gonzalo Rodriguez
f995958f18
Merge pull request #331 from grzuy/contributing_doc
[Fixes #321] Provide some advice for users willing to contribute to the project
2018-03-30 15:47:56 -03:00
Gonzalo Rodriguez
2d6ad830ac
docs: provide some advice for users willing to contribute to the project 2018-03-30 15:29:16 -03:00
Gonzalo Rodriguez
4a36d54f00
Merge pull request #326 from grzuy/changelog_fix
Update CHANGELOG
2018-03-29 16:17:27 -03:00
Gonzalo Rodriguez
b74aa89f1d
Merge pull request #328 from koenrh/https-all-the-things
[Fixes #327] Update all non-secure HTTP URLs to HTTPS
2018-03-29 15:56:56 -03:00
Gonzalo Rodriguez
8cbd64c0e9
Update CHANGELOG after 5.2.0 release 2018-03-29 15:32:50 -03:00
Gonzalo Rodriguez
9239c161ba
Merge pull request #325 from grzuy/update_travis_ci_rubies
Update TravisCI rubies
2018-03-29 15:30:11 -03:00
Koen Rouwhorst
0457bf22f9 Updated all non-secure HTTP URLs to HTTPS. 2018-03-29 18:41:40 +02:00
Gonzalo Rodriguez
389287f060
Bump version to 5.2.0 2018-03-29 12:24:37 -03:00
Gonzalo Rodriguez
cf3528e04f
Clarify in the CHANGELOG exact ruby version affected 2018-03-29 11:44:30 -03:00
Gonzalo Rodriguez
4c1aa8b312
[Fixes #318] Attempt to improve README a bit (#323)
* docs: Improve Getting Started section

* docs: Following Getting Started show Usage to the README reader

* docs: Move the configuration tip to the Usage section

* docs: Move the cache store configuration comment to Usage

* docs: Clarify Responses title

* docs: allow2ban also uses the cache store

* docs: Improve Usage docs for blocking, safelisting and throttling

* docs: Don't give the impression that the gem is not being maintained when it actually is

* docs: Be a bit more clear about cache store in README

* docs: Attempt to be a bit more concise in the README intro

* docs: Clarify sentence
2018-03-29 11:42:27 -03:00
Gonzalo Rodriguez
b8c85ab2d0
Update TravisCI rubies 2018-03-29 11:38:27 -03:00
Gonzalo Rodriguez
644ca8ff55
Merge pull request #320 from grzuy/common_shorthands
Provide shorthands for block/safelisting IPs and subnets
2018-03-27 17:15:06 -03:00
Gonzalo Rodriguez
62aca946b5
Require ipaddr so it works on ruby < 2.5 2018-03-26 18:53:32 -03:00
Gonzalo Rodriguez
e907cc6b83
Provide shorthand to safelist an entire IP subnet 2018-03-26 18:00:02 -03:00
Gonzalo Rodriguez
27aab72d49
Provide shorthand to safelist an IP 2018-03-26 17:51:40 -03:00
Gonzalo Rodriguez
aec03047c5
Provide shorthand to blocklist an entire IP subnet 2018-03-26 17:35:41 -03:00
Gonzalo Rodriguez
dccce4ee3d
Provide shorthand to blocklist an IP 2018-03-26 17:33:58 -03:00
Gonzalo Rodriguez
a2fdd42edc
Merge pull request #319 from grzuy/acceptance_test_notifications
Acceptance test ability to subscribe to notifications
2018-03-26 17:30:45 -03:00
Gonzalo Rodriguez
4862ca5a00
Acceptance test ability to subscribe to safelisting events 2018-03-26 16:20:51 -03:00
Gonzalo Rodriguez
576a97c2a5
Acceptance test ability to subscribe to throttling events 2018-03-26 16:16:44 -03:00
Gonzalo Rodriguez
21fe32b895
Acceptance test ability to subscribe to blocking events 2018-03-26 16:00:32 -03:00
Gonzalo Rodriguez
7435d4da34
Merge pull request #315 from grzuy/help_debug_cache_issues
Give clearer error message for misconfigured cache store for allow/fail2ban
2018-03-23 16:35:16 -03:00
Gonzalo Rodriguez
c7a7c30ae6
Merge pull request #314 from grzuy/dont_autoload_if_unnecessary
Don't autoload when it's barely valuable to do so
2018-03-23 14:21:34 -03:00
Gonzalo Rodriguez
7a87ca2ff7
Give clearer error message for misconfigured cache store for allow/fail2ban 2018-03-23 14:18:07 -03:00
Gonzalo Rodriguez
0fe30e3a3d
Don't autoload when it's barely valuable to do so
Rack::Attack::PathNormalizer and Rack::Attack::Request are both
used in #call method, which is going to be used by every rack-attack
user as long as they insert the middleware in their app.
2018-03-23 10:58:51 -03:00
Gonzalo Rodriguez
f99a7a0745
Merge pull request #311 from grzuy/acceptance_test_match_data
Acceptance test access to match data in custom responses
2018-03-22 17:41:52 -03:00
Gonzalo Rodriguez
2adade17ff
Merge pull request #310 from grzuy/acceptance_test_extend_request_object
Acceptance test ability to extend the request object
2018-03-22 17:25:47 -03:00
Gonzalo Rodriguez
3f5574c4e4
Acceptance test ability to access match data in #throttled_response 2018-03-22 11:48:56 -03:00
Gonzalo Rodriguez
da1f54b6fc
Acceptance test ability to access match data in #blocklisted_response 2018-03-22 11:44:41 -03:00
Gonzalo Rodriguez
ba91e23419
Acceptance test ability to extend the request object 2018-03-22 10:44:32 -03:00
Gonzalo Rodriguez
6614d0b6ee
Merge pull request #309 from grzuy/acceptance_test_throttle_proc_args
Acceptance test throttle dynamic arguments
2018-03-22 10:04:22 -03:00
Gonzalo Rodriguez
0ff1b5be83
Make throttling_spec work when running it with rails 4.2 2018-03-21 17:29:44 -03:00
Gonzalo Rodriguez
08b2cc4d95
Acceptance test throttling with a dynamic period 2018-03-21 17:10:27 -03:00
Gonzalo Rodriguez
e17d2d8974
Acceptance test throttling with a dynamic limit 2018-03-20 19:07:31 -03:00
Gonzalo Rodriguez
8b4f27827d
Merge pull request #307 from grzuy/acceptance_test_store_config
Acceptance test cache store config when Rails is present
2018-03-20 18:15:25 -03:00
Gonzalo Rodriguez
e87394dff3
Merge pull request #306 from grzuy/acceptance_test_retry_after
Acceptance test throttle Retry-After header
2018-03-20 18:15:11 -03:00
Gonzalo Rodriguez
330d25c832
Acceptance test cache store config when Rails is present 2018-03-20 11:42:27 -03:00
Gonzalo Rodriguez
5e0cd031b6
Acceptance test throttle Retry-After header 2018-03-20 10:24:25 -03:00
Gonzalo Rodriguez
d3404a7a91
Merge pull request #305 from grzuy/acceptance_test_store_config
Acceptance test store config for allow2ban/fail2ban
2018-03-19 16:30:37 -03:00
Gonzalo Rodriguez
dd5fced799
Make jruby fix less error prone, by removing coupling with exact jruby version 2018-03-19 16:15:18 -03:00
Gonzalo Rodriguez
3da1d36565
Fix jruby CI builds
For jruby we need to stick with rubygems 2.7.4 until
https://github.com/rubygems/rubygems/issues/2188
is fixed and released.

Without this workaround, for jruby builds, rubygems
activates jruby stdlib minitest (v5.4.1) instead of the
bundled version (v5.11.3).
2018-03-19 16:14:32 -03:00
Gonzalo Rodriguez
bde30e38d7
Acceptance test cache store config for allow2ban 2018-03-16 18:20:27 -03:00
Gonzalo Rodriguez
32ec6f778a
Acceptance test cache store config for fail2ban 2018-03-16 18:11:45 -03:00
Gonzalo Rodriguez
9e16049d00
Merge branch 'acceptance_test_fail2ban' 2018-03-16 16:44:03 -03:00
Gonzalo Rodriguez
18fef2b7c5
Merge branch 'acceptance_test_allow2ban' 2018-03-16 16:43:49 -03:00
Gonzalo Rodriguez
4d5a6936ce
Acceptance test allow2ban 2018-03-16 16:14:52 -03:00
Gonzalo Rodriguez
14c8b9261c
Acceptance test fail2ban 2018-03-16 15:29:01 -03:00