Skip to content

Commit

Permalink
Merge 5c6088d into 2d56bc5
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 13, 2014
2 parents 2d56bc5 + 5c6088d commit d2ca19b
Show file tree
Hide file tree
Showing 70 changed files with 21 additions and 1,404 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
env: DNSIMPLE_TEST_CONFIG=spec/ci/.dnsimple.test COVERALL=1

matrix:
allow_failures:
- rvm: 1.8.7
env: COVERALL=1
8 changes: 8 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

#### master

- CHANGED: Drop 1.8.7 support.

- CHANGED: This package no longer provides a CLI. The CLI has been extracted to [aetrion/dnsimple-ruby-cli](https://github.com/aetrion/dnsimple-ruby-cli)

- REMOVED: The library no longer provides built-in support for loading the credentials from a config file.

#### Release 1.7.1

- FIXED: Updated Certificate to match the serialized attributes (GH-53)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2013 Aetrion LLC
Copyright (c) 2010-2014 Aetrion LLC

MIT License

Expand Down
84 changes: 2 additions & 82 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ A Ruby client for the [DNSimple API](http://developer.dnsimple.com/).
[DNSimple](https://dnsimple.com/) provides DNS hosting and domain registration that is simple and friendly.
We provide a full API and an easy-to-use web interface so you can get your domain registered and set up with a minimal amount of effort.


## Installation

$ gem install dnsimple-ruby


## DNSimple Client

This library provides a Ruby DNSimple client you can use to interact with the [DNSimple API](http://developer.dnsimple.com/). Here's a short example.
Expand Down Expand Up @@ -75,85 +77,3 @@ DNSimple::Client.api_token = 'the-token'

user = DNSimple::User.me
```


## Credentials

Create a file in your home directory called `.dnsimple`.

In this file add the following:

username: YOUR_USERNAME
password: YOUR_PASSWORD

Or if using an API token

username: YOUR_USERNAME
api_token: YOUR_API_TOKEN

## Commands

There are two ways to interact with the DNSimple Ruby wrapper. The first is
to use the command line utility that is included. The commands available
are as follows:

For help:

- dnsimple help

The following commands are available for domains:

- dnsimple list
- dnsimple describe domain.com
- dnsimple create domain.com
- dnsimple register domain.com registrant_id
- dnsimple transfer domain.com registrant_id [authinfo]
- dnsimple delete domain.com
- dnsimple apply domain.com template_short_name

Please note that domain registration and transfer can only be done through the API for domains that do not require extended attributes. A future version of the API will add support for extended attributes.

The following commands are available for records:

- dnsimple record:create [--prio=priority] domain.com name type content [ttl]
- dnsimple record:list domain.com
- dnsimple record:delete domain.com record_id

The following commands are available for custom templates:

- dnsimple template:list
- dnsimple template:create name short_name [description]
- dnsimple template:delete short_name
- dnsimple template:list_records short_name
- dnsimple template:add_record short_name name type content [ttl] [prio]
- dnsimple template:delete_record short_name template_record_id

The following commands are available for managing contacts:

- dnsimple contact:list
- dnsimple contact:describe id
- dnsimple contact:create [name:value name:value ...]
- dnsimple contact:update id [name:value name:value ...]
- dnsimple contact:delete id

The following commands are available for purchasing certificates:

- dnsimple certificate:purchase domain.com name contact_id
- dnsimple certificate:submit id

The contact name/value pairs are:

- first_name
- last_name
- organization_name (optional)
- job_title (required if organization name is specified)
- address1
- address2 (optional)
- city
- state_province (also aliased as state)
- postal_code
- country
- email
- phone
- phone_ext (optional)
- fax (optional)
4 changes: 0 additions & 4 deletions bin/dnsimple

This file was deleted.

156 changes: 0 additions & 156 deletions bin/dnsimple.rb

This file was deleted.

11 changes: 5 additions & 6 deletions dnsimple-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@ require 'dnsimple/version'
Gem::Specification.new do |s|
s.name = 'dnsimple-ruby'
s.version = DNSimple::VERSION
s.authors = ['Anthony Eden']
s.email = ['anthony.eden@dnsimple.com']
s.authors = ['Anthony Eden', 'Simone Carletti']
s.email = ['anthony.eden@dnsimple.com', 'simone.carletti@dnsimple.com']
s.homepage = 'http://github.com/aetrion/dnsimple-ruby'
s.summary = 'A Ruby client for the DNSimple API'
s.description = 'A Ruby client for the DNSimple API that also includes a command-line client.'

s.required_ruby_version = ">= 1.9.3"

s.require_paths = ['lib']
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.extra_rdoc_files = %w( README.markdown CHANGELOG.markdown LICENSE )
s.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) }

s.add_dependency 'httparty', RUBY_VERSION < "1.9.3" ? [">= 0.10", "< 0.12"] : "~> 0.12"
s.add_dependency 'httparty'

s.add_development_dependency 'rake'
s.add_development_dependency 'aruba'
s.add_development_dependency 'cucumber'
s.add_development_dependency 'mocha'
s.add_development_dependency 'rspec'
s.add_development_dependency 'yard'
Expand Down
9 changes: 0 additions & 9 deletions features/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions features/cli/certificates/purchase_certificate.feature

This file was deleted.

10 changes: 0 additions & 10 deletions features/cli/contacts/create_contact.feature

This file was deleted.

10 changes: 0 additions & 10 deletions features/cli/domains/check_domain.feature

This file was deleted.

10 changes: 0 additions & 10 deletions features/cli/domains/create_domain.feature

This file was deleted.

11 changes: 0 additions & 11 deletions features/cli/domains/delete_domain.feature

This file was deleted.

0 comments on commit d2ca19b

Please sign in to comment.