Skip to content
Browse files

Replaced facets with activesupport. Closes #6.

  • Loading branch information...
1 parent db900e7 commit 291e48097607f291815ccfeb2d122c307c3cdb7d @joost committed Feb 25, 2014
Showing with 7 additions and 7 deletions.
  1. +1 −1 Gemfile
  2. +3 −3 lib/transip.rb
  3. +2 −2 lib/transip/client.rb
  4. +1 −1 transip.gemspec
View
2 Gemfile
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
gem 'savon', '>= 2.3.0'
gem 'curb', '>= 0.8.4'
-gem 'facets', '>= 2.9.3'
+gem 'activesupport', '>= 3.0.0'
View
6 lib/transip.rb
@@ -1,9 +1,9 @@
-require "rubygems"
-require "bundler/setup"
+require 'rubygems'
+require 'bundler/setup'
require 'securerandom'
require 'savon'
require 'curb'
-require 'facets/string'
+require 'active_support/inflector'
require 'digest/sha2'
require 'base64'
require 'ipaddr'
View
4 lib/transip/client.rb
@@ -119,7 +119,7 @@ def serialize_parameters(parameters, key_prefix=nil)
# URL encoded
# I think the guys at transip were trying to use their entire crypto-toolbox!
def signature(method, parameters, time, nonce)
- formatted_method = method.to_s.lower_camelcase
+ formatted_method = method.to_s.camelize(:lower)
parameters ||= {}
input = convert_array_to_hash(parameters.values)
options = {
@@ -228,7 +228,7 @@ def process_response(response)
# throws ApiError
# returns response object (can be TransipStruct or Array of TransipStruct)
def request(action, options = nil)
- formatted_action = action.to_s.lower_camelcase
+ formatted_action = action.to_s.camelize(:lower)
parameters = {
# for some reason, the transip server wants the body root tag to be
# the name of the action.
View
2 transip.gemspec
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.add_dependency('savon', '>= 2.3.0')
spec.add_dependency('curb', '>= 0.8.4')
- spec.add_dependency('facets', '>= 2.9.3')
+ spec.add_dependency('activesupport', '>= 3.0.0')
spec.extra_rdoc_files = [
"MIT-LICENSE",

0 comments on commit 291e480

Please sign in to comment.
Something went wrong with that request. Please try again.