Commit Graph

1187 Commits

Author SHA1 Message Date
Cody B. Daig
09bc727fdf Update Mongoose Version 2015-10-27 13:13:27 -07:00
Ilan Biala
63d0d71cf6 Merge pull request #948 from gustavodemari/update-multer-profile-upload
Update profile upload with a new version of multer
Fixes #947
2015-10-25 22:03:23 -04:00
Cody B. Daig
a6b3f140b3 Merge pull request #999 from mleanos/morgan-logger-config
[bug] Enable log options for Morgan that were missed in the 0.4.0 merge
2015-10-23 15:23:36 -07:00
mleanos
8cd2291a6a Enable log options for Morgan
Adds the log options, and format to the Morgan middleware in the Express
configuration.

These options are defined in the environment configurations.

The implementation derived from https://github.com/meanjs/mean/pull/254
by @lirantal, which somehow got overlooked when merging 0.4.0 into
master.

Added tests for the Logger configuration.

Added the log settings to the Test env config.

Added environment variables for the log settings in the Test &
Production env configs.

Moved the Morgan Express middleware outside of the NODE_ENV ===
'development' check. Morgan should be used in all environments, and use
the settings set in each env config.

Changed the wording of the Stream option comments in the env configs.

Added Rotating Logs functionality, and refactored the log Stream
options. Added a new npm package, FileStreamRotator, for use with
Morgan's rotating logs functionality.

Also, refactored the log configuration tests to be more maintainable.

Added more tests, and refactored test suite to use mock-fs.
2015-10-20 21:03:07 -07:00
Cody B. Daig
c2a86e0393 Merge pull request #1009 from codydaig/bug/mongoose
[hotfix] Lock mongoose version to a working version
2015-10-19 22:49:28 -07:00
Cody B. Daig
64916dd5ac Lock mongoose version to a working version 2015-10-19 20:19:59 -07:00
Liran Tal
71cc173b8c Merge pull request #1004 from lirantal/feature/travis-webhooks-as-env-variables
Moving Travis CI webhooks config to environment variable
2015-10-19 08:43:37 +03:00
gustavodemari
7ecf9337ce updating profile upload with a new version of multer 2015-10-18 20:56:12 -02:00
Liran Tal
70e83ff98f fixes #898 - addressing the issue where the webhook API is hard-coded into the travis config file 2015-10-18 22:41:53 +03:00
Liran Tal
3a4c51aaee Merge pull request #987 from mleanos/favicon-path-bug
[bug] Favicon invalid path [fixes #979]
2015-10-18 18:58:25 +03:00
mleanos
e6a5732698 Favicon invalid path
Removed the {{url}} from the Favicon path. This fixes the intermittent
issues with the path resolving to an invalid location.

Removed the url from the twitter:image & og:image tags, to be static
references to the logo.
2015-10-17 16:17:28 -07:00
Cody B. Daig
eb8d819e04 Merge pull request #1002 from codydaig/docs/contributing-docs
[docs] Information about Contributing
2015-10-17 11:29:16 -07:00
Cody B. Daig
5a4fe5aad1 [docs] Information about Contributing 2015-10-17 10:51:20 -07:00
Ilan Biala
1729db38e2 Merge pull request #990 from ilanbiala/eslint
Add ESLint
Fixes #763
2015-10-17 13:48:57 -04:00
Cody B. Daig
27ce914b28 Merge pull request #1000 from tatethurston/docs/requirements
Added Ruby and Sass to requirements with install directions
2015-10-17 10:32:48 -07:00
Ilan Biala
9795cc08bf Merge pull request #1001 from ilanbiala/node-pre-gyp
Remove node-pre-gyp
Fixes #938
2015-10-17 13:06:33 -04:00
Ilan Biala
76e11e45be Merge pull request #985 from jloveland/karma-coverage
Add karma coverage to grunt
2015-10-17 13:05:39 -04:00
Ilan Biala
2ab02b7210 Update package.json 2015-10-17 12:48:00 -04:00
jloveland
c2b13b9216 adding karma coverage for grunt 2015-10-17 11:51:05 -04:00
tatethurston
cec3e1f54b Added Ruby and Sass to requirements with install directions 2015-10-17 08:33:32 -07:00
Cody B. Daig
7509074d5f Merge pull request #993 from jloveland/e2e-fail-travis
Adding configuration to fail grunt task if e2e tests fail
2015-10-17 08:05:17 -07:00
jloveland
70d7e17f57 removing keepAlive conf to fail travis if e2e tests fail 2015-10-17 08:33:04 -04:00
Ilan Biala
cc486d54c5 Merge pull request #910 from jloveland/hide-password-validator
Hide the password strength progress when the field is empty
2015-10-16 23:34:55 -04:00
Ilan Biala
52f94a28dc Merge pull request #991 from ilanbiala/formatting-fixes
Formatting fixes for ESLint
2015-10-16 21:06:30 -04:00
Ilan Biala
d5cc4b7b34 Add ESLint support 2015-10-16 21:04:00 -04:00
Ilan Biala
0323696eaf Format code according to ESLint rules 2015-10-16 20:52:31 -04:00
Liran Tal
e30c3d1249 Merge pull request #957 from mleanos/seeddb-enhance-testability
Seed options - logResults
2015-10-15 17:24:28 +03:00
jloveland
65140442f0 adding tests for directives 2015-10-13 23:23:52 -04:00
jloveland
f733efba5a renaming strength meter, hiding when password field is empty, and refactoring directives to use $validators 2015-10-13 22:47:35 -04:00
Liran Tal
8a12f76a19 Merge pull request #972 from mleanos/mocha-global-timeout-grunt
Global Mocha timeout
2015-10-13 08:39:48 +03:00
Liran Tal
4586c290e9 Merge pull request #959 from lirantal/feature/user-route-tests-improve-3
User CRUD API tests
2015-10-12 08:15:04 +03:00
Liran Tal
0017886d6e updating travis to support installing a local mail server 2015-10-11 23:19:20 +03:00
Liran Tal
eb7c4f8e91 adding more API tests 2015-10-11 23:19:20 +03:00
mleanos
037878b4ba Global Mocha timeout
Added the timeout option to the Mocha grunt task; set to 10000.

Removed the individual test suite timeouts, for all server tests.

Also, added global timeout for Mocha gulp task.
2015-10-10 23:52:08 -07:00
Liran Tal
19aea2f112 Merge pull request #967 from mleanos/user-model-validate-bug
[bug] Solves User model validation issue with tests [fixes #966]
2015-10-10 21:40:34 +03:00
mleanos
32e0d126ca Synchronous tests
Removed the done() callback method from the config tests that aren't
truly asynchronous.
2015-10-09 16:14:14 -07:00
mleanos
75cf74537a Formatting and Indentation
Changes to formatting and indentation.
2015-10-09 14:06:29 -07:00
mleanos
0560062eab Seed options - logResults
Added an options object to the database seed configuration. Currently,
the only option implemented is `logResults`; set using the seedDB env
config
options (default to "true").

Modified the definition of the env config for seedDB. It's now an
object, with
options.

Setting the logResults option is set to `false` in the core
configuration server test suite.

Also, fixed an issue with how env configs were reading the seedDB
setting from the env variables. Previously, the config was getting set
by
looking for merely the existence of the env variable (MONGO_SEED).
However,
if this setting existed but was set to "false", the seedDB would be
turned on.

Added the SeedDB user details to the env config, and seedDB options.

Added tests to the core server config test suite

should have seedDB configuration set for "regular" user
should have seedDB configuration set for admin user
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" when they already exist
should ONLY seed admin user account when NODE_ENV is set to "production"
with custom admin
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" with custom options
should NOT seed admin user account if it already exists when NODE_ENV is
set to "production"
should NOT seed "regular" user account if missing email when NODE_ENV
set to "test"

Added support for environment variables to seedDB env configs; currently
only supporting username & email.

Refactored how the SeedDB rejects were being handled
2015-10-09 13:48:11 -07:00
Ilan Biala
9c78c6362f Merge pull request #971 from jloveland/session-tests-return
Add return done() to session secret configuration tests
2015-10-09 13:49:11 -04:00
jloveland
b07af94255 adding return done() to tests 2015-10-09 12:45:16 -04:00
Liran Tal
3454cf82f1 Merge pull request #968 from jloveland/e2e-test-error
Adding protractor options to fix travis failing
2015-10-09 17:49:26 +03:00
Liran Tal
28ae5d6301 Merge pull request #927 from jloveland/local-session-secret
adding ability to configure session.secret in local env config
2015-10-07 18:49:06 +03:00
Liran Tal
3cfd978e8a Merge pull request #922 from lirantal/feature/travis-add-node-v4-gcc-update
NodeJS v4 support - fixing the failed build
2015-10-06 14:22:47 +03:00
Liran Tal
b7a57abd30 adding the required support to properly build the nodejs v4 edition
updating grunt-node-inspector version to compatible version with nodejs v4
2015-10-06 14:09:04 +03:00
jloveland
83eb2dc233 adding protractor options to fix travis failing 2015-10-05 22:46:42 -05:00
mleanos
288f0b4e63 Solves User model validation bug
This solves the issue of the User model's pre('validate') method,
attempting to validate against a password that was not modified.

Adds the this.isModified('password') check to the condition.
2015-10-05 16:41:14 -07:00
jloveland
2eb0b0970d adding ability to configure session.secret in local env config 2015-10-04 20:45:47 -04:00
Ilan Biala
7a9ee53357 Merge pull request #939 from jloveland/e2e-tests-fix
Fix grunt and gulp e2e tests, Fixes #929
2015-10-04 12:49:42 -04:00
Liran Tal
3ff893aeaf Merge pull request #956 from mleanos/mocha-test-suite-timeouts
Mocha test timeouts [fixes #955]
2015-10-03 14:01:30 +03:00
Liran Tal
1b22b7c01a Merge pull request #944 from SibuStephen/patch-1
Link for download link (NodeJs download)
2015-10-02 00:17:48 +03:00