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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5de4101977b6f1a183db5436973eb3fd9ac8a011
4
- data.tar.gz: 6bee46906ed0269410ac91d647be1087cedd15db
3
+ metadata.gz: 28229bfcc60f3d5224c935e68a7983621d14de20
4
+ data.tar.gz: 48cb2676fffc8347bf56abbc00b7f50587318f26
5
5
  SHA512:
6
- metadata.gz: 2d771225891357e77571a44439cbcc97b0b1d5c299c5c917497109cc4a537a49eddddb701b4113ea50e6c1847a074befbea9606ee090fd4d501d01805b6c54cf
7
- data.tar.gz: e7b88e3cff086df6b7df3b20edf62783a30e5ec4fdd4692134197ae6145aafb022dd0612be61e69adebbd73a6cfe885d901f4a37ec5d1aecbfec7e78b439e852
6
+ metadata.gz: 13e254fd234acb02dee8adf5f816ba7254c4456f9a5d3debdf155cf81033b55b7b53f211f0ba028ab7939ecb1afc897e3afcf3ae5f873be9e8e406ed65c228c1
7
+ data.tar.gz: 9f695c787e6eda9e5b86bcd59151d319da29f65f666a5f237de8e16888c7369b2cea66276284ae5c1fb1f9f2992b55b4373156748a2f3e9267451fc8eb91ca73
@@ -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,4 +1,4 @@
1
- require '..\lib\statistics\statisticdefinition.rb'
1
+ require 'icws/statistics/statisticdefinition.rb'
2
2
 
3
3
  class ICWS
4
4
  #Defines a category for supervisor statistics
@@ -1,9 +1,9 @@
1
- require '..\lib\messages\messagesubscriber.rb'
2
- require '..\lib\statistics\statisticcategory.rb'
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.2.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-06-03 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client