Commit Graph

22356 Commits

Author SHA1 Message Date
Avital Oliver
bb8e6ba94d Merge pull request #664 from jperl/auth-profile-data
Return all basic google and facebook profile fields
2013-02-13 12:56:16 -08:00
Nick Martin
30fe79bf1b Final tweaks to History. 2013-02-13 12:20:02 -08:00
David Glasser
82e2098102 Rename offending_message field to camel-case. 2013-02-13 11:03:54 -08:00
David Glasser
7d2f35b962 reformat credit line 2013-02-13 10:30:49 -08:00
David Glasser
562eb0a54a Fix use of wrong field name in hot code push check.
Could result in multiple attempts to reload.
2013-02-13 10:28:49 -08:00
Andrew Wilcox
f2d9792f90 Route policy declarations (for network routes only for now).
Allows packages such as stream and accounts to declare URL prefixes
such as /sockjs/ and /_oauth/ to be network routes.

Updates server to avoid serving app HTML on network routes.

Checks for conflict between files in public/ and network routes.  For
example, the developer might not know that /sockjs/ is reserved, and
might create a file "public/sockjs/socks-are-great.png".
2013-02-13 13:12:59 +00:00
David Glasser
732e948de7 Add ordered-dict dependency to spark. 2013-02-13 00:46:12 -08:00
David Glasser
df7d6906e9 Move random generation code from minimongo and uuid packages to new random
package.

The new API is Random.id(), Random.fraction(), Random.choice(arrayOrString), and
Random.hexString(digits).

Meteor.uuid is kept around for backwards compatibility.
2013-02-13 00:42:25 -08:00
David Glasser
9a7ac87778 Document random package. 2013-02-13 00:42:05 -08:00
David Glasser
516f4dfaf7 Move Meteor.uuid to past package. Add Random.hexString. 2013-02-13 00:42:05 -08:00
David Glasser
b3d1fe4112 move objectid generation back into objectid class 2013-02-13 00:10:26 -08:00
David Glasser
9b486b3c9b Meteor.random -> Random.fraction
add Random.choice
2013-02-13 00:08:50 -08:00
David Glasser
d2ae5f7e1c Replace almost all uses of Meteor.uuid with Random.id. 2013-02-12 23:55:19 -08:00
David Glasser
ed36db211d Use Random.id() in Spark.
We couldn't use Meteor.uuid() because it contained '-' but Random.id() is fine.
2013-02-12 23:51:34 -08:00
David Glasser
e95bcb870c Get rid of duplicate random code inside minimongo.
Temporarily move the objectid-specific function into random.js.
2013-02-12 23:49:43 -08:00
David Glasser
eb14cfceeb Rename Meteor.id() -> Random.id() 2013-02-12 23:44:04 -08:00
Nick Martin
a2a2b56b9b Rework change log. Close to final shape. 2013-02-12 23:39:20 -08:00
David Glasser
fdb1773d4a Rename uuid package to random. No further changes. 2013-02-12 23:38:22 -08:00
Nick Martin
f70a7b974e More contributors to History.md 2013-02-12 19:00:43 -08:00
David
dc9f69d39f Minor link correction 2013-02-12 18:16:02 -08:00
David
ff430bc287 Minor link correction 2013-02-12 18:13:35 -08:00
David Glasser
1eecbb070e Merge branch 'devel' into ddp-pre1 2013-02-12 17:42:20 -08:00
David Glasser
14c0228361 Include "before" argument in addedAt callback, as documented. 2013-02-12 17:40:03 -08:00
David Glasser
77ac416374 Some ddp-pre1 cleanup
- Delete dead EJSON._each2.

- Make OrderedDict.remove throw if the key isn't in it.

- Make changed callbacks in two places throw if the document isn't in the
  dictionary. (Other callbacks implicitly throw via OrderedDict.)

- Remove OrderedDict.pop (which didn't return the key) and push.
2013-02-12 17:18:09 -08:00
Naomi Seyfer
4bccce090a Upgrade bootstrap to version 2.3.0 2013-02-12 16:33:51 -08:00
Naomi Seyfer
124d05488b Upgrade bootstrap to version 2.3.0 2013-02-12 16:32:07 -08:00
David Glasser
78eb2a32d6 Watch '.lessimport' files for changes (but don't parse them).
'.lessimport' is now meaningful rather than just a suggestion in the docs.
2013-02-12 14:36:04 -08:00
David Glasser
cb1eb96b9e Rename less_test_constants file to be .lessimport.
This doesn't actually make a difference (since packages enumerate their files
instead of using autodetection) but it's pedagogically nice.
2013-02-12 14:35:17 -08:00
Nick Martin
edb6ccce56 Update history for userId global fix. 2013-02-12 12:39:02 -08:00
Avital Oliver
3fda3bd9ca Wrap all of accounts-base/localstorage_token.js in a closure.
This way we don't modify window.userId.
2013-02-12 12:38:08 -08:00
Nick Martin
358b13fbb9 Merge branch 'pr-667' into devel 2013-02-12 12:37:05 -08:00
Andrew Wilcox
93b31e563c Code review updates to the bundle manifest.
`__meteor_bootstrap__.bundler` => `__meteor_bootstrap__.bundle`

`bundle.bundle_dir` => `bundle.root`

Rather than placing app_info/appInfo containing the manifest in the
bundle object, instead I'm now placing the manifest directly in the
bundle object.  A) no code currently uses bundle.appInfo.load; B) if
someday we expand the manifest to also include server side resources
than we'd be getting rid of `load` anyway; C) I think it reads better:

`bundle.appInfo.manifest` => `bundle.manifest`

cp_r now returns a list of os-specific relative file system paths as
strings, instead of paths as arrays.

I changed the normalized "path" field in the manifest to be a relative
path instead of an absolute path (`"/static/cat.jpg"` =>
`"static/cat.jpg"`).  This felt better when looking at the manifest; I
think because the path is relative to the bundle root.
2013-02-12 12:35:30 -08:00
Andrew Wilcox
99ebc78d7a Generate a bundler manifest.
Creates a manifest of the static files delivered to the client, for use
by the app cache.  The manifest is also designed to be usable to generate
etag's for issue #626.

In the original bundler code `self.css` and `self.js.client` starts
out as an array of os-specific file paths and later becomes an array
of URLs (including query parameters).  While I tried to minimize code
changes to avoid creating extra work for the engine project, this
turned out to be too crazy to deal with.  In this version `self.css`
and `self.js.client` stay as file paths, and _generate_app_html now
pulls the client URLs from the new manifest.

This PR is thus proposing a design where the bundler manifest becomes
the source of knowledge about client static resources included in the
bundle, and is then used to generate the app html, the app cache, and
perhaps etag's in the future.  (If it made sense then the `load` list
of server Javascript files could also be folded into the manifest,
making the manifest the source of knowledge about all static
resources... but the code in this PR don't include any steps in that
direction).
2013-02-12 12:35:30 -08:00
Avital Oliver
c27bfeb952 Wrap all of accounts-base/localstorage_token.js in a closure.
This way we don't modify window.userId.
2013-02-12 11:50:33 -08:00
David Glasser
0021307708 Updates to Python DDP client.
- Implement version handshake.

- Use a condition variable instead of sleep(0).

- Don't crash on 'added' with no fields.

- Include 'reason' when connection is closed.

- If our code throws an exception, make sure to print it before killing the main
  thread.

- Don't print a KeyboardInterrupt traceback on Ctrl-C or
  kill-due-to-connection-close. (ie, don't print two tracebacks if the thread
  throws.)
2013-02-12 11:40:43 -08:00
Nick Martin
76b7a3a054 More release notes. Needs lots of rewording, but should now include all changes and contributors. 2013-02-12 00:52:47 -08:00
David Glasser
db535c93f3 Improved docs for two Meteor.subscribe changes.
(onError and handle.ready())
2013-02-11 20:11:05 -08:00
Naomi Seyfer
6a5a0c01e2 First draft of 0.5.5 History.md 2013-02-11 17:29:54 -08:00
Naomi Seyfer
b4988e3bd9 Merge branch 'devel' into release-0.5.5 2013-02-11 12:24:14 -08:00
Naomi Seyfer
bc83e8c76c Added all people to the docs, alphebetized by first name 2013-02-11 11:34:22 -08:00
Nick Martin
6cbd30c057 Merge branch 'devel' into release-0.5.5 2013-02-08 21:49:03 -08:00
Nick Martin
5fb45bcd0f Merge branch 'pr-672' into devel 2013-02-08 21:33:06 -08:00
Andrew Wilcox
d1c780e7f9 Upgrade useragent to 2.0.1.
Will be using for the appcache.  I tested 2.0.1 and it seems to work
fine.  I figured that all else being equal it would be good to use the
latest version to give us the most recent user agent matches, and so
that if we had any bug reports we wouldn't be out of date.
2013-02-08 21:11:50 -08:00
David Glasser
40bfd2e360 Add a reactive ready() method to subscription handles. Fixes #273.
Inspired by a pull request from tmeasday (though we've changed the underlying
code enough on ddp-pre1 that I had to rewrite it myself).

Use it in todos. No docs yet, but the Meteor.subscribe docs are already
scheduled for some attention.
2013-02-08 18:41:41 -08:00
David Glasser
4f2d725d3f If Meteor.settings.public exists, make it available on the client as well.
(Suggested by @jagill at Meteor Dev Shop 0!)
2013-02-08 17:51:33 -08:00
David Glasser
3c067d6276 Merge branch 'devel' into ddp-pre1
Yet another dev bundle bump.
2013-02-08 11:30:28 -08:00
Nick Martin
1385137f01 Bump version number in prep for release 2013-02-07 22:49:56 -08:00
Nick Martin
c208f68060 Merge branch 'pr-671' into devel 2013-02-07 21:27:25 -08:00
Andrew Wilcox
d4534c5f15 Make static not cacheable.
Fixes #631.

Update the dev_bundle to use the Meteor version of gzippo which allows
clientMaxAge to be set to 0, and change server.js to set the
clientMaxAge to 0 for static.
2013-02-07 20:39:05 -08:00
David Glasser
db917f4741 DDP server: Implement sub.error() and reimplement sub.stop().
Note that sub.stop() is now handled by the client (it removes the record of the
subscription) but there is no way for an app to observe this. (I expect we'll
use sub.stop() in implementing "fetch" in the Mongo connector.)
2013-02-07 15:43:28 -08:00