diff --git a/.versions b/.versions index fdab5b1..cbe59de 100644 --- a/.versions +++ b/.versions @@ -7,15 +7,15 @@ boilerplate-generator@1.6.0 caching-compiler@1.2.1 callback-hook@1.1.0 check@1.3.1 -coffeescript@2.0.3_3 -coffeescript-compiler@2.0.3_3 +coffeescript@2.4.1 +coffeescript-compiler@2.4.1 ddp@1.4.0 ddp-client@2.3.3 ddp-common@1.4.0 ddp-server@2.3.0 diff-sequence@1.1.1 dynamic-import@0.5.1 -ecmascript@0.12.4 +ecmascript@0.12.7 ecmascript-runtime@0.7.0 ecmascript-runtime-client@0.8.0 ecmascript-runtime-server@0.7.1 @@ -27,7 +27,7 @@ insecure@1.0.7 inter-process-messaging@0.1.0 lamhieu:meteorx@2.0.1 lamhieu:unblock@1.0.0 -local-test:peerlibrary:reactive-publish@0.8.1 +local-test:peerlibrary:reactive-publish@0.9.0 logging@1.1.20 meteor@1.9.3 minimongo@1.4.5 @@ -40,13 +40,13 @@ mongo-dev-server@1.1.0 mongo-id@1.0.7 npm-mongo@3.1.2 ordered-dict@1.1.0 -peerlibrary:assert@0.2.5 -peerlibrary:classy-test@0.3.0 -peerlibrary:extend-publish@0.5.0 -peerlibrary:fiber-utils@0.9.1 -peerlibrary:reactive-mongo@0.3.0 -peerlibrary:reactive-publish@0.8.1 -peerlibrary:server-autorun@0.7.1 +peerlibrary:assert@0.3.0 +peerlibrary:classy-test@0.4.0 +peerlibrary:extend-publish@0.6.0 +peerlibrary:fiber-utils@0.10.0 +peerlibrary:reactive-mongo@0.4.0 +peerlibrary:reactive-publish@0.9.0 +peerlibrary:server-autorun@0.8.0 promise@0.11.2 random@1.1.0 reactive-var@1.0.11 diff --git a/package.js b/package.js index 1bd6e47..9f078f9 100644 --- a/package.js +++ b/package.js @@ -1,16 +1,16 @@ Package.describe({ summary: "Reactive publish endpoints", - version: '0.8.1', + version: '0.9.0', name: 'peerlibrary:reactive-publish', git: 'https://github.com/peerlibrary/meteor-reactive-publish.git' }); Package.onUse(function (api) { - api.versionsFrom('METEOR@1.4.4.5'); + api.versionsFrom('METEOR@1.8.1'); // Core dependencies. api.use([ - 'coffeescript@2.0.3_3', + 'coffeescript@2.4.1', 'ecmascript', 'mongo', 'minimongo', @@ -19,9 +19,9 @@ Package.onUse(function (api) { // 3rd party dependencies. api.use([ - 'peerlibrary:server-autorun@0.7.1', - 'peerlibrary:reactive-mongo@0.3.0', - 'peerlibrary:extend-publish@0.5.0' + 'peerlibrary:server-autorun@0.8.0', + 'peerlibrary:reactive-mongo@0.4.0', + 'peerlibrary:extend-publish@0.6.0' ], 'server'); api.addFiles([ @@ -30,11 +30,11 @@ Package.onUse(function (api) { }); Package.onTest(function (api) { - api.versionsFrom('METEOR@1.4.4.5'); + api.versionsFrom('METEOR@1.8.1'); // Core dependencies. api.use([ - 'coffeescript@2.0.3_3', + 'coffeescript@2.4.1', 'ecmascript', 'insecure', 'random', @@ -51,13 +51,13 @@ Package.onTest(function (api) { // 3rd party dependencies. api.use([ - 'peerlibrary:assert@0.2.5', - 'peerlibrary:server-autorun@0.7.1', - 'peerlibrary:classy-test@0.3.0', + 'peerlibrary:assert@0.3.0', + 'peerlibrary:server-autorun@0.8.0', + 'peerlibrary:classy-test@0.4.0', 'lamhieu:unblock@1.0.0' ]); - api.add_files([ + api.addFiles([ 'tests.coffee' ]); }); diff --git a/tests.coffee b/tests.coffee index 2437be1..1149066 100644 --- a/tests.coffee +++ b/tests.coffee @@ -332,7 +332,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue id @posts.push id - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertEqual Posts.find().fetch(), [] @@ -347,7 +347,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue userId @assertEqual userId, @userId - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -364,7 +364,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -379,7 +379,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), [] @@ -392,7 +392,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -404,7 +404,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -416,7 +416,7 @@ for idGeneration in ['STRING', 'MONGO'] @expect (error) => @assertFalse error, error?.toString?() or error - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), [] @@ -451,7 +451,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue id @posts.push id - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertEqual Posts.find().fetch(), [] @@ -466,7 +466,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue userId @assertEqual userId, @userId - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -482,7 +482,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> Posts.find().forEach (post) => @@ -544,7 +544,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue id @postId = id - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertEqual Posts.find().fetch(), [] @@ -558,7 +558,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue userId @assertEqual userId, @userId - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual Posts.find().fetch(), [ @@ -575,7 +575,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual Posts.find().fetch(), [ @@ -592,7 +592,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual Posts.find().fetch(), [ @@ -608,7 +608,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual Posts.find().fetch(), [ @@ -625,7 +625,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual Posts.find().fetch(), [ @@ -667,7 +667,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue id @addresses.push id - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertEqual Posts.find().fetch(), [] @@ -683,7 +683,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertTrue userId @assertEqual userId, @userId - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), @posts @@ -697,7 +697,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), @posts[0..5] @@ -711,7 +711,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), @posts[0..5] @@ -725,7 +725,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), @posts[0..5] @@ -735,7 +735,7 @@ for idGeneration in ['STRING', 'MONGO'] @assertFalse error, error?.toString?() or error @assertEqual count, 1 - Meteor.setTimeout @expect(), 200 # ms + Meteor.setTimeout @expect(), 1000 # ms , -> @assertItemsEqual _.pluck(Posts.find().fetch(), '_id'), [] @@ -780,7 +780,7 @@ for idGeneration in ['STRING', 'MONGO'] timestamp: timestamp # We have to wait for all posts to be inserted and pushed to the client. - Meteor.setTimeout @expect(), 300 # ms + Meteor.setTimeout @expect(), 1000 # ms -> @posts = _.sortBy @posts, 'timestamp'