canvas_webex 0.0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,10 +109,8 @@ module CanvasWebex
109
109
  uri = URI.parse("https://#{@site_name}.webex.com")
110
110
  http = Net::HTTP.new(uri.host, uri.port)
111
111
  http.use_ssl = true
112
- request = Net::HTTP::Post.new("/WBXService/XMLService")
113
- request['Content-Type'] = 'text/xml;charset=UTF-8'
114
- request.body = body
115
- xml = Nokogiri::XML(http.request(request).body).remove_namespaces!
112
+ response = http.post('/WBXService/XMLService', body)
113
+ xml = Nokogiri::XML(response.body).remove_namespaces!
116
114
  xml.at_xpath('/message/header/response/result').try(:text) == 'SUCCESS' && xml.at_xpath('/message/body/bodyContent')
117
115
  end
118
116
 
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module CanvasWebex
20
- VERSION = "0.0.1"
20
+ VERSION = "0.2"
21
21
  end
22
22
 
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.0.1
4
+ version: '0.2'
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-10-24 00:00:00.000000000 Z
12
+ date: 2013-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake