Commit Graph

7485 Commits

Author SHA1 Message Date
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
Emily Stark
aa0552d847 Add credentialSecret to Google.retrieveCredential
I missed this one in 0fa591bc5.
2014-05-20 17:32:04 -07:00
Emily Stark
5a9a8a8452 Remove now-dead textFromFunction 2014-05-20 12:17:13 -07:00
Emily Stark
04e2a74c40 Use assets instead of Function.toString for multiline strings in tests 2014-05-20 12:06:10 -07:00
Emily Stark
0a4b7b55cc Use underscore in oauth-encryption package 2014-05-20 11:38:05 -07:00
Emily Stark
cad083107c Add some History items 2014-05-20 10:10:38 -07:00
Emily Stark
c0491e2aa7 Add History item for e86578e5. 2014-05-20 10:08:04 -07:00
Emily Stark
d40889aff9 Remove duplicate History item 2014-05-20 10:06:55 -07:00
Emily Stark
2e02a19ac5 Merge branch 'session-close-cleanup' into devel 2014-05-19 14:12:25 -07:00
Emily Stark
70d98d2484 Clean up Session.destroy/Session.close.
Session.destroy is now folded in to Session.close. Server._closeSession
is renamed to Server._removeSession, since the `destroy()` call inside
`_closeSession` was always a no-op.
2014-05-19 14:09:38 -07:00
Slava Kim
9c4e305178 Deduplicate the "inherits" helper in Meteor package
Meteor._inherits is the way to go.
2014-05-18 12:42:37 -07:00
Slava Kim
6f8e18b5d7 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-18 01:39:53 -07:00
Emily Stark
e86578e52b Fix accidentally-hardcoded Twitter URL in oauth1
Fixes #2154.
2014-05-17 09:51:08 -07:00
David Glasser
78b280ef88 Fix PollingObserveDriver error handling
The getRawObjects call can throw (eg, if you can't connect to the mongo
server for too long).  A few pieces of state were being corrupted in
that case:

- self._results was being set too early, leading to 'first' not being
  set on future _pollMongo calls, and_multiplexer.ready() never being
  called. This had two effects:

    - The observe (and thus any subscription) would never become
      ready().  Due to deduping, *no observe on this query* would
      ever become ready either.  This also implies that the
      observeChanges that are part of _publishCursor would never return,
      so the sub.onStop would never get called, so the observeHandle
      would never stop, leading not only to leaks, but for an inability
      for that query to ever stop being deduped with the corrupted
      PollingObserveDriver!

    - The onFlush calls would throw a "not ready" error instead of
      calling the callback, so (a) errors would be logged and (b) write
      fences would never be closed

  Fixed this by not writing to self._results at the top of the function.

- writesForCycle was being lost, so those write fences would never
  close. Fixed this by pushing writesForCycle back onto _pendingWrites
  if getRawObjects throws.
release/mongo-poll-recovery
2014-05-16 17:46:05 -07:00
Emily Stark
a3d71cae74 Add credentialSecret to Google.retrieveCredential
I missed this one in 0fa591bc5.
2014-05-16 11:09:37 -07:00
Emily Stark
a416ef847b Merge branch 'event-cleanup-cherrypick' into devel 2014-05-15 14:10:06 -07:00
Emily Stark
9ebf963be6 Add a test for cleaning up event handlers when template is destroyed 2014-05-15 13:55:55 -07:00
Emily Stark
871277adde Fix typo in DomRange event handler cleanup 2014-05-15 13:46:40 -07:00
David Greenspan
b46edf3c95 Clean up event handlers (untested)
Needs manual testing and then a unit test (that exercises multiple eventTypes as well).
2014-05-15 13:41:37 -07:00
David Glasser
9f477e974d Remove statement about Rails and Django
Fixes #2142.  Apparently Django doesn't work precisely this way.
2014-05-14 17:20:50 -07:00
Avital Oliver
910f75f359 Document UI.getElementData
While doing this, I realized that this function
can be called on text nodes as well, so it's probably
better named UI.getNodeData?
2014-05-13 11:27:19 -07:00