Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now a gem.

  • Loading branch information...
commit ec5d728d36e65e599c770c2c12facdc765f4bae0 1 parent 5adfb21
Joost Hietbrink authored
View
4 Gemfile
@@ -2,5 +2,5 @@ source "http://rubygems.org"
source 'http://gemcutter.org'
source 'http://gems.github.com'
-gem 'savon'
-gem 'curb' # For Savon, see https://github.com/rubiii/savon/issues/167
+gem 'savon', '>= 0.9.1'
+gem 'curb', '>= 0.7.15' # For Savon, see https://github.com/rubiii/savon/issues/167
View
12 README.rdoc
@@ -1,6 +1,6 @@
= TransIP API
-Ruby lib to use the full TransIP API (v2).
+Ruby gem to use the full TransIP API (v2).
For more info see:
@@ -13,8 +13,11 @@ Credits:
== Install
-Have to turn into a gem..
-Download / clone the repository. Bundle install the needed gems and require the lib.
+Use the gem.
+
+ gem install transip
+
+For the latest version: Download / clone the repository. Bundle install the needed gems and require the lib.
git clone git://github.com/joost/transip-api.git
bundle install
@@ -24,6 +27,7 @@ Download / clone the repository. Bundle install the needed gems and require the
For the most up-to-date documentation see the source files. Use as follows:
+ require 'transip'
transip = Transip.new('username', '12.34.12.3')
transip.generate_hash('your_api_password')
transip.actions # => [:check_availability, .., :set_contacts]
@@ -32,7 +36,7 @@ For the most up-to-date documentation see the source files. Use as follows:
== TODO
-* Turn into gem
+* Tests
Please feel free to contribute and send me a pull request via Github!
View
4 VERSION.yml
@@ -0,0 +1,4 @@
+---
+:major: 0
+:minor: 1
+:patch: 0
View
1  init.rb
@@ -0,0 +1 @@
+require 'transip-api'
View
0  transip.rb → lib/transip.rb
File renamed without changes
View
31 transip.gemspec
@@ -0,0 +1,31 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{transip}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Joost Hietbrink"]
+ s.date = %q{2011-03-13}
+ s.description = s.summary = %q{Ruby gem to use the full TransIP API (v2).}
+ s.add_dependency('savon', '>= 0.9.1')
+ s.add_dependency('curb', '>= 0.7.15')
+ s.email = %q{joost@joopp.com}
+ s.extra_rdoc_files = [
+ "MIT-LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ "MIT-LICENSE",
+ "README.rdoc",
+ "VERSION.yml",
+ "Gemfile",
+ "Gemfile.lock",
+ "init.rb",
+ "lib/transip.rb"
+ ]
+ s.homepage = %q{http://github.com/joost/transip-api}
+ s.has_rdoc = true
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+end
Please sign in to comment.
Something went wrong with that request. Please try again.