Permalink
Browse files

Remove dependency on activesupport.

  • Loading branch information...
1 parent 40d046b commit 17b032c7432992ebbc573a7445c7c1b1ec8b474f @freerobby committed Nov 1, 2011
Showing with 2 additions and 7 deletions.
  1. +0 −1 Gemfile
  2. +0 −3 Gemfile.lock
  3. +0 −1 lib/sendgrid_toolkit.rb
  4. +2 −2 lib/sendgrid_toolkit/abstract_sendgrid_client.rb
View
@@ -1,6 +1,5 @@
source "http://rubygems.org"
-gem "activesupport", ">= 2.3.5"
gem "httparty", ">= 0.7.6"
group :development do
View
@@ -1,8 +1,6 @@
GEM
remote: http://rubygems.org/
specs:
- activesupport (3.1.1)
- multi_json (~> 1.0)
diff-lcs (1.1.3)
fakeweb (1.3.0)
git (1.2.5)
@@ -29,7 +27,6 @@ PLATFORMS
ruby
DEPENDENCIES
- activesupport (>= 2.3.5)
bundler (~> 1.0.0)
fakeweb (~> 1.3.0)
httparty (>= 0.7.6)
View
@@ -1,4 +1,3 @@
-require 'active_support/all'
require 'httparty'
require 'sendgrid_toolkit/abstract_sendgrid_client'
@@ -5,8 +5,8 @@ def initialize(api_user = nil, api_key = nil)
@api_user = (api_user.nil?) ? ENV['SMTP_USERNAME'] : api_user
@api_key = (api_key.nil?) ? ENV['SMTP_PASSWORD'] : api_key
- raise SendgridToolkit::NoAPIUserSpecified if @api_user.blank?
- raise SendgridToolkit::NoAPIKeySpecified if @api_key.blank?
+ raise SendgridToolkit::NoAPIUserSpecified if @api_user.nil? || @api_user.length == 0
+ raise SendgridToolkit::NoAPIKeySpecified if @api_key.nil? || @api_key.length == 0
end
protected

0 comments on commit 17b032c

Please sign in to comment.