Commit Graph

1459 Commits

Author SHA1 Message Date
David Glasser
caecb40f1a Small improvements to LiveRange constructor docs. 2012-09-28 16:14:10 -07:00
David Glasser
4dcdeb4435 Fix jsparse tests on IE7. 2012-09-28 12:39:03 -07:00
David Glasser
2495cb2f58 Support unlimited tabs by working around browser per-hostname connection limits.
The URL provided to Meteor.connect may now be a function returning a new URL on
each socket connection, or contain the substring "MeteorWildcard" which is
replaced by a random string (a UUID) on each socket connection.
2012-09-28 11:57:48 -07:00
David Glasser
8ff16d3b04 IE7 throws an error if you use unquoted false or true as a key in object literals.
Quoting it works (and x[false] and x[true] work).
2012-09-28 11:42:57 -07:00
David Glasser
80dbb2e7a6 Follow-up to ac9f553: only save migrationData if name provided. 2012-09-28 07:37:13 -07:00
David Glasser
ac9f553d07 Refactor "reload" package: camelCase the API, and make the onMigrate name
optional.

Motivation: now that we don't use "url" as a key in _LivedataConnection, it's
easier to turn it into a function (for MeteorWildcard support).
2012-09-28 00:19:54 -07:00
David Glasser
bee8bcf482 Don't allow migrations if there are any outstanding methods.
This is essentially ported from the auth branch.

Motivation: would like to avoid using url as a reload key, in preparation for
making url a function.
2012-09-28 00:14:41 -07:00
David Greenspan
4e15995e4f Fix for Handlebars helper functions returning null
Now you can do {{foo.bar}} if foo() returns null,
and get nothing (silent failure) just like you do
if foo is a non-existent property or function.
2012-09-27 14:31:21 -07:00
David Glasser
ef874ae15d node.sh: no readline if in Emacs shell. 2012-09-27 13:38:29 -07:00
David Glasser
09eda1e30a Increment bundle to 0.2.5 (because 0.2.4 has a bad node version). 2012-09-27 13:03:45 -07:00
David Glasser
20f8da21c5 Update node to v0.8.11, a quick bugfix release on top of v0.8.10. 2012-09-27 13:02:43 -07:00
David Glasser
1426432da8 Update dev bundle version number to 0.2.4. 2012-09-27 12:39:01 -07:00
David Glasser
c4f977588a Replace our custom non-blocking stdin hack.
Instead:

  - Upgrade to node v0.8.10, which includes the fix to
    https://github.com/joyent/node/issues/3994, to fix "meteor mongo".

  - To fix "meteor deploy" in emacs shell, use a hack to revert the O_NONBLOCK
    setting after process.stdin is evaluated: since the 3994 fix only applies
    when something is spawn'd, make sure to spawn 'true' after evaluating
    process.stdin.

  - In our node.sh script, if in emacs shell, use Perl to make stdin
    non-blocking after node exits. This makes the Node REPL work.
2012-09-27 12:39:01 -07:00
David Glasser
bc3778c17f Update SockJS to 0.3.3 for iOS 6 xhr-polling support.
See https://github.com/sockjs/sockjs-node/pull/88
2012-09-27 12:34:48 -07:00
David Glasser
094546d53b Check that the value to Session.set is scalar (like we already do in Session.equals).
Document this restriction for both functions.

We may later relax this (with deep-copy in and out of the Session); see issue
2012-09-27 11:10:28 -07:00
David Glasser
a016e83754 Let exceptions from stream message callbacks percolate upwards.
We used to be unable to do this because of a SockJS bug, but the SockJS folks
read our XXX comment and fixed the bug!
https://github.com/sockjs/sockjs-client/issues/61
2012-09-25 18:26:06 -07:00
David Glasser
a9dfc0322b Build RPMs in the build-specific tempdir. 2012-09-25 17:52:42 -07:00
David Greenspan
0565593da5 block browser events triggered by Spark DOM manip 2012-09-24 20:01:24 -07:00
David Greenspan
deafbf4a3d implement proper legacy-style id/name preservation
just in spark_tests, but to go in package
2012-09-24 20:01:24 -07:00
Nick Martin
65aaa2e991 Specify UTF-8 for app HTML. Fixes #264 2012-09-24 18:11:24 -07:00
Nick Martin
12e4c1b157 Respect existing ROOT_URL environment variable in dev mode runner. 2012-09-24 17:54:25 -07:00
David Greenspan
4b25e2d82d fix tinytest error message bug 2012-09-24 12:12:42 -07:00
David Greenspan
1168a70e3e fix reactive <select> tag in IE 7-8
Work around IE bug where HTML comments don't materialize inside
<select> and <option> tags.
2012-09-24 12:06:19 -07:00
David Glasser
a0252d6fbe Fix #352: meteor should work if a parent directory is named 'public'.
Also make sure that every use of app_dir that eventually gets passed to
_scan_for_sources is a resolved path. (Maybe should just resolve in
require_project instead?)
2012-09-24 11:41:22 -07:00
David Glasser
6c6fa5a6b1 Fix race condition in spiderable.
If the "check to see if page is ready" interval ran when "Meteor" is defined but
"Meteor.status" is not yet defined, an error message about trying to call an
undefined function would be dumped into the output source before the page
itself.

This can be easily reproduced by changing the timer interval from 100 to 1.
2012-09-24 10:41:14 -07:00
Avital Oliver
879bee2f50 Merge pull request #350 from yanivoliver/master
Use new event handler syntax in skeleton app
2012-09-21 17:38:21 -07:00
Yaniv Oliver
58c03ad5da Use new event handler syntax in skeleton app 2012-09-21 16:59:03 -07:00
David Greenspan
b112cf8f92 small jsparse improvements 2012-09-20 21:22:34 -07:00
David Glasser
d715a5ff74 Merge branch 'release-0.4.1' into devel (some changes discovered during the
not-yet-finished 0.4.1 release process).
2012-09-20 18:09:59 -07:00
David Glasser
2768abd5c3 Fix IE7 minimongo test failure: don't use LocalCollection._f._equal on Dates.
(We should eventually make all the selector code support Dates, but until then,
don't use it.)
2012-09-20 17:04:50 -07:00
Avital Oliver
b0d181dbcc Add the replaceLocalhost option to Meteor.absoluteUrl 2012-09-20 15:07:52 -07:00
David Glasser
4b8a688000 Change some test names to make it easier to search output for failures.
We should eventually improve test output in more sophisticated ways (eg,
failures could show up sorted at the top, or be duplicated in a second column),
but this is a simple start.
2012-09-20 12:05:51 -07:00
Avital Oliver
e1a7c2ff46 Minor changes to deprecated absolute-url package based on code review comments 2012-09-20 07:33:08 -07:00
Avital Oliver
de413efe50 Fold the absolute-url package into the meteor package 2012-09-19 16:19:54 -07:00
David Glasser
e27304c999 Work around Node 0.8 brokenness with using /dev/stdin in subprocesses. v0.4.1 2012-09-19 13:50:06 -07:00
David Greenspan
886d657afe Merge branch 'jsparse' into devel
Adds the "jsparse" JavaScript parser as an internal package.

At some point jsparse will get proper docs and become a public
package.  For now, it's basically complete and has unit tests,
so it meets the bar for an internal package.  It will be used
by the new docs tool.
2012-09-19 11:45:02 -07:00
David Greenspan
a4c4fabbbd make jsparse internal 2012-09-19 11:42:34 -07:00
David Glasser
125cf2153d Add one more change to History.md. 2012-09-18 16:41:09 -07:00
David Glasser
f0fd0c476c Make sure that Mongo remove calls finish before returning from _Mongo.remove.
This started causing test failures in deployed tests while testing the 0.4.1
release candidate; we think this may be related to bumping the mongodb node
driver version. (Maybe the change to this.poolSize in
f81870f7da
?)
2012-09-18 15:54:19 -07:00
David Greenspan
7b036318e7 Fix Spark CSS updating tests in Safari 4, iPad 2012-09-18 15:02:07 -07:00
David Greenspan
a0ded8c3d0 Fix Spark in Firefox 3.6-4 2012-09-18 15:01:28 -07:00
David Greenspan
1cf759ed7e Unit test driver on iPad: make tests clickable 2012-09-18 15:01:12 -07:00
David Glasser
58af66a110 Make email tests pass when deployed. 2012-09-18 13:30:41 -07:00
David Greenspan
1caf2da2b5 fix CSS preproc tests when Chrome is zoomed 2012-09-18 11:23:49 -07:00
David Glasser
f40b7b03c0 Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-18 10:49:40 -07:00
David Glasser
7f14281cfa More History.md rewording for 0.4.1. 2012-09-18 10:29:35 -07:00
David Glasser
d1467c983d Revert "Update version number for 0.4.1."
This reverts commit 8ddcc21a0e.

More changes are necessary to History.md.
2012-09-18 10:21:26 -07:00
David Glasser
8ddcc21a0e Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-17 23:38:51 -07:00
David Glasser
8a724d1428 Final (hopefully) History.md update for 0.4.1. 2012-09-17 23:33:08 -07:00
David Greenspan
7ff08603a9 Catch errors in Meteor.publish handlers
Previously, it seemed that bugs in publishers would sometimes
prevent future subscriptions from working, grinding the app to
a halt.
2012-09-17 22:17:32 -07:00