uw_sws 2.0.1 → 2.0.2
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.
- checksums.yaml +4 -4
- data/README.md +12 -5
- data/lib/uw_sws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6097d94a2bb29c2b4c1a1a7ccfb1d4c1407382
|
4
|
+
data.tar.gz: eef85b56c67743b0b2eaf48adaacd91c2f7a0b26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5066526a83494fe345bd3cfd8a36f7940c35ea22daa77a1218a6ad7f84048257092e3e67e28c868ca7c1e7522bbf06a3b9377c861376ddecedfa510e25d4cb5e
|
7
|
+
data.tar.gz: 71a7f0652ab86006d0bbdc00cba2fb2a82736d59451dbb4f4a2b3ad994206b46edb5dfed7c731959cfdea185fb7b2ababa3d7a780aa9cd14c3b3600a71cde344
|
data/README.md
CHANGED
@@ -11,9 +11,13 @@ endpoints](https://wiki.cac.washington.edu/display/SWS/Student+Web+Service+Clien
|
|
11
11
|
### Examples
|
12
12
|
Basic example below gives you hash of term data for winter 2013
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
require 'uw_sws'
|
15
|
+
cert = "/TheFullPath/ToYour/x509Certificate.pem"
|
16
|
+
key = "/TheFullPath/ToYour/x509Key"
|
17
|
+
url = "https://ucswseval1.cac.washington.edu/student/v5/"
|
18
|
+
service = UwSws.new(cert: cert, key: key, base: url, use_cache: false)
|
19
|
+
term = service.term(2013, "winter")
|
20
|
+
|
17
21
|
|
18
22
|
Maybe you want all the Geology courses from 1985?
|
19
23
|
|
@@ -76,18 +80,21 @@ Most of these are not implemented due to additional security requirements beyond
|
|
76
80
|
## Development
|
77
81
|
|
78
82
|
### Installation
|
83
|
+
Ignore the cache warnings after bundle install.
|
79
84
|
|
80
85
|
git clone git@github.com:UWFosterIT/uwsws.git
|
81
86
|
cd uwsws
|
82
87
|
bundle install
|
83
88
|
|
84
|
-
|
85
|
-
Change the ``cache`` symlink to point to a valid path or create a directory for it like below.
|
89
|
+
#### Setup and Tests
|
90
|
+
Change the ``cache`` symlink to point to a valid path or create a directory for it like below. Also, in ``/test`` you will need to provide the full path to your x.509 cert and key before running ``rake``.
|
86
91
|
|
87
92
|
rm cache
|
88
93
|
mkdir cache
|
89
94
|
rake
|
90
95
|
|
96
|
+
You may get 1 or 2 test failing, "financial info", if that endpoint isn't in production yet. If something else fails it's most likely your cert or its permissions granted to it.
|
97
|
+
|
91
98
|
### Contributing
|
92
99
|
|
93
100
|
1. Fork it
|
data/lib/uw_sws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uw_sws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nogbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|