aetrion/dnsimple-ruby — Issue #9: undefined method `name' for "example.com":String (NoMethodError)
Author: benburkert
Created: 2011-11-28 19:03:30+00:00
State: open

the DNS Imple gem is crashing when i try to add a record:

```
~$ dnsimple record:create example.com redacted CNAME redacted.example.com
/Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/gems/dnsimple-ruby-1.2.1/lib/dnsimple/record.rb:77:in `create': undefined method `name' for "example.com":String (NoMethodError)
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/gems/dnsimple-ruby-1.2.1/lib/dnsimple/commands/create_record.rb:12:in `execute'
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/gems/dnsimple-ruby-1.2.1/lib/dnsimple/cli.rb:15:in `execute'
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/gems/dnsimple-ruby-1.2.1/bin/dnsimple.rb:147:in `'
from /Users/ben/Developer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/ben/Developer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/gems/dnsimple-ruby-1.2.1/bin/dnsimple:4:in `'
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/bin/dnsimple:19:in `load'
from /Users/ben/Developer/.rvm/gems/ruby-1.9.2-p180/bin/dnsimple:19:in `

'
```

Here's the gem list:

```
~$ gem install dnsimple-ruby
Fetching: multi_json-1.0.4.gem (100%)
Fetching: multi_xml-0.4.1.gem (100%)
Fetching: httparty-0.8.1.gem (100%)
When you HTTParty, you must party hard!
Fetching: dnsimple-ruby-1.2.1.gem (100%)
Successfully installed multi_json-1.0.4
Successfully installed multi_xml-0.4.1
Successfully installed httparty-0.8.1
Successfully installed dnsimple-ruby-1.2.1
```

Happens on 1.8.7 too.