Commit Graph

156 Commits

Author SHA1 Message Date
Sebastian Gierlinger
61e94a6e8b Use current user in models
closes #2058
- fixed apiContext as suggested in the issue
- added user to options object for models
- added api.users.register() for public registration
- changed models to use options.user for created_by, updated_by,
author_id and published_by
- added override to session model to avoid created_by and updated_by
values
- added user (id: 1) to tests
- added user (id: 1) for registration
- added user (id: 1) for import, fixtures and default settings
- added user (id: 1) for user update
- added user (id: 1) for settings update (dbHash, installedApps, update
check)
- updated bookshelf to version 0.6.8
2014-04-16 18:20:09 +02:00
Hannah Wolfe
a458165cf0 Fixing showdown link to work without git 2014-03-26 18:33:17 +00:00
Hannah Wolfe
69d13b1e5a Version bump for 0.4.2 2014-03-26 14:01:56 +00:00
Hannah Wolfe
d50d3cd232 Bump version to 0.4.2-rc2 2014-03-25 13:40:49 +00:00
Hannah Wolfe
6d1c1b4f5c Bump version to 0.4.2-rc1 2014-03-20 19:30:59 +00:00
Hannah Wolfe
2f159cb7df Merge pull request #2435 from halfdan/2148-rpc
Add XML-RPC ping
2014-03-20 19:14:23 +00:00
Fabian Becker
9e7469e3ea Add XML-RPC ping
closes #2148
- Added core/server/xmlrpc.js
- Hook into post::saved to ping when a published post gets saved
- Added node package to hook into http requests
2014-03-20 17:53:32 +00:00
Hannah Wolfe
762631f590 Showdown fork now has a version
fixes #2454
2014-03-20 16:48:13 +00:00
Hannah Wolfe
6c3c0a5f6c Switch Showdown to fork
fixes #2312

- showdown fork understands more html tags
2014-03-20 11:36:13 +00:00
Fabian Becker
428fb94278 Fixes random pg failures.
fixes #2075
- Updates knex to latest version
- Fixes expected value in page test
- Change fixture insertion to be sequential
- Add orderBy to insertMorePostsTags fixture helper
2014-03-17 10:54:31 +00:00
Fabian Becker
921ceb7be7 Replace SASS with assets from Ghost-UI
closes #2368
- Remove Ruby dependency (Gemfiles)
- Remove sass/fonts from core/client/assets/
- Add copy task to Gruntfile to copy over ghost-ui assets
- Install Ghost-UI via bower
- Changed .npmignore/.gitignore
- Remove grunt-contrib-sass dependency
- Remove mentions of Ruby in CONTRIBUTING.md
2014-03-09 22:50:37 +01:00
Fabian Becker
e5ead739a1 Remove unused libraries.
refs #2326
- Remove unused libraries from core/client/assets/vendor/
- Add folder to .gitignore
- bower install is now handled by grunt init
2014-03-05 10:20:56 +00:00
Jonathan Johnson
e4bb6d08cc Update validator to 3.4.0
Closes #1379

- Convert to new api usage for both server-side and client-side
- Provide way require a negative response for boolean methods in
  default-settings.json
- Add field validation functional tests
  - Settings (General)
    - Title length validation
    - Description length validation
    - postsPerPage, numeric, min, max
  - Settings (User)
    - Bio Length validation
    - Location length validation
    - Url validation
  - Login
    - Email validation
  - Editor
    - Title required validation
2014-03-04 13:54:24 -07:00
Fabian Becker
cd74b0e232 Switch to bower for client assets.
fixes #2272
- Remove libraries from shared/vendor
- Remove libraries from client/assets/vendor
- Add bower to package.json and postinstall
- Add bower.json with dependencies
- Add scripts from bower_components to concat/uglify
- Fix tests
- Serve jquery from /ghost/built/theme/
2014-03-04 20:09:26 +00:00
Fabian Becker
1a9e91f120 Replace JSLint with JSHint.
closes #2277
- Added ES6 linting to core/client/
- Fix typeof array comparison
2014-03-04 15:47:39 +00:00
Harry Wolff
d7815f4dff Update package.json for publishing to npm
address #2078

- removes private: true flag from package.json
- created .npmignore file and moved all of buildGlob
 file patterns into here, negating all patterns as
 the npmignore file defines what is to be excluded
 and not included.
- gruntfile now uses the inverse of the .npmignore file
 to define what files to include in a release
2014-02-23 09:38:47 -05:00
Harry Wolff
928b562948 Fix package.json scripts to be more in line with
expected behavior of npm packages

fixes #1053

- updates travis config to be more in line with
 current dev steps

- fix `grunt-cli` warning from appearing when
 running grunt
2014-02-18 22:53:21 -05:00
Fabian Becker
24853c261b Update express-hbs to fix block helper issue.
fixes #2127
- Update express-hbs to 0.7.9
2014-02-13 18:32:28 +01:00
Hannah Wolfe
b05dd64cae Update to npm install command
fixes #1053

- npm install doesn't need a path to grunt, and fails on Windows if it has one
- submodule update is handled by grunt (albeit badly... but let's fix that!)
2014-02-11 17:24:19 +00:00
Hannah Wolfe
2329edd18c Cleanup dependency order in package.json
- because OCD
2014-02-10 18:15:36 +00:00
Harry Wolff
fd583df8e5 Updated package.json to conform to npm standards
fixes #1053

- fleshed out script object 
- added test and install package.json
- updated contributing guide 
- updates travis.yml to leverage new npm start
2014-02-09 16:14:40 -05:00
Aia Patag
4e5c624d9f Updated downsize to 0.0.5
closes #2106
- downsize 0.0.5 contains the fix to accept single quote found inside a double-quote string or vice-versa
- created unit tests to properly check this scenario
2014-02-08 15:13:33 +00:00
Dane Springmeyer
6c1dede432 sqlite3@2.2.0
Updates node-sqlite3 to v2.2.0

This version is compatible with 2.1.x but includes:

 - updated internal libsqlite3 from 3.7.17 -> 3.8.2 (http://www.sqlite.org/news.html) which includes the next-generation query planner http://www.sqlite.org/queryplanner-ng.html
 - improved binary deploy system using https://github.com/springmeyer/node-pre-gyp
 - binary install now supports http proxies
 - source compile now supports freebsd
 - fixed support for node-webkit
2014-02-07 10:19:45 +00:00
John-David Dalton
6eab7b3f92 Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
Hannah Wolfe
75d15ea7be Version bump for 0.4.1 2014-01-30 13:17:24 +00:00
Hannah Wolfe
1afeeaf2d4 Version bump for rc1 2014-01-28 09:20:39 +00:00
Hannah Wolfe
3961b7173f Upgrade express-hbs, and switch to using registerPartial
fixes #1964, fixes #1975

 - Issues with partial handling which caused #1964  have been part fixed by handlebars, part worked around by express-hbs, we must use `registerPartials` to ensure partials are handled correctly.
 - Issue with error handling which caused #1975 has also been fixed in express-hbs, which now catches the error from handlebars and passes it to express so that we can handle the error with an error page.
2014-01-24 11:08:15 +00:00
Hannah Wolfe
c82d2eadba Version bump for 0.4 release 2014-01-13 09:33:28 +00:00
Hannah Wolfe
3d18a32e7d Bump version for pre-release 3 2014-01-12 23:42:35 +00:00
Hannah Wolfe
4b4e6c2d45 Bump version for pre-release 2 2014-01-09 21:39:13 +00:00
Hannah Wolfe
ce3920cc98 Bump Version for pre-release 2014-01-07 10:07:20 +00:00
Hannah Wolfe
a697a631c2 Route tests
issue #1773

- Adds functional tests for frontend routing
- Tests the request-response contract
- Requires db access at the moment
- Tests #1790
2014-01-01 16:18:03 +00:00
Hannah Wolfe
e53148ec2e Update grunt-update-submodules to 0.2.1
issue #1787

- hopefully resolves problems with some versions of npm
2013-12-31 11:20:35 +00:00
Hannah Wolfe
c295864970 Update connect-slashes to version 1.2.0 2013-12-30 09:25:21 +00:00
Hannah Wolfe
e2325dc969 Don't allow a subdirectory called Ghost
fixes #1755

- adds extra validation to config loader
- adds tests for config loader and validation
2013-12-30 01:04:29 +00:00
Hannah Wolfe
9ec7e4ea38 Merge pull request #1615 from gotdibbs/Issue1227
Switch from multipart to busboy
2013-12-21 10:25:05 -08:00
omeid
1a794733d2 Package.json: Incorrect node version fix. 2013-12-20 15:17:18 +11:00
William Dibbern
bf7692b151 Switch from multipart to busboy
Fixes #1227

- Removed deprecated `multipart` references.
- Setup `busboy` to pass along file streams and do a naive parse of form
values.
- Updated logic in file storage and db import to handle file streams
instead of the temporary files created by `multipart`.
2013-12-17 17:24:30 -06:00
Seb Gotvitch
fef9b4be25 Bug fixes for partial views
closes #1203
- Update express-hbs module to the new version (0.5.2)
- Use two instance of hbs one for the theme and an other for the admin
- Template helpers are register as partial view
- Partial views of the theme are reload when the theme changed

Remove clear partial cache in handlebars

This code will be move in `express-hbs`.
This doesn't cause a problem to remove this line but it is not clean.

Remove unused hbs instance

Resolve conflict
2013-12-12 12:11:02 -05:00
Hannah Wolfe
365b4ca50c Updating devDependencies to latest versions 2013-12-08 17:42:34 +00:00
Hannah Wolfe
2636e1c1e3 Reverting express-hbs to 0.5.1
- there is some sort of bug with 0.5.2 when combined with recent changes which results in the following error:

/home/travis/build/TryGhost/Ghost/node_modules/express-hbs/lib/hbs.js:128
      if(count < self.partialsDir.length){
                                 ^
TypeError: Cannot read property 'length' of undefined
2013-12-07 14:33:13 +00:00
Hannah Wolfe
1b16518e40 Merge pull request #1626 from ErisDS/grunt
Gruntfile cleanup
2013-12-07 03:36:32 -08:00
Fabian Becker
29c5e5c971 Update dependencies.
- Important update for express (contains __proto__ fix in qs)
- Update all other dependencies to latest
2013-12-06 21:54:49 +00:00
Fabian Becker
1f853194ee Upgrade downsize to 0.0.4
refs #1095
- added new unicode test to excerpt helper
2013-12-06 15:43:03 +00:00
Hannah Wolfe
2b7e18f028 Gruntfile cleanup
issue #1340

- remove old weekly and nightly builds and associated stuff
- add help task
- add more documentation / comments
2013-12-06 11:18:27 +00:00
Fabian Becker
a4434fd39a Remove direct pg dependency
refs #1333
- Adjust Travis build to install pg
- Remove pg from package.json
2013-11-29 00:58:24 +00:00
Harry Wolff
89154ad997 Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
Tim Griesser
726014f59a bumping to knex 0.5 and bookshelf 0.6.1 2013-11-26 23:10:31 +00:00
Fabian Becker
3cb80a2ed9 Add postgres build and allow it to fail.
refs #1333
2013-11-25 00:41:40 +00:00
Harry Wolff
e76d23cb19 Make it possible to require ghost as a module. fixes #1326 2013-11-22 22:59:14 -05:00