Nextcloud Server
Go to file
Daniel Calviño Sánchez b70b38ce31 Fix constructor spy in unit test with Sinon 4.1.3
When a constructor is spied using Sinon it is wrapped by a proxy
function, which calls the original constructor when invoked. When "new
Foo()" is executed a "Foo" object is created, "Foo" is invoked with the
object as "this", and the object is returned as the result of the whole
"new" expression.

Before Sinon 4.1.3 the proxy called the original constructor directly
using the "thisValue" of the spied call; "thisValue" was the object
created by the "new" operator that called the proxy. The proxy assigned
"thisValue" to "returnValue", so it was also the value returned by the
proxy and, in turn, the value returned by the whole "new" expression.

Since Sinon 4.1.3 (see pull request 1626) the proxy calls the original
constructor using "new" instead of directly. The "thisValue" created by
the outermost "new" (the one that called the proxy) is no longer used by
the original constructor; the internal "new" creates a new object, which
is the one passed to the original constructor and returned by the
internal "new" expression. This object is also the value returned by the
proxy ("returnValue") and, in turn, the value returned by the whole
outermost "new" expression.

Thus, now "returnValue" should be used instead of "thisValue" to get the
object created by the spied constructor.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-08 21:26:45 +01:00
.github
.idea
3rdparty@f4e328bc4c Bump thirdparty ref 2017-11-27 15:20:42 +01:00
apps Fix constructor spy in unit test with Sinon 4.1.3 2017-12-08 21:26:45 +01:00
build Merge pull request #6437 from nextcloud/support-mail-send-in-share 2017-11-27 11:29:38 +01:00
config Merge pull request #7351 from nextcloud/change-default-german-language 2017-12-06 08:30:14 +01:00
contribute
core [tx-robot] updated from transifex 2017-12-08 01:10:13 +00:00
l10n
lib Merge pull request #7385 from nextcloud/shared-delay-root 2017-12-06 15:14:48 +01:00
ocs
ocs-provider
resources Update CRL due to aboutconfig 2017-11-23 18:37:23 +01:00
settings [tx-robot] updated from transifex 2017-12-07 01:10:37 +00:00
tests use formal version of German if default_language is set to 'de_DE' 2017-11-30 17:29:08 +01:00
themes
.bowerrc
.codecov.yml
.drone.yml run postgresql 10 tests in drone 2017-11-22 17:57:17 +01:00
.gitignore
.gitmodules
.htaccess
.jshintrc
.lgtm
.mailmap
.scrutinizer.yml
.tag
.user.ini
AUTHORS
autotest-checkers.sh
autotest-external.sh
autotest-hhvm.sh
autotest-js.sh
autotest.sh run postgresql 10 tests in drone 2017-11-22 17:57:17 +01:00
bower.json
buildjsdocs.sh
CHANGELOG.md
composer.json
console.php
CONTRIBUTING.md
COPYING
COPYING-README
cron.php
index.html
index.php
issue_template.md
occ
public.php
README.md Update README.md 2017-11-29 09:09:11 +01:00
remote.php
robots.txt
status.php
version.php v13.0.0 Beta 1 2017-11-14 19:34:37 +01:00

Nextcloud Server

Scrutinizer Code Quality codecov CII Best Practices irc irc

A safe home for all your data.

Why is this so awesome?

  • 📁 Access your Data You can store your files, contacts, calendars and more on a server of your choosing.
  • 📦 Sync your Data You keep your files, contacts, calendars and more synchronized amongst your devices.
  • 🔄 Share your Data …by giving others access to the stuff you want them to see or to collaborate with.
  • 🚀 Expandable with dozens of Apps ...like Calendar, Contacts, Mail and all those you can discover in our App Store
  • 🔒 Security with our encryption mechanisms, HackerOne bounty program and two-factor authentication.

You want to learn more about how you can use Nextcloud to access, share and protect your files, calendars, contacts, communication & more at home and at your Enterprise? Learn about all our Features.

Get your Nextcloud

Enterprise? Public Sector or Education user? You may want to have a look into the Enterprise Support Subscription provided by the Nextcloud GmbH

Get in touch

…learn more about how to get support for Nextcloud here!

Contribution Guidelines

All contributions to this repository from June, 16 2016 on are considered to be licensed under the AGPLv3 or any later version.

Nextcloud doesn't require a CLA (Contributor License Agreement). The copyright belongs to all the individual contributors. Therefore we recommend that every contributor adds following line to the header of a file, if they changed it substantially:

@copyright Copyright (c) <year>, <your name> (<your email address>)

Please read the Code of Conduct. This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.

Please review the guidelines for contributing to this repository.

More information how to contribute: https://nextcloud.com/contribute/

Running master checkouts

Third-party components are handled as git submodules which have to be initialized first. So aside from the regular git checkout invoking git submodule update --init or a similar command is needed, for details see Git documentation.

Several apps that are included by default in regular releases such as firstrunwizard or gallery are missing in master and have to be installed manually.

That aside Git checkouts can be handled the same as release archives.

Note they should never be used on production systems.