cupid 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/lib/cupid/methods/email.rb +5 -6
- data/lib/cupid/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -47,13 +47,13 @@ send_tracking_id = et_translator.send_email_to_list(email_id, list_id)
|
|
47
47
|
Puts this line into `Gemfile` then run `$ bundle`:
|
48
48
|
|
49
49
|
``` ruby
|
50
|
-
gem 'cupid', '0.1.
|
50
|
+
gem 'cupid', '0.1.1'
|
51
51
|
```
|
52
52
|
|
53
53
|
Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
|
54
54
|
|
55
55
|
``` ruby
|
56
|
-
config.gem 'cupid', :version => '0.1.
|
56
|
+
config.gem 'cupid', :version => '0.1.1'
|
57
57
|
```
|
58
58
|
|
59
59
|
Or manually install cupid gem: `$ gem install cupid`
|
data/lib/cupid/methods/email.rb
CHANGED
@@ -3,12 +3,11 @@ module Cupid
|
|
3
3
|
def retrieve_email_folders(account=nil, properties=nil)
|
4
4
|
account ||= @account
|
5
5
|
properties ||= ['ID', 'Name', 'ParentFolder.ID', 'ParentFolder.Name']
|
6
|
-
filters =
|
7
|
-
'Property'
|
8
|
-
'SimpleOperator'
|
9
|
-
'Value'
|
10
|
-
|
11
|
-
}
|
6
|
+
filters = '<Filter xsi:type="SimpleFilterPart">' +
|
7
|
+
'<Property>ContentType</Property>' +
|
8
|
+
'<SimpleOperator>like</SimpleOperator>' +
|
9
|
+
'<Value>email</Value>' +
|
10
|
+
'</Filter>'
|
12
11
|
|
13
12
|
soap_body = build_retrieve(account.to_s, 'DataFolder', properties, filters)
|
14
13
|
response = build_request('Retrieve', 'RetrieveRequestMsg', soap_body)
|
data/lib/cupid/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cupid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- gazay
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: builder
|