Commit Graph

12632 Commits

Author SHA1 Message Date
David Greenspan
fae2ef8d4b The awesome logic-solver package begins
cherry-pick these commits onto a better branch later
2015-01-21 11:56:19 -08:00
Slava Kim
e2b78cfd0b Merge branch 'templateEventsMethods' into devel
Adds Template#onRendered, Template#onCreated and Template#onDestroyed methods
2015-01-21 11:02:09 -08:00
David Glasser
fb8a79ba0f some comments about imported package versions 2015-01-20 22:47:25 -08:00
ekatek
27f7daa7f8 Merge branch 'master' into devel 2015-01-20 18:03:40 -08:00
ekatek
3347604325 Merge branch 'release-1.0.3' 2015-01-20 17:59:53 -08:00
ekatek
1e062d9f82 update examples to 1.0.3.1 2015-01-20 17:57:11 -08:00
ekatek
4c41b886a4 update docs to 1.0.3.1 2015-01-20 17:53:12 -08:00
David Glasser
340f49062b Merge branch 'pr/3497' into devel
Fixes #3497.
2015-01-20 17:45:09 -08:00
David Glasser
0cf3dbd3a9 Clarify 2015-01-20 17:45:03 -08:00
Robert Lowe
b420c8d651 Update outdated README.md
ReactiveDict's have been able to migrate since: 624035fab8

See [session](https://github.com/meteor/meteor/blob/devel/packages/session/session.js) as an example.
2015-01-20 17:45:03 -08:00
David Glasser
92c6e452cd Merge branch 'pr/3492' into devel
Fixes #3492.
2015-01-20 17:37:41 -08:00
David Glasser
68608e6aec Minor tweaks to #3492. 2015-01-20 17:37:41 -08:00
Daniel Li
a5bdf481df Clarified load order in docs. Fixes #3431 2015-01-20 17:37:41 -08:00
Ekaterina Kuznetsova
92a6adf5af Merge pull request #3281 from meteor/console-comments
more, cleaner comments in Console.js
2015-01-20 16:00:55 -08:00
David Glasser
7c087f7b76 Clarify command-line docs are just an overview
Addresses #3474.
2015-01-20 16:00:27 -08:00
Justin Santa Barbara
18a3b1ee08 Add files import to tools/run-selenium.js 2015-01-20 18:54:45 -05:00
ekatek
38e0e344c4 prepare for 1.0.3.1
- increment the release number in banners.json
- increment version number for meteor-tool
- increment release number in the release configuration
release/METEOR@1.0.3.1
2015-01-20 13:50:34 -08:00
ekatek
afb0915e68 be slightly more efficient in checking if dir exists
Cache the result of the stat call, rather than repeating it.
Also, while at it, rename the function.
2015-01-20 13:37:18 -08:00
ekatek
73a2f50d7d error handling in mkdir_p
Summary:
According to its contract, mkdir -p returns true if the directory
exists (and creates it if needed) and false if the item exists and isn't
a directory (so we couldn't make one). Because directory creation can
be concurrent, we need to wrap the actual mkdir call in a try/catch to handle
this issue (rather than just checking once).

This issue was always here. Previously, the race was against other apps editing
the same directory (which didn't come up that often). As of 1.0.3, files.js is a lot
more yieldy and this becomes a race condition on Meteor itself.

Test Plan: self-test

Reviewers: glasser

Differential Revision: https://phabricator.meteor.io/D15
2015-01-20 13:23:45 -08:00
ekatek
c5bc843816 bring README.md files up to 1.0.3 compatibility
Fill in all packages without README.md files with a short
README.md mentioning that this is an internal Meteor package.

Break up the top paragraph of a couple of existing README.md
files to be proper long description.

There is more work to do here, involving line wrapping and the like.
2015-01-20 12:21:35 -08:00
Ben Newman
1aba3a8e7a Eliminate the need for getAppDir in tools/server/shell.js.
Summary:
Instead of expecting the child process to figure out where the
`.meteor/local` directory is, we now tell it explicitly via the
`METEOR_SHELL_DIR` environment variable.

Fixes #3437.

Test Plan:
Run `meteor shell` in a separate terminal and see that it still connects
to an app running from the same app directory.

Reviewers: glasser

Reviewed By: glasser

Differential Revision: https://phabricator.meteor.io/D11
2015-01-20 13:56:57 -05:00
ekatek
99124d881a increment package versions release/METEOR@1.0.3 2015-01-20 10:25:22 -08:00
ekatek
87a9c59c64 fix History.md and banners.json 2015-01-20 10:13:36 -08:00
ekatek
3a3ba62736 set the banner 2015-01-20 09:53:29 -08:00
ekatek
b5628f4b23 minor test fixes
This mostly fixes tests:
- removes the 'restarted' check from some tests. We don't need it in those cases
  (printing the other banner is enough). We can no longer rely on that executing
  after the code in the package (in fact it seems to execute before, and then
  get overwritten), and the test still tests what it is intended to (that the new
  package code executes).

- minor fixes to essentially syntax errors -- the skeleton now uses double quotes
  instead of single quotes, so a regex failed to work, for example. We changed a
  version number in one part of the test, but not another.

- fixes selftest.js, sort of, to actually print out what test we are testing. This
  is an unfortunate interaction of Console.js changes in 1.0.2 and a progress bar
  (that came later). The progress bar erases the message telling you what test is
  running when you use a standard terminal. That's awkward, fixed.
2015-01-16 16:50:51 -08:00
Slava Kim
9c4e227ae4 More edits to docs, according to Sashko's comments 2015-01-16 16:40:24 -08:00
Slava Kim
9e7c14ac81 Globally replace Template.rendered callbacks to Template.onRendered
In:

- examples
- some blaze tests
- packages

Change:

- rendered -> onRendered()
- created -> onCreated()
- destroyed -> onDestroyed()
2015-01-16 16:36:23 -08:00
Slava Kim
e2d071f31c Sashko's comments 2015-01-16 16:00:53 -08:00
Slava Kim
c361b8eeee Update documentation about Template#onCreated/onRendered/onDestroyed 2015-01-16 11:29:22 -08:00
Slava Kim
6aff197c47 Better comments.
In response to Sashko's comments.
2015-01-16 10:47:51 -08:00
Ben Newman
3f98fe900a Allow redefinition of shell _ variable. 2015-01-16 11:33:13 -05:00
David Greenspan
c71e495e10 Only test constraint-solver and PVP on server
You can still include them on the client, but they don’t work in
Safari 4 and IE 8 because semver.js uses ES 5 methods including
String#trim, Array#map/filter/forEach, and possibly others.

This should fix any unit test failures in these packages.
2015-01-15 22:15:23 -05:00
ekatek
fe88795ef9 fixing some tests
Literally, just fixing a test to account for the fact that we now use " instead of
' in the package.js skeleton.
2015-01-15 13:20:14 -08:00
ekatek
c123b89c4e history.md update 2015-01-15 11:22:56 -08:00
ekatek
3eba43a42b do not tell publish-release to call a nonexistent command 2015-01-15 10:56:58 -08:00
ekatek
fbfd5c4664 increment version numbers release/METEOR@1.0.3-rc.1 2015-01-15 10:50:09 -08:00
Ben Newman
2443d83226 Reenable tab-completion of global variable names in meteor shell.
Summary:
Before this commit you could type `Meteor.is` in a `meteor shell` session
and then tab to see a list of possible completions (e.g.
`Meteor.isClient`, `Meteor.isServer`), but typing a prefix of a global
variable name like `Mete` followed by tab has been broken ever since we
stopped using the global object as the REPL context:
https://github.com/meteor/meteor/commit/7c7e52f2d2

The reason for that commit was to prevent the REPL from overwriting the
global `_` variable (which most Meteor developers expect to be bound to
`require("underscore")`): https://github.com/meteor/meteor/3227

This commit solves #3227 by making `repl.context._` a read-only property
that is permanently "bound" to underscore.  As a bonus, we now intercept
assignments to `_` and store those values as `repl.context.__`, so you
still have access to the last result in the shell via `__`.

Test Plan:
Run `meteor shell`, evaluate a few expressions, and see that (1) global
variables can be tab-completed, (2) `_` remains bound to underscore, and
(3) `__` gets bound to the result of the evaluated expressions.

Reviewers: avital, stubailo, glasser

Reviewed By: glasser

Differential Revision: https://phabricator.meteor.io/D12
2015-01-15 13:49:57 -05:00
David Greenspan
c1556f250b remove old comment 2015-01-14 20:29:39 -08:00
David Glasser
a1f8394750 Fix double execution of Session.close
In Session.close, `self.socket.close` could trigger this event handler:

    socket.on('close', function () {
      if (socket._meteorSession) {
        Fiber(function () {
          socket._meteorSession.close();
        }).run();
      }
    });

which could trigger a reentrant call to Session.close.  The self.inQueue
guard was not sufficient to stop multiple execution, because it was too
low.

Symptoms included:

- The "sessions" server fact would be decremented twice and become
  inaccurate (and even negative!)
- Connection.onClose callbacks could be called twice

Fixes #3331.
2015-01-14 18:37:24 -08:00
ekatek
d663d846c0 remove the deprecated set-latest-readme command 2015-01-14 18:36:41 -08:00
ekatek
d7bceb7d66 remove the deprecated set-latest-readme command 2015-01-14 18:36:18 -08:00
ekatek
be9ab672ce fixing existing-version
This was broken as part of the merge.
2015-01-14 18:35:43 -08:00
ekatek
4e1de9b56a show build architectures correctly
Part of the merge that has gone wrong: we forgot to show build arches
in --ejson. Fixing.
2015-01-14 18:35:33 -08:00
David Glasser
25c11c69cf Fix double execution of Session.close
In Session.close, `self.socket.close` could trigger this event handler:

    socket.on('close', function () {
      if (socket._meteorSession) {
        Fiber(function () {
          socket._meteorSession.close();
        }).run();
      }
    });

which could trigger a reentrant call to Session.close.  The self.inQueue
guard was not sufficient to stop multiple execution, because it was too
low.

Symptoms included:

- The "sessions" server fact would be decremented twice and become
  inaccurate (and even negative!)
- Connection.onClose callbacks could be called twice

Fixes #3331.
2015-01-14 17:50:16 -08:00
ekatek
4957ba34bb updated mailmap 2015-01-14 13:21:02 -08:00
ekatek
066e4fb435 update History.md 2015-01-14 12:21:18 -08:00
David Glasser
2e43b2bac9 mailmap: mention --email 2015-01-14 12:06:46 -08:00
David Glasser
e5130bdcea History: rough draft of changes since 1.0.3 2015-01-14 12:06:34 -08:00
Willson Mock
75dac55ad3 update license with up-to-date year 2015-01-14 12:06:26 -08:00
David Glasser
4ba315d2f6 Semi-expose password hashing
See #3410.
2015-01-14 12:05:05 -08:00