icws 2.2.2 → 2.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.
- checksums.yaml +4 -4
- data/lib/icws/connection.rb +3 -2
- data/lib/icws/statistics/statisticcategory.rb +1 -1
- data/lib/icws/statistics/statistics.rb +3 -3
- 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: 28229bfcc60f3d5224c935e68a7983621d14de20
|
4
|
+
data.tar.gz: 48cb2676fffc8347bf56abbc00b7f50587318f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13e254fd234acb02dee8adf5f816ba7254c4456f9a5d3debdf155cf81033b55b7b53f211f0ba028ab7939ecb1afc897e3afcf3ae5f873be9e8e406ed65c228c1
|
7
|
+
data.tar.gz: 9f695c787e6eda9e5b86bcd59151d319da29f65f666a5f237de8e16888c7369b2cea66276284ae5c1fb1f9f2992b55b4373156748a2f3e9267451fc8eb91ca73
|
data/lib/icws/connection.rb
CHANGED
@@ -17,13 +17,14 @@ class ICWS
|
|
17
17
|
# Connects to the server
|
18
18
|
# @param user [String] the name of the user to connect with
|
19
19
|
# @param password [String] the password for the user
|
20
|
-
def connect(user, password)
|
20
|
+
def connect(user, password, extraParam='x-icws', extraValue='')
|
21
21
|
connectResponse = RestClient.post @server +'/icws/connection',
|
22
22
|
{
|
23
23
|
'__type' => "urn:inin.com:connection:icAuthConnectionRequestSettings",
|
24
24
|
:applicationName => @application_name,
|
25
25
|
:userID => user,
|
26
|
-
:password => password
|
26
|
+
:password => password,
|
27
|
+
extraParam => extraValue
|
27
28
|
}.to_json,
|
28
29
|
:content_type => :json,
|
29
30
|
:accept => :json,
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'icws/messages/messagesubscriber.rb'
|
2
|
+
require 'icws/statistics/statisticcategory.rb'
|
3
3
|
|
4
4
|
class ICWS
|
5
5
|
#Subscribes to Statistics from CIC
|
6
|
-
class Statistics < MessageSubscriber
|
6
|
+
class Statistics < ICWS::Messages::MessageSubscriber
|
7
7
|
#Hash of Statistics catalogs
|
8
8
|
attr_reader :statistic_catalog
|
9
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: '2.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Glinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|