Compare commits
No commits in common. "master" and "0.7.2" have entirely different histories.
8 changed files with 16 additions and 73 deletions
47
.github/workflows/tests-workflow.yml
vendored
47
.github/workflows/tests-workflow.yml
vendored
|
@ -1,47 +0,0 @@
|
|||
name: qdate tests and dialyzer
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
name: OTP ${{ matrix.otp_version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
continue-on-error: true
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
otp_version: '27.x'
|
||||
rebar3_version: "3.24.0"
|
||||
- os: ubuntu-22.04
|
||||
otp_version: '27.x'
|
||||
rebar3_version: "3.23.0"
|
||||
- os: ubuntu-22.04
|
||||
otp_version: '26.x'
|
||||
rebar3_version: "3.22.1"
|
||||
- os: ubuntu-22.04
|
||||
otp_version: '25.x'
|
||||
rebar3_version: "3.22.1"
|
||||
- os: ubuntu-22.04
|
||||
otp_version: '24.x'
|
||||
rebar3_version: "3.22.1"
|
||||
- os: ubuntu-20.04
|
||||
otp_version: '23.x'
|
||||
rebar3_version: "3.19.0"
|
||||
|
||||
steps:
|
||||
- name: Install OTP ${{matrix.otp_version}}
|
||||
uses: erlef/setup-beam@v1
|
||||
with:
|
||||
version-type: loose
|
||||
otp-version: ${{ matrix.otp_version}}
|
||||
rebar3-version: ${{ matrix.rebar3_version}}
|
||||
|
||||
- name: Checkout qdate
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
|
||||
- name: Run Dialyzer
|
||||
run: make dialyzer
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,4 +7,3 @@ ebin/
|
|||
.eunit/
|
||||
.idea/
|
||||
_build
|
||||
doc/
|
||||
|
|
8
.travis.yml
Normal file
8
.travis.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
language: erlang
|
||||
script: "make test"
|
||||
otp_release:
|
||||
- 23.0
|
||||
- 22.3
|
||||
- 21.3
|
||||
- 20.3
|
||||
before_script: "sudo apt-get --yes --force-yes install libpam-runtime python-software-properties software-properties-common"
|
|
@ -1,18 +1,3 @@
|
|||
## 0.7.3
|
||||
|
||||
* Remove the `?else` macro.
|
||||
|
||||
## 0.7.2
|
||||
|
||||
* Update the error message when qdate is not started with some better instructions.
|
||||
* Some minor updates for hex.pm
|
||||
* Removed the `erlnow()` warning
|
||||
* Fix some typos in the documentation
|
||||
* Update the makefile to use [rebar3.mk](https://rebar3.mk)
|
||||
* Skipped 0.7.1 only because there was a partially tagged 0.7.1 for a while,
|
||||
but was never published to hex. Just to ensure upgrades are easier, I just skipped
|
||||
a proper 0.7.1 release
|
||||
|
||||
## 0.7.0
|
||||
|
||||
* Re-introduce the qdate server for storing qdate timezones, formats, and parsers,
|
||||
|
|
9
Makefile
9
Makefile
|
@ -15,12 +15,13 @@ compile: rebar3
|
|||
update: rebar3
|
||||
$(REBAR) update
|
||||
|
||||
test:
|
||||
EUNIT=1 $(REBAR) compile
|
||||
EUNIT=1 $(REBAR) eunit
|
||||
test: compile
|
||||
$(REBAR) eunit
|
||||
|
||||
dialyzer: compile
|
||||
DIALYZER=1 $(REBAR) dialyzer
|
||||
$(REBAR) dialyzer
|
||||
|
||||
travis: test dialyzer
|
||||
|
||||
dev:
|
||||
mkdir -p _checkouts
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# qdate - Erlang Date and Timezone Library
|
||||
|
||||
[](https://github.com/choptastic/qdate/actions/workflows/tests-workflow.yml)
|
||||
[](https://travis-ci.org/choptastic/qdate)
|
||||
|
||||
## Purpose
|
||||
|
||||
|
|
BIN
rebar3
Executable file
BIN
rebar3
Executable file
Binary file not shown.
|
@ -162,6 +162,7 @@
|
|||
|
||||
-define(DETERMINE_TZ, determine_timezone()).
|
||||
-define(DEFAULT_DISAMBIG, prefer_standard).
|
||||
-define(else, true).
|
||||
|
||||
|
||||
start() ->
|
||||
|
@ -1087,7 +1088,7 @@ date_tz_to_tz_both(Date, FromTZ, ToTZ) ->
|
|||
if
|
||||
Standard=:=Daylight ->
|
||||
Standard;
|
||||
true ->
|
||||
?else ->
|
||||
{ambiguous, Standard, Daylight}
|
||||
end.
|
||||
|
||||
|
@ -1206,8 +1207,6 @@ flooring(N) when N < 0 ->
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
-ifdef(EUNIT).
|
||||
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
%% emulates as if a forum-type website has a Site tz, and a user-specified tz
|
||||
|
@ -1531,5 +1530,3 @@ microsoft_parser(_) ->
|
|||
|
||||
stop_test(_) ->
|
||||
ok.
|
||||
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue