adds set_parallelism method to Project

adds set_parallelism method to Project

--- js/inner.coffee
+++ js/inner.coffee
@@ -569,8 +569,8 @@
     followed: null
     loading_users: false
     users: []
-    paying_user: null
-    parallel: 1 #TODO: Load this from server
+    paying_user: null #TODO: Load this lazily
+    parallel: "2" #TODO: Load this from server
     parallelism_options: [1..10]

   constructor: (json) ->
@@ -744,6 +744,19 @@
   refresh: () =>
     $.getJSON "/api/v1/project/#{@project_name()}/settings", (data) =>
       @updateObservables(data)
+
+  set_parallelism: (data, event) =>
+    $.ajax
+      type: "PUT"
+      event: event
+      url: "/api/v1/project/#{@project_name()}/settings"
+      data: JSON.stringify
+        parallel: @parallel()
+
+    true # TODO: make this reflect what is happening on the server
+
+  parallel_input_id: (num) =>
+    "parallel_input_#{num}"

 class User extends Obj
   observables: =>


FIX: Inject missing user settings to basic header controller

--- src/app/common/header/header.coffee
+++ src/app/common/header/header.coffee
@@ -7,7 +7,7 @@
   'common/header/header.tpl.html'
 )

-.controller("BasicHeaderCtrl", ($scope, $state, $modal, User, AboutDoubtfireModal, UserNotificationSettingsModal, currentUser, headerService, unitService, projectService) ->
+.controller("BasicHeaderCtrl", ($scope, $state, $modal, User, AboutDoubtfireModal, UserNotificationSettingsModal, UserSettingsModal, currentUser, headerService, unitService, projectService) ->
   $scope.menus = headerService.getMenus()
   $scope.currentUser = currentUser.profile


Change zoom level from 15 to 14

Change zoom level from 15 to 14

--- views/2574.coffee
+++ views/2574.coffee
@@ -32,5 +32,5 @@
       lnglat = new mapboxgl.LngLat(lng, lat).wrap()
       map.flyTo {
         center: [lnglat.lng, lnglat.lat]
-        zoom: 15
+        zoom: 14
       }


fix how comment user is displayed - img / name

--- client/views/blog/blog.coffee
+++ client/views/blog/blog.coffee
@@ -13,21 +13,23 @@
     if settings.allowAnonymous and !Meteor.user()
       commentUser =
         name: 'Anonymous'
-        avatarUrl: Blog.settings.comments.defaultImg
+        avatarUrl: settings.defaultImg
         id: 0
     else if Meteor.user()
-      if Meteor.user().profile[Blog.settings.comments.userImg]
-        avatar = Meteor.user().profile[Blog.settings.comments.userImg]
+      # check username
+      name = if Meteor.user().username then Meteor.user().username else Meteor.user().emails[0].address
+      if Meteor.user().profile[settings.userImg]
+        avatar = Meteor.user().profile[settings.userImg]
       else
-        avatar = Blog.settings.comments.defaultImg
+        avatar = settings.defaultImg
       commentUser =
-        name: Meteor.user().username
-        avatarUrl: 'http://f.cl.ly/items/0s1a0q1y2Z2k2I193k1y/default-user.png'
+        name: name
+        avatarUrl: avatar
         id: Meteor.userId()
     else
       commentUser =
         name: 'Login to Comment'
-        avatarUrl: Blog.settings.comments.defaultImg
+        avatarUrl: settings.defaultImg
         id: 0

     # load existing comments


Separate --config and the file path for Docker

--- src/beautifiers/php-cs-fixer.coffee
+++ src/beautifiers/php-cs-fixer.coffee
@@ -67,7 +67,8 @@
     phpCsFixerOptions = [
       "fix"
       "--rules=#{options.rules}" if options.rules
-      "--config=#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
+      "--config" if options.cs_fixer_config_file
+      "#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
       "--allow-risky=#{options.allow_risky}" if options.allow_risky
       "--using-cache=no"
     ]


Modified in browser at pixie.strd6.com

Modified in browser at pixie.strd6.com

--- src/timed_events.coffee
+++ src/timed_events.coffee
@@ -20,10 +20,8 @@
 @param {Object} I Instance variables
 ###
 TimedEvents = (I={}) ->
-    ###*
-  Distance between two objects. Proxies to Point.distance.
-  In order for this to work, `otherObj` must have a
-  position method.
+  ###*
+  E

   player = GameObject


Filter listed versions

Filter listed versions

--- src/cmd/ls.coffee
+++ src/cmd/ls.coffee
@@ -1,10 +1,12 @@
+install = require './install'
+
 @name = 'ls'

 @stage = 'normal'

 @title = 'List available Node.js versions'

-@args = "[remote]"
+@args = "[remote] #{install.args}"

 @description = """
 List already installed or all available to install Node.js versions
@@ -17,12 +19,15 @@
     do local

 local = ->
-  for z in locals.list()
+  filter = install.parse().local()
+  for z in locals.list() when semver.match z.id, filter.z
     echo "#{if z.active then '>' else '-'} #{z.path}"
-
+  return
+
 remote = ->
+  filter = install.parse argv.slice 2
   list = []
-  for z in minors remotes.list()
+  for z in minors remotes.list() when semver.match z.id, filter.z
     if last and not semver.cmp last.major, z.major
       last.minors.push z.minor
     else