cupid 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/cupid/methods/email.rb +5 -3
- data/lib/cupid/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -13,13 +13,13 @@ Sponsored by Evil Martians <http://evilmartians.com>
|
|
13
13
|
Puts this line into `Gemfile` then run `$ bundle`:
|
14
14
|
|
15
15
|
``` ruby
|
16
|
-
gem 'cupid', '0.0.
|
16
|
+
gem 'cupid', '0.0.6'
|
17
17
|
```
|
18
18
|
|
19
19
|
Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
|
20
20
|
|
21
21
|
``` ruby
|
22
|
-
config.gem 'cupid', :version => '0.0.
|
22
|
+
config.gem 'cupid', :version => '0.0.6'
|
23
23
|
```
|
24
24
|
|
25
25
|
Or manually install cupid gem: `$ gem install cupid`
|
data/lib/cupid/methods/email.rb
CHANGED
@@ -27,8 +27,9 @@ module Cupid
|
|
27
27
|
options[:subject] = CGI.escapeHTML subject.to_s
|
28
28
|
options[:body] = CGI.escapeHTML body.to_s
|
29
29
|
|
30
|
-
options[:email_type]
|
31
|
-
options[:is_html_paste]
|
30
|
+
options[:email_type] ||= 'HTML'
|
31
|
+
options[:is_html_paste] ||= 'true' # ??
|
32
|
+
options[:character_set] ||= 'utf-8'
|
32
33
|
|
33
34
|
soap_body = '<Objects xsi:type="Email">' +
|
34
35
|
create_email_object(options) +
|
@@ -76,7 +77,8 @@ module Cupid
|
|
76
77
|
email_object += '<Subject>' + options[:subject] + '</Subject>' +
|
77
78
|
'<HTMLBody>' + options[:body] + '</HTMLBody>' +
|
78
79
|
'<EmailType>' + options[:email_type] + '</EmailType>' +
|
79
|
-
'<IsHTMLPaste>' + options[:is_html_paste] + '</IsHTMLPaste>'
|
80
|
+
'<IsHTMLPaste>' + options[:is_html_paste] + '</IsHTMLPaste>' +
|
81
|
+
'<CharacterSet>' + options[:character_set] + '</CharacterSet>'
|
80
82
|
end
|
81
83
|
|
82
84
|
def create_folder_object(options)
|
data/lib/cupid/version.rb
CHANGED
metadata
CHANGED