Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Failure at creating new Project #27

Closed
BanditsBacon opened this issue Oct 13, 2014 · 3 comments
Closed

Failure at creating new Project #27

BanditsBacon opened this issue Oct 13, 2014 · 3 comments

Comments

@BanditsBacon
Copy link

If i let the Organization blank or insert it in lowercase i run in this failure.

    ___           ___
   /\  \         /\__\
  /  \  \       / /  /
 / /\ \__\     / /__/
 \ \ \/__/  &  \ \  \
  \ \__\        \ \__\
   \/__/         \/__/  Amaro v0.3.5

Checking environment... 馃憤
Repository: git://github.com/crushlovely/Amaro.git
Branch: master

New project name: TestProjekt
Class prefix (optional; 2 or preferably 3 characters): TP
Your name (blank for RealName: Carsten): RealName: Carsten
Organization name (blank for ipol): ipol
-e:789:in `+': no implicit conversion of nil into String (TypeError)
    from -e:789:in `block (2 levels) in <main>'
    from -e:258:in `[]'
    from -e:258:in `run!'
    from -e:308:in `block in run_sequence'
    from -e:307:in `each'
    from -e:307:in `run_sequence'
    from -e:827:in `<main>'

I think it's caused by the downcase! method.

Downcases! the contents of str, returning nil if no changes were made.
http://ruby-doc.org/core-2.0/String.html#method-i-downcase-21

@misterfifths
Copy link
Collaborator

Well look at that! Good catch. Should have been downcase, not the in-place downcase!. Thanks!

@misterfifths
Copy link
Collaborator

@BanditsBacon unrelatedly, that default for your name is odd.. it should have stripped the "RealName:" part off of it. What version of OSX are you on? And could you post the output of this command?

dscl . read "/Users/$USER" RealName

@BanditsBacon
Copy link
Author

@misterfifths ahhh ok i see. I'm on 10.9.5. and the output is:

RealName: Carsten

I ask a colleague if he can try it on the same OSX Version but on his machine
and his output was:

RealName:
First name Second name

So when i change my Username to Carsten T the odd default name is gone

New project name: Test
Class prefix (optional; 2 or preferably 3 characters): TO
Your name (blank for Carsten T): Carsten T
Organization name (blank for ipol):  

Hope it helps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants