rtunesu 0.2.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/History.txt +0 -5
- data/README.txt +2 -2
- data/Rakefile +15 -2
- data/VERSION +1 -0
- data/lib/rtunesu/connection.rb +152 -54
- data/lib/rtunesu/document.rb +21 -26
- data/lib/rtunesu/entities/course.rb +4 -13
- data/lib/rtunesu/entities/division.rb +5 -12
- data/lib/rtunesu/entities/external_feed.rb +14 -0
- data/lib/rtunesu/entities/group.rb +5 -14
- data/lib/rtunesu/entities/permission.rb +1 -5
- data/lib/rtunesu/entities/section.rb +15 -11
- data/lib/rtunesu/entities/site.rb +6 -13
- data/lib/rtunesu/entities/template.rb +4 -0
- data/lib/rtunesu/entities/theme.rb +3 -15
- data/lib/rtunesu/entities/track.rb +12 -27
- data/lib/rtunesu/entity.rb +185 -74
- data/lib/rtunesu/log.rb +69 -0
- data/lib/rtunesu/subentities.rb +60 -0
- data/lib/rtunesu/user.rb +3 -1
- data/lib/rtunesu/version.rb +2 -2
- data/lib/rtunesu.rb +11 -6
- data/lib/show_tree.xml +7 -0
- data/spec/connection_spec.rb +6 -30
- data/spec/document_spec.rb +82 -8
- data/spec/entities/course_spec.rb +13 -40
- data/spec/entities/division_spec.rb +13 -3
- data/spec/entities/external_feed_spec.rb +21 -0
- data/spec/entities/group_spec.rb +14 -3
- data/spec/entities/permission_spec.rb +12 -3
- data/spec/entities/section_spec.rb +32 -3
- data/spec/entities/site_spec.rb +16 -3
- data/spec/entities/track_spec.rb +32 -3
- data/spec/entity_spec.rb +147 -86
- data/spec/fixtures/requests/create_course.xml +17 -0
- data/spec/fixtures/requests/create_division.xml +11 -0
- data/spec/fixtures/requests/create_group.xml +11 -0
- data/spec/fixtures/requests/create_section.xml +11 -0
- data/spec/fixtures/requests/delete_course.xml +8 -0
- data/spec/fixtures/requests/delete_group.xml +8 -0
- data/spec/fixtures/requests/delete_section.txt +8 -0
- data/spec/fixtures/requests/show_course.xml +8 -0
- data/spec/fixtures/requests/show_group.xml +8 -0
- data/spec/fixtures/requests/show_section.xml +8 -0
- data/spec/fixtures/requests/update_course.xml +10 -0
- data/spec/fixtures/requests/update_group.xml +9 -0
- data/spec/fixtures/requests/update_section.txt +10 -0
- data/spec/fixtures/responses/failure/create_course.xml +5 -0
- data/spec/fixtures/responses/failure/create_division.xml +5 -0
- data/spec/fixtures/responses/failure/create_group.xml +5 -0
- data/spec/fixtures/responses/failure/create_section.xml +5 -0
- data/spec/fixtures/responses/failure/delete_group.xml +5 -0
- data/spec/fixtures/responses/failure/show_course.xml +11 -0
- data/spec/fixtures/responses/failure/show_division.xml +11 -0
- data/spec/fixtures/responses/failure/show_group.xml +11 -0
- data/spec/fixtures/responses/failure/show_section.xml +11 -0
- data/spec/fixtures/responses/failure/show_site.xml +11 -0
- data/spec/fixtures/responses/failure/update_section.txt +5 -0
- data/spec/fixtures/responses/success/create_course.xml +5 -0
- data/spec/fixtures/responses/success/create_division.xml +5 -0
- data/spec/fixtures/responses/success/create_group.xml +5 -0
- data/spec/fixtures/responses/success/create_section.xml +5 -0
- data/spec/fixtures/responses/success/delete_course.xml +4 -0
- data/spec/fixtures/responses/success/delete_division.xml +4 -0
- data/spec/fixtures/responses/success/delete_group.xml +4 -0
- data/spec/fixtures/responses/success/delete_section.txt +4 -0
- data/spec/fixtures/responses/success/delete_section.xml +4 -0
- data/spec/fixtures/responses/success/show_course.xml +393 -0
- data/spec/fixtures/responses/success/show_division.xml +393 -0
- data/spec/fixtures/responses/success/show_group.xml +137 -0
- data/spec/fixtures/responses/success/show_section.xml +152 -0
- data/spec/fixtures/responses/success/show_site.xml +393 -0
- data/spec/fixtures/responses/success/update_course.xml +4 -0
- data/spec/fixtures/responses/success/update_division.xml +4 -0
- data/spec/fixtures/responses/success/update_group.xml +4 -0
- data/spec/fixtures/responses/success/update_section.txt +4 -0
- data/spec/fixtures/responses/success/update_section.xml +4 -0
- data/spec/fixtures/responses/success/update_site.xml +4 -0
- data/spec/spec_helper.rb +72 -7
- data/spec/token_generation_spec.rb +23 -0
- data/spec/user_spec.rb +3 -3
- metadata +81 -76
- data/Manifest.txt +0 -77
- data/config/hoe.rb +0 -76
- data/config/requirements.rb +0 -15
- data/lib/multipart.rb +0 -53
- data/spec/documents/add_spec.rb +0 -41
- data/spec/documents/delete_spec.rb +0 -30
- data/spec/documents/merge_spec.rb +0 -30
- data/spec/documents/show_tree_spec.rb +0 -16
- data/spec/fixtures/add_course.xml +0 -26
- data/spec/fixtures/add_division.xml +0 -26
- data/spec/fixtures/add_group.xml +0 -27
- data/spec/fixtures/add_permission.xml +0 -12
- data/spec/fixtures/add_section.xml +0 -34
- data/spec/fixtures/add_track.xml +0 -19
- data/spec/fixtures/delete_course.xml +0 -8
- data/spec/fixtures/delete_division.xml +0 -8
- data/spec/fixtures/delete_group.xml +0 -8
- data/spec/fixtures/delete_permission.xml +0 -9
- data/spec/fixtures/delete_section.xml +0 -8
- data/spec/fixtures/delete_track.xml +0 -7
- data/spec/fixtures/merge_course.xml +0 -38
- data/spec/fixtures/merge_division.xml +0 -47
- data/spec/fixtures/merge_group.xml +0 -29
- data/spec/fixtures/merge_permission.xml +0 -12
- data/spec/fixtures/merge_section.xml +0 -36
- data/spec/fixtures/merge_site.xml +0 -31
- data/spec/fixtures/merge_track.xml +0 -18
- data/spec/fixtures/requests/add_coures_request.xml +0 -0
- data/spec/fixtures/show_tree.xml +0 -273
- data/spec/fixtures/update_group.xml +0 -7
- data/tasks/deployment.rake +0 -34
- data/tasks/website.rake +0 -17
- data/website/index.html +0 -54
- data/website/index.txt +0 -7
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -138
- data/website/template.html.erb +0 -48
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ITunesUDocument>
|
3
|
+
<Version>1.1.3</Version>
|
4
|
+
<AddSection>
|
5
|
+
<ParentHandle>720939</ParentHandle>
|
6
|
+
<ParentPath></ParentPath>
|
7
|
+
<Section>
|
8
|
+
<Name>example section</Name>
|
9
|
+
</Section>
|
10
|
+
</AddSection>
|
11
|
+
</ITunesUDocument>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>404 Not Found</title>
|
5
|
+
<meta name="generator" content="Indigo">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Not Found</h1>
|
9
|
+
The requested URL /WebObjects/Core.woa/API/GetUploadURL/umich.edu.23945985?credentials=Administrator%40urn%3Amace%3Aumich.edu&identity=%22Pietrek+Glowacki%22+%3Cpietrekg%40umich.edu%3E+%28pietrekg%29+%5B16278351%5D&time=1255903288&signature=2340e3e32f00c2fef43e3b2909b219451154bf4b358735789422bdca36c053cb&type=XMLControlFile was not found on this server.
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>404 Not Found</title>
|
5
|
+
<meta name="generator" content="Indigo">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Not Found</h1>
|
9
|
+
The requested URL /WebObjects/Core.woa/API/GetUploadURL/umich.edu.23945985?credentials=Administrator%40urn%3Amace%3Aumich.edu&identity=%22Pietrek+Glowacki%22+%3Cpietrekg%40umich.edu%3E+%28pietrekg%29+%5B16278351%5D&time=1255903288&signature=2340e3e32f00c2fef43e3b2909b219451154bf4b358735789422bdca36c053cb&type=XMLControlFile was not found on this server.
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>404 Not Found</title>
|
5
|
+
<meta name="generator" content="Indigo">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Not Found</h1>
|
9
|
+
The requested URL /WebObjects/Core.woa/API/GetUploadURL/umich.edu.23945985?credentials=Administrator%40urn%3Amace%3Aumich.edu&identity=%22Pietrek+Glowacki%22+%3Cpietrekg%40umich.edu%3E+%28pietrekg%29+%5B16278351%5D&time=1255903288&signature=2340e3e32f00c2fef43e3b2909b219451154bf4b358735789422bdca36c053cb&type=XMLControlFile was not found on this server.
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>404 Not Found</title>
|
5
|
+
<meta name="generator" content="Indigo">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Not Found</h1>
|
9
|
+
The requested URL /WebObjects/Core.woa/API/GetUploadURL/umich.edu.23945985?credentials=Administrator%40urn%3Amace%3Aumich.edu&identity=%22Pietrek+Glowacki%22+%3Cpietrekg%40umich.edu%3E+%28pietrekg%29+%5B16278351%5D&time=1255903288&signature=2340e3e32f00c2fef43e3b2909b219451154bf4b358735789422bdca36c053cb&type=XMLControlFile was not found on this server.
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>404 Not Found</title>
|
5
|
+
<meta name="generator" content="Indigo">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Not Found</h1>
|
9
|
+
The requested URL /WebObjects/Core.woa/API/GetUploadURL/umich.edu.23945985?credentials=Administrator%40urn%3Amace%3Aumich.edu&identity=%22Pietrek+Glowacki%22+%3Cpietrekg%40umich.edu%3E+%28pietrekg%29+%5B16278351%5D&time=1255903288&signature=2340e3e32f00c2fef43e3b2909b219451154bf4b358735789422bdca36c053cb&type=XMLControlFile was not found on this server.
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ITunesUResponse>
|
3
|
+
<Version>1.1.3</Version>
|
4
|
+
<error>[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content starting with element 'Section'. The content must match '(("":SectionHandle),("":SectionPath),("":MergeByHandle),("":Destructive),("":Section))'.]</error>
|
5
|
+
</ITunesUResponse>
|