coderly / code

The Coderly toolbelt
http://coderly.com
1 stars 0 forks source link

Add codeconfig support #22

Closed begedin closed 9 years ago

begedin commented 9 years ago

Asana tasks

This spec adds support for a .codeconfig file, which stores configuration strings.

Right now, the default behavior is that, if there is no .codeconfig file to be found, it is created. Additionally, if the requested property does not exist within the file, the user is prompted to provide the property value.

Note that this PR branches off of #21 , to facilitate merging. I'm expecting to merge #21 soon.

ToDo

begedin commented 9 years ago

Just do document this so I don't forget about it, I encountered a strange issue with ruby, symbols and hashes and the puts method.

The following two lines run fine with symbols that are single words.

puts symbol

hash[symbol]

However, if the symbol has an underscore (meaning it consists of multiple words), then they just silently fail.

The code that works is

puts symbol.to_s

hash[symbol.to_s]

Very strange.

begedin commented 9 years ago

After putting some thought into it, I decided not to do the hotfix prefix right now. The reason for that is that there's also the hotfix label, so those should be done together in a way that makes more sense.