nathanl
Repos
185
Followers
125
Following
3

Searchlight helps you build searches from options via Ruby methods that you write.

534
17

*CURRENTLY UNMAINTAINED*. Authority helps you authorize actions in your Rails app. It's ORM-neutral and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.

1221
68

A small collection of Ruby caches with good performance and hash-like access patterns

3
0

Elixir anagram-generation library

4
1

Mendel breeds the best combinations of N lists without building all possible combinations.

3
0

Events

create repository
nathanl create repository
Created at 4 hours ago
pull request opened
Notes about payload serialization

I was confused by some code which set a struct as a payload until I recalled that payloads get serialized this way and saw that the struct implemented the required protocol. I think this makes the expectation clearer.

Created at 6 hours ago
create branch
nathanl create branch note_payload_serialization
Created at 6 hours ago

Apply suggestions from code review

Co-authored-by: José Valim jose.valim@gmail.com

Created at 10 hours ago
pull request opened
CI should still doctest CHANGELOG.md

@wojtekmach pointed this out on https://github.com/elixir-lang/elixir/pull/12483

Created at 10 hours ago
create branch
nathanl create branch ci_test_changelog
Created at 10 hours ago
delete branch
nathanl delete branch example_composing_keyword_list_type
Created at 10 hours ago
delete branch
nathanl delete branch ci_ignore_markdown_changes
Created at 10 hours ago
pull request opened
CI should ignore changes to markdown files

I'm not sure that this change is the correct syntax, but it seems wasteful for CI to run on changes to markdown files, as it did on https://github.com/elixir-lang/elixir/pull/12482

Created at 11 hours ago
create branch
nathanl create branch ci_ignore_markdown_changes
Created at 11 hours ago
create branch
nathanl create branch example_composing_keyword_list_type
Created at 11 hours ago
pull request opened
Examples of composing a keyword list type

Examples by Myron Marston and Michał Muskała in https://elixirforum.com/t/typespecs-best-way-to-spec-keyword-lists/2991

Created at 11 hours ago
issue comment
provide a serializer behaviour, default v1&v2 implementations

I'm not sure if this belongs on this issue, but it's related to Slipstream's data serialization. Channel supports binary data: def handle_in("file_chunk", {:binary, chunk}, socket) do. This is used in the JS upload client to send a chunk of a file at a time. As far as I can tell, Slipstream requires any payload to be a JSON-encodable map, so binary data has to be string encoded (eg Base.encode64/1), which increases its size.

Created at 1 day ago

Use new tailwind plugin approach for hero icons (#5319)

  • Use new tailwind plugin approach for hero icons

Co-authored-by: José Valim jose.valim@dashbit.co

Fix guide typos (#5314)

  • Fix typos.

From output of Phoenix generator above correct namespace seems to be HelloWeb, and not LinksWeb

  • Fixed missing imports and template embeds

Updated folder structure for templates (#5313)

Edited app.html.heex path with the new template folder: lib/hello_web/components/layouts/app.html.heex

Fix token typespec for socket like struct (#5312)

Add false to put_layout for now, closes #5309

Use tags instead of branch on home screen, closes #5307

Allow a suffix on use :formats

Improved the code consistency of the login_live_test.exs template (#5317)

Include {:error, reason} in c:Phoenix.Socket.Transport.connect/1 (#5316)

fix phx.digest.clean only cleaning .gz compressed versions (#5318)

fix warning for string keys on form (#5310)

warning: a map with atom keys was given to a form. Maps are always considered parameters and therefore must have string keys, got: %{email: nil} (phoenix_html 3.3.1) lib/phoenix_html/form_data.ex:83: Phoenix.HTML.FormData.Map.name_params_and_opts/2 (phoenix_html 3.3.1) lib/phoenix_html/form_data.ex:53: Phoenix.HTML.FormData.Map.to_form/2

Fix possible typo (#5298)

Document :live_view in Endpoint, closes #5303

Fix syntax error

Add form_component to phx.gen.html

Add inspect to format

Improve error message

Rename form

Ensure all compressors are compiled

Fix mix phx.digest

Created at 2 days ago

Minor grammar fix (#5366)

Update routing.md (#5361)

LayoutView to Layouts.

update PageController index action to home in Controllers Guide (#5338)

  • update PageController index action to home

  • addresses great feedback from @phoebe100

Adding info log if they have http/https set but not server: true set (#5362)

  • Adding info log if they have http/https set but not server: true set

Co-authored-by: José Valim jose.valim@dashbit.co

Add guide: Writing a Channels Client

Created at 2 days ago
delete branch
nathanl delete branch link_to_channels_guide
Created at 2 days ago
delete branch
nathanl delete branch nathanl/tiny-doc-update
Created at 2 days ago
delete branch
nathanl delete branch nathanl/rework-channels-guide
Created at 2 days ago
delete branch
nathanl delete branch js-phx-gen-web-repo
Created at 2 days ago
delete branch
nathanl delete branch env_var_suggestion
Created at 2 days ago
delete branch
nathanl delete branch cm-v2-channel-protocol
Created at 2 days ago
delete branch
nathanl delete branch cm-inject-context-tests
Created at 2 days ago
delete branch
nathanl delete branch bind_to_localhost_in_dev
Created at 2 days ago
delete branch
nathanl delete branch amend-note-about-pubsub
Created at 2 days ago
create branch
nathanl create branch main
Created at 2 days ago

Use new tailwind plugin approach for hero icons (#5319)

  • Use new tailwind plugin approach for hero icons

Co-authored-by: José Valim jose.valim@dashbit.co

Fix guide typos (#5314)

  • Fix typos.

From output of Phoenix generator above correct namespace seems to be HelloWeb, and not LinksWeb

  • Fixed missing imports and template embeds

Updated folder structure for templates (#5313)

Edited app.html.heex path with the new template folder: lib/hello_web/components/layouts/app.html.heex

Fix token typespec for socket like struct (#5312)

Add false to put_layout for now, closes #5309

Use tags instead of branch on home screen, closes #5307

Allow a suffix on use :formats

Improved the code consistency of the login_live_test.exs template (#5317)

Include {:error, reason} in c:Phoenix.Socket.Transport.connect/1 (#5316)

fix phx.digest.clean only cleaning .gz compressed versions (#5318)

fix warning for string keys on form (#5310)

warning: a map with atom keys was given to a form. Maps are always considered parameters and therefore must have string keys, got: %{email: nil} (phoenix_html 3.3.1) lib/phoenix_html/form_data.ex:83: Phoenix.HTML.FormData.Map.name_params_and_opts/2 (phoenix_html 3.3.1) lib/phoenix_html/form_data.ex:53: Phoenix.HTML.FormData.Map.to_form/2

Fix possible typo (#5298)

Document :live_view in Endpoint, closes #5303

Fix syntax error

Add form_component to phx.gen.html

Add inspect to format

Improve error message

Rename form

Ensure all compressors are compiled

Fix mix phx.digest

Created at 2 days ago
delete branch
nathanl delete branch struct_example
Created at 2 days ago
create branch
nathanl create branch channels_client_guide
Created at 5 days ago
issue comment
Clarify allowed arguments for pipe_through & make router auth imports explicit

I'm getting test failures like test phx.gen.auth + argon2 has no compilation or formatter warnings (--no-live) (Phoenix.Integration.CodeGeneration.AppWithMySqlAdapterTest). Any guidance on how to run the generator myself from this repo and examine the output?

Created at 5 days ago

Rerun CI

Created at 5 days ago