bensie / enom Goto Github PK
View Code? Open in Web Editor NEWEnom API - Ruby Wrapper
License: MIT License
Enom API - Ruby Wrapper
License: MIT License
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.
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")
Thanks.
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!
NoMethodError: undefined method `available?' for Enom::Domain:Class
It seems this method is not working, all others work ok.
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:in
start'
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.