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

Adds pad for adding zero padding to a number. #514

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b792755
Adds pad for adding zero padding to a number.
jfrux Oct 11, 2018
0bfb215
Updates README.
jfrux Oct 11, 2018
cfed5bb
Fixes readme.
jfrux Oct 11, 2018
a0b4dc9
Updates Readme
jfrux Oct 11, 2018
c9e40b6
Add notEmpty macro (#512)
dnahodil Oct 19, 2018
75161ff
alphabetize change
Oct 19, 2018
d0d7245
Update dependency ember-cli-inject-live-reload to v2 (#515)
renovate[bot] Oct 19, 2018
acffdc8
Update dependency ember-source to ~3.5.0 (#511)
renovate[bot] Oct 19, 2018
a83f184
Update dependency ember-cli-babel to v7 (#509)
renovate[bot] Oct 19, 2018
0756369
update ember-cli 3.4 (#517)
Oct 19, 2018
0dc9e10
use npm 6
Oct 19, 2018
82fac14
Update dependency @ember/optional-features to ^0.7.0
renovate-bot Oct 19, 2018
8bc9486
Add missing boolean operations (#516)
dnahodil Oct 21, 2018
b1d6001
3.1.0
Oct 21, 2018
bb1c47b
update changelog
Oct 22, 2018
98e8286
Update dependency eslint-plugin-node to v8
renovate-bot Oct 27, 2018
5ec6555
Update dependency ember-load-initializers to v2
renovate-bot Oct 29, 2018
11cc571
Update dependency ember-cli-eslint to v5
renovate-bot Nov 9, 2018
467b144
Update dependency ember-sinon to v3
renovate-bot Nov 9, 2018
d6c3009
remove ember-macro-test-helpers
Nov 14, 2018
d6ec8ba
TravisCI: Remove deprecated `sudo: false` option
Turbo87 Dec 2, 2018
acf6ebb
update eslint-plugin-ember
Dec 2, 2018
52b3605
update ember-cli 3.5
Dec 2, 2018
261ec33
Update dependency ember-qunit to v4
renovate-bot Dec 2, 2018
fac9f54
Update dependency ember-source to ~3.6.0
renovate-bot Dec 7, 2018
6edc7c2
update ember-cli 3.6
Dec 31, 2018
1596ddd
Update dependency ember-source to ~3.7.0
renovate-bot Jan 7, 2019
0d170e7
ember-cli 3.7
Feb 2, 2019
48c3a8c
revert babel 7
Feb 14, 2019
67bf899
3.2.0
Feb 14, 2019
4351905
Revert "revert babel 7"
Feb 14, 2019
22d24c6
Update dependency ember-macro-helpers to v3
renovate-bot Feb 13, 2019
90cc540
4.0.0
Feb 14, 2019
0c45aad
update changelog
Feb 14, 2019
6e1e71f
Update dependency ember-source to ~3.8.0
renovate-bot Feb 18, 2019
5511f6c
Update dependency renovate-config-standard to v2
renovate-bot Mar 2, 2019
32c841b
fix eslint
Mar 8, 2019
f7ae3da
ember-cli-update
Mar 8, 2019
543d545
Update dependency eslint-config-sane to ^0.7.0
renovate-bot Mar 8, 2019
f78b7ca
Lock file maintenance
renovate-bot Apr 1, 2019
0a8a1a4
Update dependency ember-source to ~3.9.0
renovate-bot Apr 2, 2019
3937213
Fix isEmpty doc
ctjhoa Apr 19, 2019
102da9a
ember-cli-update
May 27, 2019
81bac65
Update dependency ember-sinon to v4
renovate-bot May 27, 2019
fbaf1a0
Update dependency ember-source-channel-url to v2
renovate-bot May 27, 2019
8c64ba1
Update dependency ember-try to v1
renovate-bot May 27, 2019
992f6e3
Lock file maintenance
renovate-bot May 27, 2019
de87424
5.0.0
May 27, 2019
d720d43
Lock file maintenance
renovate-bot Jun 1, 2019
7a01d15
Update dependency qunit-dom to ^0.9.0
renovate-bot Jun 14, 2019
b1de6ab
Update dependency ember-source to ~3.11.0
renovate-bot Jun 25, 2019
79a626f
Update dependency eslint-config-sane to ^0.8.0
renovate-bot Jul 21, 2019
6d6e158
update ember-cli
Jul 21, 2019
5549612
update changelog
Jul 23, 2019
e259590
Version bump to include bug fix: https://github.com/kellyselden/ember…
amyrlam Jul 28, 2019
2fa5f97
5.0.1
Jul 28, 2019
57158a8
Lock file maintenance
renovate-bot Aug 1, 2019
0d933a4
Update dependency ember-source to ~3.12.0
renovate-bot Aug 6, 2019
3700716
Update dependency ember-cli to ~3.12.0
renovate-bot Aug 16, 2019
1ced82f
Lock file maintenance
renovate-bot Sep 1, 2019
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
7 changes: 4 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
Expand All @@ -21,6 +21,8 @@ module.exports = {
// node files
{
files: [
'.eslintrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'index.js',
'testem.js',
Expand All @@ -35,8 +37,7 @@ module.exports = {
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
sourceType: 'script'
},
env: {
browser: false,
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/node_modules/

# misc
/.env*
/.pnp*
/.sass-cache
/connect.lock
/coverage/
Expand Down
47 changes: 28 additions & 19 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
/bower_components
# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.env*
/.eslintignore
/.eslintrc.js
/.gitignore
/.template-lintrc.js
/.travis.yml
/.watchmanconfig
/bower.json
/config/ember-try.js
/dist
/tests
/tmp
**/.gitkeep
.bowerrc
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.watchmanconfig
.travis.yml
bower.json
ember-cli-build.js
testem.js
yarn.lock
/CONTRIBUTING.md
/ember-cli-build.js
/testem.js
/tests/
/yarn.lock
.gitkeep

# ember-try
.node_modules.ember-try/
bower.json.ember-try
package.json.ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
5 changes: 5 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
extends: 'recommended'
};
64 changes: 32 additions & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@ language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "6"

sudo: false
- "8"

addons:
firefox: latest

branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+$/
- /^greenkeeper\/.*$/

cache:
directories:
- $HOME/.npm
Expand All @@ -25,23 +16,40 @@ env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
matrix:
# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-lts-2.12
- EMBER_TRY_SCENARIO=ember-lts-2.16
- EMBER_TRY_SCENARIO=ember-lts-2.18
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
- EMBER_TRY_SCENARIO=ember-default

matrix:
fast_finish: true
branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+/

jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

include:
- stage: Deploy
# runs linting and tests with current locked deps

- stage: "Tests"
name: "Tests"
script:
- npm run lint:hbs
- npm run lint:js
- npm test

# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: "Additional Tests"
env: EMBER_TRY_SCENARIO=ember-lts-3.4
- env: EMBER_TRY_SCENARIO=ember-lts-3.8
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

- stage: "Deploy"
name: "Deploy"
addons: ignore
cache: ignore
env: ignore
Expand All @@ -57,13 +65,5 @@ matrix:
tags: true
repo: kellyselden/ember-awesome-macros

before_install:
- npm config set spin false
- npm install -g npm@5
- npm --version

script:
- npm run lint:js
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
93 changes: 93 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,98 @@
# Change Log

## [Unreleased](https://github.com/kellyselden/ember-awesome-macros/tree/HEAD)

[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v5.0.0...HEAD)

**Closed issues:**

- raw\(\) is screwed up on ember-canary [\#546](https://github.com/kellyselden/ember-awesome-macros/issues/546)
- upgrading to 0.41.0 results in TypeError: args.slice is not a function [\#448](https://github.com/kellyselden/ember-awesome-macros/issues/448)

**Merged pull requests:**

- update ember-cli [\#564](https://github.com/kellyselden/ember-awesome-macros/pull/564) ([kellyselden](https://github.com/kellyselden))
- Update dependency eslint-config-sane to ^0.8.0 [\#562](https://github.com/kellyselden/ember-awesome-macros/pull/562) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-source to ~3.11.0 [\#560](https://github.com/kellyselden/ember-awesome-macros/pull/560) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency qunit-dom to ^0.9.0 [\#559](https://github.com/kellyselden/ember-awesome-macros/pull/559) ([renovate[bot]](https://github.com/apps/renovate))
- Lock file maintenance [\#558](https://github.com/kellyselden/ember-awesome-macros/pull/558) ([renovate[bot]](https://github.com/apps/renovate))

## [v5.0.0](https://github.com/kellyselden/ember-awesome-macros/tree/v5.0.0) (2019-05-27)
[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v4.0.0...v5.0.0)

**Merged pull requests:**

- ember-cli-update [\#557](https://github.com/kellyselden/ember-awesome-macros/pull/557) ([kellyselden](https://github.com/kellyselden))
- Update dependency ember-sinon to v4 [\#555](https://github.com/kellyselden/ember-awesome-macros/pull/555) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-source-channel-url to v2 [\#554](https://github.com/kellyselden/ember-awesome-macros/pull/554) ([renovate[bot]](https://github.com/apps/renovate))
- Lock file maintenance [\#551](https://github.com/kellyselden/ember-awesome-macros/pull/551) ([renovate[bot]](https://github.com/apps/renovate))
- Fix isEmpty doc [\#550](https://github.com/kellyselden/ember-awesome-macros/pull/550) ([ctjhoa](https://github.com/ctjhoa))
- Update dependency ember-source to ~3.9.0 [\#548](https://github.com/kellyselden/ember-awesome-macros/pull/548) ([renovate[bot]](https://github.com/apps/renovate))
- Lock file maintenance [\#547](https://github.com/kellyselden/ember-awesome-macros/pull/547) ([renovate[bot]](https://github.com/apps/renovate))
- ember-cli-update [\#545](https://github.com/kellyselden/ember-awesome-macros/pull/545) ([kellyselden](https://github.com/kellyselden))
- Update dependency renovate-config-standard to v2 [\#544](https://github.com/kellyselden/ember-awesome-macros/pull/544) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-source to ~3.8.0 [\#542](https://github.com/kellyselden/ember-awesome-macros/pull/542) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency eslint-config-sane to ^0.7.0 [\#541](https://github.com/kellyselden/ember-awesome-macros/pull/541) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-try to v1 [\#504](https://github.com/kellyselden/ember-awesome-macros/pull/504) ([renovate[bot]](https://github.com/apps/renovate))

## [v4.0.0](https://github.com/kellyselden/ember-awesome-macros/tree/v4.0.0) (2019-02-14)
[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v3.2.0...v4.0.0)

**Merged pull requests:**

- Revert "revert babel 7" [\#540](https://github.com/kellyselden/ember-awesome-macros/pull/540) ([kellyselden](https://github.com/kellyselden))

## [v3.2.0](https://github.com/kellyselden/ember-awesome-macros/tree/v3.2.0) (2019-02-14)
[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v3.1.0...v3.2.0)

**Implemented enhancements:**

- add notEmpty macro [\#241](https://github.com/kellyselden/ember-awesome-macros/issues/241)

**Closed issues:**

- Add innerText macro [\#533](https://github.com/kellyselden/ember-awesome-macros/issues/533)

**Merged pull requests:**

- revert babel 7 [\#539](https://github.com/kellyselden/ember-awesome-macros/pull/539) ([kellyselden](https://github.com/kellyselden))
- Update dependency ember-macro-helpers to v3 [\#538](https://github.com/kellyselden/ember-awesome-macros/pull/538) ([renovate[bot]](https://github.com/apps/renovate))
- ember-cli 3.7 [\#537](https://github.com/kellyselden/ember-awesome-macros/pull/537) ([kellyselden](https://github.com/kellyselden))
- Update dependency ember-source to ~3.7.0 [\#535](https://github.com/kellyselden/ember-awesome-macros/pull/535) ([renovate[bot]](https://github.com/apps/renovate))
- update ember-cli 3.6 [\#534](https://github.com/kellyselden/ember-awesome-macros/pull/534) ([kellyselden](https://github.com/kellyselden))
- Update dependency ember-source to ~3.6.0 [\#531](https://github.com/kellyselden/ember-awesome-macros/pull/531) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-qunit to v4 [\#530](https://github.com/kellyselden/ember-awesome-macros/pull/530) ([renovate[bot]](https://github.com/apps/renovate))
- update ember-cli 3.5 [\#529](https://github.com/kellyselden/ember-awesome-macros/pull/529) ([kellyselden](https://github.com/kellyselden))
- update eslint-plugin-ember [\#528](https://github.com/kellyselden/ember-awesome-macros/pull/528) ([kellyselden](https://github.com/kellyselden))
- TravisCI: Remove deprecated `sudo: false` option [\#527](https://github.com/kellyselden/ember-awesome-macros/pull/527) ([Turbo87](https://github.com/Turbo87))
- remove ember-macro-test-helpers [\#525](https://github.com/kellyselden/ember-awesome-macros/pull/525) ([kellyselden](https://github.com/kellyselden))
- Update dependency ember-sinon to v3 [\#524](https://github.com/kellyselden/ember-awesome-macros/pull/524) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-cli-eslint to v5 [\#523](https://github.com/kellyselden/ember-awesome-macros/pull/523) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-load-initializers to v2 [\#522](https://github.com/kellyselden/ember-awesome-macros/pull/522) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency eslint-plugin-node to v8 [\#521](https://github.com/kellyselden/ember-awesome-macros/pull/521) ([renovate[bot]](https://github.com/apps/renovate))

## [v3.1.0](https://github.com/kellyselden/ember-awesome-macros/tree/v3.1.0) (2018-10-21)
[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v3.0.0...v3.1.0)

**Closed issues:**

- array.findBy returning an array? [\#520](https://github.com/kellyselden/ember-awesome-macros/issues/520)
- add `nor` and other bool ops [\#446](https://github.com/kellyselden/ember-awesome-macros/issues/446)

**Merged pull requests:**

- use npm 6 [\#519](https://github.com/kellyselden/ember-awesome-macros/pull/519) ([kellyselden](https://github.com/kellyselden))
- Update dependency @ember/optional-features to ^0.7.0 [\#518](https://github.com/kellyselden/ember-awesome-macros/pull/518) ([renovate[bot]](https://github.com/apps/renovate))
- update ember-cli 3.4 [\#517](https://github.com/kellyselden/ember-awesome-macros/pull/517) ([kellyselden](https://github.com/kellyselden))
- Add missing boolean operations [\#516](https://github.com/kellyselden/ember-awesome-macros/pull/516) ([dnahodil](https://github.com/dnahodil))
- Update dependency ember-cli-inject-live-reload to v2 [\#515](https://github.com/kellyselden/ember-awesome-macros/pull/515) ([renovate[bot]](https://github.com/apps/renovate))
- Add notEmpty macro [\#512](https://github.com/kellyselden/ember-awesome-macros/pull/512) ([dnahodil](https://github.com/dnahodil))
- Update dependency ember-source to ~3.5.0 [\#511](https://github.com/kellyselden/ember-awesome-macros/pull/511) ([renovate[bot]](https://github.com/apps/renovate))
- fix typo in readme [\#510](https://github.com/kellyselden/ember-awesome-macros/pull/510) ([guskou](https://github.com/guskou))
- Update dependency ember-cli-babel to v7 [\#509](https://github.com/kellyselden/ember-awesome-macros/pull/509) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency qunit-dom to ^0.8.0 [\#507](https://github.com/kellyselden/ember-awesome-macros/pull/507) ([renovate[bot]](https://github.com/apps/renovate))
- Update dependency ember-source to ~3.4.0 [\#502](https://github.com/kellyselden/ember-awesome-macros/pull/502) ([renovate[bot]](https://github.com/apps/renovate))

## [v3.0.0](https://github.com/kellyselden/ember-awesome-macros/tree/v3.0.0) (2018-08-09)
[Full Changelog](https://github.com/kellyselden/ember-awesome-macros/compare/v2.0.0...v3.0.0)

Expand Down
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# How To Contribute

## Installation

* `git clone <repository-url>`
* `cd ember-awesome-macros`
* `npm install`

## Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`

## Running tests

* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions

## Running the dummy application

* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2018
Copyright (c) 2016-2019

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
Loading