Commit Graph

12661 Commits

Author SHA1 Message Date
Ronen Babayoff
eeb95efaed Add no-ops for Meteor.publish, methods, and onConnection if no webapp 2015-01-27 17:45:22 -08:00
David Glasser
074087be8a meteor login --email was supposed to be boolean!
See #3532.

We honestly should probably just drop the option and allow you to type
either a username or a password, just like in accounts-ui.

Because options have to be consistently bool or not across commands (so
that you can put them before the command name), change the testing-only
dummy command's string option to a different nonsense name.
2015-01-27 14:17:41 -08:00
Sashko Stubailo
fee892c43e Merge pull request #3550 from romanzolotarev/patch-1
Update README.md
2015-01-27 11:58:06 -08:00
David Glasser
93805ca3b6 Merge branch 'pr/2938' into devel
Fixes #2938.
2015-01-26 15:57:21 -08:00
David Glasser
e2706b1390 History update. 2015-01-26 15:57:10 -08:00
David Glasser
1829cfee15 Remove obsoleted comment 2015-01-26 15:55:50 -08:00
Andrew Wilcox
5f1c8f2eeb Add spiderable support for hash fragments
Since the browser application cache appears not to support URL path
routes in a non-buggy way (see
https://github.com/meteor/meteor/pull/2926), applications using the
appcache package will want to use hash fragment routes instead.

This PR adds support to the spiderable package for hash fragment
routes.  An original URL such as `http://example.com/#!a=1&b=2` will
be encoded by a search engine as an escaped fragment, decoded by the
spiderable package, passed through to the phantomjs process, and
appear to the phantom client as `#!a=1&b=2` in `window.location.hash`
(the same as when the original URL is opened in a regular browser).
2015-01-26 15:54:47 -08:00
David Glasser
c51eed9330 Clone return value from server-side method call
The server-side Meteor.call abstraction is "RPC", not "function call",
so you shouldn't be able to mutate internal state using it. This is a
similar change to that done in e91713d9 with function parameters.

Fixes #3201.
2015-01-26 15:36:48 -08:00
David Glasser
72949bb271 Merge branch 'pr/2858' into devel 2015-01-26 15:23:20 -08:00
David Glasser
5ca2fb0f36 history notes and shorten lines 2015-01-26 15:23:06 -08:00
David Glasser
a355dd213d Allow individual email templates to override From
Also allow accounts-password email templates to set mail headers, and
for the From override to be a function rather than a constant.

Fixes #2858. Fixes #2854.
2015-01-26 15:19:19 -08:00
David Glasser
0c7b6dd460 History updates 2015-01-26 15:18:02 -08:00
David Glasser
c42ecf45af Ignore vim swap files in public and private dirs
We were already ignoring anything beginning with a dot in *source* files
in the app, but not in *asset* directories.

Notably, this means that vim swap files won't get bundled into your app,
and that hot code reload won't be triggered by editing asset files until
you actually save them!

Fixes #3322.
2015-01-26 15:10:15 -08:00
David Glasser
3d5e81bf23 Test the right packages with --test-app-path
Usually the project used for test-packages is a brand-new temporary
project. But you can also use --test-app-path, either for performance
reasons (to share the .meteor/local/isopacks cache between executions)
or because Cordova has issues with /tmp.  Previous to this change,
though, test-packages would leave packages in .meteor/packages from a
previous execution, even if they were packages that we are no longer
testing.

Fixes #3446.
2015-01-26 14:57:42 -08:00
Roman Zolotarev
81cfe6ce65 Update README.md 2015-01-25 15:29:46 +07:00
David Glasser
02f799e041 docs: disable appcache on Firefox
Fixes #3248.
2015-01-23 17:06:44 -08:00
David Glasser
10173c0ca5 Stop semi-supporting Npm.require in package.js
It can be used to get things like `path` (though you can just use '/'),
but trying to require the packages whose list is determined by running
the file while running the file just doesn't make any sense.
2015-01-23 16:58:33 -08:00
David Glasser
8a39b84e49 Merge branch 'pr/3526' into devel
Fixes #3505. Fixes #3526.
2015-01-23 16:50:12 -08:00
David Glasser
6bb5516010 history update 2015-01-23 16:49:19 -08:00
David Glasser
71af635a25 improve JsImage.load Npm.require errors
- Use buildmessage (skips stack trace)
- Drop extraneous trailing single quote
- Say "from" instead of "while loading" since this can also happen
  when running code from the file after load time
2015-01-23 16:47:49 -08:00
David Glasser
806ecd827b Support Npm.require('foo/bar') in JsImage.load
(ie, plugins and isopackets)
2015-01-23 16:44:02 -08:00
David Glasser
d4e1f80bf7 Add a comment 2015-01-23 16:43:52 -08:00
gsuess
2bd8eae66b Npm.require load correct submodule 2015-01-23 16:33:10 -08:00
gsuess
be11590dbe Fix Npm.require() package sub-modules. 2015-01-23 16:33:10 -08:00
Ekaterina Kuznetsova
8ac477a19b Change latest History.md version to 1.0.3.1
We never released 1.0.3, since there was a race condition around creating bootstrap tarballs. The latest version in History.md should be 1.0.3.1
2015-01-23 12:07:30 -08:00
Mitar
8f1de90afb Don't limit test helpers only to tests.
This allows other packages to extend/wrap existing test helpers (like testAsyncMulti).
2015-01-22 15:30:10 -08:00
Sashko Stubailo
f7b76857bf Merge pull request #3534 from 0a-/devel
fixed some typos that caused error message to end abruptly
2015-01-22 15:17:19 -08:00
archy
2a0d0dff3f fixed some typos that caused error message to be cut off half way 2015-01-22 21:20:09 +08:00
Slava Kim
7576e0f3f6 Add a comment about why we grab template callbacks first and then fire them
later
2015-01-21 20:11:22 -08:00
Slava Kim
f146489c27 Fix the bug of firing a rendered callback when it was added too late 2015-01-21 12:26:51 -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