cupid 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,7 @@ module Cupid
42
42
  def create_folder(title, *args)
43
43
  options = args.extract_options!
44
44
  options[:title] = CGI.escapeHTML title.to_s
45
+ options[:description] ||= 'description'
45
46
 
46
47
  options[:content_type] ||= 'email'
47
48
  options[:is_active] ||= 'true'
@@ -82,9 +83,9 @@ module Cupid
82
83
  folder_object = '<ObjectID xsi:nil="true"/>'
83
84
  folder_object += '<Client><ID>' + options[:client_id].to_s + '</ID></Client>' if options[:client_id]
84
85
  folder_object += '<CustomerKey>' + options[:title].to_s + '</CustomerKey>' if options[:title]
85
- folder_object += '<Name>' + options[:title].to_s + '</Name>'
86
- folder_object += '<Description>' + options[:description].to_s + '</Description>' if options[:description]
87
- folder_object += '<ContentType>' + options[:content_type].to_s + '</ContentType>' +
86
+ folder_object += '<Name>' + options[:title].to_s + '</Name>' +
87
+ '<Description>' + options[:description].to_s + '</Description>' +
88
+ '<ContentType>' + options[:content_type].to_s + '</ContentType>' +
88
89
  '<IsActive>' + options[:is_active].to_s + '</IsActive>' +
89
90
  '<IsEditable>' + options[:is_editable].to_s + '</IsEditable>' +
90
91
  '<AllowChildren>' + options[:allow_children].to_s + '</AllowChildren>'
data/lib/cupid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cupid
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - gazay