1389 Commits

Author SHA1 Message Date
jperl
8307460df8 Return all basic google and facebook profile fields 2013-02-13 13:50:52 -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
Naomi Seyfer
4bccce090a Upgrade bootstrap to version 2.3.0 2013-02-12 16:33:51 -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
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
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
Nick Martin
38c5795c71 Review from Geoff 2013-02-06 19:39:31 -08:00
Nick Martin
68049c276d Move tests from handlebars to templating, as they depend on templates. Also, extend to test a few more types. 2013-02-06 19:39:31 -08:00
Nick Martin
719f2e10dc Use regexp instead of isNaN for detecting integers. 2013-02-06 19:39:31 -08:00
Morten Henriksen
7ca41e4a3c Added fix, workaround handlebars issue and added tests 2013-02-06 19:39:31 -08:00
David Glasser
d1de04dbea Explicitly make {$regexp: "foo", $options: "garbage"} throw.
This check was explicitly in the old selector compiler but the rewrite dropped
it. The `new RegExp("foo", "garbage")` throws on most browsers but not on old
WebKit.
2013-02-06 14:25:22 -08:00
David Glasser
de6a08d09e Choose an even more portable CSS property to test @imports.
Colors were showing up as rgb(a, b, c) in some browsers and as #aabbcc in
others.
2013-02-06 14:08:39 -08:00
David Glasser
adcae951eb Switch less back to fully synchronous, now that the NPM module supports it.
syncImport was added in 1.3.2 and we just upgraded from 1.3.1 to 1.3.3.

Otherwise error handling gets pretty fussy (eg, sometimes less throws from
within a callback).
2013-02-05 18:11:59 -08:00
David Glasser
5177e0ba1f Don't drop quiescence state on initial connect.
We may have already run a stub before getting 'connected'! (Wordplay does this.)

(The same fix, without test, was already committed to ddp-pre1.)
2013-02-05 16:12:24 -08:00
Nick Martin
02ae0734d0 Upgrade jquery-layout to 1.3.0RC. The jquery-latest site recommends it over 1.2.0 despite the RC designation. Fixes #556. 2013-02-05 15:37:52 -08:00
David Glasser
cde1f010ae Remove old XXX comment about $elemMatch needing tests. 2013-02-05 12:07:48 -08:00
Tim Haines
a067818553 Adjust accounts-twitter to use Twitter's id_str instead of id 2013-02-04 18:11:03 -08:00
David Glasser
3bdf41add1 Rewrite sort compiler to avoid eval, too! 2013-02-04 16:42:18 -08:00
David Glasser
0567a730b1 Rewrite selector compiler against with a "compile to specific function"
approach.
2013-02-04 14:32:12 -08:00
David Glasser
2692192547 Some modifications to Ed-von-Schleck's selector compiler patch:
- Improve regex match against array.
- Improve matching of explicit deep nulls.
- Instead of doing a high-level "catch TypeError", do more explicit
  type checks.
- Clone the selector (since we're going to save a reference in our
  closure).
2013-02-04 14:32:12 -08:00
Christian Schramm
012e1947be Replaced _compileSelector logic with non-eval'd code.
Implement $elemMatch.

(Commits squashed together by glasser, and some now-dead code removed.)
2013-02-04 14:32:12 -08:00
Tim Haines
6b8ca56a41 Use Twitter API v1.1 to verify_credentials 2013-02-02 15:57:28 -08:00
Naomi Seyfer
031d4dc103 Stop requiring _id to be specified by the insert() code.
Now users can put _id into their documents prior to insert, and insert() will
respect that.  This is useful if you want to write any Meteor Method that inserts
documents -- it allows you to have the same ID on both client and server, so you
don't get flicker when the server document wins
2013-02-01 15:24:45 -08:00
Nick Martin
514bf73807 Move serverId to __meteor_runtime_config__. This prevents a race condition where the server restarts between when the client loads app.html and when it makes a DDP connection. Fixes #653. Thanks @awwx! 2013-02-01 12:21:08 -08:00
David Glasser
6616d9aac6 Make new less test less sensitive to browser zoom.
Apparently a 1px border may not have a 1px computed value if your browser is
zoomed (it may be fractional).
2013-01-31 11:59:01 -08:00
Avital Oliver
1fa2006eb7 Fix standalone tests for the 'stream' package 2013-01-28 13:39:47 -08:00
Avital Oliver
6745745643 Fix #203: support less @import directives 2013-01-25 18:48:04 -08:00
Avital Oliver
2551d88014 minor rename 2013-01-25 16:29:30 -08:00
Avital Oliver
06f1308b4b Reorg facebook_server.js 2013-01-25 15:57:34 -08:00
Morten N.O. Nørgaard Henriksen
a404490ceb Update packages/accounts-facebook/facebook_server.js - add expiresAt 2013-01-25 15:56:19 -08:00
xenolf
9e66735cec update bootstrap to 2.2.2 2013-01-18 19:05:02 -08:00
David Glasser
2aa92b2ed3 Update to use APIs from new versions of fibers and uglify-js.
Combine files before minimizing.

minimongo - subkey sort fails when minized, so clearly there is some sort of
uglify bug.
2013-01-16 11:34:30 -05:00
David Glasser
27d3073660 Make Meteor.autosubscribe a deprecated alias for Meteor.autorun.
Instead of a general client-side sub de-duping mechanism (which mostly existed
for the sake of autosubscribe, and causes issues with server-driven
unsubscribes), make Meteor.subscribe explicitly aware of reactivity.

Expose an "invalidated" flag on Meteor.deps.Context.

Guarantee that invalidation callbacks from different contexts will not be
interleaved at flush time. This has the implication that if you do

   context1.onInvalidate(function () {
     context2.invalidate();
   });

and this is the only way to invalidate context2, then context2's invalidation
callbacks will not be called until after *ALL* of context1's callbacks are
called. This allows us to be sure that the "unsubscribe, unless autorun tried to
re-create an identical sub" logic runs after the autorun function is rerun.
2013-01-15 17:07:03 -05:00
Nick Martin
448da70a58 Workaround weird header issue in firefox. Fixes #553. 2013-01-11 18:32:52 -08:00
Nick Martin
84b32f3241 Add test for fix to #555. 2013-01-11 16:55:41 -08:00
David Glasser
ec6c4cd55a Maybe fix #555. 2013-01-11 16:55:41 -08:00
David Glasser
6e5dd0b948 livedata client: Factor out "stringify message and send it" into a helper.
(Extracted from ddp-pre1 branch.)
2013-01-11 15:06:02 -08:00
David Glasser
aec2e586d8 spiderable: Correctly kill phantomjs after timeout. Fixes #571.
The previous version only killed the wrapper bash script, not the child. We now
work around the broken (socketpair) stdin presented to Node's child processes by
using a bash heredoc rather than "cat |"; this means we can use exec, which only
gives us one process to clean up.

While we're at it, simplify code by switching from child_process.spawn to
child_process.execFile, which does the work of capturing stdout and setting a
timeout for us automatically.
2013-01-08 22:51:40 -08:00
Rahul
40e92ee043 Specify that Bootstrap is a front-end framework
Taken from the Bootstrap homepage: "Sleek, intuitive, and powerful front-end framework for faster and easier web development."

Nitpick. There's no such thing as a "UX framework", and Bootstrap also provides more than just UI widgets, so I figured it would probably be best to just use the same description Twitter chose.
2013-01-08 20:35:53 -08:00
Dana Woodman
d17fb77189 Fix spelling error
Missing 'n'.
2013-01-08 20:35:11 -08:00
David Glasser
a9a7179ebf Follow-up to 26c725 to work on more browsers.
Windows Safari (eg) seems to apply the "uncheck existing radios when new radios
are created" even earlier than other browsers, so save values earlier.
2013-01-03 15:33:42 -08:00
David Glasser
fd13a9b899 http: Fix incorrect use of self in param encoding. 2013-01-03 14:56:45 -08:00
David Glasser
25af4e5cdb http: Fix test failure on FF caused by 3bada2a. 2013-01-03 14:56:02 -08:00
David Glasser
46e772c0ef Merge branch 'devel' into release-0.5.3
Pull in fix to #392.
2013-01-03 10:34:00 -08:00
David Glasser
95974f82fb Fix server-side observe with no added callback. Fixes #589.
The cursor de-dup code introduced in Meteor 0.5.1 had a bug where a server-side
`observe` with no `added` callback would throw an error if the `observe` was
de-duped.
2013-01-03 10:16:21 -08:00
David Greenspan
5eae5eae4c Further protect from stack traces on re-render 2013-01-02 18:10:48 -08:00
David Greenspan
577e1b6b12 Fix #392 - Spark.isolate prints stack trace
Isolates would print a stack trace upon re-render
if their DOM nodes had been manually removed from
the DOM without called Spark.finalize.
2013-01-02 18:07:58 -08:00
David Glasser
4c5ea61beb Merge branch 'devel' into release-0.5.3
Bring in Meteor.http.call JSON header improvement.
2012-12-28 15:59:30 -08:00
David Glasser
3bada2a9f9 If Meteor.http.call JSON-ifies the request body, default the Content-Type to
application/json.

This matches our heuristic for deciding whether to parse responses as JSON.
2012-12-28 15:58:41 -08:00