constant_contact 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/constant_contact.rb +1 -0
- data/lib/constant_contact/contact.rb +0 -1
- data/lib/constant_contact/version.rb +1 -1
- metadata +4 -4
data/lib/constant_contact.rb
CHANGED
@@ -3,6 +3,7 @@ directory = File.expand_path(File.dirname(__FILE__))
|
|
3
3
|
require 'active_resource'
|
4
4
|
require 'action_pack'
|
5
5
|
require 'builder'
|
6
|
+
require 'cgi' unless defined?(CGI) && defined?(CGI::escape)
|
6
7
|
require File.join(directory, 'constant_contact', 'formats')
|
7
8
|
require File.join(directory, 'constant_contact', 'base')
|
8
9
|
require File.join(directory, 'constant_contact', 'list');
|
@@ -80,7 +80,6 @@ module ConstantContact
|
|
80
80
|
raise ArgumentError, "Expected an array of emails, got a(n) #{emails.class.name}" unless emails.is_a? Array
|
81
81
|
return [] if email_addresses.empty?
|
82
82
|
|
83
|
-
require 'cgi' unless defined?(CGI) && defined?(CGI::escape)
|
84
83
|
query_string = emails.map{|e| "email=#{CGI.escape(e.to_s.downcase)}"}.join('&')
|
85
84
|
|
86
85
|
path = "/ws/customers/#{self.user}/#{collection_name}?#{query_string}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constant_contact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Case
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-09-
|
21
|
+
date: 2010-09-19 00:00:00 -04:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|