Commit graph

29 commits

Author SHA1 Message Date
9b8dd2f437
chore: disable credo complains about is_ predicates.
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
It would be a breaking change, and it's just not worth it.
2024-03-14 17:20:29 +13:00
579597bc04
improvement: use types from :inet rather than :socket.
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-14 16:38:15 +13:00
2b01e70ae1 chore: migrate to local. (#27)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #27
Co-authored-by: James Harton <james@harton.nz>
Co-committed-by: James Harton <james@harton.nz>
2024-02-19 10:33:16 +13:00
86d442c832
chore: fix deprecations and update formatting. 2023-10-04 10:09:25 +13:00
13bf9cb6a3
improvement: Add IP.Address.to_tuple/1. 2023-10-04 10:07:43 +13:00
1727e3046c
chore: Run Elixir 1.15 formatter. 2023-06-22 09:08:12 +12:00
Jim Kane
f3cfbb38a6 improvement: Update Bitwise use, libs
In order to accomodate deprecations in elixir 1.14, change how some
Bitwise functions are called.

Update library dependencies to avoid deprecation warnings.
2022-09-28 11:03:39 +13:00
5a487190eb fix: correctly validate IPv4 netmasks
Closes #2.
2022-09-23 11:45:19 +12:00
215e19b0c3 feat: add Address.from_tuple/1 and Address.from_tuple!/1 2022-03-01 16:08:10 +13:00
62ca427662 chore(dev-deps): Update credo to 1.6.1. 2021-12-08 00:12:29 +00:00
James Harton
5fe6c4e289 Fix bug in prefix's enumerable implementation. 2019-04-23 17:09:28 +12:00
James Harton
09ebfcf747 Update deps 2018-09-04 03:25:04 +00:00
James Harton
3c5f964a9e Improve typespecs and run dialyzer. 2017-10-25 16:20:39 +13:00
James Harton
eb3cc6d635 Implement ~i and IP.Scope.prefix_scope() 2017-10-12 10:22:58 +13:00
James Harton
9fe8c49296 Tidy up documentation. 2017-10-12 09:03:36 +13:00
James Harton
5e258e11ad Typo. 2017-10-11 18:30:23 +13:00
James Harton
2e2f81d9c5 Add basic docs to the readme. 2017-10-11 18:26:19 +13:00
James Harton
d4ab558f30 Implement prefix contains prefix test.
Also override credo's max line length because who works in 80x25
anymore?
2017-10-11 18:06:48 +13:00
James Harton
ee7b25e79c Include address scope in inspect output. 2017-10-11 17:41:57 +13:00
James Harton
d92a777500 Credo fixes. 2017-10-11 09:18:59 +13:00
James Harton
26abbcd64f Add IP address scopes. 2017-10-10 22:56:30 +13:00
James Harton
e60eced8b0 Fix credo warnings. 2017-10-10 08:49:05 +13:00
James Harton
db9ab41b53 Add Unique Local Address generation. 2017-10-10 08:46:15 +13:00
James Harton
78885b2b2d Implement parsing of strings into prefixes. 2017-10-09 16:38:54 +13:00
James Harton
99596e4bf7 Add functions to IP.Prefix. 2017-10-09 14:33:21 +13:00
James Harton
c203db2c46 Use erlangs :inet instead of rolling our own address parsing. 2017-10-08 21:17:02 +13:00
James Harton
26d392cd49 Implement String.Chars and Inspect for IP.Address 2017-10-08 19:39:22 +13:00
James Harton
1855e9a1eb Initial parsing of various formats for IP addresses. 2017-10-08 19:07:51 +13:00
James Harton
e03433107c FIRST POST 2017-10-06 14:56:47 +13:00