Commit Graph

1915 Commits

Author SHA1 Message Date
David Glasser
637686986e oauth1: Don't try to render results after sending a redirect.
This now causes an error, but was always wrong.
2013-05-31 13:02:20 -07:00
David Glasser
d27a3b4aa6 Update mongodb to 1.3.7.
The maintainer had pushed two different versions called 1.3.6, so it's a good
idea to avoid that version.
2013-05-30 11:53:36 -07:00
David Glasser
debbaa2db2 Set environment variable to stop browsers from using websockets. 2013-05-30 11:49:28 -07:00
David Glasser
e43f873f6b Update shrinkwrap file because mongodb module got re-pushed.
mongodb 1.3.6 was originally published depending on bson 0.1.8 and was
re-published depending on 0.1.9 (oops).
2013-05-28 13:26:15 -07:00
David Glasser
34c42d76b5 Upgrade Connect to 2.x.
Set $NODE_ENV appropriately (to 'development' in 'meteor run' and 'production'
otherwise) so that connect doesn't send stack traces over the network in
production.
2013-05-28 12:23:11 -07:00
David Glasser
8e630c6b8d Improve test driver performance.
Upgrading Underscore to 1.4.4 fixes a bug where _.throttle would sometimes take
double its timeout to deliver calls. So with this bugfix, our test suite
performs worse because reactivity happens more often. Reduce the throttling to
one update of the big table per second instead of twice a second. (Also, there's
no need to defer and call flush; the changed call does that!)
2013-05-28 12:15:52 -07:00
David Glasser
15e190f073 Upgrade to Underscore 1.4.4. 2013-05-28 12:15:47 -07:00
David Glasser
a90b321854 Clean up style, update HISTORY. 2013-05-24 15:34:15 -07:00
Stuart Johnston
7e9f36a583 Translate RegEx in lower levels of $and/$or/$nor selectors
Recurses over $and/$or/$nor selectors to translate RegEx into {$regex,
$options}.

Resolves #1089
2013-05-24 15:31:11 -07:00
Andrew Wilcox
4890e48d60 Fix name of extracted method in meteor/timers.js
When I refactored meteor/timers.js I extracted a method I called
"withCurrentInvocation", but what the code is actually doing is
ensuring that timer callbacks run *without* the current method
invocation (if any).

Rename to "withoutInvocation".
2013-05-24 14:36:41 -07:00
Nick Martin
a59f9aa945 Remove fixed width constraint. Fixes #1043. 2013-05-22 22:54:37 -07:00
Andrew Wilcox
cac2368d20 Fix CoffeeScript error reporting.
Fixes #1050.

With the upgrade to CoffeeScript 1.6.2 the source file name and line
number of a parse error is no longer present in the `message` field of
the exception.
2013-05-22 22:42:55 -07:00
Nick Martin
7aebc95f50 Add missing word. 2013-05-22 22:42:00 -07:00
Tim Haines
65a8832649 Add comment to past package 2013-05-22 22:41:08 -07:00
Nick Martin
bb4afdff5b move app out of package 2013-05-22 21:58:43 -07:00
Andrew Wilcox
4a99d1b3ee Support Meteor.defer in inactive iOS tabs.
In iOS Safari, `setTimeout` and `setInterval` events are not delivered
to inactive tabs (unless and until they become active again).  This
means that using `setTimeout(fn, 0)` to run `fn` in the next event
loop can in fact delay `fn` indefinitely.

This implementation uses the native `setImmediate` (when available) or
`postMessage` (all other modern browsers); falling back to
`setTimeout` if the first two aren't available.

The `qa` subdirectory includes a manual test to check that `defer` is
working in inactive tabs.  (Sadly the test can't run automatically
because scripts aren't allowed to open child windows except in
response to user events).

Factors out some common code in `timers.js`.
2013-05-22 21:46:49 -07:00
Andrew Wilcox
d53799d7a5 return true/false from EJSON.isBinary 2013-05-22 21:42:51 -07:00
Andrew Wilcox
1ad813951b Allow new Random instances to be constructed with specified seed.
For repeatable unit test failures with "random" data it's useful to be
able to create deterministic random number sequences.

Introduce `Random.create(seed...)` which returns a object with the
`Random` API (`id()`, `choice()`, etc.) initialized with the passed
seed(s).
2013-05-22 21:34:39 -07:00
Andrew Wilcox
46b75bcd18 explicitly don't match boxed versions of primitives 2013-05-22 21:30:02 -07:00
Nick Martin
9557a8b0ab Upgrade node-mongo-native to the latest version, released today. 2013-05-21 20:02:33 -07:00
Naomi Seyfer
24e38c75c6 Decode the platform string that is part of the URL used when browserstack
goes to deployed tests
2013-05-21 13:35:29 -07:00
Nick Martin
9822ace046 Update node mongodb driver. New version reconnects to mongo better when there is a new primary.
Passes package and tools tests plus basic app sanity testing, but I have not done and deep or specific testing.
2013-05-20 21:47:59 -07:00
Nick Martin
44ac53f819 Tweak package descriptions. 2013-05-17 21:01:14 -07:00
Tim Haines
a3f493bb79 Add retrieveCredential server methods 2013-05-17 21:01:14 -07:00
Tim Haines
00efa2fe51 Update requestCredential method to take only 2 params - options and credentialRequestCompleteCallback 2013-05-17 18:00:35 -07:00
Tim Haines
d57f7047f4 Extract weibo package from accounts-weibo 2013-05-17 18:00:35 -07:00
Tim Haines
8f2eb9b481 Extract meetup package from accounts-meetup 2013-05-17 18:00:35 -07:00
Tim Haines
9b1b6da9ff Extract google package from accounts-google 2013-05-17 18:00:35 -07:00
Tim Haines
b239f08ad7 Extract facebook package from accounts-facebook 2013-05-17 18:00:35 -07:00
Tim Haines
107a06fd8c Extract github package from accounts-github 2013-05-17 18:00:35 -07:00
Tim Haines
b7754f8c28 Refactor Oauth packages and extract twitter package from accounts-twitter 2013-05-17 18:00:35 -07:00
Avital Oliver
a14b278a29 Unbreak IE9 OAuth login in some weird edge case 2013-05-14 14:14:38 -07:00
David Glasser
afe5867f68 Oops, you can't use slice on arguments. This time tests actually pass. 2013-05-14 12:32:55 -07:00
David Glasser
1fc2dabf6d Oops, didn't mean to revert test! 2013-05-14 11:44:22 -07:00
David Glasser
4c2e1ef1b6 Fix Opera test failures by reverting unnecessary part of 583508e.
Opera seems to have some consistent but difficult to diagnose bugs related to
using _.map in this context. (As in, minifying the test was difficult because
there seemed to be some odd action at a distance, but a given test failure was
fully reproducible.) This appears to work while still preserving the feature
added in 583508e.

Also fix a missing var (which does not appear to be the original problem).
2013-05-14 11:32:53 -07:00
David Glasser
6063ca90ef Oops, didn't mean to add this file 2013-05-14 10:48:33 -07:00
Avital Oliver
773a86c80c Support 'tap' event. 2013-05-13 23:45:21 -07:00
David Glasser
8bf2e0edae More gitignore files. 2013-05-13 18:16:14 -07:00
David Glasser
8dbee56e77 Add .gitignore to package directories to match linker branch.
This way switching between linker and devel doesn't leave you with lots of junk
in git status.
2013-05-13 10:57:37 -07:00
Naomi Seyfer
3f36763f29 Our version of underscore doesn't have 'partial' anymore since we
downgraded.

Missed one instance of this because I missed arrays in the EJSON support in
mongo testing.
2013-05-12 01:31:39 -07:00
Nick Martin
9b74af5b2a Fix Firefox 3.6. addEventListener useCapture parameter is not optional on old firefox. 2013-05-10 21:37:17 -07:00
Nick Martin
e0573b61b5 Fix IE8. It does not have window.addEventListener 2013-05-10 21:04:50 -07:00
Avital Oliver
3188861717 oops 2013-05-09 22:13:54 -07:00
Avital Oliver
cb3bcc6b61 History.md improvement 2013-05-09 19:01:43 -07:00
Avital Oliver
7f970513e5 Faster reconnects. Fixes #696
- Lower reconnect timeout to 5m
- Respond to the 'online' event to reconnect immediately
  eg. in case you switched from 3G to Wi-Fi
2013-05-09 18:24:23 -07:00
Avital Oliver
5b2240df4f Use Websockets on all browsers other than iOS <= 5 2013-05-09 11:50:56 -07:00
David Glasser
99d5be0079 Mimize shrinkwrap files so that they change less in git. 2013-05-09 11:17:36 -07:00
David Glasser
48774f7aac Simpler binary search implementation which does not special-case length=1. 2013-05-06 21:00:21 -07:00
David Glasser
2e9ad511d8 Style cleanup, vars, etc. 2013-05-06 20:46:07 -07:00
James Gill
8e0cf9cfa8 Replacing the insert method in sorting.
It has been replaced with a binary search, instead of
an insertion-sort O(n^2) search.
2013-05-06 20:31:20 -07:00