{"action":"created","issue":{"url":"https://api.github.com/repos/bumped/bumped/issues/16","repository_url":"https://api.github.com/repos/bumped/bumped","labels_url":"https://api.github.com/repos/bumped/bumped/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/bumped/bumped/issues/16/comments","events_url":"https://api.github.com/repos/bumped/bumped/issues/16/events","html_url":"https://github.com/bumped/bumped/issues/16","id":145397241,"number":16,"title":"Fail on missing version in bower.json","user":{"login":"nmaggioni","id":3594528,"avatar_url":"https://avatars.githubusercontent.com/u/3594528?v=3","gravatar_id":"","url":"https://api.github.com/users/nmaggioni","html_url":"https://github.com/nmaggioni","followers_url":"https://api.github.com/users/nmaggioni/followers","following_url":"https://api.github.com/users/nmaggioni/following{/other_user}","gists_url":"https://api.github.com/users/nmaggioni/gists{/gist_id}","starred_url":"https://api.github.com/users/nmaggioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmaggioni/subscriptions","organizations_url":"https://api.github.com/users/nmaggioni/orgs","repos_url":"https://api.github.com/users/nmaggioni/repos","events_url":"https://api.github.com/users/nmaggioni/events{/privacy}","received_events_url":"https://api.github.com/users/nmaggioni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bumped/bumped/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/bumped/bumped/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-02T17:37:34Z","updated_at":"2016-04-02T20:35:50Z","closed_at":null,"body":"Bumped fails if the _version_ field is not present in the `bower.json` file, but [as per the official specs](https://github.com/bower/spec/blob/master/json.md#version) that field is deprecated. Shouldn't this exception be handled somehow?\r\n\r\n\r\n`$ bumped init`\r\n```\r\nbumped Detected package.json in the directory.\r\nbumped Detected bower.json in the directory.\r\nbumped File package.json has been added.\r\nbumped File bower.json has been added.\r\n/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/semver/semver.js:279\r\n    throw new TypeError('Invalid Version: ' + version);\r\n    ^\r\n\r\nTypeError: Invalid Version: undefined\r\n  at new SemVer (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/semver/semver.js:279:11)\r\n  at compare (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/semver/semver.js:566:10)\r\n  at Function.gt (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/semver/semver.js:595:10)\r\n  at /home/nmaggioni/.npm-packages/lib/node_modules/bumped/lib/Bumped.semver.coffee:31:31\r\n  at /home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:375:13\r\n  at iterate (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:262:13)\r\n  at Object.async.forEachOfSeries.async.eachOfSeries (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:281:9)\r\n  at Object.async.inject.async.foldl.async.reduce (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:374:15)\r\n  at module.exports.Semver.max (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/lib/Bumped.semver.coffee:30:11)\r\n  at /home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:1149:20\r\n  at /home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:375:13\r\n  at Immediate.iterate [as _onImmediate] (/home/nmaggioni/.npm-packages/lib/node_modules/bumped/node_modules/async/lib/async.js:262:13)\r\n  at tryOnImmediate (timers.js:534:15)\r\n  at processImmediate [as _immediateCallback] (timers.js:514:5)\r\n```"},"comment":{"url":"https://api.github.com/repos/bumped/bumped/issues/comments/204802226","html_url":"https://github.com/bumped/bumped/issues/16#issuecomment-204802226","issue_url":"https://api.github.com/repos/bumped/bumped/issues/16","id":204802226,"user":{"login":"nmaggioni","id":3594528,"avatar_url":"https://avatars.githubusercontent.com/u/3594528?v=3","gravatar_id":"","url":"https://api.github.com/users/nmaggioni","html_url":"https://github.com/nmaggioni","followers_url":"https://api.github.com/users/nmaggioni/followers","following_url":"https://api.github.com/users/nmaggioni/following{/other_user}","gists_url":"https://api.github.com/users/nmaggioni/gists{/gist_id}","starred_url":"https://api.github.com/users/nmaggioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmaggioni/subscriptions","organizations_url":"https://api.github.com/users/nmaggioni/orgs","repos_url":"https://api.github.com/users/nmaggioni/repos","events_url":"https://api.github.com/users/nmaggioni/events{/privacy}","received_events_url":"https://api.github.com/users/nmaggioni/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T20:35:50Z","updated_at":"2016-04-02T20:35:50Z","body":"I was looking at the code right now :)\r\nMy CoffeeScript skills are okay, but the code's structure is giving me a bit of a headache."}}