Commit Graph

7285 Commits

Author SHA1 Message Date
Emily Stark
ddf8a0c8dc Merge pull request #2016 from timhaines/multi-server-oauth
OAuth 1 - Move pending request tokens from RAM to mongo.
2014-04-21 10:56:33 -07:00
Emily Stark
568b0f929c Change 'port' to 'proxyPort' in test-packages and update run-all comment.
run-all interface was changed in 9b8bd31a.
2014-04-20 17:23:03 -07:00
Avital Oliver
95aaa99312 Fix {{#with}} over a data context that is mutated
In `Spacebars.With` we embox the data context. This commit makes
that emboxing happen modulo `safeEquals`. So now if you
{{#with}} over a helper that returns an object, any time
that helper gets invalidated we re-run the computations in the block.

Fixes #2046 (though notably that example mutates the data context
from within a helper, which could lead to other types of unintended
behavior; it's probably in this particular example -- the data context
just gets added properties)
2014-04-19 00:29:34 -07:00
Tim Haines
7168410d54 Pending Request Tokens - Whitespace and var name fixes 2014-04-18 15:53:31 -07:00
David Glasser
76ded8feb2 Meteor.loginWith<External> now waits for config
While this could mean that there's an indefinite wait before logging you
in, any condition where login configuration isn't being swiftly
published (after all, it should be cached) is a bigger problem.

`Accounts`/accounts-base is an awkward place to put this, because in
theory we wanted the packages like "twitter" to not depend on
accounts. But it turns out that service-configuration depends on
accounts anyway, so this isn't much of a regression. We can't put this
function in service-configuration because that package doesn't actually
do the subscription and make the ready handle. (Maybe oauth would be a
better place, but again, that's a package that doesn't currently depend
directly on accounts-base and would have to.)

Fixes #1911 and #2048.
2014-04-18 15:09:59 -07:00
David Glasser
afd9640bb6 Remove outdated comment
We no longer have a restriction that short options only take numbers
2014-04-18 14:39:50 -07:00
David Glasser
3fc4a30bfe Better error message for -p bogus:1234 2014-04-18 14:39:31 -07:00
David Glasser
9b8bd31a7b Allow specifying interface with -p and --app-port
The syntax is "--port host:port".

Not implemented for test-packages. No control is available over mongo
ports (port or host).

Fixes #469 and #1105.
2014-04-18 14:15:14 -07:00
David Glasser
a4a66aeede tools api change: rename port to proxyPort 2014-04-18 13:43:51 -07:00
David Glasser
2194fc5fb6 Fix race condition around stopping observe
The race condition should not have had any adverse effects other than
logging an exception.

Fixes #2070.
2014-04-18 13:05:06 -07:00
Emily Stark
8a7e510081 Add History entry for 'meteor list-sites' 2014-04-17 16:58:21 -07:00
Emily Stark
2b27950619 Add a basic test for 'meteor list-sites' 2014-04-17 16:58:08 -07:00
Emily Stark
a03ff1b614 Merge branch 'list-apps' into devel 2014-04-17 16:57:58 -07:00
Eric Dobbertin
0a6e398b2e better error for unknown custom EJSON types
Fixes #2017
2014-04-17 16:44:42 -07:00
David Greenspan
57ccb51881 Port attrs.js back to Underscore 2014-04-17 16:26:16 -07:00
Emily Stark
298e386aba Add History entry for Meteor.logoutOtherClients callback. 2014-04-17 16:24:02 -07:00
Emily Stark
f68908b330 Merge branch 'two-methods-for-logout-others' into devel
Fixes #1915.
2014-04-17 16:23:38 -07:00
Emily Stark
a66ed34724 Merge branch 'sso-long-random' into devel 2014-04-17 16:12:54 -07:00
Emily Stark
28b204f365 Add History entry for Random.secret. 2014-04-17 16:12:24 -07:00
Emily Stark
cc667a487f code review comments from glasser, nim 2014-04-17 16:12:24 -07:00
Emily Stark
9e42f5b37a Add docs for Random.secret 2014-04-17 16:12:24 -07:00
Emily Stark
e544a8e03a Increase length of security-critical random tokens. Add Random.secret. 2014-04-17 16:12:16 -07:00
David Greenspan
f7bbbe8ff7 Merge remote-tracking branch 'origin/pr/2061' into devel
Conflicts:
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
2014-04-17 12:22:32 -07:00
Avital Oliver
ca46407e5d Properly clean up autoruns on UI.toHTML.
The prior commit didn't stop components of type
`Spacebars.With` correctly.
2014-04-17 03:00:05 -07:00
Avital Oliver
797a080e7f Fix UI.toHTML on templates containing {{#with}}
Originally reported at
https://github.com/meteor/meteor/issues/2007#issuecomment-40530195
2014-04-17 03:00:05 -07:00
Dan Dascalescu
f41223ba38 Document that followRedirects defaults to true
Per https://github.com/mikeal/request#requestoptions-callback
2014-04-16 14:24:13 -07:00
David Glasser
440ca4cd4d Improve HTTP.call doc list of methods. 2014-04-16 14:18:32 -07:00
David Greenspan
93154e2221 Don't use _.pick in observe-sequence
Trying to stick to a small set of _ methods for stand-alone Blaze
2014-04-16 08:01:25 -07:00
David Greenspan
a01833f74c Fix Deps's broken _assign (harmless)
You can't do ({hasOwnProperty: 12345}).hasOwnProperty("hasOwnProperty") -- think about it.

Basically, `obj.hasOwnProperty(key)` is considered harmful.  `Object.prototype.hasOwnProperty.call(obj, key)` is fine.  We should standardize on `_.has` or something and do a pass through the codebase.

This is my code so my bad.
2014-04-16 08:01:25 -07:00
Slava Kim
5676dab4cc Use unreleased version of css-stringify that fixes #2028 2014-04-15 23:36:01 -07:00
Jonathan Pidgeon
89b087efb4 @font-face added to css minifiers 2014-04-15 23:22:06 -07:00
Matthew Arbesfeld
f68fe75ded Add support for block comments in Spacebars 2014-04-15 19:58:10 -04:00
Avital Oliver
2f5792acdb Change observe-sequence callbacks
We now call 'removedAt' and 'changedAt' with indices (instead
of 'removed' and 'changed'). While at it, fix a bug where
the 'movedTo' callback was firing with incorrect
indices.

commit f44d03d2c8bbfca32ae08fdabef35472c62042eb
Author: Avital Oliver <avital@thewe.net>
Date:   Tue Apr 15 14:54:29 2014 -0700

    A more complicated movedTo test that should catch a bug

commit 24f9ba3ffc708cf1af34e434ddf033c54d246614
Author: Avital Oliver <avital@thewe.net>
Date:   Tue Apr 15 14:05:44 2014 -0700

    Update tests and {{#each}} for new observe-sequence
2014-04-15 15:29:39 -07:00
Nick Martin
25e016e6a1 Missed an important site when bumping DDP version number. pre1->pre2
This should have been in 197552ae9b
2014-04-14 19:31:00 -07:00
Avital Oliver
e7a85a39b6 Merge pull request #1988 from apendua/jquery-extra-params
Expose extra parameters in custom jQuery events
2014-04-11 11:38:19 -07:00
apendua
c9f0f10130 Added test for jquery extraParameters capturing 2014-04-11 11:26:18 +02:00
David Glasser
25cef61447 History update for Mongo improvements 2014-04-10 17:06:54 -07:00
David Glasser
d2fd710b66 Feedback from nim's review of be4d306. 2014-04-10 16:58:33 -07:00
David Glasser
72c9657b0e Test that observeChanges works over a failover 2014-04-10 16:56:32 -07:00
David Glasser
1d5da6b439 Add a flag to MongoRunner which runs 3 mongods
This is only intended for testing. No data is preserved from one run to
the next, and if any mongod exits for any reason, the rest are killed;
there is no mongod restarting.

It takes a while (~20 seconds) to start up because it waits for the
replset to be ready.
2014-04-10 16:56:31 -07:00
David Glasser
24a0006c14 Re-poll all OplogObserveDrivers on mongo failover 2014-04-10 16:56:31 -07:00
David Glasser
42bfb46e46 Upgrade to node-mongodb-native 1.4.1
This improves the replset join event.
2014-04-10 16:56:31 -07:00
David Glasser
e91713d909 Clone various parameter lists in livedata
Specifically:

 - On client, clone parameters to sub and methods (so that if they're
   modified outside before the method message is actually sent, before
   the sub params are used for de-duping, or before resending messages
   on reconnect, this doesn't affect what we do)
 - On server, ensure that method bodies mutating their arguments does
   not affect callers of Meteor.call (executing locally)

Fixes #2025.
2014-04-10 14:54:58 -07:00
David Glasser
f63aeee8eb When initializing oplog tailing, only read 'ts'
This means we read less data (yay), but more importantly it means that
if the last entry contained custom EJSON types, we don't try to parse
them. This code gets called synchronously from the first
Meteor.Collection constructor, which can legitimately be before your
EJSON.addType call.

Fixes #2018.
2014-04-10 14:38:31 -07:00
David Greenspan
5345a0c78a Add missing "var" 2014-04-10 10:16:01 -07:00
David Greenspan
0fb3c916ef Minor (no-op) change 2014-04-09 11:57:56 -07:00
David Greenspan
204a2c7eb5 Don't depend on underscore in attrs.js 2014-04-09 11:57:56 -07:00
David Greenspan
cef1ae8d88 Blaze: move all attribute updating to attrs.js 2014-04-09 11:57:56 -07:00
Nick Martin
34581338f0 remove now unused script. 2014-04-08 23:53:05 -07:00
Nick Martin
9cee4d2265 Merge branch 'dev-bundle-bump' into devel 2014-04-08 01:03:40 -07:00