Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hanami/controller

Complete, fast and testable actions for Rack and Hanami
https://github.com/hanami/controller

Ignore Rubocop issue

8ebaf7386966a325c5c3bd3f5e594ed7663b4207 authored 10 months ago by Tim Riley <[email protected]>
Add Ruby 3.3 to CI

101d61fa49435fd7d13a5f54a1c27fa4923c9cf2 authored 10 months ago by Tim Riley <[email protected]>
Prepare for v2.1.0

ec37e88cee81653fe035cc79bc571f342c49cd46 authored 10 months ago by Tim Riley <[email protected]>
Prepare gemspec for v2.1.0.rc3

9b27c59150d32eefa89f1f7f58529a4112ed8f75 authored 11 months ago by Tim Riley <[email protected]>
Prepare for v2.1.0.rc3

32a7babacf0f9a3c004b88f303e553baf72b53a9 authored 11 months ago by Tim Riley <[email protected]>
CHANGELOG

e3f73de4b542bdf94242cce514c0c17446252aa0 authored about 1 year ago by Luca Guidi <[email protected]>
Prepare for v2.1.0

942958ecdfac73a0d41a70b3e03374d03bd5d852 authored about 1 year ago by Luca Guidi <[email protected]>
Prepare for v2.1.0.rc2

1acd5e59a4ac114cf649685bdb2fe32ed5f50dd5 authored about 1 year ago by Luca Guidi <[email protected]>
Prepare API docs for v2.1.0 (#433)

While we’re here, refactor Response#render so it’s clearer how the view input arguments are prep...

ecdd1ee09330a5c73f12cd922f12f6df2ac9bf1f authored about 1 year ago by Tim Riley <[email protected]>
Prepare for v2.1.0.rc1

14295edf5908af80beafe5202c91177b9523f331 authored about 1 year ago by Luca Guidi <[email protected]>
Ensure Rack compatibility of `Response#send_file` (#431)

c406d35695a5ab2c6393d7ae47015002eb7cf2c2 authored about 1 year ago by Luca Guidi <[email protected]>
Prepare for v2.1.0.beta2

1f31d7f9c92573c06526a69816c9c9dcd55f393f authored over 1 year ago by Luca Guidi <[email protected]>
`Hanami::Action::Config#root`: don't check realpath existence to simplify the boot process of Hanami (#429)

fb74e0e130d8be9822e49b24ff8282ae2a4cc1c7 authored over 1 year ago by Luca Guidi <[email protected]>
Prepare for v2.1.0.beta1

2eb83900e298a03a7dadce9cbd1adef33dfec83e authored over 1 year ago by Luca Guidi <[email protected]>
Bump version to 2.1.0.beta1

074646e90927f83768538d9cbc299f3c33fc8f94 authored over 1 year ago by Tim Riley <[email protected]>
Add CHANGELOG entry for v2.1.0.beta1

679b0cdb97957d53e499716bf11a05c0e9f48298 authored over 1 year ago by Tim Riley <[email protected]>
Add version number to docs

9866b8f93a7293d9ecfd63ce5a4daa068bffcd4f authored over 1 year ago by Tim Riley <[email protected]>
Add #session_enabled? to Request and Response (#423)

This will be useful for external code needing to check whether the sesison is enabled before int...

110da914a64d166c1419592b21e1180886145447 authored over 1 year ago by Tim Riley <[email protected]>
CHANGELOG

70d9bf172a1e6241b0fdb70d341c9c8e43e7be5b authored almost 2 years ago by Luca Guidi <[email protected]>
Fix error message for missing format (aka MIME Type) (#416)

* Fix error message for missing format (aka MIME Type)

* Clarify how to setup formats in Hana...

7e240429560e7a6c5817d71a599a1c93dafe2e48 authored almost 2 years ago by Luca Guidi <[email protected]>
Prepare for v2.0.2

ac4f2d580b5dc25a2bf410522528a1b7ea9533f9 authored almost 2 years ago by Luca Guidi <[email protected]>
Code cleanup https://github.com/hanami/controller/pull/413

c8471428564aa982dc41e0bd2c335a9464fb4327 authored almost 2 years ago by Luca Guidi <[email protected]>
Translate symbolic status codes in Response#status= (#413)

* Translate symbolic status codes in Response#status=

* Translate symbolic status codes in Ha...

d8d8548d09623a10ab769182556a2f8dc21d6fd2 authored almost 2 years ago by Adam Lassek <[email protected]>
Support pattern-matching Params (#412)

* Support pattern-matching Params

* Code cleanup

Co-authored-by: Luca Guidi <me@lucaguidi....

604cb868706c1872367a6838ba5797c1fae73b59 authored almost 2 years ago by Adam Lassek <[email protected]>
fix: relaxed mime types are the second argument. (#411)

From a look at the source of Rack::Mime.match?, wildcard arguments (e.g.
*/* or text/*) will on...

1ad9d2ad3993d59c8ebff4335a6da9710821976f authored almost 2 years ago by Pat Allan <[email protected]>
Rubocop 1.43.0

ed2982bc00fd4e57764eeabba93cdc53339b6a77 authored almost 2 years ago by Luca Guidi <[email protected]>
Add CODE_OF_CONDUCT.md

Source file https://github.com/hanami/template-gem/blob/HEAD/CODE_OF_CONDUCT.md

97a14561df943f4016cc9f0a0183224fbe02b7b6 authored about 2 years ago by File Sync <[email protected]>
Add .repobot.yml config

515a5822aa61ba9d546a074cd6bc0480c1c69286 authored about 2 years ago by Peter Solnica <[email protected]>
Ruby 3.2 (#408)

2816c9014997f359a9699374d59e071c42f50109 authored about 2 years ago by Luca Guidi <[email protected]>
Use Hanami deps at stable version

dc5bb2a1db48b0ccf3faf52aac20eaef0fd135a3 authored about 2 years ago by Luca Guidi <[email protected]>
Prepare for v2.0.0

a475853ac25e0fd44ce44a924eafe06c7177a4d1 authored about 2 years ago by Luca Guidi <[email protected]>
Encapsulate all format config in Config::Formats, reorganise Mime

fe5a5152b629f356eaeff42064cfd845874aa06d authored about 2 years ago by Tim Riley <[email protected]>
Convert to Zeitwerk for code loading (#402)

- Add zeitwerk to the gemspec
- Add `lib/hanami-controller.rb` so the gem follows a conventiona...

2e025d26c3fbfbf64a641d928baaac279ed7872e authored about 2 years ago by Tim Riley <[email protected]>
Prepare for v2.0.0.rc1

f66d91beef8023a1dd2d41c51aa3168f2060d2a4 authored about 2 years ago by Luca Guidi <[email protected]>
Update API docs for 2.0.0, unify errors and simplify Response#format= (#401)

Ensure we have 100% coverage for API docs in hanami-controller (and that methods have been check...

0f51cfee0aa33c93a43e8c15259969aed17d7d79 authored about 2 years ago by Tim Riley <[email protected]>
Looks like :validations bundler group is needed on CI

54aa33df88863338fa55648a2378db9e502e2e68 authored about 2 years ago by Peter Solnica <[email protected]>
Fix version spec

92500de53c7c45644f9f95c578e5ea482652a844 authored about 2 years ago by Peter Solnica <[email protected]>
Simplify Gemfile

57c9a306411027b8f281850bf19b9dc481d1e92a authored about 2 years ago by Peter Solnica <[email protected]>
Bump dep on dry-configurable and hanami-utils

cbc732bf36f5010cfc1bce636c391be0813840a4 authored about 2 years ago by Peter Solnica <[email protected]>
Bump to 2.0.0.rc1

c9ba66c562a95c905af83cff387ae27cf7f10e65 authored about 2 years ago by Peter Solnica <[email protected]>
Use released dry-rb deps

8bf3082029b34f817914b1c1b2025b2958921841 authored about 2 years ago by Peter Solnica <[email protected]>
Bump dry-configurable to >= 1.0.0.rc1 < 2

b021c1e274a63fac9f6d288a5ecd7912a9991617 authored about 2 years ago by Peter Solnica <[email protected]>
Use dry-configurable (and others) at 1.0.0.rc (#400)

41dff74a1e228e9fa2e07a8446c915ae8a03f3fd authored about 2 years ago by Tim Riley <[email protected]>
Prepare for v2.0.0.beta4

548b2d777fa9512d4f7a56490eab82a7d1d331da authored about 2 years ago by Tim Riley <[email protected]>
Restore internal build_{request,response} methods

These are used by the Action extensions inside Hanami itself. Add documentation to make sure thi...

8bc16e7ca38a79e20ef8bb342e730fe5ba6ac76c authored about 2 years ago by Tim Riley <[email protected]>
Add CHANGELOG for v2.0.0.beta4

ebaf48a40dccd4cc450347b3e408530d97820eb4 authored about 2 years ago by Tim Riley <[email protected]>
Delegate to Request's flash and session from Response (#399)

Make it possible to reliably use `session` and `flash` from both `Request` and `Response` instan...

db2281ef9d37030257c2342d000d78e1db40c7f4 authored about 2 years ago by Tim Riley <[email protected]>
Reenable MIME specs and check both `Accept` and `Content-Type` headers checks via `accept` (#396)

## Background

The way our `accept` macro has worked has taken over time has taken a few diffe...

9c123ecdd5152c942fa3fb6b7b5359a569943531 authored about 2 years ago by Tim Riley <[email protected]>
Fix Rubocop violations

1bda016aa9d07f6537d175b94101812e94df8c09 authored about 2 years ago by Sean Collins <[email protected]>
Fix ci slack notifications (only on main, not all branches) (#397)

Only notify #ci on Slack for 'main' branch.

Add token so workflow links work. From https://gi...

6f8c71ff5db12f4dc34ed24a3b1389d1dc1caa11 authored about 2 years ago by Sean Collins <[email protected]>
Re-add session errors (preparation for merge) (#395)

Raise helpful errors from Hanami::Action#flash and Hanami::Action#session when sessions are not ...

e47fe2484e3d07811e5e817abff17c9a0b027595 authored about 2 years ago by Tim Riley <[email protected]>
Use hanami main branch again

24ee339323954f2c938034401a23bfe1dee5c510 authored about 2 years ago by Tim Riley <[email protected]>
Use hanami branch for latest dry-system release

Keep our tests passing until this merges

d16e7d78fc40eefb3a3e32b09b125909b661f185 authored about 2 years ago by Tim Riley <[email protected]>
Provide consistent class-level interface for config-like methods (#394)

- Add `handle_exception` class method to `Action`. This delegates directly to config but provide...

67b147c04507ef47497b3e4c2564fa82090089ec authored about 2 years ago by Tim Riley <[email protected]>
Remove github source for dry-configurable

ae0eed602bbd9eef825b4245827fbc106b9b0dea authored about 2 years ago by Tim Riley <[email protected]>
Reduce memory usage in Hanami::Action via dry-configurable and custom config_class (#392)

Take advantage of the recent memory usage improvements in dry-configurable (see https://github.c...

2ca9af9bbba609484ca09f580db9e414012b5eb8 authored about 2 years ago by Tim Riley <[email protected]>
Return HTTP status 415 for requests with wrong Content-Type (#381)

* Return 415 when Content-Type is not accepted

* Update doc and README

470b35e5e8be7751f0c5a13120660306e32de5b3 authored over 2 years ago by Benjamin Klotz <[email protected]>
Code cleanup https://github.com/hanami/controller/pull/375

86ae642d61c3921207e6868e6fe11aa983137ca7 authored over 2 years ago by Luca Guidi <[email protected]>
Return only validated params (#375)

* Return only whitelisted params

* Readd tests for Hanami::Router integration

* Fix Hanami...

dc7f4d46055adc4dfdd2c4b3560c300f1f7e1ab6 authored over 2 years ago by Benjamin Klotz <[email protected]>
Handle messages being frozen (#391)

dry-schema freezes the messages hash now: https://github.com/dry-rb/dry-schema/pull/418

32825e18d10b49d96ba4127b95f4283833728646 authored over 2 years ago by Sean Collins <[email protected]>
CHANGELOG

505c932db9c4236fa5eb9f8461d813a12e3fd968 authored over 2 years ago by Luca Guidi <[email protected]>
Explicit require of `hanami/controller/error`

268248499356610f2a09c29c37a2724b93232cbb authored over 2 years ago by Luca Guidi <[email protected]>
Prepare for v2.0.0.beta1

580d23e880a0b35f782c1601139a1d3674d78034 authored over 2 years ago by Luca Guidi <[email protected]>
Revert "Remove `hanami-utils` as a runtime dependency (#386)" (#387)

This reverts commit 49cf5e32d276c25d8d0e8779df9ab04b2927856a.

ef18b1dc109e50b49909dc922c872b964ae75076 authored over 2 years ago by Luca Guidi <[email protected]>
Remove `hanami-utils` as a runtime dependency (#386)

49cf5e32d276c25d8d0e8779df9ab04b2927856a authored over 2 years ago by Luca Guidi <[email protected]>
Rubocop (#385)

* Setup

* `Style/StringLiterals`

* `Layout/SpaceInsideHashLiteralBraces`

* `Style/Perce...

81818850b73038d55332ef7b30c43ca3a5109c67 authored over 2 years ago by Luca Guidi <[email protected]>
Update rack-test to version 2.0.2 (#383)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

5952bb846fb1ab73869a8c39ec455e053bd4f4ae authored over 2 years ago by depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Prefer NoMethodError over NotImplementedError (#377)

8309a25e70ce967077909a98764049b6b0d25dec authored over 2 years ago by Benjamin Klotz <[email protected]>
Merge pull request #374 from narinda/fix/fix-head-requests

HEAD request fixes

aaeedbefc53ecb179622c9fcd95f0060714a06aa authored over 2 years ago by Tim Riley <[email protected]>
Developer friendly error for params class method (#376)

f8378dd4dcb72767f36f6c86f84cf93f3b24ca54 authored over 2 years ago by Benjamin Klotz <[email protected]>
Prepare for v2.0.0.alpha8

9c3df81fa84fde7a3e2263f56c937ea4919f126b authored over 2 years ago by Tim Riley <[email protected]>
Prepare CHANGELOG entry for v2.0.0.alpha8

5d19808b8ca958263141adb4d0fe99e996af7212 authored over 2 years ago by Tim Riley <[email protected]>
HEAD requests should return the same headers as GET and an empty message body

https://datatracker.ietf.org/doc/html/rfc2616#page-54

8003daf4142ddbea5ee3cf188073ac9829507578 authored over 2 years ago by narinda <[email protected]>
Ensure redirect headers are returned with a HEAD request

1cef09fd7a7597201e48a1481d0e88e86329540f authored over 2 years ago by narinda <[email protected]>
Fix gem name in README (#373)

a9772771041018e1d1c6591ec05c8accf8e54053 authored over 2 years ago by OKURA Masafumi <[email protected]>
Remove support for Hanami application integrated actions (#370)

These integrations have moved into the hanami gem itself.

40513e495e34709d8687cb4a190ee6458ba666f0 authored over 2 years ago by Tim Riley <[email protected]>
Do not automatically render halted requests. (#372)

bc2333af5b43e89475f59c6773709b9adf84b9ca authored over 2 years ago by Andrew Croome <[email protected]>
Update `dry-files` Git branch `master` -> `main`

0e4378aac0ef3474e9203797454a36ff75be7df1 authored almost 3 years ago by Luca Guidi <[email protected]>
Add FUNDING.yml

18ac10652544ec0c7050418e55327119761f2a75 authored almost 3 years ago by Peter Solnica <[email protected]>
Update tests for new slice registration (#369)

9899c644f1d71d36352cbca33817398a9388a535 authored almost 3 years ago by Tim Riley <[email protected]>
Actions/Views new structure (#367)

66bb220cb8e888588c45fa1d9daddce35a6025eb authored almost 3 years ago by Luca Guidi <[email protected]>
Move Slack notification at the bottom. ravsamhq/notify-slack-action#37

ea7d47c3e23fdef9ddd15cfa9dfb2a32d7f3c5e8 authored almost 3 years ago by Luca Guidi <[email protected]>
Prepare for v2.0.0.alpha6

40fb7756b9fce242937cabe3dd3519430524a4ce authored almost 3 years ago by Luca Guidi <[email protected]>
Compatibility with `dry-system` `v0.23.0` (#366)

* Compatibility with `dry-system` `v0.23.0`

* `Hanami.init` => `Hanami.prepare`. `require "ha...

ca9754504088f974db2eb921230cec67c4abbbd7 authored almost 3 years ago by Luca Guidi <[email protected]>
Let's try a different configuration for `ravsamhq/notify-slack-action@v1`

12ebcbe339cce350aa297e75efe47965a2b85abf authored almost 3 years ago by Luca Guidi <[email protected]>
CI: Remove `notify_when: "failure"` as it doesn't work

6f1ab299d8cfe2da50198c5fef3edc0645e858b9 authored almost 3 years ago by Luca Guidi <[email protected]>
Update HTTP Status codes (#364)

Taken from: https://github.com/rack/rack/blob/c1e5fbbb59101c039e8b657c8052e152c572d5ac/lib/rack/...

f2c1844a2ee57aeeba4e8641006349e0b23c732d authored almost 3 years ago by Sean Collins <[email protected]>
Schedule GitHub Actions. Notify Slack in case of failure.

d01b24cbb962c83c67408af30b52e5c076d2eb9d authored almost 3 years ago by Luca Guidi <[email protected]>
Remove unneeded git sources from Gemfile

These are usable again via their released versions

b13513c43d025f4ac1802e72cb048bbdf6bf0239 authored almost 3 years ago by Tim Riley <[email protected]>
Require Ruby 3.0 (#363)

d033208559ffa7caf1450d1319a3b6ddd667c0a4 authored almost 3 years ago by Tim Riley <[email protected]>
Prepare for v2.0.0.alpha5

a34f5606d6ecd8765216cd976602004eea6987c0 authored almost 3 years ago by Tim Riley <[email protected]>
Fix :abc: sorting on `rss` (#361)

When we merged #360 the sorting was slightly out, so this fixes it to maintain
consistency

fa240c8ae9d05b75dbdcd8b34b602a58e2171549 authored about 3 years ago by Philip Arndt <[email protected]>
Add RSS MIME type to TYPES (#360)

3d1fa773eed35d39d38abd66323abc73d4d20aec authored about 3 years ago by Philip Arndt <[email protected]>
Prepare for v2.0.0.alpha4

ead1a57afc2092e6662f95a9757b7983dcf10056 authored about 3 years ago by Luca Guidi <[email protected]>
Provide access to routes inside all application actions (#358)

2b67d5e107d8a467ef15417b65d800bb66f538e3 authored about 3 years ago by Tim Riley <[email protected]>
Include `Hanami::Action::Response#exposures` in view rendering context (#319)

* Include `Hanami::Action::Response#exposures` in view rendering context

* Ensure rendering i...

12d1ee33241d9597c7d42a4ff8a6856c2a2a1b6d authored about 3 years ago by Luca Guidi <[email protected]>
Extract Hanami::Action::ApplicationAction#render? (#355)

* Extract Hanami::Action::ApplicationAction#render?

See https://github.com/hanami/controller/...

35562e019680a23d4e84d1c7040e2b8da09dd7c0 authored about 3 years ago by Sean Collins <[email protected]>
Merge pull request #354 from hanami/refactor/standardize-spec-file-paths

Refactor/standardize spec file paths

cb9e09c3f875a333fd69fd865de55d6df638e529 authored about 3 years ago by Sean Collins <[email protected]>
Remove reference to deleted file

1445e7093a36f360e97188135b9b0f015d392283 authored about 3 years ago by Sean Collins <[email protected]>
Remove extraneous lib/ sub-folder

See hanami/hanami#1123

1d43a0ea1d4cb5f60709510e7fca7dc4a27c988b authored about 3 years ago by Sean Collins <[email protected]>