Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cookie #144

Closed
wants to merge 11 commits into from
Closed

Conversation

guidotripaldi
Copy link
Contributor

No description provided.





Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no more than 1 consecutive blank lines.

end



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no more than 1 consecutive blank lines.

# |> (&((encode || encrypt) && Base.encode64(&1, padding: false) || &1)).()
end


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no more than 1 consecutive blank lines.

@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 7 possible new issues (including those that may have been commented here).
  • 7 fixed issues! 🎉

But beware that this branch is 10 commits behind the grych:master branch, and a review of an up to date branch would produce more accurate results.

You can see more details about this review at https://ebertapp.io/github/grych/drab/pulls/144.

@grych
Copy link
Owner

grych commented Jun 4, 2018

Again, I see no point to keep Drab.Utils as a separate module, as encode_value actually repeats what is done in Drab.Coder. The ideal API for me would be:

set_cookie cookie, value # no encoding
set_cookie cookie, value, encode: true # default &Drab.Coder.encode/1
set_cookie cookie, value, encode: Drab.Coder.URL # calling Drab.Coder.URL.encode
set_cookie cookie, value, encode: Any.Other.Module # calling Any.Other.Module.encode

cookie cookie # no encoding
cookie cookie, decode: true # default decode
cookie cookie, decode: Drab.Coder.URL 

Let's cut Drab.Utils with Ockham's razor ;)

@guidotripaldi
Copy link
Contributor Author

Again, I see no point to keep Drab.Utils as a separate module

Was not intentional, I've pushed a bad commit forgetting that it would be update also the pr, sorry

I'm going to remove Drab.Utils

@grych
Copy link
Owner

grych commented Jul 16, 2018

Hi @guidotripaldi, don't worry, I understand you don't have time for this. I am going to do a cookie functions myself. Thanks for all the help! You really helped me a lot.

@grych grych closed this Jul 16, 2018
@guidotripaldi guidotripaldi deleted the feature/cookie branch August 31, 2018 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants