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 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.4'
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.4'
22
+ config.gem 'cupid', :version => '0.0.6'
23
23
  ```
24
24
 
25
25
  Or manually install cupid gem: `$ gem install cupid`
@@ -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] = 'HTML'
31
- options[:is_html_paste] = 'true' # ??
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)
@@ -1,3 +1,3 @@
1
1
  module Cupid
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - gazay