Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Coveralls #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 0 additions & 14 deletions .codeclimate.yml

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: node_js
node_js:
- "10"
script: "gulp coverage"
notifications:
email: false
after_success:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < coverage/lcov.info
# Upload to coveralls, but don't _fail_ if coveralls is down.
- cat coverage/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed"
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### [3.0.1](https://github.com/jmeas/moment-business/releases/tag/v3.0.1)
### [3.0.1](https://github.com/jamesplease/moment-business/releases/tag/v3.0.1)

- Fix the name of the library in non-module loader browser environments.
Previously, the library was attached as `window.none`. Now it is available
under `window.momentBusiness`. Note that this issue does not affect users
building with ES2015/CommonJS/AMD module bundlers.

### [3.0.0](https://github.com/jmeas/moment-business/releases/tag/v3.0.0)
### [3.0.0](https://github.com/jamesplease/moment-business/releases/tag/v3.0.0)

- The functions in this library now accept moments as arguments rather than
being attached to the Moment prototype.
Expand All @@ -14,32 +14,32 @@
`startMoment`, then the result will be negative.
- Better docs!

### [2.0.0](https://github.com/jmeas/moment-business/releases/tag/v2.0.0)
### [2.0.0](https://github.com/jamesplease/moment-business/releases/tag/v2.0.0)

The API is now more consistent.

- Rename `isWorkDay` to `isWeekDay`
- Rename `addWorkDays` to `addWeekDays`
- Rename `subtractWorkDays` to `subtractWeekDays`

### [1.1.1](https://github.com/jmeas/moment-business/releases/tag/v1.1.1)
### [1.1.1](https://github.com/jamesplease/moment-business/releases/tag/v1.1.1)

- Add dependencies to `bower.json`
- Support invalid values when adding or subtracting work days (it returns the same moment)
- Add this CHANGELOG file

### [1.1.0](https://github.com/jmeas/moment-business/releases/tag/v1.1.0)
### [1.1.0](https://github.com/jamesplease/moment-business/releases/tag/v1.1.0)

- Two new methods: `isWeekendDay` and `isWorkDay`

### [1.0.2](https://github.com/jmeas/moment-business/releases/tag/v1.0.2)
### [1.0.2](https://github.com/jamesplease/moment-business/releases/tag/v1.0.2)

- Removes the wrapper file altogether

### [1.0.1](https://github.com/jmeas/moment-business/releases/tag/v1.0.1)
### [1.0.1](https://github.com/jamesplease/moment-business/releases/tag/v1.0.1)

- Fixes an issue with the UMD wrapper

### [1.0.0](https://github.com/jmeas/moment-business/releases/tag/v1.0.0)
### [1.0.0](https://github.com/jamesplease/moment-business/releases/tag/v1.0.0)

First major release.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# moment-business
[![Travis build status](http://img.shields.io/travis/jamesplease/moment-business.svg?style=flat)](https://travis-ci.org/jamesplease/moment-business)
[![Test Coverage](https://codeclimate.com/github/jmeas/moment-business/badges/coverage.svg)](https://codeclimate.com/github/jmeas/moment-business)
[![Test Coverage](https://coveralls.io/repos/github/jamesplease/moment-business/badge.svg?branch=master)](https://coveralls.io/github/jamesplease/moment-business?branch=master)
[![Dependency Status](https://david-dm.org/jamesplease/moment-business.svg)](https://david-dm.org/jamesplease/moment-business)

Utilities for working with week days and weekend days in Moment. It assumes a Western
workweek, in which weekends are Saturday and Sunday.

*Looking for a vanilla JS version of this library? Check out
[bizniz.js](https://github.com/jmeas/bizniz.js)*
[bizniz.js](https://github.com/jamesplease/bizniz.js)*

### Motivation

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "moment-business",
"version": "3.0.1",
"homepage": "https://github.com/jmeas/moment-business",
"homepage": "https://github.com/jamesplease/moment-business",
"authors": [
"Jmeas <jellyes2@gmail.com>"
"James Please <jamesplease2@gmail.com>"
],
"description": "Methods to work with week days and weekends in moment.",
"main": "dist/moment-business.js",
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/jmeas/moment-business.git"
"url": "https://github.com/jamesplease/moment-business.git"
},
"keywords": [
"moment",
Expand All @@ -22,17 +22,18 @@
"weekend",
"weekends"
],
"author": "Jmeas",
"author": "James Please",
"license": "MIT",
"bugs": {
"url": "https://github.com/jmeas/moment-business/issues"
"url": "https://github.com/jamesplease/moment-business/issues"
},
"homepage": "https://github.com/jmeas/moment-business",
"homepage": "https://github.com/jamesplease/moment-business",
"devDependencies": {
"6to5": "^3.3.3",
"6to5ify": "^4.1.1",
"browserify": "^8.1.1",
"chai": "^1.10.0",
"coveralls": "^3.0.1",
"del": "^1.1.1",
"esperanto": "^0.6.7",
"glob": "^4.3.5",
Expand Down