Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed May 21, 2020
1 parent 0ba89c9 commit 83f6db5
Show file tree
Hide file tree
Showing 38 changed files with 76 additions and 41 deletions.
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Visual Studio Code
.vscode/
#.vscode/

# Compiled Object files
*.o
Expand All @@ -16,16 +16,22 @@

# Executables
*.exe
*-test-*

# DUB
.dub
dub.selections.json
dub.*.json
docs.json
__dummy.html

# Code coverage
*.lst

# Examples
# Idea
*.iml

*-test-library
# crash file
core

# others
*.tar.gz
4 changes: 2 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "hunt-time",
"description": "A time library for D programming language.",
"copyright": "Copyright (C) 2018-2019, HuntLabs",
"copyright": "Copyright (C) 2018-2020, HuntLabs",
"homepage": "https://www.huntlabs.net",
"license": "Apache-2.0",
"dependencies": {
"hunt" : "~>1.4.0"
"hunt-extra": "~>1.0.0"
}
}
28 changes: 28 additions & 0 deletions examples/UnitTest/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/time-demo",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
2 changes: 1 addition & 1 deletion source/hunt/time/Duration.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import hunt.Functions;
import hunt.Long;
import hunt.math.Helper;
import hunt.text.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.util.Common;
import hunt.util.Comparator;
import hunt.util.Serialize;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/LocalDate.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import hunt.time.ZonedDateTime;
import hunt.time.ZoneOffset;
import hunt.time.Year;
import hunt.time.Exceptions;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.math.Helper;
import hunt.time.Ser;
import hunt.util.Comparator;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/LocalTime.d
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import hunt.time.LocalDate;
import hunt.time.OffsetTime;
import hunt.time.ZoneOffset;
import hunt.time.Exceptions;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.time.Ser;
import hunt.time.Duration;
import std.conv;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/MonthDay.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import hunt.time.Ser;
import hunt.time.util.Common;
import hunt.math.Helper;
import hunt.Functions;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.util.Common;

import std.conv;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/Period.d
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import hunt.time.Ser;
import hunt.text.Common;
import std.conv;
import std.regex;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.time.util.QueryHelper;
import hunt.time.util.Common;
// import hunt.util.regex.Matcher;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/YearMonth.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import hunt.time.Exceptions;
import hunt.time.Year;
import hunt.util.Common;
import hunt.time.Ser;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
/**
* A year-month _in the ISO-8601 calendar system, such as {@code 2007-12}.
* !(p)
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/ZoneId.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import hunt.collection.HashSet;
import hunt.collection;
import hunt.time.ZoneOffset;
import hunt.time.Ser;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
// import hunt.time.ZoneRegion;
import std.algorithm.searching;
import hunt.text.Common;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/ZoneOffset.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import hunt.collection;
import hunt.text.Common;
import hunt.util.Common;
import hunt.time.Exceptions;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.time.Ser;
import hunt.time.util.QueryHelper;
import hunt.time.util.Common;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/chrono/ChronoLocalDateImpl.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import hunt.time.chrono.Chronology;
import hunt.Long;
import hunt.math.Helper;
import std.conv;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
/**
* A date expressed _in terms of a standard year-month-day calendar system.
* !(p)
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/chrono/ChronoPeriodImpl.d
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import hunt.time.chrono.Chronology;
import hunt.time.chrono.ChronoPeriod;
import hunt.Integer;
import hunt.math.Helper;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.time.chrono.Ser;
import hunt.time.util.QueryHelper;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/CharLiteralPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import hunt.time.format.DateTimeParseContext;
import hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import std.string;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/ChronoPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import hunt.time.temporal.TemporalField;
import hunt.time.temporal.TemporalQueries;

import hunt.collection.Set;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.Exceptions;
import hunt.util.Locale;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/CompositePrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import hunt.time.format.DateTimeParseContext;
import hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.collection.List;

Expand Down
3 changes: 2 additions & 1 deletion source/hunt/time/format/DateTimeFormatter.d
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ import hunt.time.util.QueryHelper;
import hunt.Boolean;
import hunt.Long;
import hunt.collection;
import hunt.text.StringBuilder;
import hunt.util.Appendable;
import hunt.util.Common;
import hunt.util.Locale;
import hunt.util.StringBuilder;

import std.algorithm.searching;
import std.conv;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/DateTimeFormatterBuilder.d
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import hunt.collection.Set;
import hunt.Exceptions;
import hunt.Long;
import hunt.text.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.util.Common;
import hunt.util.Comparator;
import hunt.util.Locale;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/DateTimePrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimeParseContext;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

//-----------------------------------------------------------------------
/**
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/FractionPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import hunt.time.format.DecimalStyle;
import hunt.time.format.NumberPrinterParser;
import hunt.time.format.SignStyle;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Long;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/InstantPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.ChronoField;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Long;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/LocalizedOffsetIdPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import hunt.time.format.DateTimePrintContext;
import hunt.time.format.TextStyle;
import hunt.time.temporal.ChronoField;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;


import hunt.Long;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/LocalizedPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import hunt.time.format.FormatStyle;
import hunt.time.temporal.TemporalField;
import hunt.time.util.Common;
// import hunt.time.util.Locale;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.collection.HashMap;
import hunt.collection.Map;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/NumberPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import hunt.time.format.DateTimePrintContext;
import hunt.time.format.DecimalStyle;
import hunt.time.format.SignStyle;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Long;
import hunt.math.BigInteger;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/OffsetIdPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.ChronoField;
import hunt.time.temporal.TemporalField;
import hunt.time.util.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Long;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/PadPrinterParserDecorator.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import hunt.time.format.DateTimeParseContext;
import hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/Parsed.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import hunt.collection.HashMap;
import hunt.collection.Iterator;
import hunt.collection.Map;
import std.conv;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.collection.Set;
import hunt.Long;
import hunt.math.Helper;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/PrefixTree.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import hunt.time.text.ParsePosition;

import hunt.collection.Set;
import hunt.text.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import std.string;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/ReducedPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import hunt.time.format.NumberPrinterParser;
import hunt.time.format.SignStyle;
import hunt.time.temporal.TemporalField;
import hunt.time.util.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Integer;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/SettingsParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import hunt.time.format.DateTimeParseContext;
import hunt.time.format.DateTimePrinterParser;
import hunt.time.format.DateTimePrintContext;
import hunt.time.temporal.TemporalField;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.time.util.Common;

Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/StringLiteralPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import hunt.time.format.TextStyle;
import hunt.time.temporal.TemporalField;

import hunt.text.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Long;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/TextPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import hunt.time.temporal.ChronoField;
import hunt.time.temporal.TemporalField;
import hunt.time.temporal.TemporalQueries;
import hunt.time.util.QueryHelper;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.collection.List;
import hunt.collection.Map;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/WeekBasedFieldPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import hunt.time.format.SignStyle;
import hunt.time.temporal.TemporalField;
import hunt.time.temporal.WeekFields;

import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.util.Locale;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/ZoneIdPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import hunt.time.ZoneId;
import hunt.time.ZoneOffset;
import hunt.time.ZoneRegion;
import hunt.time.zone.ZoneRulesProvider;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;

import hunt.Exceptions;
import hunt.Integer;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/format/ZoneTextPrinterParser.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import hunt.collection.HashSet;
import hunt.collection.Map;
import hunt.collection.Set;
import hunt.Integer;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.util.Locale;

//-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/temporal/ValueRange.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module hunt.time.temporal.ValueRange;
import hunt.Exceptions;
import std.conv;
import hunt.Integer;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.stream.Common;
import hunt.time.Exceptions;
import hunt.time.temporal.TemporalField;
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/zone/ZoneOffsetTransition.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import hunt.Functions;
import hunt.Integer;
import hunt.util.Comparator;
import hunt.util.Common;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
/**
* A transition between two offsets caused by a discontinuity _in the local time-line.
* !(p)
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/time/zone/ZoneOffsetTransitionRule.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import hunt.time.Month;
import hunt.time.ZoneOffset;
import hunt.time.chrono.IsoChronology;
import hunt.time.zone.ZoneOffsetTransition;
import hunt.text.StringBuilder;
import hunt.util.StringBuilder;
import hunt.time.util.Common;

import hunt.util.Common;
Expand Down

0 comments on commit 83f6db5

Please sign in to comment.