updating package versions

This commit is contained in:
Sacha Greif 2015-05-16 12:05:53 +09:00
parent affec3c1c8
commit b2d6e94265
38 changed files with 141 additions and 94 deletions

View file

@ -7,7 +7,7 @@ accounts-ui@1.1.5
accounts-ui-unstyled@1.1.7
aldeed:collection2@2.3.3
aldeed:http@0.2.2
aldeed:simple-schema@1.3.2
aldeed:simple-schema@1.3.3
aldeed:template-extension@3.4.3
anti:i18n@0.4.3
aramk:tinycolor@1.1.0_1
@ -86,6 +86,7 @@ oauth1@1.1.4
oauth2@1.1.3
observe-sequence@1.0.6
ordered-dict@1.0.3
package-version-parser@3.0.3
percolatestudio:synced-cron@1.1.0
random@1.0.3
reactive-dict@1.1.0
@ -96,6 +97,8 @@ routepolicy@1.0.5
sacha:autoform@5.1.2
sacha:juice@0.1.4
sacha:spin@0.2.4
sanjo:meteor-files-helpers@1.1.0_4
sanjo:meteor-version@1.0.0
service-configuration@1.0.4
session@1.1.0
sha@1.0.3
@ -106,40 +109,40 @@ srp@1.0.3
standard-app-packages@1.0.5
stylus@1.0.7
tap:i18n@1.4.1
telescope:api@0.1.0
telescope:comments@0.1.0
telescope:core@0.1.0
telescope:daily@0.1.0
telescope:datetimepicker@0.1.0
telescope:email@0.3.0
telescope:embedly@0.3.1
telescope:events@0.1.1
telescope:getting-started@0.1.0
telescope:i18n@0.1.0
telescope:invites@0.1.0
telescope:kadira@0.1.0
telescope:lib@0.3.1
telescope:messages@0.1.0
telescope:migrations@0.1.0
telescope:newsletter@0.1.1
telescope:notifications@0.1.0
telescope:pages@0.1.0
telescope:post-by-feed@0.1.0
telescope:posts@0.1.2
telescope:releases@0.1.0
telescope:rss@0.1.0
telescope:scoring@0.1.0
telescope:search@0.1.0
telescope:settings@0.1.0
telescope:share@0.1.0
telescope:singleday@0.1.1
telescope:subscribe-to-posts@0.1.0
telescope:tagline-banner@0.1.0
telescope:tags@0.1.0
telescope:theme-base@0.1.0
telescope:theme-hubble@0.1.0
telescope:update-prompt@0.1.0
telescope:users@0.1.0
telescope:api@0.2.0
telescope:comments@0.2.0
telescope:core@0.4.0
telescope:daily@0.2.0
telescope:datetimepicker@0.2.0
telescope:email@0.4.0
telescope:embedly@0.4.0
telescope:events@0.2.0
telescope:getting-started@0.2.0
telescope:i18n@0.2.0
telescope:invites@0.2.0
telescope:kadira@0.2.0
telescope:lib@0.4.0
telescope:messages@0.2.0
telescope:migrations@0.2.0
telescope:newsletter@0.2.0
telescope:notifications@0.2.0
telescope:pages@0.2.0
telescope:post-by-feed@0.2.0
telescope:posts@0.2.0
telescope:releases@0.2.0
telescope:rss@0.2.0
telescope:scoring@0.2.0
telescope:search@0.2.0
telescope:settings@0.2.0
telescope:share@0.2.0
telescope:singleday@0.2.0
telescope:subscribe-to-posts@0.2.0
telescope:tagline-banner@0.2.0
telescope:tags@0.2.0
telescope:theme-base@0.2.0
telescope:theme-hubble@0.2.0
telescope:update-prompt@0.2.0
telescope:users@0.2.0
templating@1.1.1
tracker@1.0.7
tsega:bootstrap3-datetimepicker@3.1.3_3
@ -149,6 +152,6 @@ underscore@1.0.3
url@1.0.4
useraccounts:core@1.8.1
useraccounts:unstyled@1.8.1
utilities:avatar@0.7.8
utilities:avatar@0.7.9
webapp@1.2.0
webapp-hashing@1.0.3

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:api",
summary: "Telescope API package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-api.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:comments",
summary: "Telescope comments package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:core",
summary: "Telescope core package",
version: "0.1.0",
version: "0.4.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});
@ -9,28 +9,20 @@ Package.onUse(function(api) {
api.versionsFrom("METEOR@1.0");
api.use([
'telescope:lib@0.3.0', // no dependencies
'telescope:messages@0.1.0', // lib
'telescope:i18n@0.1.0', // lib
'telescope:events@0.1.0', // lib, i18n
'telescope:settings@0.1.0', // lib, i18n
'telescope:users@0.1.0', // lib, i18n, settings
'telescope:comments@0.1.0', // lib, i18n, settings, users
'telescope:posts@0.1.2' // lib, i18n, settings, users, comments
]);
var packages = [
'telescope:lib@0.4.0', // no dependencies
'telescope:messages@0.2.0', // lib
'telescope:i18n@0.2.0', // lib
'telescope:events@0.2.0', // lib, i18n
'telescope:settings@0.2.0', // lib, i18n
'telescope:users@0.2.0', // lib, i18n, settings
'telescope:comments@0.2.0', // lib, i18n, settings, users
'telescope:posts@0.2.0' // lib, i18n, settings, users, comments
];
api.use(packages);
api.imply([ // export these packages to all other packages that depend on telescope:core
'telescope:lib@0.3.0',
'telescope:messages@0.1.0',
'telescope:events@0.1.0',
'telescope:settings@0.1.0',
'telescope:events@0.1.0',
'telescope:i18n@0.1.0',
'telescope:users@0.1.0',
'telescope:comments@0.1.0',
'telescope:posts@0.1.2'
]);
api.imply(packages);
api.addFiles([
'lib/router/config.js',

View file

@ -1,7 +1,8 @@
Package.describe({
name: "telescope:daily",
summary: "Telescope daily view",
version: "0.1.0"
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function (api) {

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:datetimepicker",
summary: "Custom bootstrap-datetimepicker input type for AutoForm",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-datetimepicker.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:email",
summary: "Telescope email package",
version: "0.3.0",
version: "0.4.0",
git: "https://github.com/TelescopeJS/telescope-email.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:embedly",
summary: "Telescope Embedly module package",
version: "0.3.1",
version: "0.4.0",
git: 'https://github.com/TelescopeJS/telescope-embedly.git'
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:events",
summary: "Telescope event tracking package",
version: "0.1.1",
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:getting-started",
summary: "Getting started posts",
version: '0.1.0',
version: '0.2.0',
git: "https://github.com/TelescopeJS/telescope-getting-started.git"
});

View file

@ -1,7 +1,8 @@
Package.describe({
name: "telescope:i18n",
summary: "Telescope i18n package",
version: "0.1.0"
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function (api) {

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:invites",
summary: "Telescope invites package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-invites.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:kadira",
summary: "Telescope Kadira package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-kadira.git"
});

View file

@ -1,7 +1,8 @@
Package.describe({
name: 'telescope:lib',
summary: 'Telescope libraries.',
version: '0.3.1'
version: '0.4.0',
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function (api) {
@ -19,7 +20,7 @@ Package.onUse(function (api) {
'reactive-var',
'http',
'email',
'aldeed:simple-schema@1.3.2',
'aldeed:simple-schema@1.3.3',
'aldeed:collection2@2.3.3',
'sacha:autoform@5.1.2',
'aldeed:template-extension@3.4.3',
@ -45,7 +46,8 @@ Package.onUse(function (api) {
'ccan:cssreset@1.0.0',
'djedi:sanitize-html@1.6.1',
'dburles:collection-helpers@1.0.3',
'jparker:gravatar@0.3.1'
'jparker:gravatar@0.3.1',
'sanjo:meteor-files-helpers@1.1.0_4'
];
api.use(packages);

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:messages",
summary: "Telescope messages package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-messages.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:migrations",
summary: "Telescope migrations package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:newsletter",
summary: "Telescope email newsletter package",
version: "0.1.1",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-newsletter.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:notifications",
summary: "Telescope notifications package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-notifications.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:pages",
summary: "Telescope static pages package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-pages.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:post-by-feed",
summary: "Auto post via RSS to Telescope",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-post-by-feed.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:posts",
summary: "Telescope posts package",
version: "0.1.2",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-posts.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:releases",
summary: "Show Telescope release notes and phone home with some stats.",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-releases.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:rss",
summary: "Telescope RSS package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-rss.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:scoring",
summary: "Telescope scoring package.",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:search",
summary: "Telescope search package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-pages.git"
});

View file

@ -1,7 +1,8 @@
Package.describe({
name: "telescope:settings",
summary: "Telescope settings package",
version: "0.1.0"
version: "0.2.0",
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function(api) {

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:share",
summary: "Telescope share module package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-share.git"
});

View file

@ -1,7 +1,8 @@
Package.describe({
name: 'telescope:singleday',
summary: 'Telescope Single Day package',
version: '0.1.1'
version: '0.2.0',
git: "https://github.com/TelescopeJS/Telescope.git"
});
Npm.depends({

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:sitemap",
summary: "Sitemap package for Telescope",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-sitemap.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:subscribe-to-posts",
summary: "Subscribe to posts to be notified when they get new comments",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-subscribe-to-posts.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:tagline-banner",
summary: "Show a banner containing your site's tagline on the homepage",
version: "0.1.0",
version: "0.2.0",
});
Package.onUse(function (api) {

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:tags",
summary: "Telescope tags package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-tags.git"
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:theme-base",
summary: "Telescope base theme package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-theme-base.git"
});
Package.onUse(function (api) {

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:theme-hubble",
summary: "Telescope Hubble theme package",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-theme-hubble.git"
});

View file

@ -0,0 +1,35 @@
Meteor.methods({
getPackageVersions: function () {
if (Meteor.isServer) {
var url = "https://atmospherejs.com/a/packages/findByNames";
var packageNames = _.filter(_.keys(Package), function (packageName){
return packageName.indexOf("telescope") !== -1;
});
this.unblock;
try {
var result = HTTP.get(url, {
headers: {
"Accept": "application/json"
},
params: {
names: packageNames
}
});
// console.log(result);
var packageData = JSON.parse(result.content);
var versionData = packageData.map(function (package){
return {
name: package.name,
latestVersion: package.latestVersion.version,
currentVersion: MeteorFilesHelpers.getPackageVersion(package.name)
};
});
console.log(versionData);
return versionData;
} catch (e) {
console.log(e)
return e;
}
}
}
});

View file

@ -1,7 +1,7 @@
Package.describe({
name: "telescope:update-prompt",
summary: "Telescope update prompt package.",
version: "0.1.0",
version: "0.2.0",
git: "https://github.com/TelescopeJS/telescope-update-prompt.git"
});
@ -11,6 +11,11 @@ Package.onUse(function (api) {
api.use(['telescope:core@0.1.0']);
api.addFiles([
'lib/package_versions.js'
], ['client','server']);
api.addFiles([
'lib/client/update.js',
'lib/client/templates/update_banner.html',

View file

@ -28,6 +28,7 @@ Telescope.schemas.userData = new SimpleSchema({
type: String,
optional: true,
editableBy: ["member", "admin"],
public: true,
autoform: {
rows: 5
}
@ -45,6 +46,7 @@ Telescope.schemas.userData = new SimpleSchema({
displayName: {
type: String,
optional: true,
public: true,
editableBy: ["member", "admin"]
},
/**
@ -82,6 +84,7 @@ Telescope.schemas.userData = new SimpleSchema({
*/
htmlBio: {
type: String,
public: true,
optional: true
},
/**
@ -145,6 +148,7 @@ Telescope.schemas.userData = new SimpleSchema({
twitterUsername: {
type: String,
optional: true,
public: true,
editableBy: ["member", "admin"]
},
/**
@ -167,6 +171,7 @@ Telescope.schemas.userData = new SimpleSchema({
website: {
type: String,
regEx: SimpleSchema.RegEx.Url,
public: true,
optional: true,
editableBy: ["member", "admin"]
}

View file

@ -1,7 +1,8 @@
Package.describe({
name: 'telescope:users',
summary: 'Telescope permissions.',
version: '0.1.0'
version: '0.2.0',
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function (api) {