ssedap-client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ssedap/client.rb CHANGED
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  module SSEDAP
5
5
  class Client
6
- @host = "https://ssedap.se.rit.edu"
6
+ @host = "https://ssedap"
7
7
 
8
8
  def initialize(host=nil)
9
9
  @host = host unless host.nil?
@@ -13,8 +13,8 @@ module SSEDAP
13
13
  ps = session
14
14
 
15
15
  # url encode parameters
16
- username = CGI::unescape username
17
- password = CGI::unescape password
16
+ username = CGI::escape username
17
+ password = CGI::escape password
18
18
 
19
19
  # make the request
20
20
  resp = ps.post("/api/authorize", "username=#{username}&password=#{password}")
@@ -30,9 +30,9 @@ module SSEDAP
30
30
  ps = session
31
31
 
32
32
  # url encode parameters
33
- username = CGI::unescape username
34
- password = CGI::unescape password
35
- lookup = CGI::unescape lookup
33
+ username = CGI::escape username
34
+ password = CGI::escape password
35
+ lookup = CGI::escape lookup
36
36
 
37
37
  # make the request
38
38
  resp = ps.post("/api/userinfo", "username=#{username}&password=#{password}&lookup=#{lookup}")
@@ -1,5 +1,5 @@
1
1
  module SSEDAP
2
2
  class Client
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssedap-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-01 00:00:00.000000000 Z
13
+ date: 2012-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: patron
17
- requirement: &70261938907820 !ruby/object:Gem::Requirement
17
+ requirement: &70142811205480 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70261938907820
25
+ version_requirements: *70142811205480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: json
28
- requirement: &70261938907400 !ruby/object:Gem::Requirement
28
+ requirement: &70142811205000 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70261938907400
36
+ version_requirements: *70142811205000
37
37
  description: A gem for authenticating and interfacing with an SSEDAP interface.
38
38
  email:
39
39
  - sean@seanbarkley.com