Commit Graph

2822 Commits

Author SHA1 Message Date
Slava Kim
f0932db7e1 "One size fits all"
at least temporarily
2014-09-30 20:06:23 -07:00
Slava Kim
48914cc6cb Fix bugs in splash/icon code 2014-09-30 20:06:23 -07:00
Slava Kim
6982aa4195 Add 'xmlbuild' package to the deps of tool and specify npm deps correctly 2014-09-30 20:06:23 -07:00
Sashko Stubailo
dd83854552 Clean up commands-cordova 2014-09-30 19:30:42 -07:00
Sashko Stubailo
4d8e54fe4f Small fixes 2014-09-30 19:25:35 -07:00
Sashko Stubailo
e9a76d00c7 Put back a newline 2014-09-30 19:17:40 -07:00
Sashko Stubailo
2368138e3b Fix upgrader after running it a few times 2014-09-30 19:16:10 -07:00
Sashko Stubailo
07987a009d Merge branch 'devel' into platform-list
Conflicts:
	tools/commands-cordova.js
	tools/tests/cordova-platforms.js
2014-09-30 19:02:42 -07:00
Sashko Stubailo
8beecd4238 First pass at an upgrader 2014-09-30 18:57:35 -07:00
Justin SB
aeee00b0cd Implement getLatestVersion on the local & layered catalogs 2014-09-30 18:03:06 -07:00
Justin SB
a71f16be32 Implement some toString functions on the catalogs 2014-09-30 18:03:06 -07:00
Slava Kim
8c77ab7192 Fix typos and actually run the mobile control file 2014-09-30 17:48:32 -07:00
Slava Kim
b155e3a84d First version of mobile control file parsing logic 2014-09-30 17:05:38 -07:00
Justin SB
f5f9b47da8 Add getLatestVersion to catalog-remote.js 2014-09-30 16:49:00 -07:00
ekatek
5f886d3346 finish the sql merge: rename unipack to isopack where needed 2014-09-30 16:36:33 -07:00
ekatek
c67de0830a merging from sqllite 2014-09-30 16:29:41 -07:00
Justin SB
cd43315e76 Launch phantomjs using spawn; should work better on Linux/Docker 2014-09-30 16:18:20 -07:00
David Greenspan
11c0577f1d Fix weird backslashes in package skeleton 2014-09-30 15:45:46 -07:00
ekatek
364efde3af don't forget to write the format for old-style unipackage.json 2014-09-30 15:32:39 -07:00
Slava Kim
4aa42726a9 Make the "remove old sourceMappingURL" regex global
So we don't make an assumption there is only one of those. Thanks to Ben.
2014-09-30 14:08:33 -07:00
Slava Kim
5e7c1a45d8 Fix the server-side sourcemaps again
Partially reverts 431af48743 merged in #2385
2014-09-30 14:04:17 -07:00
Slava Kim
c5e383efba Merge branch 'release-0.9.4' into devel 2014-09-30 13:51:33 -07:00
Slava Kim
a1ab53d2c1 More moving things around and clean up the external interface of
commands-cordova.js
2014-09-30 12:41:31 -07:00
Justin SB
1337b84466 Properly close the heredoc we pass to phantomjs 2014-09-30 12:39:44 -07:00
Slava Kim
264b9efb2d Moving things around for categorization
Should an no-op
2014-09-30 12:28:59 -07:00
Slava Kim
b4a063c53c Don't compile the mobile-config.js control file into an app 2014-09-30 12:28:59 -07:00
ekatek
274497d083 mark tests that publish as checkout only
When we publish things to the test packaging server, we use the versionsFrom
argument that is very difficult to set up right to actually work. Most of the time
we don't really set that up and just agree that those tests should fail. As such, I
am going to mark most of those tests as checkout-only for now (we still usually check
that we can publish manually anyway as part of poking at the release in QA, and there is
not a lot of reason that I can think of why publishing from release would be different than
pubishing from checkout. So, marking these as checkout-only until we can get a better
testing infrastructure for this in place.
2014-09-30 12:24:11 -07:00
ekatek
69df87ce7d mark tests that publish as checkout only
When we publish things to the test packaging server, we use the versionsFrom
argument that is very difficult to set up right to actually work. Most of the time
we don't really set that up and just agree that those tests should fail. As such, I
am going to mark most of those tests as checkout-only for now (we still usually check
that we can publish manually anyway as part of poking at the release in QA, and there is
not a lot of reason that I can think of why publishing from release would be different than
pubishing from checkout. So, marking these as checkout-only until we can get a better
testing infrastructure for this in place.
2014-09-30 12:22:09 -07:00
ekatek
383faa5cdb also, do not let people run update --patch from an old release 2014-09-30 12:22:09 -07:00
David Greenspan
6a35e05ba3 Clear status message on enableProgressBar(false)
Motivated by `meteor shell` in Emacs shell-mode
2014-09-30 11:51:17 -07:00
Nick Martin
bcacef436e Fix velocity test command for new parsedUrl (e7037b72) 2014-09-30 11:51:16 -07:00
Sashko Stubailo
cd55ca4b1c Bump version number for release 2014-09-30 11:51:16 -07:00
Avital Oliver
d794aa6335 Allow more than one dash in package version names
This is consistent with the semver spec, and should fix
2014-09-30 11:51:05 -07:00
Avital Oliver
7e6ea64e07 Fix meteor update from an app created from a checkout 2014-09-30 11:51:05 -07:00
Avital Oliver
a9ea64a7c3 Allow more than one dash in package version names
This is consistent with the semver spec, and should fix
2014-09-30 11:49:43 -07:00
Justin SB
f0a12fd37d Don't run the npm downloads in parallel
Seems to break. We should fix this properly in future, for a better dev UX
2014-09-30 11:45:58 -07:00
Avital Oliver
69501a9eb3 Fix meteor update from an app created from a checkout 2014-09-30 11:23:09 -07:00
Justin SB
6feeed3cf1 getPackage should return a package 2014-09-30 11:15:31 -07:00
Justin SB
29f44d08aa Add missing runInTransaction 2014-09-30 10:18:29 -07:00
Justin SB
6451f45d09 Force all SQL commands to go through a transaction
And also our serialize logic!
2014-09-30 09:37:07 -07:00
David Greenspan
44ae2cbea9 Clear status message on enableProgressBar(false)
Motivated by `meteor shell` in Emacs shell-mode
2014-09-30 09:33:13 -07:00
Justin SB
7de1033f53 Rename noRetry -> noRefresh, also introduce a helper method that never refreshes 2014-09-30 09:02:33 -07:00
Justin SB
b5ec4a81b1 A few tweaks to SQL, in particular turning on WAL 2014-09-30 09:02:33 -07:00
Avital Oliver
c72dd30b1d Don't crash when failing to contact the package server
Fixes #2713
2014-09-30 00:07:34 -07:00
Avital Oliver
f65873f315 Don't crash when failing to contact the package server
Fixes #2713
2014-09-30 00:07:18 -07:00
Sashko Stubailo
71c8fc6ab9 Merge branch 'release-0.9.4' of github.com:meteor/meteor into release-0.9.4 2014-09-29 23:45:10 -07:00
Nick Martin
6273527450 Fix velocity test command for new parsedUrl (e7037b72) 2014-09-29 23:42:32 -07:00
Sashko Stubailo
e3e9d9e3d7 Bump version number for release 2014-09-29 23:40:12 -07:00
ekatek
f4563457e8 fix the update server package data unit test
Rewrote parts of the update server package data unit test to compare a pre-sync and a
post-sync catalog, rather than the output of package client's attempts to contact the server.
This is because in the new world, there is no accurate output, and instead, the function
modifies the catalog in place. Additionally, removed the old function that read from
data.json, since it was not used anymore, and cleaned up some comments and return values in
package-client. We no longer claim to return the contents of data.json, instead we return
an object that signals if we should reset the entire catalog, and/or if our connection to the
server flat-out failed. I am not sure that this is the best abstraction for this piece of code
(why does package-client modify the catalog, but not reset it, for example? Since resetting
has consequences, in the ideal world, the package-client would only have the logic to get data
from the server and it would be up to the catalog to figure out how to insert it into sql lite,
I think, maybe. Regardless, now is not the time to do that refactoring.)

The test is a little odd in the following ways. First, comparing every record ever published is
something that is already significantly harder than it used to be, and will get only harder from
there. (However, the test claims to check that no data has been erased, so we need to check it).
We check the vague existence of most records, on the theory that it is unlikely that
we only got a portion of the record in, rather than the entire thing. Second, it doesn't check the
actual contents on disk, because I wasn't sure about writing another interface to sqllite this
late in the game. There are some ways to get around this -- we could be sneaky and submit a non-blank
syncToken in some way (faking a previous sync), so we only get the packages touched since (time X).
Usually, that might violate some internal consistency, but we only care about the contents at this stage.
Second, we should probably write some method on the catalogs to compare themselves instead of making
and querying a copy.For now, though, I think that this is sufficiently expedient.

Also, the test publishes 5 packages. That's a lot of packages, so I marked it as slow.
2014-09-29 22:16:32 -07:00
ekatek
8ce15905c2 to check syncing, we now need to create a new 'remoteCatalog' and sync into it 2014-09-29 22:16:31 -07:00