Auto-merge for PR #643 via VersionBot

Fix lodash bugs in device move & quickstart
This commit is contained in:
resin-io-versionbot[bot] 2017-08-31 12:30:48 +00:00 committed by GitHub
commit bd3b9e32a9
6 changed files with 9 additions and 5 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## v6.6.5 - 2017-08-31
* Fix lodash bugs in device move & quickstart #643 [Tim Perry]
## v6.6.4 - 2017-08-31
* Catch uncommitted build output automatically in Travis #644 [Tim Perry]

View File

@ -249,7 +249,7 @@ exports.move = {
patterns = require('../utils/patterns');
return resin.models.device.get(params.uuid).then(function(device) {
return options.application || patterns.selectApplication(function(application) {
return _.all([application.device_type === device.device_type, device.application_name !== application.app_name]);
return _.every([application.device_type === device.device_type, device.application_name !== application.app_name]);
});
}).tap(function(application) {
return resin.models.device.move(params.uuid, application);

View File

@ -24,7 +24,7 @@ exports.getGroupDefaults = function(group) {
_ = require('lodash');
return _.chain(group).get('options').map(function(question) {
return [question.name, question["default"]];
}).object().value();
}).fromPairs().value();
};
exports.stateToString = function(state) {

View File

@ -343,7 +343,7 @@ exports.move =
resin.models.device.get(params.uuid).then (device) ->
return options.application or patterns.selectApplication (application) ->
return _.all [
return _.every [
application.device_type is device.device_type
device.application_name isnt application.app_name
]

View File

@ -23,7 +23,7 @@ exports.getGroupDefaults = (group) ->
.get('options')
.map (question) ->
return [ question.name, question.default ]
.object()
.fromPairs()
.value()
exports.stateToString = (state) ->

View File

@ -1,6 +1,6 @@
{
"name": "resin-cli",
"version": "6.6.4",
"version": "6.6.5",
"description": "The official resin.io CLI tool",
"main": "./build/actions/index.js",
"homepage": "https://github.com/resin-io/resin-cli",