ruby-d2l 0.4.0 → 0.4.1
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 +2 -2
- data/VERSION +1 -1
- data/lib/ruby-d2l/org_unit.rb +2 -1
- data/lib/ruby-d2l/tools.rb +2 -2
- data/ruby-d2l.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
|
@@ -22,7 +22,7 @@ Then in your Ruby application you can use the configure block to set these value
|
|
|
22
22
|
config.username = "D2L_WEB_SERVICES_USERNAME"
|
|
23
23
|
config.password = "D2L_WEB_SERVICES_PASSWORD"
|
|
24
24
|
config.site_url = "D2L_INSTANCE_URL" (e.g. https://d2l.mysite.edu)
|
|
25
|
-
config.soap_logging = true (defaults to false unless set)
|
|
25
|
+
config.soap_logging = true #(defaults to false unless set)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
== Documentation
|
|
@@ -30,7 +30,7 @@ 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
|
|
33
|
+
ap template # using awesome_print gem
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
== Contributing to ruby-d2l
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.1
|
data/lib/ruby-d2l/org_unit.rb
CHANGED
|
@@ -129,7 +129,7 @@ module RubyD2L
|
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
if add_child.to_hash.include?(:add_child_org_unit_response)
|
|
132
|
-
response =
|
|
132
|
+
response = add_child.to_hash[:add_child_org_unit_response]
|
|
133
133
|
response_hash = Tools.get_all_values_nested(response)
|
|
134
134
|
if response_hash.keys.any? {|k| k.include? "business_errors"}
|
|
135
135
|
return response_hash.keep_if {|k,v| k.include? "business_errors"}
|
|
@@ -410,6 +410,7 @@ module RubyD2L
|
|
|
410
410
|
end
|
|
411
411
|
|
|
412
412
|
response = department.to_hash[:get_department_response]
|
|
413
|
+
|
|
413
414
|
if response.include?(:department)
|
|
414
415
|
return Tools.get_all_values_nested(response)
|
|
415
416
|
else
|
data/lib/ruby-d2l/tools.rb
CHANGED
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.
|
|
8
|
+
s.version = "0.4.1"
|
|
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{
|
|
12
|
+
s.date = %q{2012-01-09}
|
|
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
|
-
-
|
|
9
|
-
version: 0.4.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.4.1
|
|
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:
|
|
17
|
+
date: 2012-01-09 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: -
|
|
130
|
+
hash: -3410690984352440998
|
|
131
131
|
segments:
|
|
132
132
|
- 0
|
|
133
133
|
version: "0"
|