Page not found
- -Sorry, but the page you were trying to get to, does not exist. You -may want to try searching this site using the sidebar or using our -API Reference page to find what -you were looking for.
- - -diff --git a/.formatter.exs b/.formatter.exs new file mode 100644 index 0000000..d304ff3 --- /dev/null +++ b/.formatter.exs @@ -0,0 +1,3 @@ +[ + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] +] diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ad865f8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,26 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + groups: + actions-minor: + update-types: + - minor + - patch + + - package-ecosystem: mix + directory: / + schedule: + interval: monthly + groups: + elixir-development: + dependency-type: development + update-types: + - minor + - patch + elixir-production: + dependency-type: production + update-types: + - patch diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml new file mode 100644 index 0000000..2d13d7f --- /dev/null +++ b/.github/workflows/elixir.yml @@ -0,0 +1,71 @@ +name: Elixir CI + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + elixir-ci: + name: Elixir ${{ matrix.elixir }} (OTP ${{ matrix.otp }}) + + env: + LANG: en_US.UTF-8 + LC_CTYPE: en_US.UTF-8 + + strategy: + fail-fast: true + matrix: + include: + - elixir: '1.15' + otp: '26' + os: ubuntu-22.04 + check_formatted: true + warnings_as_errors: true + - elixir: '1.16' + otp: '26' + os: ubuntu-22.04 + - elixir: '1.17' + otp: '27' + os: ubuntu-22.04 + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: erlef/setup-elixir@v1 + id: install + with: + otp-version: ${{ matrix.otp }} + elixir-version: ${{ matrix.elixir }} + + - uses: actions/cache@v4 + with: + key: builds@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }} + path: | + deps + _build + + - run: mix 'do' deps.get, deps.compile + + - run: mix format --check-formatted + if: matrix.check_formatted + + - run: mix compile --warnings-as-errors + if: matrix.warnings_as_errors + + - run: mix compile + if: ${{ !matrix.warnings_as_errors }} + + - run: mix test + + - uses: actions/cache@v4 + with: + key: plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }} + path: | + priv/plts + restore-keys: | + plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix- diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ef810ba..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -sudo: false -language: elixir -elixir: - - 1.2.6 - - 1.3.1 - - 1.4.0 -otp_release: - - 18.3 - - 19.0 -script: mix test --no-start diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index 6dfa82f..0000000 --- a/config/config.exs +++ /dev/null @@ -1,24 +0,0 @@ -# This file is responsible for configuring your application -# and its dependencies with the aid of the Mix.Config module. -use Mix.Config - -# This configuration is loaded before any dependency and is restricted -# to this project. If another project depends on this project, this -# file won't be loaded nor affect the parent project. For this reason, -# if you want to provide default values for your application for third- -# party users, it should be done in your mix.exs file. - -# Sample configuration: -# -# config :logger, :console, -# level: :info, -# format: "$date $time [$level] $metadata$message\n", -# metadata: [:user_id] - -# It is also possible to import configuration files, relative to this -# directory. For example, you can emulate configuration per environment -# by uncommenting the line below and defining dev.exs, test.exs and such. -# Configuration from the imported file will override the ones defined -# here (which is why it is important to import them last). -# -# import_config "#{Mix.env}.exs" diff --git a/doc/404.html b/doc/404.html deleted file mode 100644 index b089da6..0000000 --- a/doc/404.html +++ /dev/null @@ -1,88 +0,0 @@ - - -
- - - - -Sorry, but the page you were trying to get to, does not exist. You -may want to try searching this site using the sidebar or using our -API Reference page to find what -you were looking for.
- - -Takes my favorite hits from Ruby’s SecureRandom and brings em to elixir. -Mostly a convienance wrapper around Erlangs Crypto library, converting -Crypto.strong_rand_bytes/1 into a string.
-iex> SecureRandom.base64
-"xhTcitKZI8YiLGzUNLD+HQ=="
-
-iex> SecureRandom.urlsafe_base64(4)
-"pLSVJw"
-
-iex> SecureRandom.uuid
-"a18e8302-c417-076d-196a-71dfbd5b1e03"
-
- Returns random Base64 encoded string
-Generates a random hexadecimal string
-Returns random bytes
-Returns random urlsafe Base64 encoded string
-Returns UUID v4 string. I have lifted most of this straight from Ecto’s implementation
-Returns random Base64 encoded string.
-iex> SecureRandom.base64
-"rm/JfqH8Y+Jd7m5SHTHJoA=="
-
-iex> SecureRandom.base64(8)
-"2yDtUyQ5Xws="
-
- Generates a random hexadecimal string.
-The argument n specifies the length, in bytes, of the random number to be generated. The length of the resulting hexadecimal string is twice n.
-If n is not specified, 16 is assumed. It may be larger in future.
-The result may contain 0-9 and a-f.
-iex> SecureRandom.hex(6)
-"34fb5655a231"
-
- Returns random bytes.
-iex> SecureRandom.random_bytes
-<<202, 104, 227, 197, 25, 7, 132, 73, 92, 186, 242, 13, 170, 115, 135, 7>>
-
-iex> SecureRandom.random_bytes(8)
-<<231, 123, 252, 174, 156, 112, 15, 29>>
-
- Returns random urlsafe Base64 encoded string.
-iex> SecureRandom.urlsafe_base64
-"xYQcVfWuq6THMY_ZVmG0mA"
-
-iex> SecureRandom.urlsafe_base64(8)
-"8cN__l-6wNw"
-
- Returns UUID v4 string. I have lifted most of this straight from Ecto’s implementation.
-iex> SecureRandom.uuid - “e1d87f6e-fbd5-6801-9528-a1d568c1fd02”
- -Takes my favorite hits from Ruby’s SecureRandom and brings em to elixir. -Mostly a convienance wrapper around Erlangs Crypto library, converting -Crypto.strong_rand_bytes/1 into a string
-