diff --git a/CHANGELOG.md b/CHANGELOG.md index 59fd4c0..1790aec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C ## [Unreleased][unreleased] - +## [1.2.1] - 2019-03-27 +- Added `get_minor_units` method based on decimals of currency. +- Updated copyright to 2005-2019 Pronamic. + ## [1.2.0] - 2018-12-10 - Added a `get_cents` method. - Introduced a TaxedMoney class. diff --git a/composer.json b/composer.json index 8a9b82c..09aa68b 100644 --- a/composer.json +++ b/composer.json @@ -31,11 +31,11 @@ "phpcompatibility/phpcompatibility-wp": "^2.0", "phpmd/phpmd": "^2.4", "phpunit/phpunit": "^4.8", - "roots/wordpress": "^5.0", + "roots/wordpress": "^5.1", "squizlabs/php_codesniffer": "^2.9", "vlucas/phpdotenv": "^2.0", "wp-coding-standards/wpcs": "^1.2", - "wp-phpunit/wp-phpunit": "^5.0" + "wp-phpunit/wp-phpunit": "^5.1" }, "scripts": { "coveralls": "vendor/bin/coveralls -v", diff --git a/composer.lock b/composer.lock index ba56257..d67e9ac 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "404fcfe28be1e7061904e754d4a59f43", + "content-hash": "1c6d5b86a0c239671fbd370bc3b6f2f4", "packages": [], "packages-dev": [ { @@ -225,10 +225,10 @@ }, { "name": "koodimonni-language/de_de", - "version": "5.1", + "version": "5.1.1", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/core/5.1/de_DE.zip" + "url": "https://downloads.wordpress.org/translation/core/5.1.1/de_DE.zip" }, "require": { "koodimonni-plugin-language/akismet-de_de": "*", @@ -256,10 +256,10 @@ }, { "name": "koodimonni-language/fr_fr", - "version": "5.1", + "version": "5.1.1", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/core/5.1/fr_FR.zip" + "url": "https://downloads.wordpress.org/translation/core/5.1.1/fr_FR.zip" }, "require": { "koodimonni-plugin-language/akismet-fr_fr": "*", @@ -287,10 +287,10 @@ }, { "name": "koodimonni-language/nl_nl", - "version": "5.1", + "version": "5.1.1", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/core/5.1/nl_NL.zip" + "url": "https://downloads.wordpress.org/translation/core/5.1.1/nl_NL.zip" }, "require": { "koodimonni-plugin-language/akismet-nl_nl": "*", @@ -432,10 +432,10 @@ }, { "name": "koodimonni-plugin-language/woocommerce-de_de", - "version": "3.5.5", + "version": "3.5.7", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.5/de_DE.zip" + "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.7/de_DE.zip" }, "require": { "koodimonni/composer-dropin-installer": ">=0.2.3" @@ -451,10 +451,10 @@ }, { "name": "koodimonni-plugin-language/woocommerce-fr_fr", - "version": "3.5.5", + "version": "3.5.7", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.5/fr_FR.zip" + "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.7/fr_FR.zip" }, "require": { "koodimonni/composer-dropin-installer": ">=0.2.3" @@ -470,10 +470,10 @@ }, { "name": "koodimonni-plugin-language/woocommerce-nl_nl", - "version": "3.5.5", + "version": "3.5.7", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.5/nl_NL.zip" + "url": "https://downloads.wordpress.org/translation/plugin/woocommerce/3.5.7/nl_NL.zip" }, "require": { "koodimonni/composer-dropin-installer": ">=0.2.3" @@ -546,10 +546,10 @@ }, { "name": "koodimonni-theme-language/twentyeleven-de_de", - "version": "3.1", + "version": "3.2", "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/translation/theme/twentyeleven/3.1/de_DE.zip" + "url": "https://downloads.wordpress.org/translation/theme/twentyeleven/3.2/de_DE.zip" }, "require": { "koodimonni/composer-dropin-installer": ">=0.2.3" @@ -1795,6 +1795,7 @@ "mock", "xunit" ], + "abandoned": true, "time": "2015-10-02T06:51:40+00:00" }, { @@ -1846,15 +1847,16 @@ }, { "name": "roots/wordpress", - "version": "5.1", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress.git", - "reference": "5.1" + "reference": "5.1.1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress/zipball/5.1" + "url": "https://api.github.com/repos/WordPress/WordPress/zipball/5.1.1", + "reference": "5.1.1" }, "require": { "php": ">=5.3.2", @@ -1868,17 +1870,17 @@ "authors": [ { "name": "WordPress Community", - "homepage": "http://wordpress.org/about/" + "homepage": "https://wordpress.org/about/" } ], "description": "WordPress is web software you can use to create a beautiful website or blog.", - "homepage": "http://wordpress.org/", + "homepage": "https://wordpress.org/", "keywords": [ "blog", "cms", "wordpress" ], - "time": "2019-02-22T00:57:46+00:00" + "time": "2019-03-13T14:18:06+00:00" }, { "name": "roots/wordpress-core-installer", @@ -2856,7 +2858,7 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "5.1.0", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", diff --git a/languages/pronamic-money-nl_NL.mo b/languages/pronamic-money-nl_NL.mo index dd2e553..07ee6db 100644 Binary files a/languages/pronamic-money-nl_NL.mo and b/languages/pronamic-money-nl_NL.mo differ diff --git a/languages/pronamic-money-nl_NL.po b/languages/pronamic-money-nl_NL.po index d1d7c93..40c7311 100644 --- a/languages/pronamic-money-nl_NL.po +++ b/languages/pronamic-money-nl_NL.po @@ -3,9 +3,9 @@ msgid "" msgstr "" "Project-Id-Version: Pronamic Money 1.0.0\n" -"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pronamic-money\n" -"POT-Creation-Date: 2018-08-16 09:55:50+00:00\n" -"PO-Revision-Date: 2018-08-16 11:56+0100\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-money\n" +"POT-Creation-Date: 2019-03-27 15:35:10+00:00\n" +"PO-Revision-Date: 2019-03-27 16:35+0100\n" "Last-Translator: Remco Tolsma \n" "Language-Team: Pronamic \n" "Language: nl_NL\n" @@ -36,8 +36,8 @@ msgstr "Pronamic" msgid "https://www.pronamic.eu/" msgstr "https://www.pronamic.nl/" -#. translators: 1: currency symbol, 2: amount, 3: currency code, note: use -#. non-breaking space! +#. translators: 1: currency symbol, 2: amount value, 3: currency code, note: +#. use non-breaking space! #: src/Money.php:53 msgctxt "money format" msgid "%1$s%2$s %3$s" diff --git a/languages/pronamic-money.pot b/languages/pronamic-money.pot index 6e9a8d0..3923363 100644 --- a/languages/pronamic-money.pot +++ b/languages/pronamic-money.pot @@ -1,17 +1,17 @@ -# Copyright (C) 2018 Pronamic +# Copyright (C) 2019 Pronamic # This file is distributed under the GPL-3.0-or-later. msgid "" msgstr "" -"Project-Id-Version: Pronamic Money 1.1.0\n" -"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pronamic-money\n" -"POT-Creation-Date: 2018-08-16 09:55:50+00:00\n" +"Project-Id-Version: Pronamic Money 1.2.1\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-money\n" +"POT-Creation-Date: 2019-03-27 15:35:10+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"X-Generator: grunt-wp-i18n1.0.2\n" +"X-Generator: grunt-wp-i18n 1.0.3\n" #. Plugin Name of the plugin/theme msgid "Pronamic Money" @@ -34,8 +34,8 @@ msgid "https://www.pronamic.eu/" msgstr "" #: src/Money.php:53 -#. translators: 1: currency symbol, 2: amount, 3: currency code, note: use -#. non-breaking space! +#. translators: 1: currency symbol, 2: amount value, 3: currency code, note: +#. use non-breaking space! msgctxt "money format" msgid "%1$s%2$s %3$s" msgstr "" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e8a5b1d..ffb48e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wp-money", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -82,9 +82,9 @@ "dev": true }, "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", + "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==", "dev": true }, "brace-expansion": { @@ -97,12 +97,6 @@ "concat-map": "0.0.1" } }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, "cache-swap": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/cache-swap/-/cache-swap-0.3.0.tgz", @@ -143,9 +137,9 @@ } }, "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "^3.2.1", @@ -236,9 +230,9 @@ "dev": true }, "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, "eventemitter2": { @@ -306,13 +300,14 @@ "dev": true }, "gettext-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.3.1.tgz", - "integrity": "sha512-W4t55eB/c7WrH0gbCHFiHuaEnJ1WiPJVnbFFiNEoh2QkOmuSLxs0PmJDGAmCQuTJCU740Fmb6D+2D/2xECWZGQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-3.1.1.tgz", + "integrity": "sha512-vNhWcqXEtZPs5Ft1ReA34g7ByWotpcOIeJvXVy2jF3/G2U9v6W0wG4Z4hXzcU8R//jArqkgHcVCGgGqa4vxVlQ==", "dev": true, "requires": { "encoding": "^0.1.12", - "safe-buffer": "^5.1.1" + "readable-stream": "^3.2.0", + "safe-buffer": "^5.1.2" } }, "glob": { @@ -336,9 +331,9 @@ "dev": true }, "grunt": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.3.tgz", - "integrity": "sha512-/JzmZNPfKorlCrrmxWqQO4JVodO+DVd5XX4DkocL/1WlLlKVLE9+SdEIempOAxDhWPysLle6afvn/hg7Ck2k9g==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.4.tgz", + "integrity": "sha512-PYsMOrOC+MsdGEkFVwMaMyc6Ob7pKmq+deg1Sjr+vvMWp35sztfwKE7qoN51V+UEtHsyNuMcGdgMLFkBHvMxHQ==", "dev": true, "requires": { "coffeescript": "~1.10.0", @@ -352,7 +347,7 @@ "grunt-legacy-log": "~2.0.0", "grunt-legacy-util": "~1.1.1", "iconv-lite": "~0.4.13", - "js-yaml": "~3.5.2", + "js-yaml": "~3.13.0", "minimatch": "~3.0.2", "mkdirp": "~0.5.1", "nopt": "~3.0.6", @@ -372,13 +367,35 @@ "resolve": "~1.1.0" } }, + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + }, "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { - "glob": "^7.0.5" + "glob": "^7.1.3" + }, + "dependencies": { + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } } } } @@ -437,14 +454,6 @@ "requires": { "chalk": "~2.4.1", "lodash": "~4.17.10" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } } }, "grunt-legacy-util": { @@ -460,14 +469,6 @@ "lodash": "~4.17.10", "underscore.string": "~3.3.4", "which": "~1.3.0" - }, - "dependencies": { - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true - } } }, "grunt-phpcs": { @@ -754,63 +755,13 @@ "dev": true }, "grunt-wp-i18n": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/grunt-wp-i18n/-/grunt-wp-i18n-1.0.2.tgz", - "integrity": "sha512-s7DdR1wRYWvgeQOELL/s8AmWz0scVUq+h0yYVWvLx23kTXOBslvaD35NTvubyM+MO+k29bgND0gDDvS6sHixfg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/grunt-wp-i18n/-/grunt-wp-i18n-1.0.3.tgz", + "integrity": "sha512-CJNbEKeBeOSAPeaJ9B8iCgSwtaG63UR9/uT46a4OsIqnFhOJpeAi138JTlvjfIbnDVoBrzvdrKJe1svveLjUtA==", "dev": true, "requires": { - "grunt": "^1.0.2", - "node-wp-i18n": "^1.0.5" - }, - "dependencies": { - "grunt": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.3.tgz", - "integrity": "sha512-/JzmZNPfKorlCrrmxWqQO4JVodO+DVd5XX4DkocL/1WlLlKVLE9+SdEIempOAxDhWPysLle6afvn/hg7Ck2k9g==", - "dev": true, - "requires": { - "coffeescript": "~1.10.0", - "dateformat": "~1.0.12", - "eventemitter2": "~0.4.13", - "exit": "~0.1.1", - "findup-sync": "~0.3.0", - "glob": "~7.0.0", - "grunt-cli": "~1.2.0", - "grunt-known-options": "~1.1.0", - "grunt-legacy-log": "~2.0.0", - "grunt-legacy-util": "~1.1.1", - "iconv-lite": "~0.4.13", - "js-yaml": "~3.5.2", - "minimatch": "~3.0.2", - "mkdirp": "~0.5.1", - "nopt": "~3.0.6", - "path-is-absolute": "~1.0.0", - "rimraf": "~2.6.2" - }, - "dependencies": { - "grunt-cli": { - "version": "1.2.0", - "resolved": "http://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz", - "integrity": "sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg=", - "dev": true, - "requires": { - "findup-sync": "~0.3.0", - "grunt-known-options": "~1.1.0", - "nopt": "~3.0.6", - "resolve": "~1.1.0" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "requires": { - "glob": "^7.0.5" - } - } - } - } + "grunt": "^1.0.3", + "node-wp-i18n": "^1.2.2" } }, "has-color": { @@ -838,12 +789,12 @@ "dev": true }, "iconv-lite": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "safer-buffer": "^2.1.0" + "safer-buffer": ">= 2.1.2 < 3" } }, "indent-string": { @@ -877,15 +828,6 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, "is-finite": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", @@ -908,13 +850,13 @@ "dev": true }, "js-yaml": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz", - "integrity": "sha1-A3fDgBfKvHMisNH7zSWkkWQfL74=", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", + "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", "dev": true, "requires": { - "argparse": "^1.0.2", - "esprima": "^2.6.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "load-grunt-tasks": { @@ -961,9 +903,9 @@ } }, "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "loud-rejection": { @@ -1051,13 +993,13 @@ } }, "node-wp-i18n": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/node-wp-i18n/-/node-wp-i18n-1.1.1.tgz", - "integrity": "sha512-SI3+vhddQDBh2pkOowqPdXs/YN/bRnNvR4gDmcSJaQ4P+z8jSuPRZTFFClaD/fVv0AG0zY/ku07oQuayr844Mg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/node-wp-i18n/-/node-wp-i18n-1.2.3.tgz", + "integrity": "sha512-YMzMcsjXbGYDB9vHyb289CYXAGmXhcNLbeTlOnWgPNkZd9xrovcbRd7cQyKd9BQHOjS7Nw8WCbJ7nvtR7rc0rg==", "dev": true, "requires": { "bluebird": "^3.4.1", - "gettext-parser": "^1.2.0", + "gettext-parser": "^3.1.0", "glob": "^7.0.5", "lodash": "^4.14.2", "minimist": "^1.2.0", @@ -1075,13 +1017,13 @@ } }, "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, "requires": { "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", + "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" } @@ -1161,6 +1103,12 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, "path-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", @@ -1234,6 +1182,17 @@ "read-pkg": "^1.0.0" } }, + "readable-stream": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.2.0.tgz", + "integrity": "sha512-RV20kLjdmpZuTF1INEb9IA3L68Nmi+Ri7ppZqo78wj//Pn62fCoJyV9zalccNzDD/OuJpMG4f+pfMl8+L6QdGw==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, "redent": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", @@ -1254,10 +1213,13 @@ } }, "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", + "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } }, "resolve-from": { "version": "2.0.0", @@ -1281,9 +1243,9 @@ "dev": true }, "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, "safer-buffer": { @@ -1293,9 +1255,9 @@ "dev": true }, "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", "dev": true }, "sigmund": { @@ -1311,9 +1273,9 @@ "dev": true }, "spdx-correct": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", - "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -1337,17 +1299,26 @@ } }, "spdx-license-ids": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.2.tgz", - "integrity": "sha512-qky9CVt0lVIECkEsYbNILVnPvycuEBkXoMFLRWsREkomQLevYhtRKC+R91a5TOAQ3bCMjikRwhyaRqj1VYatYg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz", + "integrity": "sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==", "dev": true }, "sprintf-js": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.1.tgz", - "integrity": "sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", "dev": true }, + "string_decoder": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", + "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, "strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", diff --git a/package.json b/package.json index 00db5a3..6a45b60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-money", - "version": "1.2.0", + "version": "1.2.1", "description": "WordPress Money library.", "repository": { "type": "git", @@ -19,12 +19,12 @@ }, "homepage": "https://github.com/pronamic/wp-money#readme", "devDependencies": { - "grunt": "^1.0.3", + "grunt": "^1.0.4", "grunt-checktextdomain": "^1.0.1", "grunt-phpcs": "^0.4.0", "grunt-phplint": "0.1.0", "grunt-phpunit": "^0.3.6", - "grunt-wp-i18n": "^1.0.2", + "grunt-wp-i18n": "^1.0.3", "load-grunt-tasks": "^4.0.0" } } diff --git a/pronamic-money.php b/pronamic-money.php index 5e5b9fd..52ba67a 100644 --- a/pronamic-money.php +++ b/pronamic-money.php @@ -4,7 +4,7 @@ * Plugin URI: https://www.pronamic.eu/plugins/pronamic-money/ * Description: WordPress Money library. * - * Version: 1.2.0 + * Version: 1.2.1 * Requires at least: 4.7 * * Author: Pronamic diff --git a/src/Currencies.php b/src/Currencies.php index 1044ecf..a22c99d 100644 --- a/src/Currencies.php +++ b/src/Currencies.php @@ -16,7 +16,7 @@ * @link https://github.com/moneyphp/money/blob/v3.1.3/resources/currency.php * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.0.0 */ class Currencies { diff --git a/src/Currency.php b/src/Currency.php index 21364c4..9208654 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -14,7 +14,7 @@ * Currency * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.0.0 */ class Currency { diff --git a/src/Money.php b/src/Money.php index 59aa9e9..bcdaccf 100644 --- a/src/Money.php +++ b/src/Money.php @@ -14,7 +14,7 @@ * Money * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.0.0 */ class Money { @@ -120,6 +120,8 @@ public function get_cents() { * BHD 3 decimals: 10000 * NLG 4 decimals: 100000 * + * @since 1.2.1 + * * @return int */ public function get_minor_units() { diff --git a/src/Parser.php b/src/Parser.php index 15b0e96..3e4d408 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -14,7 +14,7 @@ * Parser * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.1.0 */ class Parser { diff --git a/src/TaxedMoney.php b/src/TaxedMoney.php index a93b864..ee34c2c 100644 --- a/src/TaxedMoney.php +++ b/src/TaxedMoney.php @@ -14,7 +14,7 @@ * Taxed Money * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.2.0 */ class TaxedMoney extends Money { diff --git a/tests/src/MoneyTest.php b/tests/src/MoneyTest.php index d4e3b3e..f47b468 100644 --- a/tests/src/MoneyTest.php +++ b/tests/src/MoneyTest.php @@ -17,7 +17,7 @@ * Money * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.0.0 */ class MoneyTest extends WP_UnitTestCase { @@ -169,6 +169,8 @@ public function test_cents() { /** * Test minor units. * + * @since 1.2.1 + * * @dataProvider minor_units_provider * * @param string $currency Currency. @@ -183,6 +185,8 @@ public function test_minor_units( $currency, $expected ) { /** * Minor units provider. * + * @since 1.2.1 + * * @return array */ public function minor_units_provider() { diff --git a/tests/src/ParserTest.php b/tests/src/ParserTest.php index d51522b..f39315b 100644 --- a/tests/src/ParserTest.php +++ b/tests/src/ParserTest.php @@ -16,7 +16,7 @@ * Parser * * @author Remco Tolsma - * @version 1.2.0 + * @version 1.2.1 * @since 1.1.0 */ class ParserTest extends WP_UnitTestCase {