Commit Graph

7569 Commits

Author SHA1 Message Date
Matthew Arbesfeld
da4004880d Merge branch 'blaze-refactor' of https://github.com/meteor/meteor into blaze-refactor 2014-06-06 11:29:21 -07:00
Matthew Arbesfeld
fdcd43d057 Fix failing compiler tests 2014-06-06 11:28:56 -07:00
Avital Oliver
e5118295d3 Fix Blaze.getElementController
We had a bug in which event handlers inside {{#if}} blocks
didn't see the data context.

I'll commit a test that would have caught this after this commit.
2014-06-06 11:15:46 -07:00
David Greenspan
d3c7b92d80 Comments in renderpoint.js 2014-06-05 23:30:31 -07:00
Avital Oliver
47211cb46d Remove one unhelpful stack frame from Deps
Instead of `callWithNoYieldsAllowed` which calls a function
within (introducing a new stack frame that doesn't absolutely
nothing on the client), we now use `withNoYieldsAllowed` that
returns a new function that then gets called.

Since Deps is used all over the place, and in particular
in Blaze, this makes it much easier to look at the stack
trace when stopping in a debugger (for example, when a helper
gets re-executed).

Motivated by the Blaze manual.
2014-06-03 16:57:47 -07:00
Avital Oliver
b1781939a9 Add comment 2014-06-02 11:28:42 -07:00
David Greenspan
0d36793c8d Start porting another test 2014-05-29 14:31:05 -07:00
David Greenspan
97be62f7c2 Move “templating” tests into “spacebars-tests” 2014-05-29 14:18:40 -07:00
David Greenspan
acb772c6cb Fix some usages of .extend(…) in tests
rename newblaze.js to template.js
2014-05-28 15:50:06 -07:00
David Greenspan
e728fb344b Make rendered callback sort of work 2014-05-27 15:53:22 -07:00
David Greenspan
6665735bb0 Rename more tests 2014-05-27 14:20:26 -07:00
David Greenspan
13197be136 Make sure tests have unique names 2014-05-27 13:59:25 -07:00
David Greenspan
3df4e95845 Merge branch 'devel' into blaze-refactor
Conflicts:
	packages/spacebars-tests/template_tests.js
	packages/ui/domrange.js
2014-05-27 13:38:59 -07:00
David Greenspan
7768cb0611 Name more tests after their packages
It seems like a good practice for tests to always be grouped under their package name, so that it’s easy to find the tests when they fail.  It’s confusing to have the tests in packages like “spacebars-tests”, “spacebars-compiler”, and “templating” be in various groups like “spacebars - templates” and “spacebars - templating”.

I didn’t go through and enforce this convention in all packages, just a few, but I think it would be good and not too hard to do the rest sometime.
2014-05-27 13:26:56 -07:00
David Glasser
2e79408658 start up mongo even if 'ps ax' output is >200KB
10MB should really be enough though.

Fixes #2158.
2014-05-23 18:08:13 -07:00
David Glasser
00157d8aed meteorNpm.dependenciesArePortable skip bad symlink
stat fails if a symlink points to something nonexistent. since we're
literally looking for stuff physically under a directory, we don't need
to chase symlinks.
2014-05-23 17:53:35 -07:00
David Glasser
875274d2a4 Fix audit-argument-checks error after login
If you successfully subscribed to a publisher, changed user ID, and the
second time running the publisher it failed the audit-argument-checks
test, the error would say "Did not check() all arguments during
publisher 'undefined'" instead of including the correct publisher name.

That's because the "recreate Subscription on setUserId" code forgot to
include the sub's name in the new Subscription (the name field is
literally only used for this error message).

Alluded to in #2092
2014-05-23 17:15:35 -07:00
Kenton Varda
2c7e71b47d Add option to meteor bundle to output a directory.
This is useful when the output tarball would just be unpacked immediately
anyway, e.g. because it is part of a larger build process. This shaves
eight seconds off my build. :)
2014-05-22 19:32:41 -07:00
Maxime Quandalle
c2e075393f Remove unused Underscore dependency in the Deps package
Underscore is useless since 8805281
2014-05-22 16:06:26 -07:00
Torgny Bjers
816641caad Adding = to long options for MongoDB compilation
References meteor/meteor#2163
2014-05-22 15:57:54 -07:00
David Glasser
21bc8be7df get error message in 'ps ax' failure case
We still want JSON.stringify too because that includes stuff like the
exit code.

See #2158
2014-05-22 15:43:26 -07:00
emgee3
98d81904f1 Update srp.js
Remove "Password is the plaintext password." comment from SRP Server. Likely a cut and paste error, as SRP server is never passed the plaintext password.
2014-05-22 15:24:43 -07:00
David Glasser
7fab1715ee minor rewording of History entry
IE8 is 95% to blame, our code is 5% to blame for using the same
identifier twice in a scope (still not clear to me if that is
technically legal code), minification is 0% to blame even though
it revealed the issue :)
2014-05-22 12:26:54 -07:00
Emily Stark
1492da8ed4 Fix docs typo 2014-05-22 12:10:26 -07:00
Emily Stark
bf8426322c Merge branch 'master' into devel 2014-05-22 09:50:17 -07:00
Emily Stark
3a8ea622b9 Merge branch 'release-0.8.1.3' 2014-05-22 09:49:36 -07:00
Emily Stark
c0722aac30 Update docs and examples to 0.8.1.3 2014-05-22 09:48:54 -07:00
Emily Stark
110ba942ee Update history for 107e9087 release/0.8.1.3 release/0.8.1.3-rc3 2014-05-22 09:27:08 -07:00
Emily Stark
ca12a9842d Update History, banner, notices 2014-05-21 21:10:03 -07:00
Emily Stark
560ba659e1 Use ROOT_URL instead of Host header in spiderable 2014-05-21 20:40:40 -07:00
Emily Stark
1e882d786d Update History for 2db7490 release/0.8.1.3-rc2 2014-05-21 20:30:02 -07:00
David Glasser
f3ae43a194 Fix IE8 minification bug
The minifier changed the two uses of HTMLTag into two different symbols:

  var n = function r() {
    var t = this instanceof e.Tag ? this : new r(), n = 0, o = arguments.length && arguments[0];
    return o && "object" == typeof o && o.constructor === Object && (t.attrs = o, n++),
    n < arguments.length && (t.children = Array.prototype.slice.call(arguments, n)),
    t;
  };
  return n.prototype = new e.Tag(), n.prototype.constructor = n, n.prototype.tagName = t,
  n;

Then, IE8 apparently actually creates two separate objects for 'n' and
'r'; see #3 at http://kiro.me/blog/nfe_dilemma.html

So just because n.prototype is an e.Tag doesn't make r.prototype a e.Tag

This means that `new r() instanceof e.Tag` is false, and so the first
line of the function leads to infinite recursion.

I'm not sure if this is an uglify bug as well; dealing well with
multiple declarations of the same function may be out of spec.

Fixes #2037.
2014-05-21 20:28:34 -07:00
David Glasser
2db7490db5 Fix IE8 minification bug
The minifier changed the two uses of HTMLTag into two different symbols:

  var n = function r() {
    var t = this instanceof e.Tag ? this : new r(), n = 0, o = arguments.length && arguments[0];
    return o && "object" == typeof o && o.constructor === Object && (t.attrs = o, n++),
    n < arguments.length && (t.children = Array.prototype.slice.call(arguments, n)),
    t;
  };
  return n.prototype = new e.Tag(), n.prototype.constructor = n, n.prototype.tagName = t,
  n;

Then, IE8 apparently actually creates two separate objects for 'n' and
'r'; see #3 at http://kiro.me/blog/nfe_dilemma.html

So just because n.prototype is an e.Tag doesn't make r.prototype a e.Tag

This means that `new r() instanceof e.Tag` is false, and so the first
line of the function leads to infinite recursion.

I'm not sure if this is an uglify bug as well; dealing well with
multiple declarations of the same function may be out of spec.

Fixes #2037.
2014-05-21 16:19:43 -07:00
David Glasser
29602725ff Update uglify-js from 2.4.7 to 2.4.13
This doesn't fix the bug I was investigating, but probably fixes other
bugs.
2014-05-21 16:18:59 -07:00
David Glasser
4ac2c4476d History update for 78b280ef88 2014-05-21 14:15:57 -07:00
David Glasser
4fd4383bc0 EJSON custom type conversion functions can't yield
Code ought to be able to parse and stringify EJSON values without having
to worry about concurrency issues.

Related to #2136.
2014-05-21 14:12:58 -07:00
David Glasser
91aa5204ed Allow check in non-Fiber server code
Fixes #2136.
2014-05-21 14:12:58 -07:00
Avital Oliver
df9af60fe2 observe-sequence depends on random 2014-05-21 11:58:20 -07:00
Avital Oliver
a5e07f8366 observe-sequence depends on underscore 2014-05-21 11:43:06 -07:00
Emily Stark
107e908757 Remove short aliases for meteor authorized in help text.
Fixes #2155.
2014-05-21 11:21:01 -07:00
Emily Stark
6189a92536 Revert "Add short aliases for '--add' and '--remove' options in "meteor authorized""
This reverts commit 32fc06e7f8.

As Glasser points out, our command option parsing is such that all `-a`
flags for commands have to be consistent in whether they are boolean or
not. Since we could easily imagine wanting a boolean `-a` or `-r` flag
in the future, we should be careful about adding these aliases. We'll
update the docs to remove `-a` and `-r` instead.
2014-05-21 11:08:46 -07:00
Emily Stark
db4c344e83 Tweak history 2014-05-21 10:39:22 -07:00
Emily Stark
7cd433a269 Merge branch 'fix-ff12-spacebars-tests' into devel 2014-05-21 08:29:13 -07:00
Emily Stark
22f4ca0c21 Add 0.8.1.3 section header to History 2014-05-20 19:43:21 -07:00
Emily Stark
7fd89078e5 Update History for 1a9509 release/0.8.1.3-rc1 2014-05-20 17:36:41 -07:00
Emily Stark
1a9509650a Use underscore in oauth-encryption package 2014-05-20 17:35:57 -07:00
Emily Stark
c0cc0ece2f Update History 2014-05-20 17:35:50 -07:00
Emily Stark
cc79a7cc0a Add History item for e86578e5.
Conflicts:
	History.md
2014-05-20 17:34:41 -07:00
Slava Kim
32fc06e7f8 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-20 17:32:25 -07:00
Emily Stark
10d8894842 Fix accidentally-hardcoded Twitter URL in oauth1
Fixes #2154.
2014-05-20 17:32:15 -07:00