<commit_before>= TransIP API

Ruby gem to use the full TransIP (www.transip.nl) API (v5.0).
Uses an updated version of savon and implements the new request signing method that the guys at TransIP have introduced into their API.

The TransIP API makes use of public/private key encryption. You need to use the TransIP
control panel to give your server access to the API and to generate a key. You can then
use the key together with your username to gain access to the API.

For more info see:

* <b>The origin of this code:</b> https://github.com/joost/transip
* <b>TransIP API Docs:</b> https://www.transip.nl/g/api

== Install

Install from rubygems (rubygems.org/gems/transip):

  gem install transip

or add in your Bundle Gemfile:

  gem 'transip'

For the latest version: Download / clone the repository. Bundle install the needed gems and require the lib.

  git clone https://github.com/joost/transip.git
  cd transip
  bundle install
  irb # and require './lib/transip'

== API Credentials

Enable the TransIP API via https://www.transip.nl/cp/mijn-account/#api.
Make sure:
* you enable the API
* add your IP to the access list
* create and save your RSA private key

== Usage

For the most up-to-date documentation see the source files.

Setup the API client:

  # use this in production
  transip = Transip::DomainClient.new(username: 'your_username', key: 'your_private_rsa_key', ip: '12.34.12.3', mode: :readwrite)


You can use Transip::DomainClient, Transip::VpsClient, Transip::ColocationClient, Transip::WebhostingClient and Transip::ForwardClient.

In development you can leave out the ip. To test request use :readonly mode.

If you store your private key in a seperate file you can do:

  transip = Transip::DomainClient.new(username: 'your_username', key_file: 'path_to_your_private_key_file', ip: '172.16.17.32', mode: :readwrite)

=== Using a proxy for routing traffic to TransIP<commit_msg>Updated README.rdoc to mention ipv6<commit_after>= TransIP API

Ruby gem to use the full TransIP (www.transip.nl) API (v5.0).
Uses an updated version of savon and implements the new request signing method that the guys at TransIP have introduced into their API.

The TransIP API makes use of public/private key encryption. You need to use the TransIP
control panel to give your server access to the API and to generate a key. You can then
use the key together with your username to gain access to the API.

For more info see:

* <b>The origin of this code:</b> https://github.com/joost/transip
* <b>TransIP API Docs:</b> https://www.transip.nl/g/api

== Install

Install from rubygems (rubygems.org/gems/transip):

  gem install transip

or add in your Bundle Gemfile:

  gem 'transip'

For the latest version: Download / clone the repository. Bundle install the needed gems and require the lib.

  git clone https://github.com/joost/transip.git
  cd transip
  bundle install
  irb # and require './lib/transip'

== API Credentials

Enable the TransIP API via https://www.transip.nl/cp/mijn-account/#api.
Make sure:
* you enable the API
* add your IP to the access list
* If your host supports ipv6, also add your ipv6 ip!
* create and save your RSA private key

== Usage

For the most up-to-date documentation see the source files.

Setup the API client:

  # use this in production
  transip = Transip::DomainClient.new(username: 'your_username', key: 'your_private_rsa_key', ip: '172.16.17.32', mode: :readwrite)


You can use Transip::DomainClient, Transip::VpsClient, Transip::ColocationClient, Transip::WebhostingClient and Transip::ForwardClient.

In development you can leave out the ip. To test request use :readonly mode.

If you store your private key in a seperate file you can do:

  transip = Transip::DomainClient.new(username: 'your_username', key_file: 'path_to_your_private_key_file', ip: '12.34.12.3', mode: :readwrite)

=== Using a proxy for routing traffic to TransIP
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.009997436554729556, 'mean_word_length': 4.265856950067477, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4061277', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1168, 'n_words': 509}