Commit Graph

514 Commits

Author SHA1 Message Date
Hannah Wolfe
4c44257115 Merge pull request #6860 from kirrg001/timezones-support-permalinks
Timezones + support permalinks
2016-05-28 17:19:14 +01:00
greenkeeperio-bot
82752ffdcc chore(package): update validator to version 5.3.0
https://greenkeeper.io/
2016-05-28 02:52:16 +01:00
Hannah Wolfe
fc926b840d Merge pull request #6896 from TryGhost/greenkeeper-intl-1.2.4
Update intl to version 1.2.4 🚀
2016-05-27 19:29:31 +01:00
greenkeeperio-bot
c60a3f8005 chore(package): update intl to version 1.2.4
https://greenkeeper.io/
2016-05-27 17:11:35 +01:00
greenkeeperio-bot
94bad4eca5 chore(package): update mocha to version 2.5.3
https://greenkeeper.io/
2016-05-27 17:11:35 +01:00
greenkeeperio-bot
da48c3637d chore(package): update top-gh-contribs to version 2.0.4
https://greenkeeper.io/
2016-05-27 16:40:15 +01:00
greenkeeperio-bot
94b1e1d952 chore(package): update grunt-contrib-compress to version 1.3.0
https://greenkeeper.io/
2016-05-24 18:53:54 +01:00
greenkeeperio-bot
4101e922e9 chore(package): update mocha to version 2.5.2
https://greenkeeper.io/
2016-05-24 11:37:23 +01:00
greenkeeperio-bot
8eb7c7403b chore(package): update mocha to version 2.5.1
https://greenkeeper.io/
2016-05-23 10:47:22 +01:00
greenkeeperio-bot
66529ea2af chore(package): update should to version 8.4.0
https://greenkeeper.io/
2016-05-21 12:35:28 +01:00
greenkeeperio-bot
8c24068db4 chore(package): update intl to version 1.2.3
https://greenkeeper.io/
2016-05-21 00:30:26 +01:00
greenkeeperio-bot
7ea9da919c chore(package): update oauth2orize to version 1.3.0
https://greenkeeper.io/
2016-05-20 21:11:28 +01:00
Hannah Wolfe
9078113911 Merge pull request #6835 from TryGhost/greenkeeper-jsonpath-0.2.3
Update jsonpath to version 0.2.3 🚀
2016-05-20 21:11:14 +01:00
Hannah Wolfe
1707c0c6ff Merge pull request #6837 from TryGhost/greenkeeper-sqlite3-3.1.4
Update sqlite3 to version 3.1.4 🚀
2016-05-20 21:11:08 +01:00
greenkeeperio-bot
0776d4e6e0 chore(package): update jsonpath to version 0.2.3
https://greenkeeper.io/
2016-05-20 21:09:49 +01:00
greenkeeperio-bot
5ca641a98d chore(package): update sqlite3 to version 3.1.4
https://greenkeeper.io/
2016-05-20 21:09:49 +01:00
greenkeeperio-bot
912a4aa83b chore(package): update intl to version 1.2.2
https://greenkeeper.io/
2016-05-20 21:09:49 +01:00
greenkeeperio-bot
f5d34d2ae1 chore(package): update should to version 8.3.2
https://greenkeeper.io/
2016-05-20 21:08:38 +01:00
greenkeeperio-bot
cd54e54070 chore(package): update bluebird to version 3.4.0
https://greenkeeper.io/
2016-05-20 21:07:15 +01:00
Aileen Nowak
38a261daac timezones: Always use the timezone of blog setting
closes #6406
- adding timeZone Service to get the offset (=timezone reg. moment-timezone) overall available
- new publishedAtOffset date as CP using timeZone service and moment-timezone to calculate offset incl. DST
- removing timezone-obj transform as it became obsolete with moment-timezone
- reading timezones from configuration/timezones api endpoint
- adding a moment-utc transform to only work with utc times in backend
- when switching the timezone in the select box, the user will be shown the local time of the selected timezone
- added clock service to show actual time ticking below select box
- default timezone is '(GMT) Greenwich Mean Time : Dublin, Edinburgh, London'
- if no timezone is saved in the settings yet, the default value will be used
- showing local time in 'Publish Date' when it's a draft and no actual publishedAt value exists
- Removed the format 'DD MMM YY @ HH:mm (UTC Z)' which resolves to '01 Jan 16 @ 14:00 (UTC +02:00)'
- Changing the date.js helper in core/server for moment-timezone
- Fix timezone select: updates `selectedTimezone` to return the matching object from `availableTimezones`
- Including timezones in test for date-helper
- update to moment-timezone 0.5.1
- moving form-group of 'selectTimezone' further up so
- Tests:
	- Set except for clock service in test env
	- adding fixtures to mirage
	- adding 'service.ajax' to navigation-test.js
	- adding 'service:ghostPaths' to navigation-test.js
- Code improvements
- Changing clockservice to ES6
2016-05-20 13:59:45 +02:00
greenkeeperio-bot
0167efcc33 chore(package): update compression to version 1.6.2
https://greenkeeper.io/
2016-05-20 11:34:19 +01:00
greenkeeperio-bot
7f465ea57a chore(package): update bookshelf to version 0.9.5
https://greenkeeper.io/
2016-05-20 10:54:18 +01:00
Hannah Wolfe
d7c2376f1a Merge pull request #6815 from TryGhost/greenkeeper-lodash.tostring-4.1.3
Update lodash.tostring to version 4.1.3 🚀
2016-05-20 10:54:05 +01:00
Hannah Wolfe
72c6cf7f93 Version bump to 0.8.0 2016-05-18 22:28:23 +01:00
greenkeeperio-bot
ad63273139 chore(package): update lodash.tostring to version 4.1.3
https://greenkeeper.io/
2016-05-12 16:21:35 +02:00
Hannah Wolfe
5101913db1 deps: remove jscs-jsdoc
- jscs-jsdoc is now part of jsdoc itself, and the additional plugin is no longer required
2016-05-08 13:17:19 +02:00
greenkeeperio-bot
e6008cd6d1 chore(package): update body-parser to version 1.15.1
https://greenkeeper.io/
2016-05-06 07:44:46 +02:00
greenkeeperio-bot
c3780efc86 chore(package): update express-hbs to version 1.0.1
https://greenkeeper.io/
2016-05-04 13:57:42 +02:00
greenkeeperio-bot
09bb961072 chore(package): update sinon to version 1.17.4
https://greenkeeper.io/
2016-05-03 22:19:27 +02:00
greenkeeperio-bot
04cde39657 chore(package): update dependencies
https://greenkeeper.io/
2016-05-03 21:22:43 +02:00
Jason Williams
7a8c064c42 deps: grunt@1.0.1 + related updates
- Gets all grunt dependencies in line with the
  grunt 1.0 release.
- deps: grunt-cli@1.2.0.
- deps: grunt-bg-shell@2.3.3.
- deps: grunt-contrib-clean@1.0.0.
- deps: grunt-contrib-compress@1.2.0.
- deps: grunt-contrib-copy@1.0.0.
- deps: grunt-contrib-jshint@1.0.0.
- deps: grunt-contrib-watch@1.0.0.
- deps: grunt-docker@0.0.11.
- deps: grunt-express-server@0.5.3.
- deps: grunt-jscs@2.8.0.
- deps: grunt-mocha-cli@2.1.0.
- deps: grunt-mocha-istanbul@4.0.2.
- deps: grunt-shell@1.3.0.
- deps: istanbul@0.4.3.
2016-04-28 09:18:27 -05:00
Terin Stock
7bbfc37df6 automatically insert Link rel="preload" headers 2016-04-26 14:07:36 -07:00
Hannah Wolfe
f955fa14e8 deps: path-match@1.2.4 2016-04-26 13:00:12 +01:00
Hannah Wolfe
5f64d03054 deps: morgan@1.7.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
7b9e61cba9 deps: moment@2.13.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
380a539ec0 deps: extract-zip@1.5.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
de9976070b deps: chalk@1.1.3 2016-04-26 12:59:32 +01:00
Hannah Wolfe
adaa5c2992 deps: bookshelf@0.9.4 2016-04-26 12:59:32 +01:00
Hannah Wolfe
1745335423 deps: body-parser@1.15.0 2016-04-26 12:59:32 +01:00
Hannah Wolfe
63be9964a2 deps: bluebird@3.3.5 2016-04-26 12:59:32 +01:00
Sebastian Gierlinger
9dd19dd4ff Merge pull request #6745 from ErisDS/express-hbs-update
deps: express-hbs@1.0.0
2016-04-26 13:47:42 +02:00
Hannah Wolfe
e21640a7e5 deps: validator@5.2.0
- also remove from greenkeeper ignores
2016-04-21 12:20:37 +01:00
Hannah Wolfe
31857ed78a deps: express-hbs@1.0.0
refs #2459

This includes updating handlebars to v4 as well as other fixes which
will introduce breaking changes to the theme API:

From express-hbs:
- partials must now use the `.hbs` extension, the same as templates
From handlebars:
- Depthed paths are now conditionally pushed on to the stack.
If the helper uses the same context, then a new stack is not created.
This leads to behavior that better matches expectations for helpers
like if that do not seem to alter the context. Any instances of ../
in templates will need to be checked for the correct behavior under 4.0.0.
In general templates will either reduce the number of ../ instances
or leave them as is. See #1028.
- The = character is now HTML escaped. This closes a potential exploit
case when using unquoted attributes, i.e. <div foo={{bar}}>. In general
it's recommended that attributes always be quoted when their values are
generated from a mustache to avoid any potential exploit surfaces.
2016-04-21 10:45:54 +01:00
Hannah Wolfe
f14c9f488f Merge pull request #6645 from joerx/issue6462
deps: validator@5.1.0
2016-04-20 18:55:43 +01:00
Jason Williams
b4adc322f8 deps: top-gh-contribs@2.0.3 2016-04-18 22:50:48 -05:00
Joerg Henning
0f3cb44227 deps: validator@5.1.0
closes #6462

- monkey-patch validator.extends() since it was dropped by validator @5.0.0
- coerce input to string prior to validation (custom toString func)
- need to handle boolean validation based on column type not isIn()
- use `lodash.tostring` to convert input values to strings
2016-04-19 09:39:12 +08:00
Hannah Wolfe
4b641bba7c Version bump to 0.7.9 2016-04-14 12:21:36 +01:00
Hannah Wolfe
6b74e1a34a Dev tooling clean up
- remove old casper.js tests
- cleanup mochacli groups that are less useful than `grunt test:path`
- improve inline Gruntfile.js docs
- fixup coverage for new internal apps
- add new coverage-all task which works for all our tests
- reverse order of master-warn messages to make this clearer
- remove bluebird from greenkeeper ignores
2016-04-13 13:21:33 +01:00
Hannah Wolfe
7ff74010fd Merge pull request #6659 from jaswilli/multer
Replace busboy upload middleware with multer
2016-04-11 11:07:34 +01:00
Hannah Wolfe
098974917f Merge pull request #6644 from jaswilli/auth-origin
Relax origin header checking and add more CORS support
2016-04-08 22:10:02 +01:00
Jason Williams
c41ee354b1 Replace busboy upload middleware with multer
- deps: multer@1.1.0
2016-04-07 21:30:46 -05:00
Hannah Wolfe
f4d1afe494 Merge pull request #6665 from jaswilli/uglify
deps: grunt-contrib-uglify@1.0.1
2016-04-01 11:12:38 -07:00
Jason Williams
07dab144bd Add middleware for handling CORS
Refs #6644
- deps: cors@2.7.1; Add express cors package.
- Adds new middleware for proper CORS support.
- Handles CORS pre-flight checks.
- Separates request authentication/authorization from
  CORS.
2016-03-31 10:58:52 -05:00
Jason Williams
401fbb1c71 deps: grunt-contrib-uglify@1.0.1 2016-03-30 17:22:33 -05:00
Jason Williams
0ed0a72c35 Replace internal tempfile name generator
- Drops "tempfile" module in favor of using the "tmp"
  external package.
- Drop unused "rimraf-then" package.
2016-03-29 15:19:42 -05:00
Jason Williams
bdcb25a0cd Remove method stubs from upload API tests 2016-03-28 23:02:23 -05:00
Hannah Wolfe
bd0f16aea7 Remove support for old io.js version
- io.js and node merged some time ago now
- we only ever had support for a single random and now very old version of io.js anyway
2016-03-26 14:54:23 +00:00
Jason Williams
ee534845e5 deps: bookshelf@0.9.2 2016-03-21 19:27:23 -05:00
Jason Williams
57250edf0b deps: knex@0.10.0
Closes #6573
2016-03-21 19:27:23 -05:00
Hannah Wolfe
e4a1797085 Remove should-sinon dependency
no issue

- removes should-sinon dependency from package.json
- rewrites all usages of should-sinon to use normal should assertions

Unfortunately, should-sinon has very minimal documentation  and therefore it is hard to discern what is considered a correctly-written assertion:
- in some cases, refactoring to use should-sinon causes false positives
- in other cases, assertions that work written in the normal way fail when written using should-sinon (e.g. getters, combos with rewire)
The additional overhead created by these issues outweigh any benefit from the easier-to-read assertions
2016-03-14 16:52:22 +00:00
Jason Williams
1edf49daf7 deps: bluebird@3.3.3
- Finishes refactoring started in #6376.
- Fixes invalid Promise.map() call.
- Cleans up promise (rejection) handling.
2016-03-01 15:17:20 -06:00
JT Turner
3db9913191 deps: bluebird@3.1.2
closes #6361
- Updated bluebird dependency to latest 3.1.2.
- Updated update check to handle promises not resolving to arrays.
- Reviewed all other promise code and it looks good.
- Updated code using settle to use the new reflect function.
2016-03-01 14:47:23 -06:00
Hannah Wolfe
8f8f07ed80 Version bump to 0.7.8 2016-02-18 19:17:07 +00:00
Hannah Wolfe
2d2a8f9f41 Version bump to 0.7.7 2016-02-18 14:19:09 +00:00
Cameron Viner
8fd272476b Removed uneeded jshint comments in order to cleanup the tests
closes #6505
-Removed all of the /*jshint expr:true*/ comments from the tests
-Removed all of the should.equal(true, true) statements from the tests
-Removed should from the greenkeeper ignores
2016-02-17 12:52:43 +00:00
Hannah Wolfe
c301510cd1 Refactor gravatarLookup, remove request dependency
no issue

- request is quite a heavy dependency
- we were only using request in 3 places: a test, storing contrib images in the gruntfile & the gravatar lookup
- all 3 are relatively simple to do with the http/https module
- refactored all 3, removed request
2016-02-16 11:12:01 +00:00
Hannah Wolfe
893971cc51 Merge pull request #6490 from naoyak/node-4-semver
Support Node v4 LTS semver-minor releases
2016-02-12 11:28:21 +00:00
Naoya Kanai
4834cb436d Support Node v4 LTS semver-minor releases
Fixes #6473
- Replace Node v4.2 with v4 in Travis config
- Replace ~4.2.0 with ^4.2.0 in engines to support semver-minor bumps in LTS line
2016-02-12 01:37:27 +09:00
Hannah Wolfe
ffa92ab913 deps: ghost-gql@0.0.4 2016-02-11 13:13:56 +00:00
Hannah Wolfe
b4a126bf58 deps: mocha@2.4.5 2016-02-10 15:52:08 +00:00
Hannah Wolfe
0bb2a2f852 Merge pull request #6464 from cameronviner/6448
Upgrade should.js to version 8.2.1 (Issue #6448)
2016-02-09 14:27:23 +00:00
Cameron Viner
faba83d5dc deps: should@8.2.1
closes #6448
-upgraded should.js to the latest version (8.2.1)
-Changed the tests so that they comply with the breaking changes introduced in the new version of should.js
-Installs the package should-http so should.be.json() can be used
-Installs the package should-sinon so that should.be.calledOnce() can be used
2016-02-09 13:39:10 +00:00
Hannah Wolfe
52ca6fba27 Updating greenkeeper ignores 2016-02-08 21:43:53 +00:00
Hannah Wolfe
f02169c449 deps: xml@1.0.1 2016-02-08 21:42:41 +00:00
Hannah Wolfe
42236c1414 deps: request@2.69.0 2016-02-08 21:42:41 +00:00
Hannah Wolfe
800b081a4c deps: oauth2orize@1.2.2 2016-02-08 21:42:41 +00:00
Hannah Wolfe
1be0a84a01 deps: moment@2.11.2 2016-02-08 21:42:40 +00:00
Hannah Wolfe
d5ce500a7b deps: html-to-text@1.6.0 2016-02-08 21:42:40 +00:00
Hannah Wolfe
69657a59de deps: fs-extra@0.26.5 2016-02-08 21:42:40 +00:00
Hannah Wolfe
fc60558176 deps: express@4.13.4 2016-02-08 21:42:39 +00:00
Hannah Wolfe
4a98481583 deps: compression@1.6.1 2016-02-08 21:42:39 +00:00
Hannah Wolfe
10a30f2b27 deps: cheerio@0.20.0 2016-02-08 21:42:39 +00:00
Hannah Wolfe
28def854d2 Add bower to greenkeeper ignores 2016-02-08 14:05:43 +00:00
Sebastian Gierlinger
56e94ee314 Merge pull request #6450 from ErisDS/devdep-updates
Dev dependency updates
2016-02-08 11:31:51 +01:00
Sebastian Gierlinger
218c48e80d Merge pull request #6455 from ErisDS/bookshelf-knex
deps: bookshelf@0.9.1 & knex@0.9.0
2016-02-08 11:14:06 +01:00
Hannah Wolfe
13d99efe60 deps: remove testem 2016-02-08 09:56:10 +00:00
Hannah Wolfe
2f5d743b6d deps: sinon@1.17.3 2016-02-08 09:55:31 +00:00
Hannah Wolfe
b3300b3d49 deps: fix rimraf-then@1.0.0 2016-02-08 09:54:52 +00:00
Hannah Wolfe
17404ea89f deps: rewire@2.5.1 2016-02-08 09:54:51 +00:00
Hannah Wolfe
116ce67e92 deps: nock@7.1.0 2016-02-08 09:54:51 +00:00
Hannah Wolfe
607202abf4 deps: matchdep@1.0.0 2016-02-08 09:54:51 +00:00
Hannah Wolfe
8be9ccb104 deps: jscs-jsdoc@1.3.1 2016-02-08 09:54:51 +00:00
Hannah Wolfe
379e22aa81 deps: istanbul@0.4.2 2016-02-08 09:54:50 +00:00
Hannah Wolfe
87cdaaea8b deps: grunt-mocha-istanbul@3.0.1 2016-02-08 09:54:50 +00:00
Hannah Wolfe
c43296f2c3 deps: grunt-mocha-cli@2.0.0 2016-02-08 09:54:50 +00:00
Hannah Wolfe
6066c96c84 deps: grunt-jscs@2.7.0 2016-02-08 09:54:50 +00:00
Hannah Wolfe
8a4cb74ec9 deps: grunt-contrib-uglify@0.11.1 2016-02-08 09:54:49 +00:00
Hannah Wolfe
07abf1f8df deps: grunt-contrib-jshint@0.12.0 2016-02-08 09:54:49 +00:00
Hannah Wolfe
fa1978f799 deps: grunt-contrib-copy@0.8.2 2016-02-08 09:54:49 +00:00
Hannah Wolfe
3a1a59f7d0 deps: grunt-contrib-compress@0.14.0 2016-02-08 09:54:49 +00:00