ssedap-client 0.0.2 → 0.0.3
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.
- data/lib/ssedap/client.rb +6 -6
- data/lib/ssedap/client/version.rb +1 -1
- metadata +6 -6
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
|
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::
|
17
|
-
password = CGI::
|
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::
|
34
|
-
password = CGI::
|
35
|
-
lookup = CGI::
|
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}")
|
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.
|
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-
|
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: &
|
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: *
|
25
|
+
version_requirements: *70142811205480
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: json
|
28
|
-
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: *
|
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
|