Commit graph

363 commits

Author SHA1 Message Date
Fred Hebert
6cd37a4f9b
Merge pull request #185 from ariel-anieli/ec-talk-test
Moved `ec_talk` tests into separate file
2024-09-24 09:06:37 -04:00
Ariel Otilibili
5305348899 Moved ec_talk tests into separate file
Part of #179.

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-09-23 21:32:58 +02:00
Fred Hebert
6d4e7d14ce
Merge pull request #184 from ariel-anieli/test-cmd-log-cnv
Moved `ec_cmd_log` & `ec_cnv` tests into separate files
2024-08-12 16:39:28 -04:00
Ariel Otilibili
677984e961 Moved ec_env tests into a separate file
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-08-12 20:06:56 +02:00
Ariel Otilibili
ca7581cbb0 Moved ec_cmd_log tests into separate file
* moved colour macros into `src/ec_cmd_log.hrl`
* moved `ec_cmd_log` tests into `test/ec_cmd_log_tests.erl`.

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-08-12 20:05:55 +02:00
Fred Hebert
fc69576978
Merge pull request #183 from ariel-anieli/git-vsn-tests
Moved `ec_git_vsn` tests into separate file
2024-07-31 13:11:35 -04:00
Ariel Otilibili
d24ad72034 Moved ec_git_vsn tests into separate file 2024-07-29 17:24:41 +02:00
Fred Hebert
a54f0623c5
Merge pull request #181 from ariel-anieli/badges-hex-ci
Updated CI/CD and hex badges
2024-07-03 09:32:52 -04:00
Ariel Otilibili
515df6b21e Updated CI/CD and hex badges 2024-07-03 07:31:57 +02:00
Fred Hebert
1fd0a513ff
Merge pull request #178 from ariel-anieli/remove-random-uniform
Replaced random_uniform/1 by rand:uniform/1
2024-07-02 16:01:21 -04:00
Fred Hebert
3d0006fe89
Merge pull request #180 from ariel-anieli/thousand-separators
Use thousand separators for large digits
2024-07-02 15:57:04 -04:00
Ariel Otilibili
15126e0048 Replaced random_uniform/1 by rand:uniform/1
* leftover of 5118421f6f
* code base contains only one occurence of random_uniform/1

```
$ git grep random_uniform
src/ec_file.erl:    UniqueNumber = erlang:integer_to_list(erlang:trunc(random_uniform() * 1000000000000)),
src/ec_file.erl:random_uniform() ->
```
2024-06-20 13:17:41 +02:00
Ariel Otilibili
cdd9240142 Use thousand separators for large digits
```
$ git grep -nP '\d{4,}[^a-zA-Z\"]' | grep \.erl | grep -vi copyright > /dev/null; echo $?
0
```
2024-06-14 21:42:36 +02:00
Fred Hebert
1a42c54981
Merge pull request #177 from ariel-anieli/issue-173-and-type-annotation-change 2024-06-03 19:58:48 -04:00
Ariel Otilibili
ccc1be32be
Changed type annotation
Used 'intensity' in declaration of 'state_t'.
2024-06-03 23:33:10 +02:00
Ariel Otilibili
5f40d8f061
Resolved dialyzer warning on colorize/4
Fixes #173.
2024-06-03 23:32:17 +02:00
Fred Hebert
75c6bae602
Merge pull request #176 from ariel-anieli/github-action-and-otp-bump
GitHub action renaming & OTP bump
2024-06-01 10:54:37 -04:00
Ariel Otilibili
ab7eb3874f OTP bump
```
curl --silent https://packages.debian.org/search?keywords=erlang | \
    sed -ne '/Package erlang</,/<\/ul>/{/<\/a>/p; /br/p}' | \
    sed -e 's/<a.*$//' | \
    perl -0777 -pE 's/<li class="(\w+)">\n/$1/g; s/<br>([^\s]+)/$1/g; s/\+.*(?=\n)//g' | \
    sed -e '1i name otp-version' | \
    column -t

name          otp-version
buster        1:22.2.7
bullseye      1:23.2.6
bookworm      1:25.2.3
trixie        1:25.3.2.12
sid           1:25.3.2.12
experimental  1:27.0
```
2024-05-27 16:26:41 +02:00
Ariel Otilibili
2636b5e21d Renaming in GitHub actions 2024-05-27 16:26:41 +02:00
Fred Hebert
d6315a9541
Merge pull request #175 from ariel-anieli/remove-rebar2-cfg-script
Removed rebar2 case in rebar.config.script
2024-05-16 09:44:14 -04:00
Ariel Otilibili
f9ffd1ce6b Removed rebar2 case in rebar.config.script
* introduced by 505d35996d
* rebar2 is now deprecated [1].

[1] https://github.com/rebar/rebar
2024-05-15 22:20:43 +02:00
Fred Hebert
182c30a950
Merge pull request #172 from ariel-anieli/otp-bump
OTP bump
2024-03-18 13:17:36 -04:00
Ariel Otilibili
63b1798b1e OTP bump
* sequel of 17e6f89078
* added R26 in CI/CD, and cleared out dialyzer warnings
* from R26, by default, `-Wno_unknown` suppresses warnings [1]
* in R25, it was the reverse behavior: `-Wunknown` allows warnings [2].

[1] https://www.erlang.org/doc/man/dialyzer.html#warning_options
[2] https://www.erlang.org/docs/25/man/dialyzer#format_warning-1
2024-03-18 01:01:08 +01:00
Fred Hebert
cb3983741e
Merge pull request #171 from ariel-anieli/pr-stacktrace
Removed unicode_str & fun_stacktrace
2024-03-13 14:21:29 -04:00
Ariel Otilibili
f378d3ec46 Removed unicode_str
* introduced in f8f72b7cc5
* introduced for working around compile warning starting from R20
* CI/CD uses R23 and onwards.
2024-03-07 06:58:59 +01:00
Ariel Otilibili
c0a02892cd Removed fun_stacktrace
* introduced in ad2d57d8b6
* CI/CD uses R23 and onwards
* erlang:get_stacktrace/0 removed in R23.

[1] https://www.erlang.org/doc/general_info/removed#functions-removed-in-otp-23
2024-03-07 06:58:52 +01:00
Fred Hebert
5de3c80cc2
Merge pull request #170 from ariel-anieli/pr-otp-bump
Bumped OTP versions
2024-02-21 16:45:29 -05:00
Ariel Otilibili
17e6f89078 Bumped OTP versions
* aligned OTP versions with Debian
* keeps versions from bullseye (old stable) to sid (unstable).

```
$ curl --silent https://packages.debian.org/search?keywords=erlang | \
  sed -ne '/Package erlang</,/<\/ul>/{/<\/a>/p; /br/p}' | \
  sed -e 's/<a.*$//' | \
  perl -0777 -pE 's/<li class="(\w+)">\n/$1/g; s/<br>([^\s]+)/$1/g; s/\+.*(?=\n)//g' | \
  sed -e '1i name otp-version' | \
  column -t
name          otp-version
buster        1:22.2.7
bullseye      1:23.2.6
bookworm      1:25.2.3
trixie        1:25.3.2.8
sid           1:25.3.2.8
experimental  1:26.2.1

$ curl -I  https://packages.debian.org/search?keywords=erlang
HTTP/2 200
date: Tue, 20 Feb 2024 22:21:53 GMT
server: Apache
last-modified: Tue, 20 Feb 2024 21:50:40 GMT
vary: Accept-Encoding,negotiate,accept-language
x-clacks-overhead: GNU Terry Pratchett
expires: Wed, 21 Feb 2024 09:04:02 +0000
x-content-type-options: nosniff
x-frame-options: sameorigin
referrer-policy: no-referrer
x-xss-protection: 1
permissions-policy: interest-cohort=()
strict-transport-security: max-age=15552000
age: 1873
content-length: 184625
content-type: text/html; charset=UTF-8
```
2024-02-21 22:05:14 +01:00
Fred Hebert
86a6c6ea65
Merge pull request #169 from ariel-anieli/pr-ns-types
Removed namespaced_types
2024-02-20 12:47:25 -05:00
Ariel Otilibili
2286a6ed9b Removed namespaced_types
* introduced for handling deprecated types existing before R17
* introduced in 523a66ad74
* CI/CD handles R19 up to R24
* R19 and onwards have dict:dict/0 [1,2]

[1] https://www.erlang.org/docs/19/man/dict
[2] https://www.erlang.org/docs/24/man/dict#type-dict
2024-02-17 22:04:50 +01:00
Fred Hebert
7b7d5b559d
Merge pull request #168 from ariel-anieli/pr-callback
Removed have_callback_support
2024-02-07 15:51:03 -05:00
Ariel Otilibili
eca2d2129c Removed have_callback_support
* introduced by 95f723e1e0
* mentioned as well in 47bcbd49b6
* introduced for compatibility with OTP R14
* CI/CD now tests from R19 and onwards.
2024-02-04 12:39:42 +01:00
Fred Hebert
20d049ea4f
Merge pull request #167 from ariel-anieli/pr-deprecation-cond
Removed checks on deprecated crypto:sha/1 & random:uniform/0
2024-01-12 15:59:41 -05:00
Ariel Otilibili
5118421f6f Removed checks on deprecated random module 2024-01-12 19:50:54 +01:00
Ariel Otilibili
685f08621b Removed conditions on deprecated cryptos and rand modoles
* CI/CD lowest OTP version is 19.3
* from 19.3, `rand` module exists (https://www.erlang.org/docs/19/man/rand)
* from 19.3, `crypto:hash/1` exists (https://www.erlang.org/docs/19/man/crypto).
2024-01-12 19:46:27 +01:00
Fred Hebert
952a1d2bc6
Merge pull request #166 from ariel-anieli/pr-typo-checksums-ec_file
[src/ec_file.erl] Factorization & typos, in sha1sum/1 & md5sum/1
2024-01-08 11:58:18 -05:00
Ariel Otilibili
fc69b3630c turn_digest_into_hex/1 renamed as bin_to_hex/1 2023-12-21 08:43:36 +01:00
Ariel Otilibili
6781f1ba6a Factorized digest-to-hex transform; used in three functions 2023-12-20 23:58:44 +01:00
Ariel Otilibili
bbdbbf313f Typos, and replaced 'checksum' with 'digest': more consistent with Erlang documentation 2023-12-20 23:56:27 +01:00
Fred Hebert
19c717fb97
Merge pull request #165 from ariel-anieli/pr-typos
[doc/signatures.md] Fixed typos, mis-naming, and syntax highlighting
2023-12-18 16:18:28 -05:00
Ariel
6e9c1b0a22 Another typo in math mode 2023-12-18 21:26:06 +01:00
Ariel
7e69d4949e Replaced tab by four spaces 2023-12-18 21:19:24 +01:00
Ariel
68e9bbcd0f Typo in math mode 2023-12-18 21:00:25 +01:00
Ariel
cd88825861 Syntax highlighted in code snippets 2023-12-18 20:59:57 +01:00
Ariel
5c5c264241 For formulae, used Markdown math mode 2023-12-18 20:33:17 +01:00
Ariel
6d4c471ff6 Fixed typos and misnamings 2023-12-18 20:31:49 +01:00
Ariel
62a985b937 Instead of three colons, syntax is highlighted with three backticks 2023-12-18 20:29:17 +01:00
Fred Hebert
7c4911795e
Merge pull request #164 from ariel-anieli/pr-redundant-parse
Removed other redudant clauses in local parse/3
2023-12-10 11:15:31 -05:00
Ariel
ad4b944fc6 Removed other redudant clauses; same behaviour than https://github.com/erlware/erlware_commons/pull/162 2023-12-10 17:08:41 +01:00
Fred Hebert
4d5811d99b
Merge pull request #162 from ariel-anieli/issue-70-redundant-parse
Removed redudant clauses in local parse/3
2023-12-09 19:48:06 -05:00