Commit graph

183 commits

Author SHA1 Message Date
Ariel Otilibili
d24ad72034 Moved ec_git_vsn tests into separate file 2024-07-29 17:24:41 +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
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
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
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
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
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
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
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
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
Ariel
378b88587c Fix for https://github.com/erlware/erlware_commons/issues/138 2023-12-10 01:04:46 +01:00
Ariel
d5183f5336 Removed redudant clauses in local parse/3 2023-12-09 14:07:13 +01:00
Kian-Meng, Ang
8dd7378a75 Fix typos 2021-12-19 17:36:19 +08:00
FlyingLu
e89e95de5f
Added more test cases.
Added more test cases to show the difference between 'G' and 'H'.
2021-11-03 00:11:05 +08:00
FlyingLu
791729c30a
Fixed the incorrect macro. 2021-11-02 11:27:57 +08:00
FlyingLu
d34da1d107
fixed incorrect 'G' in the format parameter string
In the format parameter string, 'G' should have represented 24-hour format of an hour WITHOUT leading zeros.
But it actually results in 24-hour format of an hour WITH leading zeros.
2021-11-01 16:24:15 +08:00
Fred Hebert
916539338f Support Unicode string formatting
Fixes https://github.com/erlware/erlware_commons/issues/157
2021-08-09 15:06:57 +00:00
Fred Hebert
6f7a32487a
Merge pull request #150 from enidgjoleka/remove-unused-file-attribute
Remove -file attribute pointing to a non-existing file on ec_semver_parser
2021-05-12 08:16:38 -04:00
Fred Hebert
9cdca1c2e1
Merge pull request #154 from paulo-ferraz-oliveira/feature/license-info
Improve on license-related information
2021-04-09 21:21:39 -04:00
Paulo F. Oliveira
c47c938537 Keep symlinks in copies 2021-04-02 22:44:02 +01:00
Paulo F. Oliveira
f0347d88d7 Improve on license-related information 2021-04-02 21:25:49 +01:00
Paulo F. Oliveira
9d67e26510 Solve dialyzer warnings while approaching expected behaviour
(with minor unit tests)
2021-03-25 22:32:33 +00:00
Paulo F. Oliveira
0a4fde35e7 Remove dead code 2021-03-25 00:02:53 +00:00
Enid Gjoleka
01e08a3605 Remove unused -file attribute on ec_semver_parser 2021-02-10 14:43:53 +01:00
Michael Klishin
8eef97234f
Better comment wording as suggested by @ferd
Co-authored-by: Fred Hebert <mononcqc@ferd.ca>
2020-12-16 00:10:38 +03:00
Michael Klishin
c2b7863a53
Avoid a warning on Erlang/OTP 24
to make sure Rebar 3 can bootstrap on that version with warnings-as-errors compiler settings.

Closes #145.
2020-12-15 01:45:43 +03:00
Kuba Odias
4e3b177be7 Allow for extra hyphens in pre-release build version 2018-12-14 23:09:25 +01:00
Tristan Sloughter
d4079cd127
fix ec_semver:pes test to not ignore alpha versions 2018-10-13 08:39:47 -06:00
Tristan Sloughter
f6992d72ca fix insecure_mkdtemp type spec 2018-08-27 14:59:32 -06:00
Tristan Sloughter
64d76963c7
use git tag for version in .app 2018-06-23 15:35:56 -06:00
Tristan Sloughter
8302adf831
support more fine grained file info copy levels 2018-06-22 16:28:19 -06:00
Benedikt Reinartz
c730da3b9d
Use environment variables to find the tmp directory 2018-06-14 08:18:33 +02:00
Tristan Sloughter
9137b5dc54
version bump 2018-05-02 20:44:59 -06:00
Fred Hebert
ad2d57d8b6 Work around OTP-21 deprecation of get_stacktrace() 2018-05-02 21:47:52 -04:00
Tristan Sloughter
51de0f2c7a
version bump 2018-02-02 20:27:02 -08:00
Sascha Kattelmann
6e9f640c9c Fix git version parsing 2018-02-01 10:43:38 +01:00
Tristan Sloughter
a227a0fce9 version bump 2017-11-17 13:30:51 -08:00
Tristan Sloughter
5956de425f fix use of string:trim 2017-11-17 10:18:41 -08:00
Tristan Sloughter
f1ecf12ad3 fix git command to find tags and default empty pattern 2017-11-17 10:15:25 -08:00
Luis Rascao
6933a178ec Bump to 1.0.3 2017-11-15 11:35:10 +00:00
Fred Hebert
df7728d81f Fix bad unicode transition for OTP 20+
The trim/3 function accepts a list of graphemes rather than a single
character. This means previous patches were wrong and totally breaking.
2017-11-14 21:20:36 -05:00
Luis Rascao
f09d8f18a1 Bump to 1.0.2 2017-11-03 18:32:52 +00:00
Tristan Sloughter
41ff18e5d1 version bump to 1.0.1 2017-11-03 09:24:55 -07:00