Project

enom-ruby

0.0
No commit activity in last 3 years
No release in over 3 years
EnomRuby is a Ruby wrapper for portions of the Enom domain reseller API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 1.0
~> 0.10
~> 10.0
~> 3.1
~> 2.9
~> 1.20

Runtime

= 3.4.4
= 0.14.0
 Project Readme

EnomRuby

A ruby wrapper for the Enom Reseller API

Installation

Add this line to your application's Gemfile:

gem 'enom-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install enom-ruby

Usage

require 'enom-ruby'

EnomRuby::Client.configure do |c|
  c.username = ENV['ENOM_USERNAME']
  c.password = ENV['ENOM_PASSWORD']
  c.test_mode = true
end

# searches for google.com
domains = EnomRuby::Domain.check('google')

# searches for google.co, google.org, google.net
domains = EnomRuby::Domain.check('google', ['co', 'org', 'net'])

domains.first.unavailable? #=> true

# adds google.co and google.org to your cart
EnomRuby::Domain.bulk_register('google', ['co', 'org'])

Development

  • Add a .env file touch .env
  • Then add your ENOM_USERNAME and ENOM_PASSWORD environment variables.
  • rspec spec/ to run your tests.

Note that this needs to make an API call, so it will generate VCR cassettes.

Contribute

  1. Fork it ( https://github.com/[my-github-username]/enom-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Mentions

Most of this gem is stemmed from James Miller's Enom gem. It worked well, but now I need to add some new things, and check against new TLDs which the enom gem fails with. I also have no use for a command line version