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

Merge branch 'master' of github.com:lotus/controller

b3c6d4170bc84924163e74a737649dd81c285b2b authored about 10 years ago by Luca Guidi <[email protected]>
Update according to the latest changes in Utils and Router

27ccf64bfffc2b462b17fdd1c7c30f232a98869f authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #50 from jeremyf/improving-documentation

Improving documentation

f1dd1a39612854e3e6fd4258e3d9f3d11ea05e4a authored about 10 years ago by Luca Guidi <[email protected]>
Addressing Inch CI's suggestion

Lotus::Action::Cache#cache_control

> * Describe what "cache_control" returns.
> * Describe the ...

376d878ffd713adcbad4373ee66a2688f10b3f91 authored about 10 years ago by Jeremy Friesen <[email protected]>
Addressing Inch CI's suggestion

Lotus::Action::Cache#expires

> * Describe what "expires" returns.
> * Describe the parameter "a...

9cfb0f86e7bf9c2dad84dcb016062061119e0394 authored about 10 years ago by Jeremy Friesen <[email protected]>
Addressing Inch CI's suggestion

Lotus::Action::Cache#fresh

> Suggestions:
>
> * Describe what "fresh" returns.
> * Describe the...

d0d426806e685390b83abeaa452c1bd82f2d24d7 authored about 10 years ago by Jeremy Friesen <[email protected]>
Addressing Inch CI's suggestion

Lotus::Controller::Configuration#load!

> Suggestions:
> * Describe what "load!" returns.
> * De...

653fc7e71908d3b8f38fc2355ff76cd0c5d3d748 authored about 10 years ago by Jeremy Friesen <[email protected]>
Addressing Inch CI's suggestion

Lotus::Controller::Configuration#handle_exceptions=

> Suggestions:
> * Add a comment describing...

8f5a71931b935608e608e0e18d9171d457897e91 authored about 10 years ago by Jeremy Friesen <[email protected]>
Tweaking documentation

These changes are minor and trivial but appease the inch-ci monster.

http://inch-ci.org/github/...

738f27e3cafb0447d29a1136e6ac33d0967eec9a authored about 10 years ago by Jeremy Friesen <[email protected]>
Depend on lotus-validations ~> 0.1

d8b5bbdb173c268fc7bb7cc3146cc5edf5b8b3b0 authored about 10 years ago by Luca Guidi <[email protected]>
Documentation adjustments. Ensure to duplicate default charset in configuration. Ref #48

3ff5b267c6365d326646f76e4254ad3812710e1a authored about 10 years ago by Luca Guidi <[email protected]>
Merge branch 'kirs-charset-setting'

3d44c426f7b71d0d218152f6d5433117d764fb2d authored about 10 years ago by Luca Guidi <[email protected]>
Merge branch 'charset-setting' of https://github.com/kirs/controller into kirs-charset-setting

711149bb927dc7f8fec1586e85a576817fa76244 authored about 10 years ago by Luca Guidi <[email protected]>
Charset setting support

Rails returns "Content-Type: text/html; charset=utf-8"
and for Lotus it’s just "Content-Type: tex...

a02aaf93aa96abaf31c39a75da6381352be03e4b authored about 10 years ago by Kir Shatrov <[email protected]>
Merge pull request #47 from kirs/validations-dependency

Depend on lotus-validations

7959233041cfe5268a48175c824cc7590d61e136 authored about 10 years ago by Luca Guidi <[email protected]>
Depend on lotus-validations

12f0b79e0c7bbd4f3be2f1cac97c0e3dd5679371 authored about 10 years ago by Kir Shatrov <[email protected]>
Merge pull request #45 from jeremyf/wordsmithing

Wordsmithing the README.md

969871941ad5ae1ec96f17d973897d79c7302f9c authored about 10 years ago by Luca Guidi <[email protected]>
Ensure that nested params are correctly deserialized

0765ab4e7665f3ff59a96eb53b0bfcacf6101f1e authored about 10 years ago by Luca Guidi <[email protected]>
Added test cases for Hash serialization of nested params

347e12fdb01d4e46f21afc00684aa1e30497c6db authored about 10 years ago by Luca Guidi <[email protected]>
Wordsmithing the README.md

[skip ci]

2300cf31a8b8d09af0222948fd2412d9acae8a2f authored about 10 years ago by Jeremy Friesen <[email protected]>
Refactoring, adjustments and documentation for custom exception handlers. Closes #44

5943cc7847f2cb193bd30f65fc7d749cfe1538f3 authored about 10 years ago by Luca Guidi <[email protected]>
Merge branch 'krzyzak-exception-handling'

e4247db8ae3f86f3b6dc3813927334a7f5ad34c9 authored about 10 years ago by Luca Guidi <[email protected]>
add ability to specify custom exception handlers

change approach in exception handlers

- Allow only method name or status code as handler
- Don'...

98896cc19825d0eb1cad9487d1fbd87e85ecccc9 authored about 10 years ago by Michał Krzyżanowski <[email protected]>
Ruby 2.1.3 support

77e82a26994986259296dcb065a6590aa76be0a2 authored over 10 years ago by Luca Guidi <[email protected]>
Ensure no information escape happens when using Params#to_h. Added tests for #to_hash.

cd5ab9773bdd4914968dd28bdde4430afc59b563 authored over 10 years ago by Luca Guidi <[email protected]>
Merge pull request #43 from rail44/add-to-hash-for-params

Add `#to_h` to Lotus::Action::Params

34f68e48782ef28a1d68aa1d02867328d0408175 authored over 10 years ago by Luca Guidi <[email protected]>
Set alias `to_hash` for `to_h`

5800e4acabbd19f24cee4ec93d511909daac217c authored over 10 years ago by Satoshi Amemiya <[email protected]>
Add tests for Action::Params#to_h

3780cc3595f235c2fe171886d877490b1923077f authored over 10 years ago by Satoshi Amemiya <[email protected]>
Add `#to_h` to Lotus::Action::Params

e0945f2f32b96cc15818989701c2ca0eb044fac1 authored over 10 years ago by Satoshi Amemiya <[email protected]>
Merge pull request #38 from Erol/readme-corrections

README Corrections

8d3081ae4a87878d4b65f35436e4531a15cde682 authored over 10 years ago by Luca Guidi <[email protected]>
Reconstruct sentence for better readability

0fea09a84a81f5094718896c8626ef0b9556c1b4 authored over 10 years ago by Erol Fornoles <[email protected]>
Minor correction

2da3e3c4d49a9ed63bd6a8ede2813dd1ca988493 authored over 10 years ago by Erol Fornoles <[email protected]>
Use correct preposition

0b044f98f0d5cb86aff068b319d9554bfbb6bf7f authored over 10 years ago by Erol Fornoles <[email protected]>
Merge pull request #37 from lotus/params-validations

Params validations and coercions

3dd9627856f58dd0d4169a025148325800b3d8e7 authored over 10 years ago by Luca Guidi <[email protected]>
Implemented Params validations

8e669e4d6a7403a64158f29e6c18e154ed13b7c9 authored over 10 years ago by Luca Guidi <[email protected]>
Use Lotus::Validation to implement Action::Params features

cba3c5fa582f5473709826c75b87020fbb75133e authored over 10 years ago by Luca Guidi <[email protected]>
Put require directive on top of the file. Ref #36

33a1e8ebe5b1f5f79b063c2118b2d732b1b23fcf authored over 10 years ago by Luca Guidi <[email protected]>
Merge pull request #36 from lucasas/feature/cache-control

Cache Control and Conditional Get

af427b4542001f110c01f87a9383f301dc64cb99 authored over 10 years ago by Luca Guidi <[email protected]>
Cache module must not be included by default

45b094e08f82d5662744cebe2a991b644216374d authored over 10 years ago by Lucas Souza <[email protected]>
Putting require at the top of the file

3bbb3fdafea662ddf72de5b3e53a4d9448f7de75 authored over 10 years ago by Lucas Souza <[email protected]>
Encouraging the use of cache_control and expires on the class level

0afa4d94991ad54174dc27e9d2644836ae50f387 authored over 10 years ago by Lucas Souza <[email protected]>
RDoc improvements

eda9dbe226005f827a2e4f5d48176f4a5628ef6a authored over 10 years ago by Lucas Souza <[email protected]>
using class_eval to include CacheControl and Expires modules because travis is disclaiming about include is private

cf356cdd5e45fa6df993389f81f8e7e3f8ea3b3e authored over 10 years ago by Lucas Souza <[email protected]>
Removing global handle_exceptions configuration

c3f478fd6fee29dfbee1be9b39f9bbd93e94eb59 authored over 10 years ago by Lucas Souza <[email protected]>
Replacing ifs by null objects

cb622dd29d6c03c416451bbbccce2e4403ff1304 authored over 10 years ago by Lucas Souza <[email protected]>
class methods documentation

538f4a4c00445d650eabbfc039dd313b34978f5f authored over 10 years ago by Lucas Souza <[email protected]>
Improving rdoc

8bdb061ff1589abf872f8ea5a7254de491130bff authored over 10 years ago by Lucas Souza <[email protected]>
Implementing two modules with cache control and expires implementation headers

c09d54d7cd61f6f00664a312b0ef3c79c5879f51 authored over 10 years ago by Lucas Souza <[email protected]>
Now it's possible defining a default/global expires directive for all actions

9fa2bf367aa512203ff2a80726b368052aa62dd7 authored over 10 years ago by Lucas Souza <[email protected]>
Now it's possible defining a default/global cache_control directive for all actions

5da50b4f8f9ddc2d2d75e19cebc389f3b957ec95 authored over 10 years ago by Lucas Souza <[email protected]>
Extracting a expires class which will be responsible to store expires default values

96a7ec91a358684c18a4ed8fe60d45e95666e9e9 authored over 10 years ago by Lucas Souza <[email protected]>
extracting a cache control class which will be responsible to store default cache_control values

66f926caabb4c81d050093ee16b5d36fa6b136c0 authored over 10 years ago by Lucas Souza <[email protected]>
Renaming files

b5c001f9ed5fdbd57a223b710337cea945c961df authored over 10 years ago by Lucas Souza <[email protected]>
Renaming to Lotus::Action::Cache

1722743d4978d3fd720e5d032928f6f64e4b4495 authored over 10 years ago by Lucas Souza <[email protected]>
typo

6f7769bbc30f5140b14aa5e217ea2149abbe4015 authored over 10 years ago by Lucas Souza <[email protected]>
Dropping Time instances support

c4769e8973ae83b35cc052ba5caae8a00137a0d5 authored over 10 years ago by Lucas Souza <[email protected]>
Merge pull request #35 from splattael/refactor

Tiny refactorings

ad26f667298c5651f994a3888ec59c1a0b04c513 authored over 10 years ago by Luca Guidi <[email protected]>
Including some documentation about http cache and conditional get

2931f40f1d54d258f1930dbfc3704e06794dde01 authored over 10 years ago by Lucas Souza <[email protected]>
Fixing headers names. It must be a HTTP prefix

acf757fbefa5e7d740806fb78550279dae8c58ab authored over 10 years ago by Lucas Souza <[email protected]>
Finishing last modified implementation

ad79948903598b7898163c493bbd9dbcec94c638 authored over 10 years ago by Lucas Souza <[email protected]>
returning only headers which matters

f75afb8d76d54541c4f247dd49e37ac47b9c5dc5 authored over 10 years ago by Lucas Souza <[email protected]>
WIP: LastModified header

1e3052e208b3ded75e76df368858a6f4e3a62fd8 authored over 10 years ago by Lucas Souza <[email protected]>
Some refactorings

eb83fbe7a1ae98826ea9d9c1c8104d08f11c7f5b authored over 10 years ago by Lucas Souza <[email protected]>
Ensuring that fresh method keeps or includes the ETag header into response headers

92fdfbf1d610dd665eac943824a62d22bf87df27 authored over 10 years ago by Lucas Souza <[email protected]>
simple etag implementation

dbb2dfbfb3aa14d4bccd95ddfd5b9546ca1b73ef authored over 10 years ago by Lucas Souza <[email protected]>
just new lines

611a2163a18d665c87f672bf7467ecd68f8aaa16 authored over 10 years ago by Lucas Souza <[email protected]>
Using directive class instead of have all the logic here

580e2f31d010c9c80de9e63fb46c39ad0b2360b1 authored over 10 years ago by Lucas Souza <[email protected]>
dashirizing non value directives key

0f42aff5c169723ac84e9b272e646b0b691f98f4 authored over 10 years ago by Lucas Souza <[email protected]>
Handling time value and other formats

19619e7f483d2b3c24149049f44ccc65368c1ea4 authored over 10 years ago by Lucas Souza <[email protected]>
Allowing non value and value directives

948e93c8fb8e63ce3c9d595d69ef27815e9c8758 authored over 10 years ago by Lucas Souza <[email protected]>
Allowing value directives

02b2ef4cda1434c539da123fb9bdb6e00b277128 authored over 10 years ago by Lucas Souza <[email protected]>
Creating a PORO to store directives and deal with all rules envolved

2a0d5a0fcc5d3068a781833baec9374e36a63f61 authored over 10 years ago by Lucas Souza <[email protected]>
Expires now considers value directives min-fresh and max-stale

862ca320a93f82d60381321207196f78ab1938d8 authored over 10 years ago by Lucas Souza <[email protected]>
including value directives min-fresh and max-stale

1d0c286280c913c96dac44dd48c9f1ca1f0fede1 authored over 10 years ago by Lucas Souza <[email protected]>
Since it's possible to define :public and :private directive, we should ignore public directive in favor of private directive (it's not official on RFC)

a5b40b2f2ed8fd9fd64cff1c9c99558545b0183d authored over 10 years ago by Lucas Souza <[email protected]>
Assign redirect location reducing object allocs

7f044f505eb9d20223261ad03841ab80beca2501 authored over 10 years ago by Peter Suschlik <[email protected]>
[ci-skip] Remove unnecessary test fixture

25af69133df811166fc1a6a725ef73b5e0c1531d authored over 10 years ago by Luca Guidi <[email protected]>
Ensure that included modules can use Action features

a4c4859045412a6778a3913314ac47f1c0704ab1 authored over 10 years ago by Luca Guidi <[email protected]>
Updated README with whitelisting params

bbe73047e9e74132caa366d076fac55384a46ad7 authored over 10 years ago by Luca Guidi <[email protected]>
Never use Lotus::Action::Params directly

61a14338e248ac641aa7429d7fae93e71c9b497a authored over 10 years ago by Luca Guidi <[email protected]>
Store whitelisted param names only as symbols

6e39afa16dc4fe43d5ca59c3be43995fbe5d810e authored over 10 years ago by Luca Guidi <[email protected]>
Allow Lotus::Action.params to accept a block

It creates an inner class which inherits from Lotus::Action::Params.

Example:

require 'lotus...

088b299862755e7df894790666a58e0cfb574ac2 authored over 10 years ago by Luca Guidi <[email protected]>
Fixed params whitelisting behavior in pure Rack env.

9e3a269a1e034cbf520c1c5ef11b1d236f10ce1b authored over 10 years ago by Luca Guidi <[email protected]>
Merge branch 'mjbellantoni-param_whitelisting'

42cb52ac431a8662606ee24448e8cf5b9a4ff432 authored over 10 years ago by Luca Guidi <[email protected]>
Merge branch 'param_whitelisting' of https://github.com/mjbellantoni/controller into mjbellantoni-param_whitelisting

bc0fd846f9e7db1b5a31e6b6d6e66ee8138787e7 authored over 10 years ago by Luca Guidi <[email protected]>
Ensure the right level of visibility for Action's methods. Ref #16

c95dd0642884e9ac3563dac1e1c947ae724741a2 authored over 10 years ago by Luca Guidi <[email protected]>
Merge branch 'fuadsaud-protected-methods'

297f7bb0ae89928660679f2a3836e17a9251dd39 authored over 10 years ago by Luca Guidi <[email protected]>
Merge branch 'protected-methods' of https://github.com/fuadsaud/controller into fuadsaud-protected-methods

128874083bd318678fe29b06b4e9cd3a70141b87 authored over 10 years ago by Luca Guidi <[email protected]>
Merge pull request #34 from robyurkowski/patch-1

Fix non-functioning Rack API reference

1b2ea2fcc08e2cb3eceeea2ade5b2c01adbc2a72 authored over 10 years ago by Luca Guidi <[email protected]>
Fix non-functioning Rack API reference

The existing link was 404ing. This replaces that link with (presumably) an identical alternative.

e2c35564c4b7cd2de565c96c8a10ed634c513db1 authored over 10 years ago by Rob Yurkowski <[email protected]>
Responds to code review feedback.

a5365d328475c6f8e5b666daeb042fee3dc5d837 authored over 10 years ago by Matthew Bellantoni <[email protected]>
Merge pull request #28 from arthurgeek/patch-2

Fix: the right status code here is `400`

0c94bb30f4ae5bd7b11da59669dfed81ae61d39f authored over 10 years ago by Luca Guidi <[email protected]>
Fix: the right status code here is `400`

b68a0819130965c91ed0db5225f658eb72e432db authored over 10 years ago by Arthur Zapparoli <[email protected]>
Removes empty else block.

f6632c187ae02d2d056a1621823f997a2542a5d0 authored over 10 years ago by Matthew Bellantoni <[email protected]>
Merge pull request #32 from Foxandxss/patch-1

Fix grammar errors

b8f5c5223a87ad60cf366bade5adaa97261afaa9 authored over 10 years ago by Luca Guidi <[email protected]>
Fix grammar errors

201fc588f59f891ecd903726e049c1808317c4c8 authored over 10 years ago by Jesús Rodríguez Rodríguez <[email protected]>
Fixes formatting.

bf224ad7854e38dddeb80a912464c5e4a5bab9af authored over 10 years ago by Matthew Bellantoni <[email protected]>
Adds the 'Validatable' module.

Moves code out of Lotus::Action into a mixin.

f60de6f7c4ad822e2f7b400ed7608d563519baed authored over 10 years ago by Matthew Bellantoni <[email protected]>
Defers call to symbolize!

Rewrite #_whitelist so it does not depend on the keys in the params
being symbols. This was don...

03b27fced7edbbfd962e6c422e3228516776756d authored over 10 years ago by Matthew Bellantoni <[email protected]>
Adds param whitelisting to Lotus::Action::Params.

Begin implementing the "A" proposal for implementing paramater
validation as laid on in issue #2...

b3c7f05f9fc2d5a3401ed708c77958fb32435aee authored over 10 years ago by Matthew Bellantoni <[email protected]>