ruby-d2l 0.4.2 → 0.4.3

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.
data/README.rdoc CHANGED
@@ -21,8 +21,8 @@ Then in your Ruby application you can use the configure block to set these value
21
21
  RubyD2L.configure do |config|
22
22
  config.username = "D2L_WEB_SERVICES_USERNAME"
23
23
  config.password = "D2L_WEB_SERVICES_PASSWORD"
24
- config.site_url = "D2L_INSTANCE_URL" (e.g. https://d2l.mysite.edu)
25
- config.soap_logging = true #(defaults to false unless set)
24
+ config.site_url = "https://d2l.mysite.edu"
25
+ config.soap_logging = true # defaults to FALSE unless set
26
26
  end
27
27
 
28
28
  == Documentation
@@ -30,7 +30,9 @@ Then in your Ruby application you can use the configure block to set these value
30
30
  Code Example:
31
31
 
32
32
  template = RubyD2L::OrgUnit.get_course_template_by_code(:template_code => "TEMPLATE_CODE")
33
- ap template # using awesome_print gem
33
+ # using awesome_print gem
34
+ ap template
35
+
34
36
 
35
37
 
36
38
  == Contributing to ruby-d2l
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -188,9 +188,11 @@ module RubyD2L
188
188
  </CreateCourseOfferingRequest>
189
189
  </soap:Body>
190
190
  </soap:Envelope>'
191
-
191
+
192
+ esc_xml = the_xml.gsub("&", "&amp;")
193
+
192
194
  create_offering = self.connect(RubyD2L.site_url).request :create_course_offering do
193
- soap.xml = the_xml
195
+ soap.xml = esc_xml
194
196
  end
195
197
 
196
198
  response = create_offering.to_hash[:create_course_offering_response]
@@ -237,8 +239,10 @@ module RubyD2L
237
239
  </soap:Body>
238
240
  </soap:Envelope>'
239
241
 
242
+ esc_xml = the_xml.gsub("&", "&amp;")
243
+
240
244
  template = self.connect(RubyD2L.site_url).request :create_course_template do
241
- soap.xml = the_xml
245
+ soap.xml = esc_xml
242
246
  end
243
247
 
244
248
  response = template.to_hash[:create_course_template_response]
data/ruby-d2l.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-d2l}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Mencel"]
12
- s.date = %q{2012-01-09}
12
+ s.date = %q{2012-01-10}
13
13
  s.description = %q{A Ruby SOAP client for accessing Desire2Learn Web Services (D2LWS)}
14
14
  s.email = %q{mr-mencel@wiu.edu}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Mencel
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-01-09 00:00:00 -06:00
17
+ date: 2012-01-10 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- hash: 1969864323640703939
130
+ hash: -1752925428769583042
131
131
  segments:
132
132
  - 0
133
133
  version: "0"