GithubHelp home page GithubHelp logo

enom's People

Contributors

bensie avatar itspriddle avatar muffinista avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

enom's Issues

Does not work for domains like .co.uk

Because of the way you split the domain name on dots causes it not to work for multi-level tlds, like co.uk

I would suggest using something like PublicSuffix so you can do something like this:

irb(main):001:0> domain = PublicSuffix.parse("test.co.uk")
=> test.co.uk
irb(main):002:0> domain.sld
=> "test"
irb(main):003:0> domain.tld
=> "co.uk"

This helps you from having to keep the logic in your gem about what the valid TLDs are.

Invalid Registrant information., Zipcode was invalid for that country.

Hello.
I'm using rails 4.1 and gem "enom 1.1.2".

I have a problem registering a domain:

Enom::Domain.register!("example.com", "RegistrantFirstName" => "Test", "RegistrantLastName" => "Tester", "RegistrantCountry" => "PE", "RegistrantPostalCode" => "CALLAO 36", "AuxBillingPostalCode" => "CALLAO 36", "TechPostalCode" => "CALLAO 36", "AdminPostalCode" => "CALLAO 36", "BillingPostalCode" => "CALLAO 36")

=> "Invalid Registrant information., Zipcode was invalid for that country. Sample format: CALLAO 0, Invalid Aux Billing information., Zipcode was invalid for that country. Sample format: CALLAO 0, Invalid Administrative information., Zipcode was invalid for that country. Sample format: CALLAO 0, Invalid Technical information., Zipcode was invalid for that country. Sample format: CALLAO 0"

Thanks.

strange check results

I get the following as available when clearly they are not:

internet.info
internet.mobi
internet.cc
internet.me

I think this might be more of a problem with the enom API.

any thoughts?
Thanks!

Examples not working

Problem: Trying out the examples always results in the following errors.

2.0.0p247 :002 > require 'Enom'
=> true
2.0.0p247 :003 > Enom::Client.username = 'asdf'
NoMethodError: undefined method username=' for Enom::Client:Class from (irb):3 from /Users/marcello/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/console.rb:47:instart'
from /Users/marcello/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/console.rb:8:in start' from /Users/marcello/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:41:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in

'
2.0.0p247 :004 >

Trying it from the app results in same error
undefined method `username=' for Enom::Client:Class

Versions:
gem 'rails', '3.2.14'
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
Using enom (0.0.1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.