Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge package:clock #691

Merged
merged 106 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
3c2d361
Initial commit
justinfagnani Aug 14, 2013
4160b46
Initial commit of project and iterables.dart
justinfagnani Aug 15, 2013
969d99b
Test-friendy time providers and utilities
yjbanov Aug 20, 2013
ce0efb7
Make time tests consistent with other tests
yjbanov Aug 20, 2013
12bc5c2
Remove TimeProvider
yjbanov Aug 21, 2013
4eb2acd
Part-based ago/fromNow methods; Duration-based agoBy/fromNowBy methods
yjbanov Aug 21, 2013
3ff3884
Better unit-tests for system clock
yjbanov Aug 21, 2013
449a9f0
Merge custom constructor into default using optional params
yjbanov Aug 21, 2013
4e5357f
Make _systemTime() a public systemTime() function
yjbanov Aug 21, 2013
b6081e0
Merge pull request dart-lang/clock#7 from yjbanov/master
justinfagnani Aug 21, 2013
724ab1c
Clamp dates when going from long months to short months
yjbanov Sep 4, 2013
e62e45b
Remove hours, minutes, seconds and millis in tests that don't need them
yjbanov Sep 4, 2013
d6b99a8
Increase epsilon to 10ms; at 2ms the test is flaky
yjbanov Sep 4, 2013
848770e
Convert all date tests to use expectDate
yjbanov Sep 4, 2013
5c9dbbb
Clamp date when jumping from leap to common year
yjbanov Sep 4, 2013
b24c9a2
Consistent quotes
yjbanov Sep 4, 2013
822b791
Extract date clamping into a method and document it
yjbanov Sep 5, 2013
c14edf8
Merge pull request dart-lang/clock#25 from google/work
justinfagnani Sep 5, 2013
87168e2
Remove SYSTEM_CLOCK. Use const Clock() instead.
cbracken Jun 11, 2014
395ea0d
Merge pull request dart-lang/clock#146 from cbracken/deprecate-system…
justinfagnani Jun 27, 2014
9dbcdae
Merge pull request dart-lang/clock#157 from kaendfinger/gitignore
justinfagnani Jun 27, 2014
c19ed03
Merge pull request dart-lang/clock#162 from google/mirrors_implements
justinfagnani Jul 2, 2014
d10f075
Reformat with dartformat
cbracken Feb 5, 2015
4974017
Merge pull request dart-lang/clock#220 from cbracken/dartformat_cleanups
cbracken Feb 5, 2015
e85c148
Update to new test package and new matcher.
zoechigist May 8, 2015
9eb27d5
Use Duration const constructor where possible (dart-lang/clock#316)
cbracken Nov 3, 2016
58bf42a
Apply dartfmt 0.2.11+1 (dart-lang/clock#327)
cbracken Nov 16, 2016
64838f0
Add isLeapYear, daysInMonth, clampDayOfMonth (dart-lang/clock#381)
cbracken Nov 1, 2017
c7818d1
Add initial files for the standalone release of clock
nex3 Mar 6, 2018
e39c78e
Merge branch 'quiver'
nex3 Mar 6, 2018
4a6a175
Get the code running
nex3 Mar 6, 2018
2a1552e
Style changes
nex3 Mar 6, 2018
9deed46
Code review
nex3 Mar 6, 2018
5dedb0d
Merge pull request dart-lang/clock#1 from dart-lang/improvements
nex3 Mar 6, 2018
19bcac5
Move the implementation of Clock to its own file
nex3 Mar 6, 2018
f94ceb5
Add a Zone-scoped clock field
nex3 Mar 6, 2018
b0c2595
Add features from the old clock package where possible
nex3 Mar 7, 2018
de3d7f2
Code review change
nex3 Mar 7, 2018
71cca22
Fix test failures
nex3 Mar 7, 2018
ef407f3
Fix const Clock() for Dart 1
nex3 Mar 7, 2018
60819cb
Merge pull request dart-lang/clock#2 from dart-lang/features
nex3 Mar 7, 2018
fad1a2e
Fix runtime Dart 2 errors in tests (dart-lang/clock#3)
nex3 May 1, 2018
71637de
Fix analysis issues (dart-lang/clock#4)
nex3 May 2, 2018
2161598
Fix to use lowercase Dart 2 core library constant names.
munificent Jul 13, 2018
c67d55d
Don't run Travis on stable.
munificent Jul 13, 2018
7573c7d
Merge pull request dart-lang/clock#6 from dart-lang/fix-dart-2
munificent Jul 13, 2018
9aa00f9
Fix travis (dart-lang/clock#7)
kevmoo Jul 16, 2018
30f57c9
Update .travis.yml (dart-lang/clock#9)
kevmoo Aug 14, 2018
25ebb7e
Minor README tidy for Dart 2. (dart-lang/clock#10)
wills Apr 24, 2019
396a986
Small tweaks to SDK constraint and travis (dart-lang/clock#11)
kevmoo Apr 24, 2019
6ea0a4c
Update package to pedantic 1.8.0 (dart-lang/clock#12)
keertip Oct 9, 2019
e93b513
Fix newly enforced package:pedantic lints (dart-lang/clock#13)
natebosch Dec 12, 2019
62940b2
Update for repo best practices (dart-lang/clock#14)
natebosch Dec 13, 2019
251826f
Merge null safety branch into master (dart-lang/clock#18)
jakemac53 Jul 22, 2020
ffa4951
CI: Test on dev branch (dart-lang/clock#19)
kevmoo Jul 23, 2020
e0ada7e
Remove unnecessary cast from clamp computation. (dart-lang/clock#21)
stereotype441 Aug 27, 2020
fb4964a
Remove unused dart:async import
MichaelRFairhurst Sep 21, 2020
59be24c
Merge pull request dart-lang/clock#22 from MichaelRFairhurst/remove-a…
MichaelRFairhurst Sep 22, 2020
ab3a25b
Prepare for the 2.11 dev SDKs (dart-lang/clock#23)
natebosch Sep 22, 2020
2a4876c
allow the 2.12 prerelease sdks (dart-lang/clock#24)
jakemac53 Oct 23, 2020
69b1008
Bump SDK constraints for pub (dart-lang/clock#25)
natebosch Nov 3, 2020
c86cc73
remove redundant experiment
pq Nov 11, 2020
20ba4ce
Merge pull request dart-lang/clock#26 from dart-lang/pq-patch-1
pq Nov 11, 2020
7f2d3d2
Migrate to GitHub Actions (dart-lang/clock#27)
athomas Dec 21, 2020
6a1e289
Prepare to publish stable null safety (dart-lang/clock#28)
natebosch Feb 2, 2021
faf0106
Fix formatting (dart-lang/clock#29)
kevmoo Mar 21, 2021
a0fc1b9
Update CI (dart-lang/clock#30)
kevmoo Apr 23, 2021
fd18bdd
Switch from homepage to repository in pubspec (dart-lang/clock#32)
devoncarew Apr 20, 2022
f149ad2
switch to package:lints
devoncarew May 12, 2022
e3e7d49
Merge pull request dart-lang/clock#33 from dart-lang/package_lints
devoncarew May 18, 2022
b76ed33
prep for publishing 1.1.1
devoncarew Jun 15, 2022
4b51611
Merge pull request dart-lang/clock#35 from dart-lang/prep_publish
devoncarew Jun 15, 2022
2854830
Update pubspec.yaml
devoncarew Jun 15, 2022
86f9714
Merge pull request dart-lang/clock#36 from dart-lang/devoncarew-patch-1
devoncarew Jun 15, 2022
c0f3b21
Update CONTRIBUTING.md
devoncarew Aug 29, 2022
70de92e
Merge pull request dart-lang/clock#38 from dart-lang/devoncarew-patch-1
devoncarew Aug 29, 2022
0900d8f
blast_repo fixes (dart-lang/clock#40)
kevmoo Nov 9, 2022
9aff124
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/clock#41)
dependabot[bot] Jan 3, 2023
49db8e4
Migrate from no-implicit-casts to strict-casts (dart-lang/clock#42)
srawlins Jan 10, 2023
b5a2c47
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/clock#44)
dependabot[bot] Feb 1, 2023
8cba5f4
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/clock#43)
dependabot[bot] Feb 1, 2023
ef00809
Require Dart 2.19, use and fix recommended lints (dart-lang/clock#46)
kevmoo Mar 15, 2023
de144fc
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/clock#48)
dependabot[bot] Apr 3, 2023
28db4f7
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/clock#47)
dependabot[bot] Apr 4, 2023
c53e768
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/clock#50)
dependabot[bot] May 8, 2023
41c2e55
blast_repo fixes (dart-lang/clock#51)
devoncarew May 15, 2023
1bc0ca7
Update formatting (dart-lang/clock#52)
kevmoo May 22, 2023
78b7e06
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/clock#54)
dependabot[bot] Jul 1, 2023
e2245ac
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/clock#55)
dependabot[bot] Sep 1, 2023
c6b3b49
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/clock#57)
dependabot[bot] Oct 1, 2023
83d6e62
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/clock#56)
dependabot[bot] Oct 1, 2023
7190d6b
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/clock#58)
dependabot[bot] Nov 1, 2023
5409334
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/clock#59)
dependabot[bot] Nov 1, 2023
b764346
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/clock#60)
dependabot[bot] Feb 1, 2024
71e2280
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/clock#61)
dependabot[bot] Apr 1, 2024
74e193b
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/clock#62)
dependabot[bot] May 1, 2024
fa60989
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/clock#63)
dependabot[bot] May 1, 2024
0cede1c
blast_repo fixes (dart-lang/clock#64)
devoncarew May 3, 2024
b49a03d
Bump actions/checkout from 4.1.4 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
5376a7d
Bump the github-actions group with 2 updates (dart-lang/clock#66)
dependabot[bot] Jul 1, 2024
946185c
blast_repo fixes (dart-lang/clock#67)
kevmoo Jul 8, 2024
31d3160
update lints (dart-lang/clock#68)
kevmoo Jul 8, 2024
08693ca
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
0a5c04c
Merge package:clock into the tools monorepo
mosuem Oct 25, 2024
55c5b2a
Add issue template and other fixes
mosuem Oct 25, 2024
aabc387
Moving fixes
mosuem Oct 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/clock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:clock"
about: "Create a bug or file a feature request against package:clock."
labels: "package:clock"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/cli_config/**'

'package:clock':
- changed-files:
- any-glob-to-any-file: 'pkgs/clock/**'

'package:coverage':
- changed-files:
- any-glob-to-any-file: 'pkgs/coverage/**'
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/clock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: package:clock

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/clock.yml'
- 'pkgs/clock/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/clock.yml'
- 'pkgs/clock/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/clock/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.4, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ don't naturally belong to other topic monorepos (like
| --- | --- | --- |
| [boolean_selector](pkgs/boolean_selector/) | A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax. | [![pub package](https://img.shields.io/pub/v/boolean_selector.svg)](https://pub.dev/packages/boolean_selector) |
| [cli_config](pkgs/cli_config/) | A library to take config values from configuration files, CLI arguments, and environment variables. | [![pub package](https://img.shields.io/pub/v/cli_config.svg)](https://pub.dev/packages/cli_config) |
| [clock](pkgs/clock/) | A fakeable wrapper for dart:core clock APIs. | [![pub package](https://img.shields.io/pub/v/clock.svg)](https://pub.dev/packages/clock) |
| [coverage](pkgs/coverage/) | Coverage data manipulation and formatting. | [![pub package](https://img.shields.io/pub/v/coverage.svg)](https://pub.dev/packages/coverage) |
| [extension_discovery](pkgs/extension_discovery/) | A convention and utilities for package extension discovery. | [![pub package](https://img.shields.io/pub/v/extension_discovery.svg)](https://pub.dev/packages/extension_discovery) |
| [file](pkgs/file/) | A pluggable, mockable file system abstraction for Dart. | [![pub package](https://img.shields.io/pub/v/file.svg)](https://pub.dev/packages/file) |
Expand Down
5 changes: 5 additions & 0 deletions pkgs/clock/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.packages
.pub/
.dart_tool/
build/
pubspec.lock
6 changes: 6 additions & 0 deletions pkgs/clock/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
52 changes: 52 additions & 0 deletions pkgs/clock/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## 1.1.2

* Require Dart 3.4
* Move to `dart-lang/tools` monorepo.

## 1.1.1

* Switch to using `package:lints`.
* Populate the pubspec `repository` field.

## 1.1.0

* Update SDK constraints to `>=2.12.0 <3.0.0`.
* Update to null safety.

## 1.0.1

* Update to lowercase Dart core library constants.

## 1.0.0

This release contains the `Clock` class that was defined in [`quiver`][]. It's
backwards-compatible with the `quiver` version, and *mostly*
backwards-compatible with the old version of the `clock` package.

[`quiver`]: https://pub.dartlang.org/packages/quiver

### New Features

* A top-level `clock` field has been added that provides a default `Clock`
implementation. It can be controlled by the `withClock()` function. It should
generally be used in preference to manual dependency-injection, since it will
work with the [`fake_async`][] package.

* A `Clock.stopwatch()` method has been added that creates a `Stopwatch` that
uses the clock as its source of time.

[`fake_async`]: https://pub.dartlang.org/packages/fake_async

### Changes Relative to `clock` 0.1

* The top-level `new` getter and `getStopwatch()` methods are deprecated.
`clock.new()` and `clock.stopwatch()` should be used instead.

* `Clock.getStopwatch()` is deprecated. `Clock.stopwatch()` should be used instead.

* The `isFinal` argument to `withClock()` is deprecated.

* `new Clock()` now takes an optional positional argument that returns the
current time as a `DateTime` instead of its old arguments.

* `Clock.now()` is now a method rather than a getter.
202 changes: 202 additions & 0 deletions pkgs/clock/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading
Loading