arjan / decorator

Function decorators for Elixir
MIT License
386 stars 21 forks source link

Use __info__(:functions) instead of :exports #14

Closed jeffkreeftmeijer closed 7 years ago

jeffkreeftmeijer commented 7 years ago

As reported in https://github.com/appsignal/appsignal-elixir/issues/268#issuecomment-346570356.

Since https://github.com/elixir-lang/elixir/commit/5ed491a7ea8962310a5a5763bf358d42db58a421, Module.__info__/1 doesn't drop down to :erlang.module_info/1 anymore. This patch switches to using Elixir's :functions instead of Erlang's :exports. Both return exported functions, but the former doesn't include __info__/1, module_info/0, and module_info/1, which aren't needed for our purposes.

arjan commented 7 years ago

Thanks jeff!

arjan commented 7 years ago

I just release version 1.2.3 of this lib