View Source CommonX

Hex.pm Build Status Coverage Status Hex.pm

Extension of common Elixir modules.

installation

Installation

The package can be installed by adding common_x to your list of dependencies in mix.exs:

def deps do
  [
    {:common_x, "~> 0.5"}
  ]
end

The docs can be found at https://hexdocs.pm/common_x.

extensions

Extensions

The following modules have extension:

changelog

Changelog

2022-11-10-v0-6-0

2022-11-10 (v0.6.0)

2022-09-08-v0-5-9

2022-09-08 (v0.5.9)

  • Support Elixir 1.14 changes.

2022-09-07-v0-5-7-v0-5-8

2022-09-07 (v0.5.7 / v0.5.8)

  • Recompile when mix.exs changes.

2020-08-12-v0-5-6

2020-08-12 (v0.5.6)

  • Fix project detection when installed inside a Elixir script with Mix.install/2.

2020-11-08-v0-5-5

2020-11-08 (v0.5.5)

  • Small fix detecting compile environment in custom commands and Elixir >= 1.11.

2020-10-08-v0-5-4

2020-10-08 (v0.5.4)

  • Small fix detecting compile environment.

2020-07-02-v0-5-3

2020-07-02 (v0.5.3)

  • Compile warning fix.

2020-05-13-v0-5-2

2020-05-13 (v0.5.2)

2020-04-05-v0-5-1

2020-04-05 (v0.5.1)

2020-03-15-v0-5-0

2020-03-15 (v0.5.0)

2020-03-08-v0-4-1

2020-03-08 (v0.4.1)

2020-03-07-v0-4-0

2020-03-07 (v0.4.0)

  • Add ApplicationX.main/0, which returns the atom of the main application, even when called from dependencies.

2020-01-15-v0-3-0

2020-01-15 (v0.3.0)

2019-12-23-v0-2-3

2019-12-23 (v0.2.3)

2019-10-12-v0-2-0

2019-10-12 (v0.2.0)

  • Add ApplicationX extension with the following methods:
    • applications/0 list all applications, without starting.
    • applications/1 list all dependencies, without starting.
    • modules/0 list all modules, without starting applications.
    • modules/1 list all modules in given applications, without starting them.

2019-01-01-v0-0-2

2019-01-01 (v0.0.2)

  • Add MacroX extension with the following methods:
    • camalize/1 proper camelCase for string and atom.
    • pascalize/1 proper PascalCase for string and atom.
    • snakize/1 proper snake_case for string and atom.
    • underscore/1 alias for snakize.