From 54f7079b60edd016d4f6938c39725c6e0101afca Mon Sep 17 00:00:00 2001 From: Mick Staugaard Date: Thu, 29 Oct 2009 14:45:13 +0100 Subject: [PATCH] cleaning up dependencies --- lib/rpx_now.rb | 6 ------ lib/rpx_now/api.rb | 4 ++++ lib/rpx_now/user_integration.rb | 2 ++ spec/rpx_now/user_proxy_spec.rb | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/rpx_now.rb b/lib/rpx_now.rb index e0dd7c2..8173d4f 100644 --- a/lib/rpx_now.rb +++ b/lib/rpx_now.rb @@ -1,11 +1,5 @@ -require 'net/http' -require 'net/https' -require 'json/pure' - require 'rpx_now/api' require 'rpx_now/contacts_collection' -require 'rpx_now/user_integration' -require 'rpx_now/user_proxy' module RPXNow extend self diff --git a/lib/rpx_now/api.rb b/lib/rpx_now/api.rb index cb464a9..92fe703 100644 --- a/lib/rpx_now/api.rb +++ b/lib/rpx_now/api.rb @@ -1,3 +1,7 @@ +require 'net/http' +require 'net/https' +require 'json' + module RPXNow # low-level interaction with rpxnow.com api # - send requests diff --git a/lib/rpx_now/user_integration.rb b/lib/rpx_now/user_integration.rb index 42f2276..694f3fd 100644 --- a/lib/rpx_now/user_integration.rb +++ b/lib/rpx_now/user_integration.rb @@ -1,3 +1,5 @@ +require 'rpx_now/user_proxy' + module RPXNow module UserIntegration def rpx diff --git a/spec/rpx_now/user_proxy_spec.rb b/spec/rpx_now/user_proxy_spec.rb index d0593b4..080cb1b 100644 --- a/spec/rpx_now/user_proxy_spec.rb +++ b/spec/rpx_now/user_proxy_spec.rb @@ -1,4 +1,5 @@ require 'spec/spec_helper' +require 'rpx_now/user_integration' class User include RPXNow::UserIntegration