Commit Graph

22356 Commits

Author SHA1 Message Date
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
Sean McCann
67f5efeea2 Format properties and method names as code 2013-05-24 15:14:26 -07:00
Slava Kim
e3a33ec0dd Rename 'fileName' field to 'file'. 2013-05-24 15:13:28 -07:00
Slava Kim
9631221336 Rename infoPrefix since it is confusing. 2013-05-24 15:09:04 -07:00
Slava Kim
82c6efb5dd Remove RESERVED_KEYS since they duplicate existing constant. 2013-05-24 15:07:20 -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
Avital Oliver
2cd6b2a7b2 'meteor logs' can now talk to a galaxy 2013-05-24 11:07:13 -07:00
Slava Kim
359464c97b Logs' fileds like app, fileName, line are formatted and colored. 2013-05-23 16:14:20 -07:00
Slava Kim
8098dbdc03 Make line number a number and add comments. 2013-05-23 13:43:50 -07:00
Slava Kim
bab43785d8 Fix comment. 2013-05-23 12:16:13 -07:00
Slava Kim
8db6438fb5 Log methods add file name and line number. 2013-05-23 12:11:21 -07:00
Slava Kim
361d121934 Add license for nlogger. 2013-05-23 11:04:19 -07:00
Nick Martin
a59f9aa945 Remove fixed width constraint. Fixes #1043. release/nim-pull-requests-test-1 2013-05-22 22:54:37 -07:00
Nick Martin
37fecbd324 Merge branch 'pr-1052' into pull-requests 2013-05-22 22:46:45 -07:00
Nick Martin
28ea851c2a History 2013-05-22 22:45:06 -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
3d0a551be3 Merge branch 'pr-1045' into pull-requests 2013-05-22 22:42:17 -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
1f78662c26 Merge branch 'pr-1023' into pull-requests 2013-05-22 22:03:31 -07:00
Nick Martin
65636b5996 History. 2013-05-22 22:02:13 -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
Nick Martin
4e05cc65c1 Merge branch 'pr-1034' into pull-requests 2013-05-22 21:43:03 -07:00
Andrew Wilcox
d53799d7a5 return true/false from EJSON.isBinary 2013-05-22 21:42:51 -07:00
Nick Martin
bd55683898 Merge branch 'pr-1033' into pull-requests 2013-05-22 21:42:14 -07:00
Nick Martin
1a77d78f05 note in History 2013-05-22 21:42:02 -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
Nick Martin
691158c6bc Merge branch 'pr-1032' into pull-requests 2013-05-22 21:30:19 -07:00
Andrew Wilcox
46b75bcd18 explicitly don't match boxed versions of primitives 2013-05-22 21:30:02 -07:00
Emily Stark
d57b2e2b4d Make publishCursor a static method on Meteor.Collection.
Allows you to publish a LocalCollection cursor more easily.
2013-05-22 18:13:36 -07:00
Emily Stark
5a84a01d17 Change objFromText to Log.objFromText 2013-05-22 18:13:16 -07:00
Emily Stark
d0f042eb82 Decide the dev bundle's architecture at runtime.
On OSX, we require sysctl to be in /usr/sbin, whereas in other scripts where
this code is duplicated (e.g. scripts/admin/launch-meteor), the assumption is
that sysctl is on the PATH.
2013-05-22 17:36:08 -07:00
Emily Stark
92406c1e3e Add objFromText to Log object because it's used from satellite 2013-05-22 17:36:08 -07:00
Slava Kim
f6f69abd0b Remove one-time methods, split printColorfullyTextOrJSON 2013-05-22 16:36:10 -07:00
Slava Kim
6773112254 Print stderr with colors. 2013-05-22 15:22:01 -07:00
Slava Kim
3daf6a733b Improve 'Log.printColorfullyFromTextOrJSON' method 2013-05-22 14:08:28 -07:00
Slava Kim
1be18e2538 Fix indentation, add comments. 2013-05-22 13:22:07 -07:00
Slava Kim
77092dfe1d Add method that prints object and falls back to printing string. 2013-05-22 11:43:57 -07:00
Emily Stark
4ecd7c32b4 Print a nice error message when fetching dev bundle if no DATA_DIR set 2013-05-22 11:40:52 -07:00
Emily Stark
9d72fb5b86 Merge branch 'translator' into linker 2013-05-22 11:36:17 -07:00
Emily Stark
157a5a04ce Rename dev-bundle to dev-bundle-fetcher 2013-05-22 11:35:33 -07:00
Emily Stark
701fbc58dd Add comment to shell script plugin 2013-05-22 11:35:33 -07:00
Emily Stark
5b419582d0 Remove shell script plugin from star-translate
(It exists in dev-bundle now)
2013-05-22 11:35:33 -07:00
Emily Stark
c06ed089ff Change satellite translator to star translator in translated manifest 2013-05-22 11:35:33 -07:00
Emily Stark
0866b15814 Add star-translate and dev-bundle packages
dev-bundle exposes the shell script that downloads the dev bundle. We need this
in a package because both star-translate and tools/bundler.js need access to it.
2013-05-22 11:35:33 -07:00
Nick Martin
9557a8b0ab Upgrade node-mongo-native to the latest version, released today. 2013-05-21 20:02:33 -07:00
David Glasser
2aec63463b fix bundler tests 2013-05-21 18:03:41 -07:00
David Glasser
560302954b Change logging colors. cyan is too hard to read on white background. 2013-05-21 18:03:41 -07:00
Naomi Seyfer
f634817b79 Produce a mutable exported TEST_STATUS object for test-in-console 2013-05-21 17:54:51 -07:00