Permalink
Browse files

updating the gemspec number and removing the code around only logging…

… and not sending to exact target
  • Loading branch information...
1 parent f11025d commit 3cbe3dd7d63e14773c63982b1e5f824bcc31719e Derrick Camerino committed Sep 13, 2011
Showing with 6 additions and 13 deletions.
  1. +1 −1 exact-target.gemspec
  2. +4 −8 lib/exact_target.rb
  3. +1 −4 lib/exact_target/configuration.rb
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{exact-target}
- s.version = "0.1.4"
+ s.version = "0.1.6"
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["David McCullars", "Paul Nock"]
View
@@ -76,15 +76,11 @@ def send_to_exact_target(request)
http.use_ssl = configuration.secure?
http.open_timeout = configuration.http_open_timeout
http.read_timeout = configuration.http_read_timeout
- if configuration.log_only
- log('error', request)
+ resp = http.post(uri.request_uri, { 'qf' => 'xml', 'xml'=> request }.to_query)
+ if resp.is_a?(Net::HTTPSuccess)
+ resp.body
else
- resp = http.post(uri.request_uri, { 'qf' => 'xml', 'xml'=> request }.to_query)
- if resp.is_a?(Net::HTTPSuccess)
- resp.body
- else
- resp.error!
- end
+ resp.error!
end
end
@@ -3,7 +3,7 @@ module ExactTarget
class Configuration
OPTIONS = [:base_url, :username, :password,
- :http_open_timeout, :http_read_timeout, :http_proxy, :log_only].freeze
+ :http_open_timeout, :http_read_timeout, :http_proxy].freeze
# The (optional) base URL for accessing ExactTarget (can be http or https).
# Defaults to 'https://api.dc1.exacttarget.com/integrate.aspx'
@@ -27,9 +27,6 @@ class Configuration
# The (optional) HTTP proxy url
attr_accessor :http_proxy
- # The optional argument to log the email arguments rather than use the exact target api
- attr_accessor :log_only
-
def initialize
@base_url = 'https://api.dc1.exacttarget.com/integrate.aspx'
@http_open_timeout = 2

0 comments on commit 3cbe3dd

Please sign in to comment.