rubyuw 0.99.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +4 -0
  2. data/README.md +81 -0
  3. data/Rakefile +45 -0
  4. data/VERSION +1 -0
  5. data/lib/rubyuw.rb +9 -0
  6. data/lib/rubyuw/base.rb +122 -0
  7. data/lib/rubyuw/connection.rb +145 -0
  8. data/lib/rubyuw/curriculum_enrollment.rb +75 -0
  9. data/lib/rubyuw/errors.rb +16 -0
  10. data/lib/rubyuw/schedule.rb +52 -0
  11. data/lib/rubyuw/sln.rb +108 -0
  12. data/rubyuw.gemspec +97 -0
  13. data/test/live/curriculum_enrollment_test.rb +47 -0
  14. data/test/live/sln_test.rb +54 -0
  15. data/test/live/test_helper.rb +24 -0
  16. data/test/mocked/base_test.rb +171 -0
  17. data/test/mocked/connection_test.rb +178 -0
  18. data/test/mocked/curriculum_enrollment_test.rb +158 -0
  19. data/test/mocked/fixture_pages/bad_request.html +80 -0
  20. data/test/mocked/fixture_pages/curric_courses.html +2659 -0
  21. data/test/mocked/fixture_pages/curric_no_courses.html +88 -0
  22. data/test/mocked/fixture_pages/curric_no_curric_found.html +86 -0
  23. data/test/mocked/fixture_pages/logged_in_relay.html +660 -0
  24. data/test/mocked/fixture_pages/login.html +121 -0
  25. data/test/mocked/fixture_pages/no_form_login.html +122 -0
  26. data/test/mocked/fixture_pages/no_login_button.html +100 -0
  27. data/test/mocked/fixture_pages/not_logged_in_relay.html +15 -0
  28. data/test/mocked/fixture_pages/registration.html +699 -0
  29. data/test/mocked/fixture_pages/registration_error.html +699 -0
  30. data/test/mocked/fixture_pages/registration_error_no_rows.html +627 -0
  31. data/test/mocked/fixture_pages/registration_no_form.html +700 -0
  32. data/test/mocked/fixture_pages/registration_success.html +718 -0
  33. data/test/mocked/fixture_pages/registration_unknown.html +721 -0
  34. data/test/mocked/fixture_pages/schedule.html +166 -0
  35. data/test/mocked/fixture_pages/schedule_diff_credit_row.html +167 -0
  36. data/test/mocked/fixture_pages/schedule_empty.html +130 -0
  37. data/test/mocked/fixture_pages/schedule_no_credit_row.html +169 -0
  38. data/test/mocked/fixture_pages/sln_does_not_exist.html +85 -0
  39. data/test/mocked/fixture_pages/sln_no_course_info.html +94 -0
  40. data/test/mocked/fixture_pages/sln_no_course_notes.html +94 -0
  41. data/test/mocked/fixture_pages/sln_no_enrollment_info.html +94 -0
  42. data/test/mocked/fixture_pages/sln_status.html +92 -0
  43. data/test/mocked/fixture_pages/welcome.html +93 -0
  44. data/test/mocked/schedule_test.rb +89 -0
  45. data/test/mocked/sln_test.rb +146 -0
  46. data/test/mocked/test_helper.rb +67 -0
  47. data/test/password.rb.sample +8 -0
  48. metadata +118 -0
@@ -0,0 +1,8 @@
1
+ #
2
+ # Contains the credentials for running live tests
3
+ # of the library. This file should never be stored
4
+ # in the repository. (The non-sample version)
5
+ #
6
+
7
+ MYUW_ID = "foo"
8
+ MYUW_PASSWORD = "bar"
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubyuw
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.99.1
5
+ platform: ruby
6
+ authors:
7
+ - Mitchell Hashimoto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-06 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: tenderlove-mechanize
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.9.3.20090623142847
24
+ version:
25
+ description: Library which provides a ruby interface to the University of Washington student portal.
26
+ email: mitchell.hashimoto@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - README.md
33
+ files:
34
+ - .gitignore
35
+ - README.md
36
+ - Rakefile
37
+ - VERSION
38
+ - lib/rubyuw.rb
39
+ - lib/rubyuw/base.rb
40
+ - lib/rubyuw/connection.rb
41
+ - lib/rubyuw/curriculum_enrollment.rb
42
+ - lib/rubyuw/errors.rb
43
+ - lib/rubyuw/schedule.rb
44
+ - lib/rubyuw/sln.rb
45
+ - rubyuw.gemspec
46
+ - test/live/curriculum_enrollment_test.rb
47
+ - test/live/sln_test.rb
48
+ - test/live/test_helper.rb
49
+ - test/mocked/base_test.rb
50
+ - test/mocked/connection_test.rb
51
+ - test/mocked/curriculum_enrollment_test.rb
52
+ - test/mocked/fixture_pages/bad_request.html
53
+ - test/mocked/fixture_pages/curric_courses.html
54
+ - test/mocked/fixture_pages/curric_no_courses.html
55
+ - test/mocked/fixture_pages/curric_no_curric_found.html
56
+ - test/mocked/fixture_pages/logged_in_relay.html
57
+ - test/mocked/fixture_pages/login.html
58
+ - test/mocked/fixture_pages/no_form_login.html
59
+ - test/mocked/fixture_pages/no_login_button.html
60
+ - test/mocked/fixture_pages/not_logged_in_relay.html
61
+ - test/mocked/fixture_pages/registration.html
62
+ - test/mocked/fixture_pages/registration_error.html
63
+ - test/mocked/fixture_pages/registration_error_no_rows.html
64
+ - test/mocked/fixture_pages/registration_no_form.html
65
+ - test/mocked/fixture_pages/registration_success.html
66
+ - test/mocked/fixture_pages/registration_unknown.html
67
+ - test/mocked/fixture_pages/schedule.html
68
+ - test/mocked/fixture_pages/schedule_diff_credit_row.html
69
+ - test/mocked/fixture_pages/schedule_empty.html
70
+ - test/mocked/fixture_pages/schedule_no_credit_row.html
71
+ - test/mocked/fixture_pages/sln_does_not_exist.html
72
+ - test/mocked/fixture_pages/sln_no_course_info.html
73
+ - test/mocked/fixture_pages/sln_no_course_notes.html
74
+ - test/mocked/fixture_pages/sln_no_enrollment_info.html
75
+ - test/mocked/fixture_pages/sln_status.html
76
+ - test/mocked/fixture_pages/welcome.html
77
+ - test/mocked/schedule_test.rb
78
+ - test/mocked/sln_test.rb
79
+ - test/mocked/test_helper.rb
80
+ - test/password.rb.sample
81
+ has_rdoc: true
82
+ homepage: http://github.com/mitchellh/rubyuw
83
+ licenses: []
84
+
85
+ post_install_message:
86
+ rdoc_options:
87
+ - --charset=UTF-8
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: "0"
95
+ version:
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: "0"
101
+ version:
102
+ requirements: []
103
+
104
+ rubyforge_project:
105
+ rubygems_version: 1.3.5
106
+ signing_key:
107
+ specification_version: 3
108
+ summary: Library which provides a ruby interface to the University of Washington student portal.
109
+ test_files:
110
+ - test/live/curriculum_enrollment_test.rb
111
+ - test/live/sln_test.rb
112
+ - test/live/test_helper.rb
113
+ - test/mocked/base_test.rb
114
+ - test/mocked/connection_test.rb
115
+ - test/mocked/curriculum_enrollment_test.rb
116
+ - test/mocked/schedule_test.rb
117
+ - test/mocked/sln_test.rb
118
+ - test/mocked/test_helper.rb