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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -5
  3. data/lib/uw_sws/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40ddd1f44e108bf246089e1d9d3e6bf8b0b7e441
4
- data.tar.gz: 0e6a5b6f9979d322c6986bc0ef5489d3a6ac738f
3
+ metadata.gz: fd6097d94a2bb29c2b4c1a1a7ccfb1d4c1407382
4
+ data.tar.gz: eef85b56c67743b0b2eaf48adaacd91c2f7a0b26
5
5
  SHA512:
6
- metadata.gz: b196277c1dcd416790bb4674db015d3f42191723cd5577027520f689fe8f72ca74077742c777f83864a1a924b05a7f9ed634ca5ca5d62cb390d755cf334b6a1e
7
- data.tar.gz: 835a6387ee8daef22c30da5680b036d23ccc11abfef61d243dbd868854ee96ecb092f3a62406ddab1e88f88d7811f224e1a44e51124f2f659a5e624685b274f8
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
- require 'uw_student_webservice'
15
- service = UwSws.new
16
- term = service.term(2013, "winter")
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
- ### Setup and Tests
85
- Change the ``cache`` symlink to point to a valid path or create a directory for it like below. As you can see in ``/test`` you will need to also provide the full path to your 509 cert and key before running ``rake``.
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
@@ -1,3 +1,3 @@
1
1
  module UwSws
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
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.1
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-07-11 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client