canvas_webex 0.8 → 0.9

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.
@@ -46,9 +46,9 @@ class CiscoWebexConference < WebConference
46
46
  options = {
47
47
  duration: self.duration || 999999,
48
48
  emails: settings[:external_emails].nil? ? [] : settings[:external_emails].strip.split(';'),
49
- scheduled_date: scheduled_date.in_time_zone(user.time_zone),
50
49
  time_zone: user.time_zone
51
50
  }
51
+ options[:scheduled_date] = scheduled_date.in_time_zone(user.time_zone) if scheduled_date.present?
52
52
  webex_meeting = CanvasWebex::Meeting.create(self.title, options)
53
53
  self.conference_key = webex_meeting.meeting_key
54
54
  save
@@ -39,7 +39,7 @@ module CanvasWebex
39
39
  }
40
40
  end
41
41
  xml.schedule{
42
- if options[:scheduled_date]
42
+ if options[:scheduled_date].present?
43
43
  xml.startDate options[:scheduled_date].in_time_zone('America/Los_Angeles').strftime("%m/%d/%Y %T") rescue nil
44
44
  xml.timeZoneID 4
45
45
  else
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module CanvasWebex
20
- VERSION = "0.8"
20
+ VERSION = "0.9"
21
21
  end
22
22
 
@@ -6,6 +6,17 @@ require 'net/http'
6
6
  require 'webmock/rspec'
7
7
  require 'pry'
8
8
 
9
+ class Object
10
+ def blank?
11
+ respond_to?(:empty?) ? empty? : !self
12
+ end
13
+
14
+ # An object is present if it's not <tt>blank?</tt>.
15
+ def present?
16
+ !blank?
17
+ end
18
+ end
19
+
9
20
  class WebConference
10
21
  def self.after_save(*args)
11
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_webex
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-17 00:00:00.000000000 Z
12
+ date: 2013-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake