uw_sws 2.0.3 → 2.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -13
  3. data/lib/uw_sws/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed9a2357aaf87759f576bb7db1ad02f44c7d5e62
4
- data.tar.gz: d5c8357a3400d740e8c78b9aea94c9f2c20d0b14
3
+ metadata.gz: 8f7d24667f71e0bb36644c9107552a56dec62b0a
4
+ data.tar.gz: 5d1e7b411df636d702e38b7003d6a1f1673049a8
5
5
  SHA512:
6
- metadata.gz: e2b4a56b8120f32e43fe27a5a52d05361d15d0fc9be8170630046f3968c0693cea9d0e09fecd35b1f25029b84c5377961ea59b49418b1c027bcc7689d31d2034
7
- data.tar.gz: 52a8b5e58d7626d109352ef892d6e0d8ba3622a543f4597dbc43d81ca4901518d0a944a78bab5f2c6e6da1337e3060edbdd8d6d6c1266547471ea6c2afb585e5
6
+ metadata.gz: 589394dded0b4d3ac57dc3b7004b0e758e4adec7703ea639784cb185c048fc09f902875629dc99dfff3873c7a4e411d291abe8e04dd9eaabd83decbd0098b809
7
+ data.tar.gz: 16c817484aef5ba7d263446ba84e708f33a4a52327c82de5a3d1736c6605e920dcbc24e772f32968ccb405848e1f276fd4805e6b9e6fcb52a2e25a95a48115c5
data/README.md CHANGED
@@ -9,27 +9,23 @@ endpoints](https://wiki.cac.washington.edu/display/SWS/Student+Web+Service+Clien
9
9
  gem install uw_sws
10
10
 
11
11
  ### Examples
12
- Basic example below gives you hash of term data for winter 2013
12
+ First, configure the gem to how you want to use it.
13
13
 
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")
14
+ ```Ruby
15
+ require 'uw_sws'
16
+ cert = "/TheFullPath/ToYour/x509Certificate.pem"
17
+ key = "/TheFullPath/ToYour/x509Key"
18
+ url = "https://ucswseval1.cac.washington.edu/student/v5/"
19
+ service = UwSws.new(cert: cert, key: key, base: url, use_cache: false)
20
+ ```
20
21
 
22
+ Now get all the Geology courses from 1985?
21
23
 
22
- Maybe you want all the Geology courses from 1985?
23
-
24
- require 'uw_student_webservice'
25
- service = UwSws.new
26
24
  courses = service(1985, "winter", curriculum: "GEOG")
27
25
 
28
26
  For cases where you need to page through results you can check for the existance
29
27
  of ``service.next`` and make follow up queries based on it's data.
30
28
 
31
- require 'uw_student_webservice'
32
- service = UwSws.new
33
29
  courses = service.courses(1985, "autumn", curriculum: "GEOG", size: 25)
34
30
  puts service.next
35
31
 
@@ -1,3 +1,3 @@
1
1
  module UwSws
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uw_sws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nogbit