Skip to content

Commit

Permalink
v2.3.0 - unit tests and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Aug 15, 2020
1 parent 1b69482 commit b4afc31
Show file tree
Hide file tree
Showing 11 changed files with 2,658 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules
coverage
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
language: node_js

node_js:
- 10
- 11
- 12
- 13
- 14
- node

script:
- npm i
- npx eslint index.js
- npx eslint util/*
- npx eslint lib/data-router.js
- npx eslint test/*
- npm run test

after_success:
- npm run coveralls

deploy:
provider: npm
email: [email protected]
api_key:
secure: ezcBRHknIlHaUASW5KbW0sV04B5q7Gp+nR9FRax/2k8WDCAqLDqdFABsi32Mn2+Suq0q4c8Qtm0C9DeusxvdWlnvhFmJODd6G6jlgOrqVSAUdYMccvayvxUdltTJLGL7fGc4AMEYO+3b9NDHl6UiKPqNYsFxyPIkONXIDguTkSvq0phc5cPrkCxdfl1VpKIQkwWGlZRlxj9yAPqV+j3o6YdcWuISYwSLPKlHTZ1q/iSMPY/lWP7cyvUSb84RF3MoRxtze4V2DsA+ILPbhNzHOd0bfZiVzp7NffBHEw1mSasChie5PbacscXhLb7C4Sgz1I99cnVEnsgs3GruvvrsTK3X//oMHkMDZ19N8/V80zbYgJuP0OPoyWzSfTuhf2fKttOYFQOYVfztUhc9zRKP5uTAJB+j/dluFqCSl3F6jJBszFY2Gkr4ldj/6sBl3Ya94JVarc+XM06i1zMGtDAYHRRMIubGLqSv2zuueVZ0bzQOmuMg4KA/S3wKatL1CgfzZZyOT3xc/UCCvCnSNVDKqspGnbSRydW59c2qbeAemHYNfYgbEY2/DhrB8FXZLa2H/B9Z/lSjmgnvW78jICX+9CCyzOgjuv+GIiAsl3RNYAd1diFs+hwA2x7YSQL/OoO0maVBDvuec1onAvzSMV0myZTu74dFmX+uiTysjlzw2U8=
on:
tags: true
repo: Justintime50/dad
skip_cleanup: 'true'
24 changes: 16 additions & 8 deletions CHANGELOG → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,55 @@
=== v2.2.1 (2020-05-01)
# CHANGELOG

## v2.3.0 (2020-08-14)

* Added unit tests
* Added coveralls test coverage
* Added automated publishing workflow via Travis/tags

## v2.2.1 (2020-05-01)

* Fixed UK reference in data-router

=== v2.2.0 (2020-04-30)
## v2.2.0 (2020-04-30)

* Bug fixes
* Reference adjustments for GB -> UK addresses
* Updated docs to match changes and clarified state/area locations

=== v2.1.1 (2020-04-03)
## v2.1.1 (2020-04-03)

* Changed if/else statements for switch/case statements to better handle the large variable set
* Fixed address references introduced in v2.1.0
* Added better error handling surrounding invalid tags being passed

=== v2.1.0 (2020-04-02)
## v2.1.0 (2020-04-02)

* Added us-northeast, us-midwest, and us-south addresses
* Added Germany addresses
* Added Spain addresses

=== v2.0.1 (2020-04-01)
## v2.0.1 (2020-04-01)

* Corrected a few lingering zip codes that were integers instead of strings
* Corrected Australia country on each record
* Corrected README
* Replaced each GB address with a real one including valid zips
* Added 4 more China addresses to match the size of the other smaller lists

=== v2.0.0 (2020-03-31)
## v2.0.0 (2020-03-31)

* Added country to each address
* Validated addresses and corrected inaccurate items
* Made all entries strings to keep records uniform (breaking change)
* Changed all country codes to allow for tag reuse among international addresses - eg: CA = California, CA = Canada (breaking change)
* Added Australia, Canada, China, and Europian addresses

=== v1.0.2 (2020-03-30)
## v1.0.2 (2020-03-30)

* Bug fixes and docs updates
* Added Travis CI testing

=== v1.0.0 (2020-03-30)
## v1.0.0 (2020-03-30)

* Initial release
* Pull a random UT address from a list of 100
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Dummy Address Data (DAD) allows you to query a massive dataset for real addresses that are perfect for dummy data.

[![Build Status](https://travis-ci.com/justintime50/dad.svg?branch=master)](https://travis-ci.com/justintime50/dad)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
[![Coverage Status](https://coveralls.io/repos/github/Justintime50/dad/badge.svg?branch=master)](https://coveralls.io/github/Justintime50/dad?branch=master)
[![NPM](https://img.shields.io/npm/v/dad-tool)](https://www.npmjs.com/package/dad-tool)
[![Licence](https://img.shields.io/github/license/justintime50/dad)](https://opensource.org/licenses/mit-license.php)

## Install

Expand Down Expand Up @@ -81,6 +83,12 @@ node util/create-slim-json.js
npx eslint index.js
```

### Tests

```bash
npm run test
```

## Contributing

This data is very laborious to build - any contributions are welcome! Open a PR or issue with additions or fixes.
Expand Down
Loading

0 comments on commit b4afc31

Please sign in to comment.